:root {
            --bg-dark: #070b18;
            --nav-bg: #0d1322;
            --card-bg: #131b2e;
            --card-bg-soft: #182236;
            --card-border: #26334a;
            --primary-orange: #f59e0b;
            --primary-green: #34d399;
            --primary-blue: #2563eb;
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --badge-bg: #1e293b;
            --danger-color: #ef4444;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            min-height: 100%;
        }

        body {
            font-family:
                -apple-system,
                BlinkMacSystemFont,
                "Segoe UI",
                Roboto,
                Helvetica,
                Arial,
                sans-serif;

            background-color: var(--bg-dark);
            color: var(--text-main);
            min-height: 100vh;
        }

        body.modal-open {
            overflow: hidden;
        }

        .page-shell {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .navbar {
            background-color: var(--nav-bg);
            border-bottom: 1px solid var(--card-border);
            padding: 15px 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 100;
            gap: 20px;
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            min-width: 0;
        }

        .logo-icon {
            background-color: var(--primary-orange);
            color: #000;
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.2rem;
            flex: 0 0 auto;
        }

        .logo-text h1,
        .logo-text .logo-brand {
            font-size: 1.25rem;
            font-weight: 700;
            color: #fff;
        }

        .logo-text h1 span,
        .logo-text .logo-brand span {
            color: var(--primary-orange);
            font-size: 0.8rem;
            margin-left: 4px;
        }

        .logo-text p {
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .btn {
            padding: 9px 18px;
            border-radius: 8px;
            border: none;
            font-weight: 650;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 0.9rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .btn-orange {
            background-color: var(--primary-orange);
            color: #090909;
        }

        .btn-orange:hover {
            background-color: #d97706;
        }

        .btn-social {
            background-color: var(--primary-green);
            color: #06110d;
        }

        .btn-social:hover {
            background-color: #10b981;
        }

        .btn-secondary {
            background-color: var(--card-bg-soft);
            border: 1px solid var(--card-border);
            color: #fff;
        }

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

        .btn-danger {
            background-color: rgba(239, 68, 68, 0.16);
            color: var(--danger-color);
            border: 1px solid rgba(239, 68, 68, 0.6);
        }

        .btn-sm {
            padding: 5px 10px;
            font-size: 0.8rem;
        }

        /* ============================================================
           Compact account navigation
        ============================================================ */

        .nav-user-menu {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .nav-icon-btn {
            position: relative;
            width: 48px;
            height: 44px;
            min-width: 48px;
            padding: 0;
            border-radius: 10px;
            overflow: visible;
            flex: 0 0 48px;
        }

        .nav-icon-img {
            width: 26px;
            height: 26px;
            object-fit: contain;
            display: block;
            filter: invert(1) brightness(1.8);
            mix-blend-mode: screen;
            pointer-events: none;
        }

        .nav-icon-btn .message-unread-badge {
            position: absolute;
            top: -7px;
            right: -7px;
            z-index: 2;
        }

        .user-menu-wrap {
            position: relative;
        }

        .user-dropdown {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            width: 270px;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
            padding: 8px;
            display: none;
            z-index: 1200;
        }

        .user-dropdown.open {
            display: block;
        }

        .user-dropdown::before {
            content: "";
            position: absolute;
            top: -6px;
            right: 18px;
            width: 10px;
            height: 10px;
            background: var(--card-bg);
            border-left: 1px solid var(--card-border);
            border-top: 1px solid var(--card-border);
            transform: rotate(45deg);
        }

        .user-menu-header {
            padding: 10px 12px 11px;
            border-bottom: 1px solid var(--card-border);
            margin-bottom: 6px;
        }

        .user-menu-header strong {
            display: block;
            font-size: 0.9rem;
            color: #fff;
        }

        .user-menu-header span {
            display: block;
            margin-top: 3px;
            font-size: 0.76rem;
            color: var(--text-muted);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .user-menu-item {
            width: 100%;
            border: 0;
            background: transparent;
            color: #e5e7eb;
            padding: 10px 11px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 10px;
            text-align: left;
            font: inherit;
            font-size: 0.87rem;
            cursor: pointer;
        }

        .user-menu-item:hover,
        .user-menu-item:focus-visible {
            background: #1e2a40;
            outline: none;
        }

        .user-menu-item .menu-icon {
            width: 20px;
            flex: 0 0 20px;
            text-align: center;
            color: var(--text-muted);
        }

        .user-menu-item.primary {
            color: #fbbf24;
            font-weight: 700;
        }

        .user-menu-item.admin {
            color: #c4b5fd;
        }

        .user-menu-item.logout {
            color: #fca5a5;
        }

        .user-menu-separator {
            height: 1px;
            background: var(--card-border);
            margin: 6px 4px;
        }

        .visually-hidden {
            position: absolute !important;
            width: 1px !important;
            height: 1px !important;
            padding: 0 !important;
            margin: -1px !important;
            overflow: hidden !important;
            clip: rect(0, 0, 0, 0) !important;
            white-space: nowrap !important;
            border: 0 !important;
        }

        .main-container {
            width: 100%;
            max-width: 1200px;
            margin: 30px auto;
            padding: 0 20px 50px;
            flex: 1 0 auto;
        }

        .hero-search-box {
            background-color: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            padding: 35px 30px;
            margin-bottom: 30px;
        }

        .hero-search-box h1,
        .hero-search-box h2 {
            font-size: 1.8rem;
            font-weight: 800;
            margin-bottom: 8px;
        }

        .hero-search-box p {
            color: var(--text-muted);
            font-size: 0.95rem;
            margin-bottom: 25px;
        }

        .search-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 15px;
        }

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

        .field-group label,
        .form-field label {
            display: block;
            font-size: 0.78rem;
            font-weight: 650;
            color: #cbd5e1;
            margin-bottom: 7px;
        }

        .required {
            color: var(--primary-orange);
        }

        .form-control {
            width: 100%;
            padding: 11px 14px;
            background-color: #1c283c;
            border: 1px solid #34435c;
            border-radius: 9px;
            color: var(--text-main);
            font-size: 0.9rem;
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .form-control::placeholder {
            color: #7f8aa1;
        }

        .form-control:focus {
            border-color: var(--primary-orange);
            box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.08);
        }

        textarea.form-control {
            min-height: 125px;
            resize: vertical;
            line-height: 1.5;
        }

        .autocomplete-wrapper {
            position: relative;
            width: 100%;
        }

        .autocomplete-results {
            position: absolute;
            top: calc(100% + 5px);
            left: 0;
            right: 0;
            max-height: 280px;
            overflow-y: auto;
            background-color: #111a2c;
            border: 1px solid var(--card-border);
            border-radius: 9px;
            box-shadow: 0 14px 35px rgba(0, 0, 0, 0.48);
            z-index: 1600;
        }

        .autocomplete-result {
            display: block;
            width: 100%;
            padding: 10px 12px;
            background: transparent;
            border: 0;
            border-bottom: 1px solid var(--card-border);
            color: var(--text-main);
            text-align: left;
            cursor: pointer;
        }

        .autocomplete-result:last-child {
            border-bottom: 0;
        }

        .autocomplete-result:hover,
        .autocomplete-result:focus {
            background-color: var(--badge-bg);
            outline: none;
        }

        .autocomplete-result-main {
            display: block;
            font-weight: 650;
        }

        .autocomplete-result-meta {
            display: block;
            margin-top: 3px;
            color: var(--text-muted);
            font-size: 0.76rem;
        }

        .autocomplete-empty {
            padding: 12px;
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        .feed-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
            font-size: 0.9rem;
            color: var(--text-muted);
        }

        .reset-link {
            background: none;
            border: 0;
            padding: 0;
            color: var(--primary-orange);
            text-decoration: none;
            font: inherit;
            font-weight: 600;
            cursor: pointer;
        }

        .reset-link:hover {
            text-decoration: underline;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 30px 0 15px;
            border-bottom: 1px solid var(--card-border);
            padding-bottom: 10px;
        }

        .section-header h3 {
            font-size: 1.3rem;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .horizontal-scroll {
            display: flex;
            gap: 20px;
            overflow-x: auto;
            padding-bottom: 15px;
            scroll-behavior: smooth;
        }

        .horizontal-scroll::-webkit-scrollbar {
            height: 8px;
        }

        .horizontal-scroll::-webkit-scrollbar-track {
            background: var(--card-bg);
            border-radius: 4px;
        }

        .horizontal-scroll::-webkit-scrollbar-thumb {
            background: var(--card-border);
            border-radius: 4px;
        }

        .horizontal-scroll .card {
            flex: 0 0 320px;
        }

        .social-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 20px;
            align-items: stretch;
        }

        .social-load-more-wrap {
            display: flex;
            justify-content: center;
            margin-top: 18px;
        }

        .posts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }

        .card {
            background-color: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            min-width: 0;
        }

        .card-top-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 10px;
        }

        .badge-type {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-bottom: 12px;
            width: fit-content;
        }

        .badge-band {
            background-color: rgba(245, 158, 11, 0.15);
            color: var(--primary-orange);
        }

        .badge-musician {
            background-color: rgba(37, 99, 235, 0.2);
            color: #60a5fa;
        }

        .badge-social {
            background-color: rgba(16, 185, 129, 0.2);
            color: var(--primary-green);
        }

        .card-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 12px;
            line-height: 1.4;
            color: #fff;
        }

        .tag-group {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }

        .tag {
            background-color: var(--badge-bg);
            border: 1px solid var(--card-border);
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.75rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .card-desc {
            font-size: 0.88rem;
            color: var(--text-muted);
            line-height: 1.5;
            margin-bottom: 20px;
            white-space: pre-wrap;
            overflow-wrap: anywhere;
            flex-grow: 1;
        }

        .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            padding-top: 15px;
            border-top: 1px solid var(--card-border);
            font-size: 0.82rem;
            color: var(--text-muted);
        }

        .card-actions {
            display: flex;
            gap: 12px;
            align-items: center;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .info-link {
            color: var(--primary-orange);
            text-decoration: none;
            font-weight: 600;
            cursor: pointer;
        }

        .link-button,
        .icon-button {
            background: none;
            border: none;
            font: inherit;
        }

        .link-button {
            color: var(--primary-orange);
            font-weight: 600;
            cursor: pointer;
        }

        .icon-button {
            color: var(--text-muted);
            cursor: pointer;
            font-size: 0.85rem;
        }

        .media-embed {
            margin-top: 12px;
            border-radius: 8px;
            overflow: hidden;
            background-color: #000;
        }

        .media-embed iframe {
            width: 100%;
            border: none;
        }

        .media-fallback {
            padding: 16px;
            background: var(--bg-dark);
            border: 1px solid var(--card-border);
        }

        .media-fallback a {
            color: var(--primary-orange);
        }

        .my-post-row {
            background: var(--bg-dark);
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }

        .my-post-title {
            font-weight: bold;
            font-size: 0.9rem;
        }

        .my-post-actions {
            display: flex;
            gap: 6px;
            flex: 0 0 auto;
        }

        .text-muted {
            color: var(--text-muted);
        }

        .modal {
            display: none;
            position: fixed;
            inset: 0;
            background-color: rgba(2, 6, 23, 0.84);
            backdrop-filter: blur(3px);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            padding: 20px;
            overflow-y: auto;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background-color: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 14px;
            width: 100%;
            max-width: 500px;
            padding: 25px;
            position: relative;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
        }

        .post-modal-content {
            max-width: 760px;
            padding: 0;
            overflow: visible;
        }

        .post-modal-scroll {
            max-height: calc(90vh - 130px);
            overflow-y: auto;
        }

        .post-modal-header {
            padding: 22px 24px 18px;
            border-bottom: 1px solid var(--card-border);
            position: relative;
        }

        .post-modal-header h2 {
            font-size: 1.1rem;
            line-height: 1.3;
            padding-right: 45px;
        }

        .post-modal-header p {
            color: var(--text-muted);
            font-size: 0.83rem;
            line-height: 1.45;
            margin-top: 7px;
            padding-right: 45px;
        }

        .post-modal-body {
            padding: 22px 24px;
        }

        .post-modal-footer {
            padding: 16px 24px 20px;
            border-top: 1px solid var(--card-border);
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        .close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 34px;
            height: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            font-size: 1.2rem;
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
        }

        .close-btn:hover {
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
        }

        .listing-fields {
            margin-bottom: 14px;
        }

        .full-width {
            grid-column: 1 / -1;
        }

        .form-note {
            margin-top: 9px;
            color: var(--text-muted);
            font-size: 0.77rem;
        }

        .captcha-box {
            background-color: var(--bg-dark);
            padding: 12px;
            border-radius: 8px;
            border: 1px solid var(--card-border);
            margin: 12px 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .empty-category-msg {
            padding: 25px;
            text-align: center;
            color: var(--text-muted);
            background: var(--card-bg);
            border: 1px dashed var(--card-border);
            border-radius: 12px;
            width: 100%;
        }

        .site-footer {
            flex-shrink: 0;
            width: 100%;
            background: #172033;
            border-top: 1px solid #26334a;
            min-height: 66px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px 24px;
            color: #72819a;
            text-align: center;
            font-size: 0.82rem;
        }

        .hidden {
            display: none !important;
        }

        @media (max-width: 900px) {
            .search-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 700px) {
            .navbar {
                padding: 12px 16px;
                align-items: flex-start;
                flex-direction: column;
            }

            .nav-actions {
                width: 100%;
                justify-content: flex-start;
            }

            .nav-actions .btn {
                flex: 1 1 auto;
            }

            .nav-user-menu {
                order: 1;
                flex: 0 0 auto;
            }

            .nav-user-menu .nav-icon-btn {
                flex: 0 0 48px;
            }

            .nav-actions > .btn-social,
            .nav-actions > .btn-orange {
                order: 2;
            }

            .user-dropdown {
                right: auto;
                left: 0;
                max-width: calc(100vw - 32px);
            }

            .user-dropdown::before {
                right: auto;
                left: 18px;
            }

            .main-container {
                margin-top: 20px;
                padding: 0 12px 35px;
            }

            .hero-search-box {
                padding: 24px 18px;
            }

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

            .posts-grid {
                grid-template-columns: 1fr;
            }

            .horizontal-scroll .card {
                flex-basis: min(320px, calc(100vw - 50px));
            }

            .card-footer,
            .my-post-row {
                align-items: flex-start;
                flex-direction: column;
            }

            .card-actions,
            .my-post-actions {
                justify-content: flex-start;
            }

            .feed-bar {
                align-items: flex-start;
                flex-direction: column;
            }

            .post-modal-content {
                max-width: 100%;
            }

            .post-modal-header,
            .post-modal-body,
            .post-modal-footer {
                padding-left: 18px;
                padding-right: 18px;
            }

            .post-modal-footer {
                flex-direction: column-reverse;
            }

            .post-modal-footer .btn {
                width: 100%;
            }
        }


/* ============================================================
   Authentication switch links
============================================================ */
.auth-switch {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--card-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.auth-switch-link {
    background: none;
    border: none;
    color: var(--primary-orange);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    margin-left: 4px;
    padding: 0;
}

.auth-switch-link:hover {
    text-decoration: underline;
}

/* ============================================================
   Comments & Messaging
============================================================ */

.message-unread-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--danger-color);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.comments-modal-content {
    max-width: 700px;
}

.comments-post-preview {
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid var(--card-border);
    border-radius: 9px;
    background: var(--bg-dark);
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.86rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 46vh;
    overflow-y: auto;
    padding-right: 4px;
}

.comment-item {
    padding: 12px 14px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: #10182a;
}

.comment-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.comment-time {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.comment-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.5;
    color: #dbe5f3;
}

.comment-delete {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: #f87171;
    cursor: pointer;
    font-size: 0.76rem;
}

.comment-form {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-form textarea {
    min-height: 90px;
}

.comments-login-note {
    margin-top: 16px;
    padding: 13px;
    border-radius: 9px;
    border: 1px solid var(--card-border);
    background: var(--bg-dark);
    color: var(--text-muted);
    text-align: center;
}

.message-compose-content {
    max-width: 620px;
}

.message-compose-intro,
.message-compose-note {
    color: var(--text-muted);
    line-height: 1.5;
}

.message-compose-intro {
    margin-bottom: 14px;
}

.message-compose-textarea {
    min-height: 170px;
}

.message-compose-note {
    margin-top: 9px;
    font-size: 0.78rem;
}

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

.messages-modal-content {
    width: min(1050px, 96vw);
    max-width: 1050px;
    height: min(720px, 88vh);
    overflow: hidden;
}

.messages-layout {
    height: calc(100% - 40px);
    display: grid;
    grid-template-columns: minmax(240px, 34%) 1fr;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
}

.conversation-list {
    overflow-y: auto;
    background: #0e1628;
    border-right: 1px solid var(--card-border);
}

.conversation-item {
    width: 100%;
    display: block;
    padding: 14px;
    border: 0;
    border-bottom: 1px solid var(--card-border);
    background: transparent;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
}

.conversation-item:hover,
.conversation-item.active {
    background: #1b2940;
}

.conversation-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.conversation-unread {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary-orange);
    color: #07101f;
    font-size: 0.72rem;
    font-weight: 800;
}

.conversation-preview,
.conversation-post {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.76rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-post {
    color: #64748b;
}

.message-thread-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #111a2c;
}

.message-thread {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-bubble {
    max-width: 78%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.message-own {
    align-self: flex-end;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.34);
}

.message-other {
    align-self: flex-start;
    background: #182236;
}

.message-sender {
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.message-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.message-time {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.68rem;
}

.message-reply-form {
    padding: 12px;
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.message-reply-form textarea {
    min-height: 72px;
    max-height: 140px;
}

.inbox-empty {
    padding: 20px;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 760px) {
    .messages-modal-content {
        height: 92vh;
    }

    .messages-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 35% 65%;
    }

    .conversation-list {
        border-right: 0;
        border-bottom: 1px solid var(--card-border);
    }

    .message-bubble {
        max-width: 90%;
    }

    .message-reply-form,
    .modal-actions {
        flex-direction: column;
    }

    .message-reply-form .btn,
    .modal-actions .btn {
        width: 100%;
    }
}

/* ============================================================
   Date / time display
============================================================ */

.card-author-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.card-date {
    color: var(--text-muted);
    font-size: 0.7rem;
    white-space: nowrap;
}

.comments-post-preview {
    color: var(--text-main);
}

.comments-post-preview-loading {
    color: var(--text-muted);
}

.comments-post-preview-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.comments-post-preview-author {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.comments-post-preview-type {
    color: var(--primary-orange);
    font-size: 0.74rem;
    font-weight: 700;
}

.comments-post-preview-time {
    color: var(--text-muted);
    font-size: 0.72rem;
    white-space: nowrap;
}

.comments-post-preview-content {
    color: #dbe5f3;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.comments-post-preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.comments-post-preview-tag {
    padding: 4px 8px;
    border: 1px solid var(--card-border);
    border-radius: 999px;
    background: #182236;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.conversation-item-top-right {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex: 0 0 auto;
}

.conversation-time {
    color: var(--text-muted);
    font-size: 0.66rem;
    white-space: nowrap;
}

.message-thread-context {
    width: 100%;
    padding: 11px 13px;
    margin-bottom: 6px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: #0e1628;
}

.message-thread-context-title {
    color: var(--primary-orange);
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.message-thread-context-text {
    color: #cbd5e1;
    font-size: 0.8rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.message-thread-context-time {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.68rem;
}

@media (max-width: 700px) {
    .comments-post-preview-header {
        flex-direction: column;
        gap: 5px;
    }

    .comments-post-preview-time,
    .conversation-time,
    .card-date {
        white-space: normal;
    }
}

.comments-original-label {
    margin-bottom: 7px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/* ============================================================
   Password & account security
============================================================ */
.forgot-password-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.profile-security-box {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: #10182a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.profile-security-box h4 {
    margin-bottom: 5px;
}

.profile-security-email {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.profile-security-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.security-modal-content {
    max-width: 560px;
}

.security-intro {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.87rem;
    line-height: 1.55;
}

.security-label {
    display: block;
    margin: 12px 0 7px;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 700;
}

.security-input {
    margin-bottom: 2px;
}

.password-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    padding: 10px 12px;
    margin: 9px 0 13px;
    border: 1px solid var(--card-border);
    border-radius: 9px;
    background: var(--bg-dark);
    color: #64748b;
    font-size: 0.76rem;
}

.password-rules span {
    transition: color 0.2s ease;
}

.password-rules .password-rule-ok {
    color: var(--primary-green);
}

.security-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(96, 165, 250, 0.22);
    color: #9fb1ca;
    font-size: 0.77rem;
    line-height: 1.5;
}

.password-reset-email-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.reset-code-input {
    letter-spacing: 0.32em;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
}

.security-actions-wrap {
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .profile-security-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-security-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .profile-security-actions .btn,
    .password-reset-email-actions .btn {
        width: 100%;
    }

    .password-reset-email-actions {
        flex-direction: column;
    }

    .password-rules {
        grid-template-columns: 1fr;
    }
}

.registration-password-note {
    margin: -2px 0 10px;
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.4;
}


.dual-code-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

#change-email-current[readonly] {
    opacity: 0.82;
    cursor: not-allowed;
}

@media (max-width: 700px) {
    .dual-code-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   Search statistics
============================================================ */

.site-stats {
    margin-top: 18px;
    padding-top: 13px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 14px;
    color: #76859d;
    font-size: 0.71rem;
    line-height: 1.45;
}

.site-stats span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.site-stats span:not(:last-child)::after {
    content: "•";
    margin-left: 10px;
    color: #445169;
}

.site-stats strong {
    color: #aab6c8;
    font-size: 0.74rem;
    font-weight: 700;
}

.site-stats-total strong {
    color: var(--primary-orange);
}

.site-stats.stats-unavailable {
    opacity: 0.55;
}

/* ============================================================
   Message deletion controls
============================================================ */

.conversation-row {
    position: relative;
    display: flex;
    border-bottom: 1px solid var(--card-border);
}

.conversation-row .conversation-item {
    flex: 1;
    min-width: 0;
    border-bottom: 0;
    padding-right: 44px;
}

.conversation-delete-btn {
    position: absolute;
    top: 10px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #718096;
    cursor: pointer;
    font-size: 0.82rem;
}

.conversation-delete-btn:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.09);
}

.message-bubble-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.message-delete-btn {
    border: 0;
    background: transparent;
    color: #718096;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    font-size: 0.75rem;
}

.message-delete-btn:hover {
    color: #f87171;
}

.message-delete-note {
    margin-top: 5px;
    color: #64748b;
    font-size: 0.67rem;
}

@media (max-width: 700px) {
    .site-stats {
        gap: 5px 10px;
    }

    .site-stats span:not(:last-child)::after {
        margin-left: 6px;
    }
}

.messages-privacy-note {
    margin: -5px 0 12px;
    color: #73839a;
    font-size: 0.72rem;
    line-height: 1.45;
}

/* ============================================================
   Superuser / Admin v7
============================================================ */

.btn-admin {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-admin:hover {
    filter: brightness(1.08);
}

.btn-warning {
    background: #f59e0b;
    color: #111827;
}

.admin-modal-content {
    width: min(1120px, calc(100vw - 32px));
    max-width: 1120px;
    max-height: 92vh;
    padding: 0;
    overflow: hidden;
}

.admin-header {
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--card-border);
}

.admin-header h2 {
    margin: 0 42px 6px 0;
}

.admin-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 18px;
    overflow-x: auto;
    border-bottom: 1px solid var(--card-border);
    background: rgba(7, 11, 24, 0.5);
}

.admin-tab {
    flex: 0 0 auto;
    border: 1px solid var(--card-border);
    background: var(--card-bg-soft);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 700;
}

.admin-tab.active {
    color: #fff;
    border-color: #7c3aed;
    background: rgba(124, 58, 237, 0.22);
}

.admin-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(92vh - 150px);
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.admin-stat-card {
    padding: 16px;
    border: 1px solid var(--card-border);
    background: #0f172a;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-stat-card strong {
    font-size: 1.55rem;
    color: #fff;
}

.admin-stat-card span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.admin-subheading {
    margin: 22px 0 10px;
}

.admin-toolbar {
    margin-bottom: 12px;
}

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

.admin-row {
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: #0f172a;
    padding: 13px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.admin-row-main {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.admin-row-main > span,
.admin-row-main > small {
    overflow-wrap: anywhere;
}

.admin-row-main > span {
    color: #cbd5e1;
    font-size: 0.86rem;
}

.admin-row-main > small {
    color: var(--text-muted);
    line-height: 1.45;
}

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

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    flex: 0 0 auto;
}

.admin-role-badge,
.admin-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.admin-role-badge {
    color: #ddd6fe;
    background: rgba(124, 58, 237, .25);
    border: 1px solid rgba(167, 139, 250, .35);
}

.admin-status-badge {
    color: #86efac;
    background: rgba(34, 197, 94, .14);
    border: 1px solid rgba(34, 197, 94, .28);
}

.admin-status-badge.suspended {
    color: #fca5a5;
    background: rgba(239, 68, 68, .13);
    border-color: rgba(239, 68, 68, .28);
}

.admin-empty,
.admin-section-note {
    color: var(--text-muted);
    border: 1px dashed var(--card-border);
    border-radius: 10px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.55);
}

.admin-section-note {
    margin-bottom: 12px;
    font-size: .82rem;
}

.admin-ban-form {
    display: grid;
    grid-template-columns: 150px minmax(180px, 1fr) minmax(180px, 1fr) 190px auto;
    gap: 9px;
    margin-bottom: 12px;
}

@media (max-width: 850px) {
    .admin-ban-form {
        grid-template-columns: 1fr;
    }

    .admin-row {
        flex-direction: column;
    }

    .admin-row-actions {
        justify-content: flex-start;
    }
}

/* ============================================================
   v8 - Registration / verification / trust / notifications
============================================================ */

.auth-modal-wide {
    max-width: 620px;
}

.registration-email-grid {
    margin-bottom: 12px;
}

.password-strength-wrap {
    margin: 8px 0 14px;
}

.password-strength-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #24324a;
}

.password-strength-track span {
    display: block;
    width: 0;
    height: 100%;
    transition: width 0.2s ease;
    background: #64748b;
}

.password-strength-track span[data-strength="1"] { width: 25%; background: #ef4444; }
.password-strength-track span[data-strength="2"] { width: 50%; background: #f59e0b; }
.password-strength-track span[data-strength="3"] { width: 75%; background: #60a5fa; }
.password-strength-track span[data-strength="4"] { width: 100%; background: #34d399; }

.registration-password-note,
.google-legal-note {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.google-legal-note {
    margin-top: 10px;
    text-align: center;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 10px 0;
    color: #cbd5e1;
    font-size: 0.82rem;
    line-height: 1.4;
}

.consent-row input {
    margin-top: 3px;
    accent-color: var(--primary-orange);
}

.inline-legal-link,
.footer-links button {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--primary-orange);
    font: inherit;
    cursor: pointer;
}

.inline-legal-link:hover,
.footer-links button:hover {
    text-decoration: underline;
}

.site-footer {
    flex-direction: column;
    gap: 9px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    font-size: 0.78rem;
}

.notifications-modal-content {
    max-width: 620px;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.notifications-header .modal-title {
    margin-bottom: 0;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 62vh;
    overflow-y: auto;
}

.notification-item {
    width: 100%;
    display: flex;
    gap: 12px;
    text-align: left;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: #101829;
    color: var(--text-main);
    padding: 12px;
    cursor: pointer;
}

.notification-item:hover {
    background: #18243a;
}

.notification-unread {
    border-color: rgba(245, 158, 11, 0.65);
    box-shadow: inset 3px 0 0 var(--primary-orange);
}

.notification-icon {
    font-size: 1.25rem;
    flex: 0 0 auto;
}

.notification-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.notification-content strong {
    font-size: 0.9rem;
}

.notification-content span {
    color: #cbd5e1;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.notification-content time {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.notifications-more-wrap,
.comments-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.profile-avatar-box {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: var(--bg-dark);
}

.profile-avatar-preview-wrap {
    width: 88px;
    height: 88px;
    position: relative;
}

.profile-avatar-preview,
.profile-avatar-placeholder {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--card-border);
}

.profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: #1a263b;
}

.profile-avatar-preview:not(.hidden) + .profile-avatar-placeholder {
    display: none;
}

.profile-avatar-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-details-box {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: #101829;
}

.profile-details-box summary {
    cursor: pointer;
    font-weight: 700;
}

.profile-details-box[open] summary {
    margin-bottom: 12px;
}

.danger-zone {
    border-color: rgba(239, 68, 68, 0.35);
}

.blocked-users-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blocked-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--card-border);
}

.blocked-user-row:last-child {
    border-bottom: 0;
}

.legal-modal-content {
    max-width: 700px;
}

.legal-modal-body {
    color: #cbd5e1;
    line-height: 1.7;
}

.legal-modal-body p + p {
    margin-top: 14px;
}

.comment-actions {
    display: inline-flex;
    gap: 6px;
    margin-left: auto;
}

.comment-action-btn {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
}

.comment-action-btn:hover {
    color: var(--primary-orange);
}

.comment-edited {
    color: var(--text-muted);
    font-size: 0.68rem;
    margin-left: 6px;
}

.message-thread-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0 12px;
}

.admin-row.is-deleted {
    opacity: 0.72;
    border-color: rgba(239, 68, 68, 0.3);
}

.admin-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

@media (max-width: 700px) {
    .profile-avatar-box {
        grid-template-columns: 1fr;
    }

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

    .registration-email-grid {
        grid-template-columns: 1fr;
    }
}

/* v8 messaging pagination / block controls */
.messages-more-wrap { display:flex; justify-content:center; padding:8px 0; }
.message-thread-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; border-bottom:1px solid var(--card-border); background:rgba(255,255,255,.02); }
.message-thread-toolbar-main { min-width:0; display:flex; align-items:center; gap:9px; }
.message-thread-toolbar-name { font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.message-thread-toolbar-state { color:var(--text-muted); font-size:.76rem; }
.message-reply-blocked { padding:10px 12px; border:1px solid rgba(239,68,68,.35); border-radius:8px; color:#fca5a5; background:rgba(239,68,68,.08); font-size:.82rem; }

/* v8 compact avatars */
.card-author-line, .comment-author-wrap { display:flex; align-items:center; gap:7px; min-width:0; }
.mini-avatar, .mini-avatar-placeholder { width:26px; height:26px; border-radius:50%; flex:0 0 26px; object-fit:cover; display:inline-flex; align-items:center; justify-content:center; background:var(--badge-bg); border:1px solid var(--card-border); }
.mini-avatar-placeholder { font-size:.78rem; }
.conversation-sidebar { min-width:0; display:flex; flex-direction:column; background:#0e1628; border-right:1px solid var(--card-border); overflow:hidden; }
.conversation-sidebar .conversation-list { flex:1; border-right:0; }
.admin-row-deleted { opacity:.72; border-color:rgba(239,68,68,.3); }

/* ============================================================
   v9 - Cookie consent & third-party privacy
============================================================ */
.cookie-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2400;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #111a2c;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}

.cookie-banner-copy {
    min-width: 0;
}

.cookie-banner-copy strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 0.98rem;
}

.cookie-banner-copy p {
    color: #b8c2d4;
    font-size: 0.82rem;
    line-height: 1.55;
    max-width: 760px;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.cookie-settings-modal {
    z-index: 2600;
}

.cookie-settings-content {
    max-width: 680px;
}

.cookie-settings-intro {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    padding-right: 30px;
}

.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid var(--card-border);
}

.cookie-category strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
}

.cookie-category p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.cookie-category-required {
    opacity: 0.88;
}

.cookie-switch {
    position: relative;
    width: 46px;
    height: 26px;
    flex: 0 0 46px;
    cursor: pointer;
}

.cookie-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cookie-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #334155;
    border: 1px solid #475569;
    transition: background-color .18s ease, border-color .18s ease;
}

.cookie-switch span::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: #fff;
    transition: transform .18s ease;
}

.cookie-switch input:checked + span {
    background: var(--primary-green);
    border-color: var(--primary-green);
}

.cookie-switch input:checked + span::after {
    transform: translateX(20px);
}

.cookie-switch input:disabled + span {
    cursor: not-allowed;
    opacity: .65;
}

.cookie-settings-note {
    margin-top: 8px;
    padding: 12px;
    border-radius: 9px;
    background: rgba(37, 99, 235, 0.09);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: #b8c2d4;
    font-size: 0.79rem;
    line-height: 1.5;
}

.cookie-settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.google-auth-slot {
    width: 100%;
    display: flex;
    justify-content: center;
}

.google-consent-placeholder {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
}

.google-consent-placeholder small {
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.4;
}

.google-consent-button {
    width: 100%;
}

.external-media-placeholder {
    min-height: 150px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    background: #0b1220;
    border: 1px dashed #34435c;
}

.external-media-placeholder-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--badge-bg);
    color: var(--primary-orange);
    font-size: 1rem;
}

.external-media-placeholder-copy strong {
    display: block;
    color: #fff;
    margin-bottom: 4px;
}

.external-media-placeholder-copy p {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
    max-width: 520px;
}

.external-media-placeholder-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.external-link-button {
    text-decoration: none;
}

@media (max-width: 760px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-banner-actions,
    .cookie-settings-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-banner-actions .btn,
    .cookie-settings-actions .btn {
        width: 100%;
    }

    .cookie-category {
        align-items: flex-start;
    }

    .external-media-placeholder-actions {
        width: 100%;
        flex-direction: column;
    }

    .external-media-placeholder-actions .btn {
        width: 100%;
    }
}

/* ============================================================
   v11 - Compact create action icons
============================================================ */

.nav-action-icon-btn {
    width: 48px;
    height: 44px;
    min-width: 48px;
    padding: 0;
    border-radius: 10px;
    flex: 0 0 48px;
}

.nav-action-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

@media (max-width: 700px) {
    .nav-actions > .nav-action-icon-btn {
        flex: 0 0 48px;
        width: 48px;
        min-width: 48px;
    }
}

/* ============================================================
   v12 - Activity ordering / timestamps
============================================================ */

.card-activity-date {
    color: #cbd5e1;
    font-weight: 600;
}

/* ============================================================
   v13 - ProvaMazi.gr UX / Navigation
============================================================ */

/* Filter chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--card-border);
    background: rgba(245, 158, 11, 0.08);
    color: #f8fafc;
    border-radius: 999px;
    padding: 7px 10px 7px 12px;
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
}

.filter-chip:hover {
    border-color: rgba(245, 158, 11, 0.65);
    background: rgba(245, 158, 11, 0.14);
}

.filter-chip strong {
    color: var(--primary-orange);
    font-size: 1rem;
    line-height: 1;
}

/* Feed toolbar / sorting */
.feed-toolbar-actions {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.form-control-compact {
    width: auto;
    min-width: 210px;
    padding: 8px 10px;
}

.card-title-link {
    display: block;
    text-decoration: none;
    color: #fff;
}

.card-title-link:hover {
    color: var(--primary-orange);
}

/* Keyboard-selected autocomplete row */
.autocomplete-result-active {
    background-color: var(--badge-bg) !important;
    outline: 1px solid rgba(245, 158, 11, 0.35) !important;
}

/* Loading skeletons */
.skeleton-card {
    overflow: hidden;
    min-height: 180px;
}

.skeleton-line {
    height: 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    background: linear-gradient(
        90deg,
        rgba(148, 163, 184, 0.08) 20%,
        rgba(148, 163, 184, 0.18) 40%,
        rgba(148, 163, 184, 0.08) 60%
    );
    background-size: 200% 100%;
    animation: provamaziSkeleton 1.35s ease-in-out infinite;
}

.skeleton-short { width: 30%; }
.skeleton-title { width: 74%; height: 17px; margin-top: 12px; }
.skeleton-medium { width: 58%; }

@keyframes provamaziSkeleton {
    0% { background-position: 180% 0; }
    100% { background-position: -20% 0; }
}

.empty-state-enhanced {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.empty-state-enhanced strong {
    color: var(--text-main);
}

/* Toast notifications */
.toast-region {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 3000;
    width: min(380px, calc(100vw - 40px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.app-toast {
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    gap: 10px;
    align-items: center;
    padding: 12px 12px;
    background: #111a2c;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.42);
    transform: translateY(12px);
    opacity: 0;
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: auto;
}

.app-toast.visible {
    transform: translateY(0);
    opacity: 1;
}

.app-toast.leaving {
    transform: translateY(8px);
    opacity: 0;
}

.app-toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900;
    background: #1e293b;
}

.app-toast-success { border-color: rgba(52, 211, 153, .45); }
.app-toast-success .app-toast-icon { color: #34d399; }
.app-toast-error { border-color: rgba(239, 68, 68, .5); }
.app-toast-error .app-toast-icon { color: #f87171; }
.app-toast-warning { border-color: rgba(245, 158, 11, .5); }
.app-toast-warning .app-toast-icon { color: #fbbf24; }
.app-toast-info .app-toast-icon { color: #60a5fa; }

.app-toast-copy {
    color: var(--text-main);
    font-size: .86rem;
    line-height: 1.45;
}

.app-toast-close {
    border: 0;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
}

/* Shared dialogs */
.ui-dialog-content {
    max-width: 460px;
}

.ui-dialog-message {
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 20px;
    white-space: pre-line;
}

.ui-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.ui-prompt-input {
    min-height: 110px;
}

/* Quick create action sheet */
.quick-create-sheet {
    max-width: 520px;
}

.quick-create-options {
    display: grid;
    gap: 12px;
}

.quick-create-option {
    width: 100%;
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: #111a2c;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
}

.quick-create-option:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.18);
}

.quick-create-option img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.quick-create-option span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-create-option small {
    color: var(--text-muted);
}

.quick-create-option.social { box-shadow: inset 3px 0 0 var(--primary-green); }
.quick-create-option.listing { box-shadow: inset 3px 0 0 var(--primary-orange); }
.quick-create-handle { display: none; }

/* Mobile bottom navigation */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 700px) {
    body {
        padding-bottom: 78px;
    }

    .page-shell {
        min-height: calc(100vh - 78px);
    }

    .navbar {
        padding-bottom: 10px;
    }

    .nav-actions > .nav-action-icon-btn {
        display: none;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 68px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        background: rgba(13, 19, 34, .97);
        border-top: 1px solid var(--card-border);
        backdrop-filter: blur(14px);
        z-index: 1450;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .mobile-bottom-nav button {
        position: relative;
        border: 0;
        background: none;
        color: var(--text-muted);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        cursor: pointer;
        font: inherit;
    }

    .mobile-bottom-nav button > span:first-child {
        font-size: 1.45rem;
        line-height: 1;
        color: #e2e8f0;
    }

    .mobile-nav-icon {
        width: 22px;
        height: 22px;
        object-fit: contain;
        filter: invert(1) brightness(1.8);
        mix-blend-mode: screen;
    }

    .mobile-bottom-nav small {
        font-size: .63rem;
    }

    .mobile-create-button > span:first-child {
        width: 42px;
        height: 42px;
        margin-top: -18px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: var(--primary-orange);
        color: #111827 !important;
        box-shadow: 0 8px 22px rgba(245, 158, 11, .28);
    }

    .mobile-nav-badge {
        position: absolute;
        top: 7px;
        right: calc(50% - 23px);
        min-width: 18px;
        height: 18px;
        border-radius: 999px;
        padding: 0 5px;
        background: var(--danger-color);
        color: #fff;
        font-size: .65rem;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .user-dropdown {
        position: fixed;
        left: 12px !important;
        right: 12px !important;
        top: auto !important;
        bottom: 78px;
        width: auto;
        max-width: none;
    }

    .user-dropdown::before {
        display: none;
    }

    .modal-sheet {
        align-items: flex-end;
        padding: 0;
    }

    .quick-create-sheet {
        max-width: none;
        width: 100%;
        border-radius: 18px 18px 0 0;
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .quick-create-handle {
        display: block;
        width: 46px;
        height: 5px;
        border-radius: 999px;
        background: #475569;
        margin: -8px auto 16px;
    }

    .feed-toolbar {
        align-items: stretch;
    }

    .feed-toolbar-actions,
    .sort-control {
        width: 100%;
    }

    .sort-control {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .form-control-compact {
        width: 100%;
        min-width: 0;
    }

    .toast-region {
        left: 12px;
        right: 12px;
        bottom: 82px;
        width: auto;
    }

    .ui-dialog-actions {
        flex-direction: column-reverse;
    }

    .ui-dialog-actions .btn {
        width: 100%;
    }
}

/* ============================================================
   v14 - Unified search / progressive filters
============================================================ */

.unified-search-wrap {
    width: 100%;
}

.unified-search-bar {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 8px 7px 16px;
    background: #0f1728;
    border: 1px solid #34435c;
    border-radius: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, border-radius 0.2s ease;
    cursor: text;
}

.unified-search-bar:hover,
.unified-search-bar:focus-within,
.unified-search-bar.is-open {
    border-color: rgba(245, 158, 11, 0.78);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
}

.unified-search-bar.is-open {
    border-radius: 14px 14px 10px 10px;
}

.unified-search-icon {
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-orange);
    border-radius: 50%;
    opacity: 0.95;
}

.unified-search-icon::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 2px;
    right: -6px;
    bottom: -3px;
    border-radius: 999px;
    background: var(--primary-orange);
    transform: rotate(45deg);
    transform-origin: left center;
}

.unified-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-main);
    font: inherit;
    font-size: 1rem;
    padding: 10px 0;
}

.unified-search-input::placeholder {
    color: #8491a8;
}

.unified-search-input::-webkit-search-cancel-button {
    cursor: pointer;
}

.unified-search-submit {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--primary-orange);
    color: #111827;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.unified-search-submit:hover {
    background: #d97706;
}

.unified-search-submit:active {
    transform: translateY(1px);
}

.advanced-search-panel {
    margin-top: 12px;
    padding: 18px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(7, 11, 24, 0.55);
}

.advanced-search-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.advanced-search-hint {
    max-width: 760px;
    color: var(--text-muted);
    font-size: 0.73rem;
    line-height: 1.45;
}

.search-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-height: 34px;
    margin-top: 9px;
}

.search-form-actions.hidden {
    display: none;
}

.search-save-btn {
    flex: 0 0 auto;
}

.advanced-reset-link {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 5px 0;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .unified-search-bar {
        min-height: 54px;
        padding-left: 13px;
        gap: 9px;
    }

    .unified-search-input {
        font-size: 0.9rem;
    }

    .unified-search-submit {
        min-height: 40px;
        padding: 0 12px;
        font-size: 0.82rem;
    }

    .advanced-search-panel {
        padding: 14px;
    }

    .advanced-search-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .advanced-reset-link {
        align-self: flex-end;
        margin-left: 0;
    }

    .search-form-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 9px 12px;
    }

    .search-save-btn {
        max-width: 100%;
    }
}

@media (max-width: 1000px) {
    .social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .social-grid {
        grid-template-columns: 1fr;
    }

    .social-load-more-wrap .btn {
        width: 100%;
    }
}

.social-grid > .empty-category-msg {
    grid-column: 1 / -1;
}

/* ============================================================
   ProvaMazi.gr v17 - Profiles, Listings, Discovery & Media
============================================================ */
.search-suggestions {
    position:absolute;
    left:0;
    right:0;
    top:calc(100% + 8px);
    z-index:36;
    background:#111827;
    border:1px solid rgba(255,255,255,.12);
    border-radius:14px;
    box-shadow:0 18px 44px rgba(0,0,0,.34);
    overflow:hidden;
    max-height:360px;
    overflow-y:auto;
}
.unified-search-wrap { position:relative; }
.search-suggestion {
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:12px 14px;
    border:0;
    border-bottom:1px solid rgba(255,255,255,.07);
    background:transparent;
    color:var(--text-color);
    text-align:left;
    cursor:pointer;
}
.search-suggestion:last-child { border-bottom:0; }
.search-suggestion:hover,
.search-suggestion:focus-visible { background:rgba(255,255,255,.07); outline:none; }
.search-suggestion small { color:var(--text-muted); margin-left:6px; }
.search-suggestion em { color:var(--accent-color); font-size:.74rem; font-style:normal; white-space:nowrap; }

.listing-title-field { margin-bottom:14px; }
.jam-session-fields {
    margin-top:14px;
    padding:14px;
    border:1px solid rgba(255,166,0,.2);
    background:rgba(255,166,0,.05);
    border-radius:12px;
}
.form-field-wide { grid-column:1 / -1; }

.post-image-field { margin-top:16px; }
.post-image-dropzone {
    display:flex;
    flex-direction:column;
    gap:7px;
    padding:16px;
    border:1px dashed rgba(255,255,255,.22);
    border-radius:12px;
    background:rgba(255,255,255,.025);
    transition:.18s ease;
}
.post-image-dropzone.is-dragover {
    border-color:var(--accent-color);
    background:rgba(255,153,0,.08);
}
.post-image-dropzone span { color:var(--text-muted); font-size:.82rem; }
.post-image-preview-wrap { margin-top:12px; }
.post-image-preview {
    display:block;
    width:min(100%, 560px);
    max-height:360px;
    object-fit:contain;
    border-radius:12px;
    background:#090e18;
    border:1px solid rgba(255,255,255,.1);
}
.post-image-preview-actions { margin-top:8px; }
.post-card-image {
    width:100%;
    max-height:330px;
    object-fit:cover;
    display:block;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.08);
}
.post-image-button {
    width:100%;
    padding:0;
    margin:12px 0 10px;
    border:0;
    background:transparent;
    cursor:pointer;
}
.social-card .post-card-image { aspect-ratio:16/10; max-height:none; }

.card-top-actions { display:flex; align-items:center; gap:7px; }
.icon-button.is-saved { background:rgba(255,153,0,.14); border-color:rgba(255,153,0,.45); }
.listing-status {
    display:inline-flex;
    align-items:center;
    min-height:25px;
    padding:3px 9px;
    border-radius:999px;
    font-size:.72rem;
    font-weight:800;
    border:1px solid transparent;
}
.listing-status-active { color:#86efac; background:rgba(34,197,94,.09); border-color:rgba(34,197,94,.26); }
.listing-status-filled { color:#93c5fd; background:rgba(59,130,246,.09); border-color:rgba(59,130,246,.26); }
.listing-status-completed { color:#d8b4fe; background:rgba(168,85,247,.09); border-color:rgba(168,85,247,.25); }
.listing-status-expired { color:#cbd5e1; background:rgba(148,163,184,.08); border-color:rgba(148,163,184,.22); }
.listing-expiry { display:block; margin-top:3px; color:var(--text-muted); font-size:.71rem; }
.jam-meta { margin:8px 0; color:#f6c56e; font-size:.85rem; }
.card-author-button { border:0; padding:0; background:transparent; color:inherit; cursor:pointer; text-align:left; }
.card-author-button:hover strong { text-decoration:underline; }

.profile-public-grid { margin:12px 0; }
.profile-public-toggle { display:flex; gap:9px; align-items:center; margin:10px 0 14px; color:var(--text-muted); }

.public-profile-modal-content,
.discovery-modal-content { width:min(760px, calc(100vw - 28px)); max-height:88vh; overflow:auto; }
.public-profile-hero { display:grid; grid-template-columns:auto 1fr auto; gap:18px; align-items:start; }
.public-profile-avatar { width:92px; height:92px; border-radius:50%; overflow:hidden; background:#0b1220; display:grid; place-items:center; font-size:2rem; border:1px solid rgba(255,255,255,.12); }
.public-profile-avatar img { width:100%; height:100%; object-fit:cover; }
.public-profile-main h2 { margin:4px 0 7px; }
.public-profile-main p { margin:0; color:var(--text-muted); }
.public-profile-tags { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.public-profile-tags span { padding:5px 9px; border-radius:999px; background:rgba(255,255,255,.055); color:#d8dee9; font-size:.8rem; }
.public-profile-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.public-profile-bio { white-space:pre-wrap; margin:20px 0; padding:14px; background:rgba(255,255,255,.035); border-radius:12px; line-height:1.6; }
.public-profile-links { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 20px; }
.public-profile-links a { color:var(--accent-color); text-decoration:none; border:1px solid rgba(255,153,0,.25); padding:6px 10px; border-radius:8px; }
.public-profile-posts,.saved-list { display:grid; gap:9px; }
.public-profile-post,.saved-row,.saved-search-open {
    width:100%;
    text-align:left;
    border:1px solid rgba(255,255,255,.09);
    background:rgba(255,255,255,.025);
    color:var(--text-color);
    border-radius:10px;
    padding:11px 12px;
    cursor:pointer;
}
.public-profile-post:hover,.saved-row:hover,.saved-search-open:hover { border-color:rgba(255,153,0,.35); }
.public-profile-post small,.saved-row small,.saved-search-open small { display:block; color:var(--text-muted); margin-top:4px; }
.saved-search-row { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:center; margin-bottom:9px; }
.notification-pref-row { display:grid; grid-template-columns:1fr auto auto; gap:14px; align-items:center; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.08); }
.notification-pref-row label { color:var(--text-muted); display:flex; align-items:center; gap:6px; }
.my-post-row-v17 { align-items:flex-start; }
.my-post-row-v17 .listing-status { margin-top:6px; }
.quick-create-emoji { width:42px; height:42px; display:grid; place-items:center; font-size:1.5rem; }

@media (max-width:700px) {
    .public-profile-hero { grid-template-columns:auto 1fr; }
    .public-profile-actions { grid-column:1/-1; justify-content:flex-start; }
    .public-profile-avatar { width:72px; height:72px; }
    .notification-pref-row { grid-template-columns:1fr 1fr; }
    .notification-pref-row strong { grid-column:1/-1; }
    .feed-toolbar-actions { flex-wrap:wrap; justify-content:flex-end; }
}
.comment-profile-link { border:0; background:transparent; color:inherit; font:inherit; font-weight:700; padding:0; cursor:pointer; }
.comment-profile-link:hover { text-decoration:underline; }
.comments-post-preview-title { margin:0 0 10px; font-size:1.05rem; }
.comments-post-preview-image { display:block; width:100%; max-height:360px; object-fit:contain; background:#090e18; border-radius:10px; margin-bottom:12px; }

/* v17 listing lifecycle control */
.listing-status-select {
    min-height: 34px;
    padding: 6px 30px 6px 10px;
    border: 1px solid var(--border-color, #263044);
    border-radius: 8px;
    background: var(--surface-color, #111827);
    color: inherit;
    font: inherit;
    font-size: .84rem;
}

/* ============================================================
   v17.2 pre-RC - completion, privacy, action menus, states
============================================================ */
.profile-completeness,
.onboarding-modal-content {
    border: 1px solid var(--card-border);
    background: rgba(255,255,255,.025);
    border-radius: 14px;
}

.profile-completeness {
    padding: 14px;
    margin: 0 0 16px;
}

.profile-completeness.is-complete {
    border-color: rgba(65, 190, 110, .35);
}

.profile-completeness-head,
.onboarding-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.profile-completeness-track {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    margin-bottom: 8px;
}

.profile-completeness-track > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--primary-orange);
    transition: width .25s ease;
}

.profile-visibility-box {
    margin: 12px 0 16px;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: rgba(255,255,255,.02);
}

.profile-visibility-detail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    padding: 10px 0 0 24px;
    font-size: .9rem;
}

.profile-visibility-detail > span {
    grid-column: 1 / -1;
    color: var(--text-muted);
}

.profile-visibility-detail label,
.profile-public-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.profile-visibility-detail.is-disabled {
    opacity: .45;
}

.onboarding-modal-content {
    max-width: 520px;
}

.content-action-menu {
    position: fixed;
    z-index: 3000;
    width: min(260px, calc(100vw - 24px));
    padding: 6px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: var(--card-bg, #1d1d1d);
    box-shadow: 0 16px 44px rgba(0,0,0,.42);
}

.content-action-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    border-radius: 8px;
    padding: 10px 11px;
    cursor: pointer;
    font: inherit;
}

.content-action-item:hover,
.content-action-item:focus-visible {
    background: rgba(255,255,255,.07);
    outline: none;
}

.content-action-item.danger {
    color: #ff8f8f;
}

.comment-more-button {
    margin-left: auto;
    flex: 0 0 auto;
}

.state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 9px;
    min-height: 120px;
    padding: 20px;
    border: 1px dashed var(--card-border);
    border-radius: 14px;
    color: var(--muted-text, #bbb);
}

.state-card strong {
    color: var(--text-main);
}

.state-error {
    border-color: rgba(220, 80, 80, .42);
}

.state-spinner {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.16);
    border-top-color: currentColor;
    animation: provamazi-spin .8s linear infinite;
}

@keyframes provamazi-spin { to { transform: rotate(360deg); } }

.recent-row {
    width: 100%;
}

.card-date[title],
.listing-expiry[title] {
    cursor: help;
}

@media (max-width: 720px) {
    .profile-visibility-detail {
        grid-template-columns: 1fr;
        padding-left: 0;
    }

    .content-action-menu {
        width: calc(100vw - 24px);
        left: 12px !important;
    }
}

.empty-state-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 6px;
}

/* ============================================================
   v17.2 pre-RC mobile UI hotfix
   - Keep quick-create artwork visible on the dark action sheet.
   - Keep modal actions/reply composer clear of the fixed bottom nav.
============================================================ */
.quick-create-option img {
    filter: invert(1) brightness(1.85);
    mix-blend-mode: screen;
}

@media (max-width: 700px) {
    /* A modal is a separate interaction layer; the fixed app navigation
       must not cover buttons, forms, or the message reply composer. */
    body.modal-open .mobile-bottom-nav {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(100%);
    }

    .mobile-bottom-nav {
        transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    }

    #messages-modal {
        padding: 10px;
    }

    .messages-modal-content {
        height: calc(100dvh - 20px);
        max-height: calc(100dvh - 20px);
    }

    .message-reply-form {
        position: sticky;
        bottom: 0;
        z-index: 5;
        flex: 0 0 auto;
        background: #111a2c;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .message-thread {
        min-height: 0;
    }

    /* The quick-create sheet uses the same dark surface as the mobile UI. */
    .quick-create-option img {
        filter: invert(1) brightness(1.95);
    }
}
