/* --- Zmienne globalne i Reset --- */
:root {
    --bg-global: #f7f9fa;
    --bg-card: #ffffff;
    --text-main: #0f1419;
    --text-muted: #536471;
    --accent: #1d9bf0;
    --border-color: #eff3f4;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    box-sizing: border-box;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

html.icons-loading .material-symbols-outlined {
    opacity: 0;
}

*, *:before, *:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-global);
    font-family: var(--font-stack);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- Nawigacja (Navbar) --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 960px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-search {
    background-color: var(--bg-global);
    border: 1px solid transparent;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    padding: 8px 18px;
    width: 360px;
    transition: all 0.2s ease;
}

.nav-search:focus-within {
    background-color: var(--bg-card);
    border-color: var(--accent);
}

.nav-search span {
    color: var(--text-muted);
    margin-right: 8px;
    font-size: 22px;
}

.nav-search input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 15px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.nav-icon-btn span {
    font-size: 26px;
}

.avatar-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Wyrazista, pulsująca kropka powiadomień */
.notification-badge-container {
    position: relative;
}

.notification-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 13px;
    height: 13px;
    background-color: #f4212e;
    border-radius: 50%;
    border: 2.5px solid var(--bg-card);
    box-shadow: 0 2px 5px rgba(244, 33, 46, 0.4);
    animation: alert-pulse 2s infinite ease-in-out;
}

@keyframes alert-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); box-shadow: 0 2px 8px rgba(244, 33, 46, 0.6); }
    100% { transform: scale(1); }
}

/* --- SYSTEM DROPDOWNÓW NAWIGACYJNYCH --- */
.nav-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.03);
    display: none;
    z-index: 200;
    overflow: hidden;
    animation: slideUpDropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpDropdown {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-wrapper.active .dropdown-menu {
    display: block;
}

.dropdown-notifications {
    width: 360px;
    max-height: 420px;
    overflow-y: auto;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-header h4 {
    font-size: 15px;
    font-weight: 800;
}

.btn-text-action {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.dropdown-list {
    list-style: none;
}

.dropdown-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
    transition: background-color 0.15s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--bg-global);
}

.dropdown-item.unread {
    background-color: #f4f9fd;
    box-shadow: inset 3px 0 0 var(--accent);
}

.dropdown-item.unread .item-text p {
    font-weight: 700;
}

.dropdown-item .item-text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.4;
}

.notification-link {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.dropdown-item .time-stamp {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.notifications-page-shell {
    max-width: 980px;
    margin: 28px auto 0;
    padding: 0 20px;
}

.notifications-page-card {
    padding: 24px;
}

.notifications-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.notifications-page-header h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-bottom: 8px;
}

.notifications-page-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.notifications-page-list {
    display: grid;
    gap: 10px;
}

.notification-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.notification-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    border-color: #dce3ea;
}

.notification-card.unread {
    background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
    border-color: #cfe1fb;
}

.notification-card.unread .notification-card-title {
    font-weight: 800;
}

.notification-card-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    background: transparent;
}

.notification-card.unread .notification-card-dot {
    background: #1d9bf0;
    box-shadow: 0 0 0 4px rgba(29, 155, 240, 0.12);
}

.notification-card-body {
    flex: 1;
    min-width: 0;
}

.notification-card-title {
    margin-bottom: 4px;
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.45;
}

.notification-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.notifications-page-empty {
    text-align: center;
    padding: 56px 24px;
    color: var(--text-muted);
}

.notifications-page-actions {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.icon-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px !important;
}

.style-like { background-color: #fdeef4; color: #f91880; }
.style-system { background-color: #eaf6ff; color: var(--accent); }

.dropdown-profile {
    width: 220px;
}

.dropdown-profile-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-global);
}

.user-full-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}

.user-handle-name {
    font-size: 12px;
    color: var(--text-muted);
}

.dropdown-profile .dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    transition: background-color 0.15s ease;
    cursor: pointer;
}

.dropdown-profile .dropdown-link:hover {
    background-color: var(--bg-global);
}

.dropdown-profile .dropdown-link span {
    font-size: 18px;
    color: var(--text-muted);
}

.dropdown-profile .divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 4px 0;
}

.logout-link {
    color: #f4212e !important;
}

.logout-link span {
    color: #f4212e !important;
}

/* --- UKŁAD: Szeroki i Wyśrodkowany --- */
.grid-centered {
    max-width: 960px;
    margin: 28px auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 0 20px;
}

.post-page .main-content {
    max-width: 960px;
    width: 100%;
}

.comment-item {
    transition: transform 0.25s ease, opacity 0.25s ease, max-height 0.25s ease, margin 0.25s ease, padding 0.25s ease;
}

.comment-item.added {
    opacity: 0;
    transform: translateY(12px);
    animation: commentFadeIn 0.3s ease forwards;
}

.comment-item.removed {
    opacity: 0;
    transform: scale(0.98);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.comment-item.moderator-removed {
    opacity: 0.7;
    background-color: #f3f4f6;
    border: 1px dashed #d1d5db;
}

.comment-item.moderator-removed .avatar-xs {
    filter: grayscale(1);
    opacity: 0.8;
}

.comment-item.moderator-removed .comment-author-name,
.comment-item.moderator-removed .comment-time,
.comment-item.moderator-removed .comment-bubble {
    color: #6b7280;
}

.comment-content-moderator-removed {
    font-style: italic;
}

.feed-item-split.moderator-removed,
.feed-item-split[data-moderator-blocked="1"] {
    filter: grayscale(1);
    opacity: 0.5;
    border: 1px dashed #d1d5db;
}

.feed-item-split.moderator-removed .item-title a,
.feed-item-split.moderator-removed .item-excerpt,
.feed-item-split.moderator-removed .item-meta,
.feed-item-split.moderator-removed .item-time-link,
.feed-item-split[data-moderator-blocked="1"] .item-title a,
.feed-item-split[data-moderator-blocked="1"] .item-excerpt,
.feed-item-split[data-moderator-blocked="1"] .item-meta,
.feed-item-split[data-moderator-blocked="1"] .item-time-link {
    color: #6b7280;
}

@keyframes commentFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feed-item-split.loaded:not(.moderator-removed):not([data-moderator-blocked="1"]) {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.35s forwards ease-out;
}

.skeleton-card {
    animation: pulse 1.4s ease-in-out infinite;
    background-color: rgba(255,255,255,0.95);
    border-color: rgba(148,163,184,0.35) !important;
}

.skeleton-line,
.skeleton-circle {
    background: linear-gradient(90deg, rgba(229,231,235,1) 0%, rgba(241,245,249,1) 50%, rgba(229,231,235,1) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.skeleton-line {
    border-radius: 999px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.feed-item-split.loaded:not(.moderator-removed):not([data-moderator-blocked="1"]) {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.35s forwards ease-out;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.top-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 24px;
}

.widget-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
}

.horizontal-recommendation-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.horizontal-recommendation-list li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rec-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rec-name {
    font-size: 15px;
    font-weight: 700;
}

.rec-tag {
    font-size: 13px;
    color: var(--text-muted);
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* --- Komponenty wspólne --- */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
}

.avatar-small, .avatar-xs, .creator-avatar-inline, .profile-avatar-large {
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.avatar-xs {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.creator-avatar-inline {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.btn {
    font-family: var(--font-stack);
    font-weight: 700;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
    background-color: var(--text-main);
    color: #fff;
    padding: 10px 22px;
    font-size: 15px;
}

.btn-primary:hover {
    background-color: #272c30;
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-main);
    padding: 8px 16px;
    font-size: 14px;
    border: 1px solid #cfd9de;
}

.btn-secondary:hover {
    background-color: #f7f9fa;
}

.btn-danger {
    background-color: #f4212e;
    color: #fff;
    padding: 8px 18px;
    font-size: 14px;
}

.btn-danger:hover {
    background-color: #d31b26;
}

.tag-badge {
    background-color: var(--bg-global);
    padding: 8px 14px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: background-color 0.15s ease, color 0.15s ease;
    display: inline-block;
}

.tag-badge:hover, .tag-badge.active {
    background-color: #eff3f4;
    color: var(--text-main);
}

.feed-sort-card {
    margin-bottom: 16px;
    padding: 10px 12px;
}

.feed-sort-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.feed-sort-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 4px;
}

.feed-sort-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-global);
    color: var(--text-muted);
    border-radius: 9999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feed-sort-btn:hover {
    color: var(--text-main);
    border-color: #ccd6dd;
}

.feed-sort-btn.active {
    background: #eff3f4;
    color: var(--text-main);
    border-color: #ccd6dd;
}

/* --- FORMULARZ UDOSTĘPNIANIA --- */
.card-publish {
    display: flex !important;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 16px;
    visibility: visible !important;
    opacity: 1 !important;
}

.publish-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.publish-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.input-link {
    width: 100%;
    border: none;
    outline: none;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-main);
    background-color: transparent;
}

.input-note {
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: var(--font-stack);
    resize: none;
    height: 70px;
    color: var(--text-muted);
    background-color: transparent;
}

.publish-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.tag-badge-input {
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    background: var(--bg-global);
    padding: 6px 14px;
    border-radius: 9999px;
}

.publish-right-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.char-counter {
    font-size: 13px;
    color: var(--text-muted);
}

.publish-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f7f9fc;
    border: 1px solid #d9e0ea;
    color: #445265;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-chip.selected {
    background: #eaf3ff;
    border-color: #98b8ee;
    color: #1b5fb5;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(30, 94, 181, 0.12);
}

.tag-chip:hover {
    border-color: #b5c3d4;
    transform: translateY(-1px);
}

.tag-chip.selected:hover {
    border-color: #7fa8e7;
    transform: translateY(-1px);
}

.tag-badge-removable {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: var(--bg-global);
    border: 1px solid var(--border-color);
    padding: 3px 8px 3px 10px;
    border-radius: 9999px;
    font-size: 12px;
    color: var(--text-main);
    font-weight: 500;
}

.tag-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 0;
    border-radius: 50%;
}

.tag-remove-btn:hover {
    color: #e74c3c;
}

.tag-remove-btn .material-symbols-outlined {
    font-size: 14px;
}

.locked-content-wrapper {
    position: relative;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.register-prompt-card {
    position: absolute;
    top: 22%;
    width: min(90%, 440px);
    z-index: 11;
    border: 1px solid #dbe5f2;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    padding: 38px 24px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.register-prompt-card h3 {
    font-size: 22px;
    line-height: 1.2;
    margin: 0 0 10px;
    color: #0f172a;
}

.register-prompt-card p {
    margin: 0 0 16px;
    color: #5a6a7b;
    font-size: 14px;
}

.guest-locked-post {
    width: 100%;
    pointer-events: none;
    user-select: none;
}

.guest-locked-post.feed-item-blur {
    mask-image: linear-gradient(to bottom, black 44%, transparent 96%);
    -webkit-mask-image: linear-gradient(to bottom, black 44%, transparent 96%);
}

.guest-locked-post.feed-item-blur .item-main-body,
.guest-locked-post.feed-item-blur .item-side-actions {
    filter: blur(5px) !important;
    opacity: 0.62 !important;
}

.comment-item.comment-targeted {
    position: relative;
    border-radius: 16px;
    background: rgba(243, 248, 255, 0.78);
    box-shadow: 0 0 0 1px rgba(159, 193, 246, 0.55), 0 10px 24px rgba(37, 99, 235, 0.12);
    transition: box-shadow 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
    transform: translateY(-1px);
}

.comment-item.comment-targeted .comment-bubble {
    background: #f3f8ff;
    border-color: #9fc1f6;
    box-shadow: none;
}

/* --- KARTA WPISU (Feed Item) --- */
.feed-item-split {
    display: block !important; 
    padding: 24px 24px 0px 24px !important; 
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    background: var(--bg-card);
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.feed-item-split:hover {
    border-color: #ccd6dd;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 18px;
}

.item-meta-author-side {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0; 
    flex: 1;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.author-name-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.author-name {
    font-weight: 700;
    color: var(--text-main);
    min-width: 0; 
    overflow: hidden;
    text-overflow: ellipsis; 
    white-space: nowrap;
    display: block;
    font-size: 16px;
}

.verified-badge-inline {
    flex-shrink: 0;
    font-size: 16px;
    color: var(--accent);
}

.item-time {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-time-link {
    color: inherit;
    text-decoration: none;
}

.item-time-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Przycisk usuwania w nagłówku wpisu / komentarza */
.btn-delete-post, .btn-delete-comment {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
    padding: 4px 6px !important;
    cursor: pointer !important;
    color: #94a3b8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.btn-delete-post:hover, .btn-delete-comment:hover {
    color: #ef4444 !important;
    background: transparent !important;
}

.btn-delete-post span, .btn-delete-comment span {
    font-size: 18px !important;
}

.btn-toggle-excerpt {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
    padding: 4px 6px !important;
    cursor: pointer !important;
    color: #94a3b8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.btn-toggle-excerpt:hover {
    color: #2563eb !important;
    background: transparent !important;
}

.btn-toggle-excerpt span {
    font-size: 18px !important;
}

.feed-item-split.excerpt-hidden .item-excerpt {
    display: none;
}

.feed-item-split.excerpt-hidden.no-tags .item-divider {
    display: none;
}

.feed-item-split.no-tags-feed .item-divider {
    display: none;
}

.item-content {
    margin-top: 12px;
    margin-bottom: 16px;
}

.item-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.35;
}

.item-title a:hover {
    color: var(--accent);
}

.item-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 14px 0;
}

.item-excerpt {
    color: var(--text-muted);
    font-size: 16px; 
    line-height: 1.6;
}

.item-author-note {
    background-color: #f0f7fc;
    border-left: 3px solid var(--accent);
    border-radius: 4px var(--border-radius-md) var(--border-radius-md) 4px;
    padding: 16px 20px;
    margin-top: 20px;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.note-icon {
    color: var(--accent);
    font-size: 22px;
    margin-top: 2px;
}

.item-author-note p {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.6;
}

.item-author-note strong {
    color: var(--accent);
}

.item-footer-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.tag-badge-small {
    background-color: var(--bg-global);
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    transition: background-color 0.15s ease, color 0.15s ease;
    display: inline-block;
}

.tag-badge-small:hover {
    background-color: #eff3f4;
    color: var(--text-main);
}

/* --- PRZYCISKI AKCJI POD WPISEM --- */
.item-side-actions {
    display: flex !important;
    flex-direction: row !important;
    width: calc(100% + 48px) !important;
    max-width: calc(100% + 48px) !important; 
    margin-left: -24px !important; 
    margin-top: 16px !important; 
    margin-bottom: 0px !important; 
    padding: 8px 0 !important; 
    border-top: 1px solid #f0f0f0 !important;
    border-bottom: none !important;
}

.action-btn-vertical {
    flex: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    height: 38px !important; 
    padding: 0 !important; 
    border: none !important;
    border-right: 1px solid #f0f0f0 !important;
    border-top: none !important;
    border-left: none !important;
    border-bottom: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
    opacity: 0.65 !important; 
    color: #64748b !important; 
    transition: all 0.2s ease !important;
}

.action-btn-vertical:hover {
    opacity: 1 !important;
    color: #1e293b !important;
    background: transparent !important;
}

.action-btn-vertical.active {
    opacity: 1 !important;
    color: var(--text-main) !important;
}

.action-btn-vertical.active.btn-like {
    color: #f91880 !important;
    opacity: 1 !important;
    border: none !important;
    border-right: 1px solid #f0f0f0 !important;
}

.action-btn-vertical.active.btn-bookmark {
    color: var(--accent) !important;
    opacity: 1 !important;
    border: none !important;
    border-right: 1px solid #f0f0f0 !important;
}

.action-btn-vertical:last-child { 
    border-right: none !important; 
}

.action-btn-vertical span.material-symbols-outlined, 
.action-btn-vertical .count {
    display: flex !important;
    align-items: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    color: inherit; 
    font-size: 18px;
}

.action-btn-vertical .count {
    font-size: 13px;
    font-weight: 600;
}

.likes-count-clickable {
    cursor: pointer;
}

.action-btn-vertical:focus,
.action-btn-vertical:active,
.action-btn-vertical:focus-visible {
    outline: none !important;
    border: none !important;
    border-right: 1px solid #f0f0f0 !important;
    box-shadow: none !important;
}

.action-btn-vertical:last-child:focus,
.action-btn-vertical:last-child:active,
.action-btn-vertical:last-child:focus-visible {
    border-right: none !important;
}

/* --- Sekcja Komentarzy --- */
.post-comments-section {
    margin-top: 0px;
    padding: 16px 24px 44px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.post-comments-card [id^="commentsList-"] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 14px;
}

.comment-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background-color: var(--bg-global);
    padding: 14px 16px;
    border-radius: var(--border-radius-md);
    position: relative;
}

.comment-bubble {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.6;
    width: 100%;
}

.comment-author-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2px;
    gap: 10px;
}

.comment-author-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-author-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.comment-author-link:hover {
    text-decoration: none;
}

.comment-author-link:hover .comment-author-name {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.comment-author-name {
    font-weight: 700;
    font-size: 15px;
}

.comment-author-link .verified-badge-inline {
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
}

.comment-time {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    line-height: 1.3;
}

.comment-input-box {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 4px;
    position: relative;
}

.comment-input {
    flex-grow: 1;
    background-color: var(--bg-global);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 11px 18px;
    font-size: 16px;
    font-family: var(--font-stack);
    outline: none;
    transition: border-color 0.2s;
}

.comment-input:focus {
    border-color: var(--accent);
    background-color: var(--bg-card);
}

/* Autocomplete popup for @mentions */
.mention-autocomplete {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 150;
    width: 240px;
    max-height: 180px;
    overflow-y: auto;
    display: none;
}

.mention-autocomplete.active {
    display: block;
}

.mention-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
}

.mention-item:hover {
    background: var(--bg-global);
}

/* --- STYLE PROFILU --- */
.profile-hero-card {
    padding: 0 0 14px;
    width: 100%;
}

.profile-cover-placeholder {
    height: 150px;
    background: linear-gradient(135deg, #e8f5fe 0%, #cce7ff 100%);
}

.profile-avatar-wrapper {
    padding: 0 24px;
    margin-top: -60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
}

.profile-avatar-large {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-card);
    background-color: var(--bg-card);
}

.profile-bio-data {
    padding: 0 24px;
}

.profile-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    color: var(--accent);
    font-size: 24px !important;
}

.profile-handle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.profile-bio-text {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 720px;
}

.profile-stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #f0f0f0; 
    margin-top: 15px; 
    padding: 10px 0 0;
}

.stat-box {
    flex: 1;
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: center;
    border-right: 1px solid #f0f0f0; 
    font-size: 0.8rem;
    color: #777;
    gap: 4px; 
}

.stat-box-button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.stat-box-button:hover strong,
.stat-box-button:hover span {
    color: var(--accent);
}

.stat-box:last-child {
    border-right: none;
}

.stat-box strong {
    color: #000;
    font-size: 0.9rem;
}

.profile-layout-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .profile-layout-grid {
        grid-template-columns: 320px 1fr;
    }
}

.profile-sidebar, .profile-feed-area {
    width: 100%;
    min-width: 0;
}

.profile-tabs-card {
    padding: 10px 12px;
}

.profile-tabs-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-tab-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-global);
    color: var(--text-muted);
    border-radius: 9999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-tab-btn:hover {
    color: var(--text-main);
    border-color: #ccd6dd;
}

.profile-tab-btn.active {
    background: #eff3f4;
    color: var(--text-main);
    border-color: #ccd6dd;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- Ustawienia konta --- */
.settings-page-shell {
    margin-top: 24px;
    margin-bottom: 8px;
    gap: 20px;
}

.settings-page-hero-card {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding: 22px 24px;
}

.settings-page-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 6px;
}

.settings-page-lead {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 560px;
}

.settings-page-hero-meta {
    min-width: 220px;
    padding: 14px 16px;
    border-radius: var(--border-radius-md);
    background: var(--bg-global);
    border: 1px solid var(--border-color);
    display: grid;
    gap: 3px;
}

.settings-page-hero-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.settings-page-hero-user {
    font-size: 16px;
    font-weight: 800;
}

.settings-page-hero-handle {
    font-size: 13px;
    color: var(--text-muted);
}

.settings-profile-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.settings-avatar-card,
.settings-form-card {
    min-width: 0;
}

.settings-avatar-card {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 84px;
}

.settings-avatar-card-head h2 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.settings-avatar-card-head p,
.avatar-editor-hint,
.settings-form-wide small,
.avatar-editor-preview-row p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.settings-avatar-current-wrap {
    display: flex;
    justify-content: center;
}

.settings-avatar-current {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-card);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.avatar-editor {
    display: grid;
    gap: 14px;
}

.avatar-editor-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background-color: #eef2f7;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
}

.avatar-editor-frame:active {
    cursor: grabbing;
}

.avatar-editor-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    color: var(--text-muted);
    padding: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.9));
}

.avatar-editor-placeholder .material-symbols-outlined {
    font-size: 32px;
    color: var(--accent);
}

.avatar-editor-preview-row {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: var(--bg-global);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
}

.avatar-editor-preview-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid var(--bg-card);
    background-color: #dbe3ea;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.avatar-editor-preview-row strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.avatar-editor-controls {
    display: grid;
    gap: 12px;
}

.avatar-file-label,
.avatar-zoom-control {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.avatar-file-label input[type="file"] {
    padding: 10px 0;
}

.avatar-zoom-control input[type="range"] {
    width: 100%;
}

.avatar-editor-hint {
    margin: 0;
}

.settings-form-card {
    display: grid;
    gap: 18px;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.settings-form-grid label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.settings-form-wide {
    grid-column: 1 / -1;
}

.settings-bio-input {
    height: 110px;
    font-family: var(--font-stack);
    resize: vertical;
}

.settings-checkbox-row {
    padding: 14px;
    background: var(--bg-global);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
}

.settings-checkbox-row small {
    display: block;
    margin-top: 6px;
}

.settings-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 2px;
}

.btn-sm {
    padding: 7px 12px;
    font-size: 13px;
}

.settings-page-shell .card {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.settings-page-shell .settings-avatar-card,
.settings-page-shell .settings-form-card,
.settings-page-shell .settings-page-hero-card {
    border-color: rgba(148, 163, 184, 0.18);
}

.profile-blocked-banner {
    width: 100%;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.blocked-profile-page .profile-hero-card,
.blocked-profile-page .profile-layout-grid {
    filter: grayscale(1) blur(2.5px);
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.65) 55%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.65) 55%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    user-select: none;
}


.connections-list {
    margin: 0;
    padding: 0;
}

.connections-list .connection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.connection-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.connection-link:hover .rec-name {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.connection-follow-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.connections-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.connections-search-input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    background: var(--bg-global);
    color: var(--text-main);
    font-size: 14px;
    padding: 9px 14px;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.connections-search-input:focus {
    border-color: #ccd6dd;
    background: #fff;
}

.connections-pagination {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .feed-sort-label {
        width: 100%;
        margin-right: 0;
    }

    .connections-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .notifications-page-shell {
        padding: 0 16px;
    }

    .notifications-page-card {
        padding: 18px;
    }

    .notifications-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .settings-page-hero-card {
        flex-direction: column;
    }

    .settings-page-hero-meta {
        width: 100%;
    }

    .settings-page-shell {
        margin-top: 18px;
    }

    .settings-profile-grid {
        gap: 16px;
    }

    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .settings-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .settings-form-actions .btn,
    .settings-form-actions a {
        width: 100%;
        justify-content: center;
    }
}

.profile-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15px;
    color: var(--text-muted);
}

.profile-info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.profile-info-list span.material-symbols-outlined {
    font-size: 20px;
    color: var(--text-muted);
}

/* --- Modale --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1000;
    padding: 16px;
    box-sizing: border-box;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-container {
    background: var(--bg-card);
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 20px;
    display: flex;
    align-items: center;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-body label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.modal-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 15px;
    outline: none;
    font-family: var(--font-stack);
    box-sizing: border-box;
}

.modal-input:focus {
    border-color: var(--accent);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

/* Toast notifications */
.toast-container {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    top: auto !important;
    left: auto !important;
    z-index: 99999999 !important;
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 10px !important;
    pointer-events: none !important;
    width: max-content !important;
    max-width: min(380px, calc(100vw - 32px)) !important;
    align-items: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
}

.toast {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.2) !important;
    animation: toastPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    pointer-events: auto !important;
    border-left: 4px solid #38bdf8 !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
    width: fit-content !important;
    margin-left: auto !important;
}

.toast-error {
    background: #0f172a !important;
    color: #ffffff !important;
    border-left: 4px solid #f87171 !important;
}

.toast-error .material-symbols-outlined {
    color: #f87171 !important;
}

.toast-success {
    background: #0f172a !important;
    color: #ffffff !important;
    border-left: 4px solid #34d399 !important;
}

.toast-success .material-symbols-outlined {
    color: #34d399 !important;
}

.toast-info {
    background: #0f172a !important;
    color: #ffffff !important;
    border-left: 4px solid #38bdf8 !important;
}

.toast-info .material-symbols-outlined {
    color: #38bdf8 !important;
}

@keyframes toastPopIn {
    from { opacity: 0; transform: translateY(16px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
    .toast-container {
        bottom: 16px !important;
        right: 16px !important;
        left: 16px !important;
        max-width: calc(100vw - 32px) !important;
        width: auto !important;
    }
    .toast {
        width: 100% !important;
    }
}

/* Feed item blur for non-logged in users */
.feed-item-blur {
    position: relative !important;
    overflow: hidden !important;
    user-select: none !important;
}

.feed-item-blur .item-main-body,
.feed-item-blur .item-side-actions,
.feed-item-blur .post-comments-section {
    filter: blur(5px) !important;
    opacity: 0.4 !important;
    pointer-events: none !important;
}

.blur-cta-overlay {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(3px) !important;
    z-index: 20 !important;
    padding: 24px !important;
    text-align: center !important;
    border-radius: var(--border-radius-lg, 12px) !important;
}

/* --- Sekcja Landing Page --- */
.landing-main-container {
    max-width: 1060px;
    margin: 40px auto 10px;
    padding: 0 20px;
}

.landing-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
}

.landing-left-panel {
    background-color: #ffffff;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-right-panel {
    background-color: #f8fafc;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.landing-left-panel h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight-marker {
    background: linear-gradient(100deg, rgba(29, 155, 240, 0.15) 0%, rgba(29, 155, 240, 0.25) 70%, rgba(29, 155, 240, 0.1) 100%);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    transform: rotate(-1deg);
}

.hero-lead {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

.cta-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cfd9de;
    border-radius: var(--border-radius-md);
    font-size: 15px;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
}

.quote-box-minimal {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

.quote-box-minimal p {
    font-size: 16px;
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

.features-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.creator-personal-card {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: var(--border-radius-lg);
    padding: 20px;
}

.creator-intro {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f1f1;
}

/* --- Admin Table --- */
.admin-page-wrap {
    max-width: 1320px;
    margin: 28px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.admin-sidebar-card {
    position: sticky;
    top: 84px;
}

.admin-nav-links {
    display: grid;
    gap: 8px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    border: 1px solid transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.admin-nav-link span {
    font-size: 19px;
    color: #64748b;
}

.admin-nav-link:hover {
    background: #f4f8ff;
    border-color: #dbe7fb;
    color: #1f3b67;
}

.admin-nav-link.active {
    background: #eaf3ff;
    border-color: #bfd4f7;
    color: #1f4f8d;
}

.admin-content-area {
    min-width: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-weight: 700;
    background: var(--bg-global);
}

/* --- Responsywność --- */
@media (max-width: 992px) {
    .landing-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .admin-page-wrap {
        grid-template-columns: 1fr;
    }

    .admin-sidebar-card {
        position: static;
    }

    .settings-profile-grid {
        grid-template-columns: 1fr;
    }

    .settings-avatar-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .top-widgets, .profile-layout-grid {
        grid-template-columns: 1fr !important;
    }
    .nav-search {
        display: none;
    }
    .features-horizontal-grid {
        grid-template-columns: 1fr;
    }

    .locked-content-wrapper {
        margin-top: 14px;
    }

    .register-prompt-card {
        top: 16%;
        width: min(92%, 380px);
        padding: 28px 16px;
        min-height: 200px;
    }

    .register-prompt-card h3 {
        font-size: 16px;
        line-height: 1.35;
    }

    .register-prompt-card p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .register-prompt-card .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 14px;
    }

    .guest-locked-post.feed-item-blur {
        mask-image: linear-gradient(to bottom, black 38%, transparent 98%);
        -webkit-mask-image: linear-gradient(to bottom, black 38%, transparent 98%);
    }
}

@media (max-width: 600px) {
    .profile-hero-card {
        padding-bottom: 6px !important;
    }
    .profile-stats-container {
        flex-wrap: wrap;
        margin-top: 10px;
        padding: 0;
    }
    .stat-box {
        flex-direction: column; 
        gap: 0;
        flex-basis: 50%;
        padding: 8px 0;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    .stat-box:nth-child(odd) {
        border-right: 1px solid #f0f0f0;
    }

    .register-prompt-card {
        top: 14%;
        width: 94%;
        padding: 24px 14px;
        min-height: 190px;
    }

    .register-prompt-card h3 {
        font-size: 15px;
    }

    .register-prompt-card p {
        font-size: 12.5px;
        margin-bottom: 10px;
    }
}
