﻿:root {
    --bg: #07070b;
    --card: rgba(255, 255, 255, 0.04);
    --text: #f8fafc;
    --muted: #a1a1aa;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #ff4d8d;
    --accent-2: #8b5cf6;
    --accent-3: #22d3ee;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.22), transparent 28%),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 24%),
        radial-gradient(circle at bottom, rgba(34, 211, 238, 0.12), transparent 26%),
        var(--bg);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(5, 5, 10, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar-guest .topbar-inner {
    min-height: 82px;
}

.topbar-guest-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar-guest-actions .btn {
    white-space: nowrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, #ff4d8d, #8b5cf6);
}

.brand strong, .brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 0.82rem;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topnav a {
    color: #e4e4e7;
    font-weight: 600;
}

.app-main {
    padding: 28px 0 38px;
}

.glass {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #ff7a59);
    color: white;
    box-shadow: 0 18px 45px rgba(255, 77, 141, 0.25);
}
.btn-secondary {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
}
.btn-small { padding: 10px 16px; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 14px;
    border-radius: 999px;
    color: #e4e4e7;
    font-size: 0.82rem;
    background: rgba(255,255,255,0.03);
}

.hero-card {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 24px;
    border-radius: 30px;
    padding: 28px;
    margin-top: 16px;
}

.hero-copy h1,
.form-copy h1,
.page-head h1 {
    font-size: clamp(2.8rem, 8vw, 5.8rem);
    line-height: 0.92;
    margin: 10px 0 12px;
    letter-spacing: -0.05em;
}

.hero-copy .lead,
.form-copy p,
.page-head p,
.info-card p,
.soft-card p,
.preview-card p {
    color: var(--muted);
    line-height: 1.7;
}

.eyebrow {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fca5a5;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-actions, .row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-panel {
    padding: 20px;
}

.panel-top,
.footer-links,
.topnav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.preview-stack {
    display: grid;
    gap: 14px;
}

.preview-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-card strong {
    display: block;
    margin-bottom: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 12px;
}

.dot-pink { background: #ff4d8d; }
.dot-red { background: #fb7185; }
.dot-blue { background: #38bdf8; }

.stats-grid, .section-grid, .faq-grid, .metric-grid {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.faq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat-box, .info-card, .soft-card, .metric, .content-card {
    padding: 22px;
}

.stat-box strong, .metric strong {
    display: block;
    font-size: 2rem;
    margin-bottom: 4px;
}

.stat-box span, .metric span { color: var(--muted); }

.section {
    padding: 36px 0;
}

.form-shell {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
    padding: 24px;
    border-radius: 28px;
    margin-top: 18px;
}

.form-grid {
    display: grid;
    gap: 14px;
}

.form-grid label, .field {
    display: grid;
    gap: 8px;
    color: #e4e4e7;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-grid input,
.form-grid textarea,
.form-grid select,
.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    outline: none;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: rgba(255, 77, 141, 0.55);
    box-shadow: 0 0 0 4px rgba(255, 77, 141, 0.12);
}

.two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e4e4e7;
    font-weight: 500;
}

.helper-line {
    color: var(--muted);
    margin: 0;
}

.helper-line a { color: #fca5a5; }

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 600;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

body.email-confirmation-locked {
    overflow: hidden;
}

.email-confirmation-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 20px;
}

.email-confirmation-modal[hidden] {
    display: none !important;
}

.email-confirmation-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 16, 0.76);
    backdrop-filter: blur(10px);
}

.email-confirmation-modal__panel {
    position: relative;
    width: min(760px, 100%);
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(18, 12, 45, 0.98), rgba(9, 10, 27, 0.99));
    border: 1px solid rgba(168, 85, 247, 0.34);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62), 0 0 40px rgba(124, 32, 255, 0.18);
    color: var(--sf-white);
}

.email-confirmation-modal__head {
    padding: 28px 28px 12px;
    text-align: center;
}

.email-confirmation-modal__kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(168, 85, 247, 0.42);
    background: rgba(124, 32, 255, 0.14);
    color: #f5f3ff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.email-confirmation-modal__title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.05;
}

.email-confirmation-modal__body {
    padding: 18px 28px 30px;
    display: grid;
    gap: 16px;
    text-align: center;
}

.email-confirmation-modal__message {
    margin: 0;
    color: rgba(245, 243, 255, 0.88);
    font-size: 1.02rem;
    line-height: 1.65;
}

.email-confirmation-modal__email {
    margin: 0 auto;
    max-width: 100%;
    padding: 16px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    word-break: break-word;
}

.email-confirmation-modal__note {
    margin: 0;
    color: #fca5a5;
    font-weight: 600;
}

.email-confirmation-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.email-confirmation-modal__actions .btn {
    min-height: 50px;
}

.email-confirmation-modal__actions .btn-primary {
    min-width: 230px;
}

.email-confirmation-modal__actions .btn-secondary {
    min-width: 220px;
}

.email-confirmation-modal__status {
    margin: 0;
    color: rgba(245, 243, 255, 0.72);
    font-size: 0.95rem;
}

@media (max-width: 720px) {
    .email-confirmation-modal {
        padding: 14px;
        align-items: end;
    }

    .email-confirmation-modal__panel {
        border-radius: 22px;
    }

    .email-confirmation-modal__head,
    .email-confirmation-modal__body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .email-confirmation-modal__actions .btn-primary,
    .email-confirmation-modal__actions .btn-secondary {
        min-width: 100%;
    }
}

.dashboard-grid {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.page-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.list-stack {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.progress-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
    margin-top: 16px;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff4d8d, #fb7185, #8b5cf6);
}

.discover-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.discover-card {
    padding: 22px;
}

.discover-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.discover-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(255,77,141,0.34), rgba(139,92,246,0.34));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.discover-hero p {
    margin: 4px 0 0;
    color: var(--muted);
}

.pill-row,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.age-gate {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(5, 5, 10, 0.76);
    backdrop-filter: blur(18px);
}

.age-gate[hidden] { display: none; }

.age-card {
    width: min(520px, 100%);
    border-radius: 28px;
    padding: 26px;
    background: linear-gradient(180deg, rgba(26, 26, 33, 0.98), rgba(16, 16, 22, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.58),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

#age-gate .pill {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

#age-gate h2 {
    color: #f8fafc;
}

#age-gate p {
    color: #d4d4d8;
}

#age-gate .btn {
    min-height: 44px;
    cursor: pointer;
}

#age-gate .btn-primary {
    box-shadow: 0 18px 45px rgba(255, 77, 141, 0.3);
}

#age-gate #age-reject {
    background: #2a2a31;
    border-color: rgba(255, 255, 255, 0.18);
    color: #f4f4f5;
}

#age-gate #age-reject:hover {
    background: #3a3a42;
    border-color: rgba(255, 255, 255, 0.26);
    color: #ffffff;
}

.footer {
    padding: 26px 0 44px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 32px;
    flex-wrap: wrap;
}

.footer p {
    margin: 6px 0 0;
}

.footer-links {
    justify-content: flex-end;
}

/* Home landing */
.home-page {
    background:
        radial-gradient(circle at 15% 12%, rgba(255, 79, 155, 0.22), transparent 22%),
        radial-gradient(circle at 82% 10%, rgba(121, 40, 202, 0.38), transparent 26%),
        linear-gradient(180deg, #6c117f 0%, #450a63 42%, #09070d 100%);
}

.home-main {
    overflow: hidden;
}

.home-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(72, 10, 103, 0.58);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-topbar-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand-home .brand-mark-home {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.95), rgba(255, 159, 67, 0.92));
    color: white;
    display: grid;
    place-items: center;
}

.brand-mark-home svg {
    width: 24px;
    height: 24px;
}

.topnav-home a {
    color: rgba(255, 255, 255, 0.92);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
}

.home-aurora {
    position: absolute;
    pointer-events: none;
    filter: blur(24px);
    opacity: 0.9;
}

.home-aurora-left {
    width: 36rem;
    height: 36rem;
    left: -7rem;
    top: 8rem;
    background: radial-gradient(circle, rgba(255, 77, 141, 0.34), transparent 65%);
}

.home-aurora-right {
    width: 32rem;
    height: 32rem;
    right: -8rem;
    top: 5rem;
    background: radial-gradient(circle, rgba(173, 61, 255, 0.3), transparent 66%);
}

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
    align-items: start;
    gap: 32px;
    padding: 24px 0 36px;
    color: #fff;
}

.home-hero-copy {
    position: relative;
    z-index: 1;
    padding: 14px 0;
}

.hero-kicker,
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #ffe4f1;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-hero-copy h1 {
    margin: 18px 0 16px;
    max-width: 12ch;
    font-size: clamp(3.1rem, 6.8vw, 6rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    color: #fff;
}

.hero-text {
    max-width: 62ch;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
    margin-top: 28px;
}

.hero-stats {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hero-stat {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.hero-stat strong {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 4px;
    color: #fff;
}

.hero-stat span {
    color: rgba(255, 255, 255, 0.8);
}

.signup-card {
    position: relative;
    z-index: 1;
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    color: #fff;
    backdrop-filter: blur(18px);
}

.signup-card-top,
.proof-panel-top {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill-home {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.signup-card h2 {
    margin: 18px 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.05;
}

.signup-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.signup-form {
    display: grid;
    gap: 14px;
}

.signup-form label {
    display: grid;
    gap: 8px;
    color: rgba(255, 255, 255, 0.94);
    font-weight: 600;
}

.signup-form span {
    font-size: 0.92rem;
}

.signup-form select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.94);
    color: #4c1d95;
    outline: none;
}

.btn-block {
    width: 100%;
}

.signup-link {
    display: inline-block;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-feature-slab {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, #f8f4fb 100%);
    padding: 72px 0 66px;
    color: #4c1d95;
}

.home-feature-slab::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -58px;
    height: 120px;
    background: linear-gradient(180deg, transparent 0, rgba(255,255,255,0.94) 65%, rgba(255,255,255,0.96) 100%);
    border-top-left-radius: 100% 90px;
    border-top-right-radius: 100% 90px;
}

.feature-shell {
    position: relative;
    z-index: 1;
}

.feature-intro {
    max-width: 820px;
    margin: 0 auto 30px;
    text-align: center;
}

.feature-intro h2,
.proof-copy h2,
.cta-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    margin: 16px 0 14px;
    letter-spacing: -0.04em;
}

.feature-intro p,
.proof-copy p,
.cta-card p {
    color: rgba(76, 29, 149, 0.8);
    line-height: 1.8;
    margin: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    padding: 26px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: 0 16px 50px rgba(76, 29, 149, 0.08);
}

.feature-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(255, 77, 141, 0.14));
    color: #6d28d9;
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: #4c1d95;
}

.feature-card p {
    margin: 0;
    color: rgba(76, 29, 149, 0.78);
    line-height: 1.7;
}

.home-proof {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
    gap: 34px;
    align-items: center;
    padding: 82px 0 92px;
}

.proof-visual {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.96), rgba(45, 12, 61, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.32);
}

.proof-blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
}

.proof-blob-a {
    width: 20rem;
    height: 20rem;
    left: -3rem;
    top: -1rem;
    background: radial-gradient(circle, rgba(255, 77, 141, 0.18), transparent 68%);
}

.proof-blob-b {
    width: 16rem;
    height: 16rem;
    right: -2rem;
    bottom: -2rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
}

.proof-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    padding: 26px;
    max-width: 560px;
}

.proof-card {
    padding: 18px 18px 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.proof-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.proof-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.proof-copy {
    color: #fff;
}

.proof-copy p {
    color: rgba(255, 255, 255, 0.84);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.mini-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.9rem;
}

.home-cta {
    padding: 0 0 64px;
}

.cta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 26px 28px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 251, 0.96));
    box-shadow: 0 18px 60px rgba(76, 29, 149, 0.08);
}

.cta-card p {
    max-width: 60ch;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-footer {
    background: linear-gradient(180deg, #5d117d 0%, #4a0d66 100%);
    color: #fff;
    padding: 34px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.home-footer p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.84);
}

.home-footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.home-footer-links a {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 980px) {
    .hero-card, .form-shell, .section-grid, .faq-grid, .metric-grid, .stats-grid, .discover-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        padding: 22px;
    }

    .hero-copy h1, .form-copy h1, .page-head h1 {
        max-width: none;
        font-size: clamp(2.6rem, 11vw, 4.2rem);
    }

    .topbar-inner {
        flex-direction: column;
        align-items: start;
        padding: 14px 0;
    }

    .topnav {
        justify-content: start;
    }

    .two-cols {
        grid-template-columns: 1fr;
    }

    .home-topbar-inner,
    .cta-card,
    .home-proof,
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-topbar-inner,
    .home-footer-inner,
    .cta-card {
        align-items: start;
    }

    .home-topbar-inner,
    .cta-card {
        flex-direction: column;
    }

    .desire-card,
    .prep-card {
        width: calc(100% - 16px);
        border-radius: 8px;
    }

    .desire-head {
        grid-template-columns: 28px minmax(0, 1fr);
        padding: 10px 10px 8px;
    }

    .desire-head-copy {
        padding-right: 8px;
    }

    .desire-form {
        padding: 16px 12px 14px;
    }

    .desire-extra {
        padding: 14px 14px 16px 44px;
    }

    .desire-choice {
        padding: 0 14px;
    }

    .desire-item {
        font-size: 1rem;
    }

    .desire-footer {
        flex-direction: column;
        align-items: stretch;
        padding-top: 14px;
    }

    .desire-continue {
        min-width: 100%;
    }

    .username-card {
        width: calc(100% - 16px);
        border-radius: 18px;
    }

    .username-head {
        grid-template-columns: 28px minmax(0, 1fr);
        padding: 12px 12px 10px;
    }

    .username-head-copy {
        padding-right: 8px;
    }

    .username-form {
        padding: 18px 14px 16px;
    }

    .username-copy p {
        font-size: 0.98rem;
    }

    .username-field input {
        min-height: 54px;
    }

    .username-suggestion {
        width: 100%;
        justify-content: center;
    }

    .username-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .username-continue {
        min-width: 100%;
    }

    .location-card {
        width: calc(100% - 16px);
        border-radius: 18px;
    }

    .location-head {
        grid-template-columns: 28px minmax(0, 1fr);
        padding: 12px 12px 10px;
    }

    .location-head-copy {
        padding-right: 8px;
    }

    .location-form {
        padding: 22px 14px 16px;
    }

    .location-copy p {
        font-size: 0.98rem;
    }

    .location-field input {
        min-height: 54px;
    }

    .location-input-row {
        grid-template-columns: minmax(0, 1fr) 50px;
        gap: 8px;
    }

    .location-current {
        min-height: 54px;
        border-radius: 14px;
    }

    .location-suggestions {
        padding: 8px;
    }

    .location-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .location-continue {
        min-width: 100%;
    }

    .access-card {
        width: calc(100% - 16px);
        border-radius: 18px;
    }

    .access-head {
        grid-template-columns: 28px minmax(0, 1fr);
        padding: 12px 12px 10px;
    }

    .access-head-copy {
        padding-right: 8px;
    }

    .access-form {
        padding: 22px 14px 16px;
    }

    .access-copy p {
        font-size: 0.98rem;
    }

    .access-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .access-summary {
        grid-template-columns: 1fr;
    }

    .access-password-wrap {
        grid-template-columns: minmax(0, 1fr) 52px;
    }

    .access-continue {
        min-width: 100%;
    }

    .home-hero {
        min-height: auto;
        padding-top: 34px;
    }

    .home-hero-copy h1 {
        max-width: none;
    }

    .hero-stats,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .prep-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prep-continue {
        min-width: 100%;
    }
}

/* SexFan identity refresh */
:root {
    --sf-bg: #050616;
    --sf-bg-secondary: #090A22;
    --sf-surface: #101126;
    --sf-surface-light: #171832;
    --sf-purple: #7C20FF;
    --sf-purple-light: #A855F7;
    --sf-violet: #5D3BFF;
    --sf-magenta: #E000FF;
    --sf-pink: #FF1493;
    --sf-red: #FF253A;
    --sf-orange: #FF7A00;
    --sf-yellow: #FFB800;
    --sf-white: #F8F7FF;
    --sf-text-secondary: #B8B5CC;
    --sf-border: rgba(155, 92, 255, 0.24);
    --sf-border-strong: rgba(178, 104, 255, 0.48);
}

body {
    background:
        radial-gradient(circle at 15% 10%, rgba(112, 32, 255, 0.14), transparent 32%),
        radial-gradient(circle at 85% 20%, rgba(224, 0, 255, 0.10), transparent 30%),
        radial-gradient(circle at 70% 90%, rgba(255, 37, 58, 0.07), transparent 28%),
        var(--sf-bg);
    color: var(--sf-white);
}

.wrap {
    color: var(--sf-white);
}

.home-page {
    background: var(--sf-bg);
}

.glass,
.card,
.signup-card,
.proof-visual,
.proof-card,
.feature-card,
.hero-stat,
.cta-card,
.age-card {
    background: rgba(16, 17, 38, 0.94) !important;
    border: 1px solid var(--sf-border) !important;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        0 0 35px rgba(124, 32, 255, 0.08) !important;
}

.topbar,
.home-topbar {
    background: rgba(5, 6, 22, 0.82) !important;
    border-bottom: 1px solid rgba(155, 92, 255, 0.18);
}

.brand-mark,
.brand-mark-home {
    background: linear-gradient(135deg, var(--sf-purple), var(--sf-magenta), var(--sf-red)) !important;
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(124, 32, 255, 0.28);
}

.brand-wordmark strong {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    line-height: 1;
}

.brand-sex {
    color: var(--sf-white);
}

.brand-fan {
    background: linear-gradient(135deg, var(--sf-purple-light), var(--sf-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand small {
    color: var(--sf-text-secondary);
}

.topnav a,
.home-footer-links a,
.signup-link,
.helper-line a,
.hero-text,
.feature-intro p,
.proof-copy p,
.cta-card p,
.home-footer p,
.hero-stat span,
.proof-card p,
.preview-card p,
.muted,
.info-card p,
.soft-card p,
.page-head p,
.form-copy p {
    color: var(--sf-text-secondary) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #7C20FF 0%, #D900FF 55%, #FF253A 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(178, 32, 255, 0.30) !important;
}

.btn-primary:hover {
    filter: brightness(1.06);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary,
.btn-ghost {
    background: #171832 !important;
    color: #fff !important;
    border: 1px solid var(--sf-border-strong) !important;
}

.btn-secondary:hover,
.btn-ghost:hover {
    background: #202144 !important;
}

.btn,
.btn:hover {
    cursor: pointer;
}

.pill,
.pill-home,
.hero-kicker,
.section-tag,
.mini-pill {
    background: rgba(124, 32, 255, 0.12) !important;
    border: 1px solid rgba(155, 92, 255, 0.32) !important;
    color: var(--sf-white) !important;
}

.hero-page,
.home-hero-copy h1,
.form-copy h1,
.page-head h1,
.feature-intro h2,
.proof-copy h2,
.cta-card h2,
.signup-card h2,
.hero-hero,
.hero-text,
.signup-card p,
.signup-card span,
.hero-stat strong,
.feature-card h3,
.proof-card strong {
    color: var(--sf-white) !important;
}

.home-hero {
    color: var(--sf-white);
}

.home-aurora-left {
    background: radial-gradient(circle, rgba(124, 32, 255, 0.22), transparent 65%) !important;
}

.home-aurora-right {
    background: radial-gradient(circle, rgba(224, 0, 255, 0.18), transparent 66%) !important;
}

.home-feature-slab {
    background:
        radial-gradient(circle at 20% 0%, rgba(93, 59, 255, 0.08), transparent 24%),
        linear-gradient(180deg, var(--sf-bg-secondary) 0%, var(--sf-bg) 100%) !important;
    color: var(--sf-white) !important;
}

.home-feature-slab::before {
    background: linear-gradient(180deg, transparent 0, rgba(9, 10, 34, 0.92) 65%, rgba(9, 10, 34, 0.98) 100%) !important;
}

.feature-intro h2,
.proof-copy h2,
.cta-card h2 {
    color: var(--sf-white) !important;
}

.feature-card {
    background: rgba(23, 24, 50, 0.94) !important;
}

.feature-card p {
    color: var(--sf-text-secondary) !important;
}

.feature-icon {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(124, 32, 255, 0.24), rgba(224, 0, 255, 0.20)) !important;
}

.home-proof {
    color: var(--sf-white);
}

.proof-visual {
    background:
        radial-gradient(circle at 20% 20%, rgba(124, 32, 255, 0.18), transparent 35%),
        linear-gradient(135deg, rgba(16, 17, 38, 0.96), rgba(9, 10, 34, 0.98)) !important;
}

.proof-blob-a {
    background: radial-gradient(circle, rgba(224, 0, 255, 0.16), transparent 68%) !important;
}

.proof-blob-b {
    background: radial-gradient(circle, rgba(255, 37, 58, 0.10), transparent 68%) !important;
}

.proof-card,
.signup-card,
.cta-card {
    color: var(--sf-white) !important;
}

.proof-card p,
.signup-card p,
.cta-card p {
    color: var(--sf-text-secondary) !important;
}

.tag-cloud .mini-pill,
.signup-card .pill,
.hero-kicker,
.section-tag {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.home-cta {
    background: transparent;
}

.cta-card {
    background: rgba(16, 17, 38, 0.96) !important;
}

.home-footer {
    background: linear-gradient(180deg, #090A22 0%, #050616 100%) !important;
}

.home-footer-links a:hover,
.topnav a:hover,
.signup-link:hover,
.helper-line a:hover {
    color: var(--sf-magenta) !important;
}

.consent-shell {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 24px 0 48px;
}

.consent-card {
    width: min(720px, 100%);
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(112, 32, 255, 0.92), rgba(70, 18, 110, 0.96));
    border: 1px solid rgba(168, 85, 247, 0.34);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44), 0 0 40px rgba(124, 32, 255, 0.14);
}

.consent-icon {
    display: grid;
    place-items: center;
    font-size: 3rem;
    padding-top: 34px;
}

.consent-card h1 {
    margin: 18px 0 8px;
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--sf-white);
}

.consent-lead {
    margin: 0 auto;
    padding: 0 28px 22px;
    max-width: 44ch;
    text-align: center;
    color: rgba(248, 247, 255, 0.94);
    font-size: 1.15rem;
    line-height: 1.6;
}

.consent-form {
    background: rgba(5, 6, 22, 0.96);
    padding: 34px 42px 42px;
    display: grid;
    gap: 18px;
}

.consent-check {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: var(--sf-white);
    font-weight: 600;
    line-height: 1.5;
}

.consent-check input {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: var(--sf-purple-light);
}

.consent-continue {
    margin-top: 10px;
    min-height: 56px;
    font-size: 1rem;
}

.consent-continue:disabled {
    opacity: 0.55;
    filter: grayscale(0.12);
    cursor: not-allowed;
}

.prep-shell {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 24px 0 48px;
}

.prep-card {
    width: min(760px, 100%);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8d8e4;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.prep-head {
    text-align: center;
    padding: 18px 20px 12px;
    border-bottom: 1px solid #e5e5ef;
}

.prep-kicker {
    display: inline-block;
    color: #a0a0af;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.prep-head h1 {
    margin: 4px 0 0;
    color: #5f2e93;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.1;
}

.prep-form {
    display: grid;
    gap: 22px;
    padding: 22px 22px 18px;
    background: #ffffff;
}

.prep-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.prep-tile {
    position: relative;
    min-height: 124px;
    border-radius: 6px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(78, 18, 112, 0.58)),
        linear-gradient(135deg, rgba(159, 78, 255, 0.92), rgba(226, 0, 255, 0.54));
    border: 1px solid rgba(125, 42, 180, 0.22);
    box-shadow: inset 0 -24px 40px rgba(42, 6, 58, 0.28);
    cursor: pointer;
}

.prep-tile:nth-child(2n) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(78, 18, 112, 0.52)),
        linear-gradient(135deg, rgba(143, 68, 255, 0.9), rgba(255, 20, 147, 0.48));
}

.prep-tile:nth-child(3n) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(64, 16, 92, 0.58)),
        linear-gradient(135deg, rgba(124, 32, 255, 0.9), rgba(255, 122, 0, 0.38));
}

.prep-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(8, 5, 16, 0.42) 100%);
}

.prep-check {
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: 24px;
    height: 24px;
    accent-color: #7c20ff;
    z-index: 1;
}

.prep-tile-label {
    position: absolute;
    left: 38px;
    bottom: 11px;
    z-index: 1;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.prep-tile:has(.prep-check:checked) {
    outline: 3px solid rgba(124, 32, 255, 0.75);
    transform: translateY(-1px);
}

.prep-optin {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #4b2d7d;
    font-weight: 700;
    line-height: 1.5;
}

.prep-optin input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #7c20ff;
}

.prep-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px 20px;
    border-top: 1px solid #e5e5ef;
    background: #ffffff;
}

.prep-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prep-dots .dot {
    width: 8px;
    height: 8px;
    margin: 0;
    background: #d0d0dc;
    border-radius: 999px;
}

.prep-dots .dot.active {
    background: #d61a84;
}

.prep-continue {
    min-width: min(340px, 100%);
    min-height: 56px;
}

.prep-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prep-toast {
    width: min(760px, calc(100% - 32px));
    margin: 16px auto 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 37, 58, 0.14);
    border: 1px solid rgba(255, 37, 58, 0.24);
    color: #ffd6db;
}

.desire-shell {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 24px 0 48px;
}

.desire-card {
    width: min(760px, 100%);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8d8e4;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.desire-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 12px 16px 10px;
    border-bottom: 1px solid #e5e5ef;
}

.desire-back {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #6a5e75;
    font-size: 1.8rem;
    line-height: 1;
    text-decoration: none;
}

.desire-head-copy {
    text-align: center;
    padding-right: 28px;
}

.desire-head h1 {
    margin: 4px 0 0;
    color: #5f2e93;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.1;
}

.desire-form {
    display: grid;
    gap: 18px;
    padding: 18px 22px 18px;
    background: #ffffff;
}

.desire-list {
    display: grid;
    gap: 8px;
    padding: 8px 6px 2px;
}

.desire-block {
    display: grid;
    gap: 12px;
}

.desire-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: #4b2d7d;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.5;
}

.desire-check {
    width: 24px;
    height: 24px;
    margin: 0;
    accent-color: #7c20ff;
    flex: 0 0 auto;
}

.desire-item span {
    display: inline-block;
    position: relative;
    top: 1px;
}

.desire-extra {
    margin: -2px 0 2px;
    padding: 16px 18px 18px 52px;
    background: #f8f8fb;
    border-top: 1px solid #e7e7f0;
    border-bottom: 1px solid #e7e7f0;
}

.desire-extra p {
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.45;
}

.desire-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.desire-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 4px;
    border: 1px solid #c9c9d5;
    background: #ffffff;
    color: #6d28d9;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.desire-choice:hover {
    background: #f3e8ff;
    border-color: #a855f7;
    transform: translateY(-1px);
}

.desire-choice input {
    margin: 0;
    accent-color: #7c20ff;
}

.desire-choice span {
    line-height: 1;
}

.desire-skip-wrap {
    text-align: center;
    padding: 8px 0 6px;
}

.desire-skip {
    color: #7d1fb8;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.desire-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0 4px;
    border-top: 1px solid #e5e5ef;
    background: #ffffff;
}

.desire-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.desire-dots .dot {
    width: 8px;
    height: 8px;
    margin: 0;
    background: #d0d0dc;
    border-radius: 999px;
}

.desire-dots .dot.active {
    background: #d61a84;
}

.desire-continue {
    min-width: min(340px, 100%);
    min-height: 56px;
}

.desire-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.username-shell {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 24px 0 48px;
}

.username-card {
    width: min(760px, 100%);
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 17, 38, 0.98), rgba(9, 10, 34, 0.98));
    border: 1px solid rgba(155, 92, 255, 0.26);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.58),
        0 0 40px rgba(124, 32, 255, 0.12);
}

.username-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.username-back {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.8rem;
    line-height: 1;
    text-decoration: none;
}

.username-head-copy {
    text-align: center;
    padding-right: 28px;
}

.username-head h1 {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.1;
}

.username-form {
    display: grid;
    gap: 18px;
    padding: 22px 22px 20px;
    color: #ffffff;
}

.username-copy p {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.04rem;
    line-height: 1.6;
}

.username-field {
    display: grid;
    gap: 10px;
}

.username-field input {
    width: 100%;
    min-height: 58px;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid rgba(155, 92, 255, 0.30);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    outline: none;
    font-size: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.username-field input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.username-field input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.username-status {
    min-height: 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.5;
}

.username-status.is-checking,
.username-status.is-available,
.username-status.is-error {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.username-status.is-checking::before,
.username-status.is-available::before,
.username-status.is-error::before {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border-radius: 999px;
    vertical-align: middle;
    content: "";
}

.username-status.is-checking::before {
    content: "";
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: #a855f7;
    animation: username-spin 0.8s linear infinite;
}

.username-status.is-available {
    color: #bbf7d0;
}

.username-status.is-available::before {
    content: "âœ“";
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
    font-size: 0.78rem;
    font-weight: 900;
}

.username-status.is-error {
    color: #fecaca;
}

.username-status.is-error::before {
    content: "!";
    background: rgba(255, 37, 58, 0.18);
    color: #fecaca;
    font-size: 0.85rem;
    font-weight: 900;
}

.username-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.username-suggestion {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(155, 92, 255, 0.30);
    background: rgba(124, 32, 255, 0.12);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.username-rules {
    margin: 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}

.username-example {
    border-radius: 16px;
    padding: 18px 18px;
    background: linear-gradient(135deg, rgba(124, 32, 255, 0.26), rgba(217, 0, 255, 0.18));
    border: 1px solid rgba(155, 92, 255, 0.30);
    color: #ffffff;
    font-weight: 700;
    line-height: 1.6;
}

.username-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
}

.username-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.username-dots .dot {
    width: 8px;
    height: 8px;
    margin: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.username-dots .dot.active {
    background: #d61a84;
}

.username-continue {
    min-width: min(340px, 100%);
    min-height: 56px;
}

.username-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.location-shell {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 24px 0 48px;
}

.location-card {
    width: min(760px, 100%);
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 17, 38, 0.98), rgba(9, 10, 34, 0.98));
    border: 1px solid rgba(155, 92, 255, 0.26);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.58),
        0 0 40px rgba(124, 32, 255, 0.12);
}

.location-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.location-back {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.8rem;
    line-height: 1;
    text-decoration: none;
}

.location-head-copy {
    text-align: center;
    padding-right: 28px;
}

.location-head h1 {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.1;
}

.location-form {
    display: grid;
    gap: 18px;
    padding: 32px 22px 20px;
    color: #ffffff;
}

.location-copy p {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.04rem;
    line-height: 1.6;
}

.location-field-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.location-field {
    display: grid;
    gap: 0;
    width: 100%;
}

.location-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 10px;
    align-items: stretch;
}

.location-field input {
    width: 100%;
    min-height: 58px;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid rgba(155, 92, 255, 0.34);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    outline: none;
    font-size: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

.location-field input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.location-field input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.location-current {
    min-height: 58px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    border: 1px solid rgba(155, 92, 255, 0.34);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
    outline: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.location-current:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(196, 132, 252, 0.8);
    transform: translateY(-1px);
}

.location-current:focus-visible {
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.16), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.location-current:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.location-status {
    min-height: 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.5;
}

.location-status[data-tone="success"] {
    color: #bbf7d0;
}

.location-status[data-tone="error"] {
    color: #fecaca;
}

.location-status[data-tone="muted"] {
    color: rgba(255, 255, 255, 0.72);
}

.location-suggestions {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(155, 92, 255, 0.30);
    border-radius: 18px;
    background: rgba(8, 9, 26, 0.92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
    max-height: 280px;
    overflow: auto;
}

.location-suggestion {
    width: 100%;
    text-align: left;
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.location-suggestion strong {
    font-size: 1rem;
    line-height: 1.2;
}

.location-suggestion span {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.92rem;
}

.location-suggestion:hover,
.location-suggestion:focus-visible {
    border-color: rgba(168, 85, 247, 0.42);
    background: rgba(168, 85, 247, 0.12);
    transform: translateY(-1px);
}

.location-empty {
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.94rem;
}

.location-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 10px;
}

.location-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-dots .dot {
    width: 8px;
    height: 8px;
    margin: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.location-dots .dot.active {
    background: #d61a84;
}

.location-continue {
    min-width: min(340px, 100%);
    min-height: 56px;
}

.location-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.access-shell {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 24px 0 48px;
}

.access-card {
    width: min(760px, 100%);
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 17, 38, 0.98), rgba(9, 10, 34, 0.98));
    border: 1px solid rgba(155, 92, 255, 0.26);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.58),
        0 0 40px rgba(124, 32, 255, 0.12);
}

.access-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.access-back {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.8rem;
    line-height: 1;
    text-decoration: none;
}

.access-head-copy {
    text-align: center;
    padding-right: 28px;
}

.access-head h1 {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.1;
}

.access-form {
    display: grid;
    gap: 18px;
    padding: 30px 22px 20px;
    color: #ffffff;
}

.access-copy p {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.02rem;
    line-height: 1.6;
}

.access-options {
    width: min(520px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.access-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, 0.28);
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.access-button:hover {
    transform: translateY(-1px);
}

.access-google {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 245, 0.95));
    color: #111827;
    border-color: rgba(209, 213, 219, 0.9);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.access-google:hover {
    border-color: rgba(156, 163, 175, 1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.access-email {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.access-google.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.access-email.is-selected {
    border-color: rgba(168, 85, 247, 0.72);
    background: rgba(168, 85, 247, 0.12);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12);
}

.access-google-mark,
.access-email-mark {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 900;
    flex: 0 0 auto;
}

.access-google-mark {
    color: #4285f4;
}

.access-email-mark {
    color: #c084fc;
}

.access-divider {
    width: fit-content;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.96rem;
    letter-spacing: 0.24em;
}

.access-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 6px;
}

.access-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.access-dots .dot {
    width: 8px;
    height: 8px;
    margin: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.access-dots .dot.active {
    background: #d61a84;
}

.access-continue {
    min-width: min(340px, 100%);
    min-height: 56px;
}

.access-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.access-credentials-card {
    max-width: 760px;
}

.access-credentials-form {
    display: grid;
    gap: 18px;
    padding: 30px 22px 20px;
    color: #ffffff;
}

.access-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(155, 92, 255, 0.20);
    background: rgba(255, 255, 255, 0.04);
}

.access-summary span {
    display: block;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.access-summary strong {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.35;
    word-break: break-word;
}

.access-field-grid {
    display: grid;
    gap: 14px;
}

.access-field {
    display: grid;
    gap: 8px;
    color: rgba(255, 255, 255, 0.96);
    font-weight: 600;
}

.access-field span {
    font-size: 0.94rem;
}

.access-field input {
    width: 100%;
    min-height: 58px;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid rgba(155, 92, 255, 0.34);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    outline: none;
    font-size: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.access-field input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.access-field input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.access-password-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 10px;
    align-items: stretch;
}

.access-eye {
    min-height: 58px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    border: 1px solid rgba(155, 92, 255, 0.34);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.access-eye:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(196, 132, 252, 0.8);
    transform: translateY(-1px);
}

.access-eye:focus-visible {
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.16);
}

.access-rules {
    margin: 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

.access-footer-credentials {
    padding-top: 10px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes username-spin {
    to { transform: rotate(360deg); }
}

.form-grid input,
.form-grid textarea,
.form-grid select,
.field input,
.field textarea,
.field select,
.signup-form select {
    background: var(--sf-surface) !important;
    border: 1px solid rgba(155, 92, 255, 0.28) !important;
    color: var(--sf-white) !important;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder,
.field input::placeholder,
.field textarea::placeholder {
    color: #8f8aa9 !important;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus,
.field input:focus,
.field textarea:focus,
.field select:focus,
.signup-form select:focus {
    border-color: var(--sf-purple-light) !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.16) !important;
}

.alert-error {
    background: rgba(255, 37, 58, 0.14) !important;
    border-color: rgba(255, 37, 58, 0.24) !important;
    color: #ffd6db !important;
}

.alert-success {
    background: rgba(124, 32, 255, 0.14) !important;
    border-color: rgba(124, 32, 255, 0.24) !important;
    color: #ebe0ff !important;
}

.age-gate {
    background: rgba(5, 6, 22, 0.82) !important;
}

.age-card {
    background: rgba(16, 17, 38, 0.98) !important;
    border: 1px solid rgba(168, 85, 247, 0.34) !important;
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.58),
        0 0 40px rgba(124, 32, 255, 0.14) !important;
}

#age-gate .pill {
    background: rgba(124, 32, 255, 0.18) !important;
    border-color: rgba(168, 85, 247, 0.34) !important;
}

#age-gate h2 {
    color: var(--sf-white) !important;
}

#age-gate p {
    color: var(--sf-text-secondary) !important;
}

#age-gate #age-reject {
    background: #171832 !important;
    border-color: var(--sf-border-strong) !important;
    color: #fff !important;
}

#age-gate #age-reject:hover {
    background: #202144 !important;
}

/* SexFan Home authenticated */
body.home-page {
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 77, 141, 0.20), transparent 22%),
        radial-gradient(circle at 84% 14%, rgba(139, 92, 246, 0.22), transparent 26%),
        linear-gradient(180deg, #1a0730 0%, #0a0820 34%, #07070d 100%);
}

body.home-page .home-main {
    padding: 72px 0 52px;
}

.home-topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 80;
    backdrop-filter: blur(24px);
    background: rgba(7, 7, 13, 0.84);
    border-bottom: 1px solid rgba(168, 85, 247, 0.18);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.home-topbar-inner {
    min-height: 96px;
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) minmax(260px, 1.1fr) auto;
    gap: 16px;
    align-items: center;
}

.home-search {
    min-height: 52px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 6px 10px 6px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(155, 92, 255, 0.24);
}

.home-search-icon {
    color: #f9a8d4;
    font-size: 1.1rem;
}

.home-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 0.98rem;
}

.home-search input::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.home-search button {
    min-height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.home-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.home-menu a {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    font-weight: 700;
}

.home-menu a:hover,
.home-menu a.is-active {
    color: #fff;
    border-color: rgba(196, 132, 252, 0.26);
    background: rgba(168, 85, 247, 0.10);
}

.home-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.home-toolbar-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-weight: 800;
}

.home-toolbar-btn strong {
    min-width: 20px;
    padding: 2px 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-size: 0.72rem;
    line-height: 1.3;
}

.home-user-chip {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    border: 1px solid rgba(155, 92, 255, 0.20);
    background: rgba(255, 255, 255, 0.05);
}

.home-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #ff4d8d, #8b5cf6);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 900;
}

.home-user-meta {
    display: grid;
    gap: 2px;
}

.home-user-meta strong {
    font-size: 0.92rem;
    line-height: 1.1;
}

.home-user-meta small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
}

.home-email-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    padding: 14px 16px;
    padding-right: 56px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(77, 18, 112, 0.86), rgba(37, 10, 64, 0.92));
    border: 1px solid rgba(168, 85, 247, 0.26);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    position: relative;
    overflow: hidden;
    transition: opacity 0.24s ease, transform 0.24s ease;
    will-change: opacity, transform;
}

.home-email-banner.is-dismissing {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.home-email-banner__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.home-email-banner__close:hover,
.home-email-banner__close:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    transform: scale(1.04);
}

.home-email-banner__copy {
    display: grid;
    gap: 4px;
}

.home-email-banner__copy strong {
    font-size: 1rem;
    color: #fff;
}

.home-email-banner__copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.5;
}

.home-email-banner__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.home-email-banner__status {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.home-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 380px);
    gap: 18px;
    align-items: stretch;
    margin-top: 18px;
}

.home-hero-copy,
.home-spotlight,
.home-panel {
    padding: 24px;
}

.home-hero-copy h1,
.home-panel__head h2 {
    margin: 12px 0 10px;
    letter-spacing: -0.04em;
}

.home-hero-copy h1 {
    font-size: clamp(2.3rem, 4vw, 4.3rem);
    line-height: 0.98;
}

.home-hero-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.75;
}

.home-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.home-kpi {
    padding: 16px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-kpi strong {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.home-kpi span {
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.9rem;
}

.home-spotlight {
    display: grid;
    gap: 16px;
    align-content: start;
}

.home-spotlight__avatar {
    width: 100%;
    min-height: 180px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(255, 77, 141, 0.55), rgba(139, 92, 246, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.home-spotlight__copy strong {
    display: block;
    font-size: 1.22rem;
}

.home-spotlight__copy p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.74);
}

.home-spotlight__actions {
    display: grid;
    gap: 10px;
}

.home-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
    gap: 18px;
    margin-top: 18px;
}

.home-stack,
.home-sidebar {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.home-panel {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.home-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}

.home-panel__head h2 {
    margin: 6px 0 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.home-panel__head a {
    color: #f9a8d4;
    font-weight: 700;
}

.home-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 112px;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
}

.home-online-card {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
    scroll-snap-align: start;
}

.home-online-card__media,
.home-feed-card__media,
.home-feed-card__media::before,
.home-online-card__media::before {
    position: relative;
    overflow: hidden;
}

.home-online-card__media {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 900;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 35%),
        linear-gradient(135deg, rgba(255, 77, 141, 0.34), rgba(139, 92, 246, 0.34));
    background-size: cover;
    background-position: center;
}

.home-online-card__media::before,
.home-feed-card__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.08), rgba(3, 7, 18, 0.46));
}

.home-online-card__meta {
    display: grid;
    gap: 2px;
}

.home-online-card__meta strong,
.home-feed-card__title-row strong {
    color: #fff;
}

.home-online-card__meta span,
.home-feed-card__title-row span,
.home-feed-card__body p {
    color: rgba(255, 255, 255, 0.72);
}

.home-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
    font-size: 0.74rem;
    font-weight: 800;
}

.home-empty-state,
.home-empty-mini {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.76);
}

.home-empty-state strong,
.home-empty-mini strong {
    display: block;
    color: #fff;
    margin-bottom: 6px;
}

.home-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.home-feed-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-feed-card__media {
    min-height: 280px;
    padding: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-direction: column;
    gap: 12px;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.home-feed-card__media > span {
    position: relative;
    z-index: 1;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 2rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.home-feed-card__chips {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-feed-card__chips span,
.home-feed-card__type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
}

.home-feed-card__body {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.home-feed-card__title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.home-feed-card__title-row strong,
.home-feed-card__title-row span {
    display: block;
}

.home-feed-card__body p {
    margin: 0;
    line-height: 1.6;
}

.home-feed-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.home-list {
    display: grid;
    gap: 10px;
}

.home-list-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-list-item strong,
.home-list-item p {
    display: block;
}

.home-list-item strong {
    color: #fff;
    margin-bottom: 6px;
}

.home-list-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
}

.home-progress {
    display: grid;
    gap: 12px;
}

.home-progress__label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.home-progress__label strong {
    font-size: 2rem;
}

.home-progress__label span,
.home-progress__meta span,
.home-premium-copy {
    color: rgba(255, 255, 255, 0.72);
}

.home-progress__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.home-shortcuts {
    display: grid;
    gap: 10px;
}

.home-shortcuts a {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-weight: 700;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-stats div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-stats strong {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.home-stats span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}

.home-tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.home-tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

.home-tips-list li span {
    color: #f472b6;
    font-weight: 900;
}

.home-tips-list li.is-done {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.22);
}

.tone-a { background-image: linear-gradient(135deg, rgba(255, 77, 141, 0.42), rgba(139, 92, 246, 0.44)); }
.tone-b { background-image: linear-gradient(135deg, rgba(139, 92, 246, 0.42), rgba(255, 122, 89, 0.44)); }
.tone-c { background-image: linear-gradient(135deg, rgba(255, 77, 141, 0.36), rgba(255, 159, 67, 0.40)); }
.tone-d { background-image: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(139, 92, 246, 0.44)); }
.tone-e { background-image: linear-gradient(135deg, rgba(217, 0, 255, 0.28), rgba(255, 77, 141, 0.44)); }
.tone-f { background-image: linear-gradient(135deg, rgba(255, 159, 67, 0.36), rgba(139, 92, 246, 0.40)); }

/* Social home rewrite */
.social-home {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(280px, 340px);
    gap: 18px;
    align-items: start;
}

.social-landing-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 16px auto 14px;
}

.social-landing-head__copy {
    display: grid;
    gap: 8px;
}

.social-landing-head__copy h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.social-landing-head__copy p {
    margin: 0;
    max-width: 70ch;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.social-landing-head__tabs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-landing-head__tabs button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(155, 92, 255, 0.20);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.social-landing-head__tabs button.is-active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.90), rgba(255, 77, 141, 0.92));
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(255, 77, 141, 0.18);
}

.social-col {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.social-col--left {
    position: sticky;
    top: 120px;
}

.social-col--right {
    position: sticky;
    top: 120px;
}

.social-panel {
    padding: 18px;
    background: rgba(12, 12, 28, 0.92);
    border: 1px solid rgba(155, 92, 255, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
}

.social-panel__head {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.social-panel__head--tight {
    margin-bottom: 10px;
}

.social-panel__head h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.1;
}

.social-profile-panel {
    overflow: hidden;
}

.social-profile-panel__cover {
    min-height: 112px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(255, 77, 141, 0.55), rgba(139, 92, 246, 0.50));
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
}

.social-profile-panel__body {
    display: grid;
    gap: 14px;
    padding-top: 16px;
}

.social-profile-panel__meta {
    display: grid;
    gap: 4px;
}

.social-profile-panel__meta strong {
    font-size: 1.15rem;
}

.social-profile-panel__meta span,
.social-profile-panel__meta small {
    color: rgba(255, 255, 255, 0.72);
}

.social-progress {
    display: grid;
    gap: 8px;
}

.social-progress small {
    color: rgba(255, 255, 255, 0.68);
}

.social-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.social-mini-stats span {
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    font-size: 0.82rem;
}

.social-mini-stats strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 2px;
}

.social-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.social-quick-actions a {
    padding: 11px 12px;
    border-radius: 14px;
    text-align: center;
    color: #fff;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 700;
}

.social-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.social-summary-grid div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-summary-grid strong {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.social-summary-grid span,
.social-note,
.social-side-item p,
.social-side-suggestion p,
.social-side-alert p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
}

.social-stories-panel {
    padding-bottom: 14px;
}

.story-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 92px;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.story-chip {
    display: grid;
    gap: 8px;
    text-align: center;
    justify-items: center;
    color: #fff;
}

.story-chip strong,
.story-chip small {
    display: block;
    max-width: 92px;
}

.story-chip strong {
    font-size: 0.8rem;
    line-height: 1.15;
}

.story-chip small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.74rem;
}

.story-chip__ring {
    width: 74px;
    height: 74px;
    padding: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff4d8d, #8b5cf6, #d900ff);
}

.story-chip__avatar {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 1.02rem;
    font-weight: 900;
    color: #fff;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(255, 77, 141, 0.35), rgba(139, 92, 246, 0.35));
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.story-empty {
    display: grid;
    place-items: center;
    padding: 20px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.72);
    min-height: 92px;
}

.social-composer {
    padding: 16px 18px;
}

.social-composer form {
    display: grid;
    gap: 14px;
}

.social-composer__top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
}

.social-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.55), rgba(139, 92, 246, 0.50));
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-avatar--composer {
    width: 52px;
    height: 52px;
}

.social-composer__field {
    display: grid;
    gap: 10px;
}

.social-composer__field > span {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

.social-composer__field textarea {
    width: 100%;
    resize: vertical;
    min-height: 104px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(155, 92, 255, 0.20);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    outline: none;
    font: inherit;
    line-height: 1.6;
}

.social-composer__field textarea::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

.social-composer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.social-upload {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(155, 92, 255, 0.20);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.social-upload input {
    display: none;
}

.social-composer__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-feed-panel {
    display: grid;
    gap: 16px;
}

.social-card,
.social-empty-feed {
    padding: 18px;
    border-radius: 26px;
    background: rgba(12, 12, 28, 0.92);
    border: 1px solid rgba(155, 92, 255, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.social-card {
    display: grid;
    gap: 16px;
}

.social-card__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.social-card__author strong,
.social-card__author div {
    display: block;
}

.social-card__author strong {
    font-size: 1rem;
}

.social-card__author div {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
}

.social-card__menu {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
}

.social-post-menu-wrap {
    position: relative;
    flex: 0 0 auto;
}

.social-post-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(155, 92, 255, 0.22);
    background: rgba(10, 7, 24, 0.96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    z-index: 12;
}

.social-post-menu[hidden] {
    display: none;
}

.social-post-menu__form {
    margin: 0;
}

.social-post-menu__form button {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(244, 63, 94, 0.28);
    background: rgba(244, 63, 94, 0.08);
    color: #ffb5c1;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.social-post-menu__form button:hover {
    background: rgba(244, 63, 94, 0.18);
    border-color: rgba(244, 63, 94, 0.42);
    color: #fff;
    transform: translateY(-1px);
}

.social-card__media {
    min-height: 360px;
    border-radius: 22px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.social-card__media--placeholder {
    display: grid;
    place-items: center;
    gap: 10px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(255, 77, 141, 0.30), rgba(139, 92, 246, 0.34));
    color: #fff;
    font-size: 2.2rem;
    font-weight: 900;
}

.social-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 7, 18, 0.08), rgba(7, 7, 18, 0.40));
}

.social-card__media--profile {
    display: grid;
    place-items: end start;
    padding: 16px;
}

.social-card__media-badge {
    position: relative;
    z-index: 1;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(124, 32, 255, 0.72);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
}

.social-card__media--placeholder .social-card__media-badge {
    background: rgba(255, 255, 255, 0.12);
}

.social-card__body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.75;
    font-size: 1rem;
}

.social-card__foot {
    display: grid;
    gap: 12px;
}

.social-card__metrics {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.84rem;
}

.social-card__toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-card__toolbar-action {
    display: block;
}

.social-icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.social-icon-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-icon-btn path {
    fill: currentColor;
    stroke: none;
}

.social-icon-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(196, 132, 252, 0.32);
    background: rgba(168, 85, 247, 0.10);
}

.social-icon-btn.is-liked {
    color: #ff4d8d;
    border-color: rgba(255, 77, 141, 0.28);
    background: rgba(255, 77, 141, 0.12);
}

.social-icon-btn.is-liked:hover {
    border-color: rgba(255, 77, 141, 0.40);
    background: rgba(255, 77, 141, 0.18);
}

.social-icon-btn--reaction {
    position: relative;
    overflow: visible;
}

.social-icon-btn--reaction .social-reaction-trigger__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.social-icon-btn--reaction .social-reaction-trigger__emoji {
    font-size: 1.05rem;
}

.social-icon-btn--reaction.is-reacted {
    color: #fff;
    border-color: rgba(196, 132, 252, 0.32);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.18));
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.08), 0 10px 18px rgba(168, 85, 247, 0.16);
}

.social-icon-btn--reaction.is-like {
    color: #ff4d8d;
}

.social-icon-btn--reaction.is-love {
    color: #ff6ab8;
}

.social-icon-btn--reaction.is-smile {
    color: #f59e0b;
}

.social-icon-btn--reaction.is-devil {
    color: #cf59ff;
}

.social-icon-btn--reaction.is-fire {
    color: #ff8a3d;
}

.social-icon-btn--reaction.is-splash {
    color: #5fd3ff;
}

.social-reaction-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.social-reaction-bar {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(12, 12, 26, 0.98);
    border: 1px solid rgba(155, 92, 255, 0.20);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    transform-origin: left bottom;
    pointer-events: none;
    z-index: 30;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.social-reaction-wrap:hover .social-reaction-bar,
.social-reaction-wrap:focus-within .social-reaction-bar,
.social-reaction-wrap.is-open .social-reaction-bar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.social-reaction-bar__item {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-size: 19px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.social-reaction-bar__item:hover,
.social-reaction-bar__item.is-active {
    transform: translateY(-2px) scale(1.07);
    border-color: rgba(196, 132, 252, 0.38);
    background: rgba(168, 85, 247, 0.14);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.22);
}

.social-reaction-bar__item.is-like { color: #ff4d8d; }
.social-reaction-bar__item.is-love { color: #ff6ab8; }
.social-reaction-bar__item.is-smile { color: #f59e0b; }
.social-reaction-bar__item.is-devil { color: #cf59ff; }
.social-reaction-bar__item.is-fire { color: #ff8a3d; }
.social-reaction-bar__item.is-splash { color: #5fd3ff; }

.social-reactions-toggle {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(233, 213, 255, 0.95);
    font-size: 0.86rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.social-reactions-toggle:disabled {
    cursor: default;
    opacity: 0.72;
}

.social-reaction-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.social-reaction-summary__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid rgba(155, 92, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.74rem;
    font-weight: 700;
    color: #fff;
}

.social-reaction-summary__emoji {
    font-size: 0.82rem;
    line-height: 1;
}

.social-reaction-summary--panel {
    margin-bottom: 10px;
}

.social-reactions-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: max-height .28s ease, opacity .28s ease, transform .28s ease;
    border-top: 1px solid rgba(155, 92, 255, 0.12);
    padding-top: 0;
}

.social-reactions-panel.is-open {
    max-height: 1200px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    padding-top: 12px;
}

.social-reactions-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.86rem;
    margin-bottom: 10px;
}

.social-reactions-panel__head strong {
    color: #fff;
    font-size: 0.94rem;
}

.social-reactions-list {
    display: grid;
    gap: 10px;
}

.social-reaction-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(155, 92, 255, 0.12);
}

.social-reaction-item__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.social-reaction-item__badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(155, 92, 255, 0.14);
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
}

.social-reaction-item__badge small {
    font-size: 0.72rem;
    line-height: 1;
}

.social-reaction-item.is-self {
    border-color: rgba(244, 63, 94, 0.24);
    box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.08);
}

.social-icon-btn--secondary {
    color: rgba(255, 255, 255, 0.86);
}

.social-comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 8px;
    align-items: stretch;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height .24s ease, opacity .24s ease, transform .24s ease;
    transform: translateY(-4px);
}

.social-comment-form.is-open {
    max-height: 72px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.social-comment-form input {
    min-width: 0;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    outline: none;
    width: 100%;
    min-height: 42px;
}

.social-action {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.social-action:hover {
    transform: translateY(-1px);
    border-color: rgba(196, 132, 252, 0.32);
    background: rgba(168, 85, 247, 0.10);
}

.social-side-list {
    display: grid;
    gap: 10px;
}

.social-side-item,
.social-side-suggestion,
.social-side-alert {
    padding: 14px 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-side-item strong,
.social-side-suggestion strong,
.social-side-alert strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
}

.social-side-person {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.social-side-person__avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    background-size: cover;
    background-position: center;
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.55), rgba(139, 92, 246, 0.50));
}

.social-side-person__body {
    display: grid;
    gap: 2px;
}

.social-side-person__body strong {
    color: #fff;
}

.social-side-person__body small {
    color: rgba(255, 255, 255, 0.68);
}

.social-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-tag-cloud a,
.social-tag-cloud span {
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
}

.social-empty-inline {
    color: rgba(255, 255, 255, 0.68);
}

.social-feed-sentinel {
    height: 1px;
}

.home-email-banner {
    margin-top: 12px;
    margin-bottom: 16px;
}

@media (max-width: 1280px) {
    .social-home {
        grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    }

    .social-col--right {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        position: static;
    }
}

@media (max-width: 1024px) {
    .social-home {
        grid-template-columns: 1fr;
    }

    .social-landing-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .social-col--left,
    .social-col--right {
        position: static;
        grid-template-columns: 1fr;
    }

    .social-card__media {
        min-height: 300px;
    }
}

@media (max-width: 760px) {
    body.home-page .home-main {
        padding-top: 108px;
    }

    .social-composer__top,
    .social-card__head {
        grid-template-columns: 1fr;
    }

    .social-card__toolbar {
        gap: 8px;
    }

    .social-icon-btn {
        width: 40px;
        height: 40px;
    }

    .social-comment-form {
        grid-template-columns: minmax(0, 1fr) 108px;
    }

    .social-profile-panel__cover {
        min-height: 96px;
    }

    .social-mini-stats,
    .social-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .social-quick-actions {
        grid-template-columns: 1fr;
    }

    .social-card__media {
        min-height: 260px;
    }
}

@media (max-width: 540px) {
    body.home-page .home-main {
        padding-top: 116px;
    }

    .social-mini-stats,
    .social-summary-grid {
        grid-template-columns: 1fr;
    }

    .story-strip {
        grid-auto-columns: 84px;
    }

    .story-chip__ring {
        width: 68px;
        height: 68px;
    }
}

@media (max-width: 1180px) {
    .home-topbar-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "brand search toolbar"
            "menu menu menu";
        padding-block: 12px 14px;
    }

    .brand-home {
        grid-area: brand;
    }

    .home-search {
        grid-area: search;
    }

    .home-menu {
        grid-area: menu;
        justify-content: flex-start;
    }

    .home-toolbar {
        grid-area: toolbar;
    }

    .home-hero-panel,
    .home-main-grid {
        grid-template-columns: 1fr;
    }

    .home-feed-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body.home-page .home-main {
        padding-top: 168px;
    }

    .home-topbar-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "search"
            "menu"
            "toolbar";
    }

    .home-toolbar {
        justify-content: flex-start;
    }

    .home-email-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-kpi-grid,
    .home-stats {
        grid-template-columns: 1fr 1fr;
    }

    .home-feed-card__media {
        min-height: 240px;
    }
}

@media (max-width: 540px) {
    body.home-page .home-main {
        padding-top: 184px;
    }

    .home-kpi-grid,
    .home-stats {
        grid-template-columns: 1fr;
    }

    .home-hero-copy,
    .home-spotlight,
    .home-panel {
        padding: 18px;
    }

    .home-search {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .home-search button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

.discover-card,
.metric,
.content-card {
    background: rgba(16, 17, 38, 0.94) !important;
    border: 1px solid var(--sf-border) !important;
}

.discover-avatar {
    background: linear-gradient(135deg, var(--sf-purple), var(--sf-magenta), var(--sf-red)) !important;
    color: #fff !important;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.08) !important;
}

.progress-bar span {
    background: linear-gradient(135deg, #7C20FF 0%, #D900FF 55%, #FF253A 100%) !important;
}

/* SexFan social home override */
body.home-page .home-main {
    padding: 56px 0 40px;
}

.home-topbar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand search toolbar";
}

.brand-home {
    grid-area: brand;
    min-width: 0;
}

.home-search {
    grid-area: search;
    max-width: 760px;
}

.home-toolbar {
    grid-area: toolbar;
    flex-wrap: nowrap;
}

.home-premium-btn {
    white-space: nowrap;
}

.home-toolbar-btn {
    position: relative;
}

.home-user-chip {
    min-width: 0;
}

.social-landing-head {
    margin: 14px auto 16px;
}

.social-home {
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 320px);
    gap: 18px;
}

.social-col--center {
    min-width: 0;
}

.social-col--right {
    top: 110px;
    grid-template-columns: 1fr;
}

.social-panel,
.social-card,
.social-empty-feed {
    backdrop-filter: blur(16px);
}

.social-feed-panel {
    padding-bottom: 8px;
}

.story-strip {
    padding-bottom: 4px;
}

.social-card {
    border-radius: 28px;
}

.social-card__media {
    min-height: 380px;
}

.social-card__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.social-card__actions--ghost {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.social-action {
    min-height: 44px;
}

.social-side-person {
    padding: 12px 13px;
}

.social-side-item,
.social-side-alert {
    border: 1px solid rgba(155, 92, 255, 0.12);
}

.social-tag-cloud a,
.social-tag-cloud span {
    background: rgba(255, 255, 255, 0.05);
}

.social-feed-sentinel {
    margin-top: -4px;
}

.home-email-banner {
    margin-top: 10px;
    margin-bottom: 16px;
}

.social-feed-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 10px auto 12px;
}

.social-feed-toolbar__tabs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-feed-toolbar__tabs button {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
    cursor: pointer;
}

.social-feed-toolbar__tabs button.is-active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.82), rgba(255, 77, 141, 0.88));
    border-color: transparent;
    color: #fff;
}

.social-landing-head {
    display: none;
}

.social-home {
    grid-template-columns: minmax(0, 1.28fr) minmax(250px, 300px);
    gap: 16px;
}

.social-col {
    gap: 14px;
}

.social-panel {
    padding: 15px;
    border-radius: 22px;
    background: rgba(10, 10, 24, 0.90);
    border-color: rgba(155, 92, 255, 0.14);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.20);
}

.social-panel__head {
    margin-bottom: 12px;
}

.social-panel__head h2 {
    font-size: 1.18rem;
}

.social-stories-panel {
    padding-bottom: 12px;
}

.story-strip {
    grid-auto-columns: 88px;
    gap: 10px;
}

.story-chip {
    padding: 6px 4px 0;
}

.story-chip strong {
    font-size: 0.80rem;
    line-height: 1.15;
}

.story-chip small {
    font-size: 0.73rem;
}

.social-card {
    padding: 15px;
    border-radius: 22px;
    gap: 12px;
    background: rgba(10, 10, 24, 0.90);
    border-color: rgba(155, 92, 255, 0.14);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.20);
}

.social-card__media {
    min-height: 320px;
    border-radius: 18px;
}

.social-card__body p {
    line-height: 1.65;
}

.social-card__metrics {
    gap: 10px 14px;
    font-size: 0.88rem;
}

.social-comments-toggle {
    width: fit-content;
    display: inline-flex;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(216, 180, 254, 0.96);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: color .2s ease, opacity .2s ease;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.social-comments-toggle:hover {
    color: #fff;
}

.social-comments-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: max-height .28s ease, opacity .28s ease, transform .28s ease;
    border-top: 1px solid rgba(155, 92, 255, 0.12);
    padding-top: 0;
}

.social-comments-panel.is-open {
    max-height: 1200px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    padding-top: 12px;
}

.social-comments-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.86rem;
    margin-bottom: 10px;
}

.social-comments-panel__head strong {
    color: #fff;
    font-size: 0.94rem;
}

.social-comments-list {
    display: grid;
    gap: 10px;
}

.social-comment-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(155, 92, 255, 0.12);
}

.social-avatar--comment {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
}

.social-comment-item__content {
    min-width: 0;
}

.social-comment-item__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 6px;
}

.social-comment-item__meta-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.social-comment-item__meta strong {
    font-size: 0.92rem;
    color: #fff;
}

.social-comment-item__meta span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.64);
}

.social-comment-item__delete {
    flex: 0 0 auto;
}

.social-comment-item__delete button {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(244, 63, 94, 0.28);
    background: rgba(244, 63, 94, 0.08);
    color: #ffb5c1;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.social-comment-item__delete button:hover {
    background: rgba(244, 63, 94, 0.18);
    border-color: rgba(244, 63, 94, 0.42);
    color: #fff;
    transform: translateY(-1px);
}

.social-comment-item__content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.94rem;
    line-height: 1.45;
    word-break: break-word;
}

.social-action {
    min-height: 40px;
}

.social-col--right {
    top: 108px;
    gap: 14px;
}

.social-side-person,
.social-side-item,
.social-side-alert {
    border-radius: 16px;
}

.social-side-person {
    padding: 10px 12px;
}

.social-side-person__avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.social-side-person__body strong {
    font-size: 0.95rem;
}

.social-side-person__body small,
.social-side-item p,
.social-side-alert p,
.social-note {
    font-size: 0.90rem;
    line-height: 1.45;
}

.social-tag-cloud {
    gap: 8px;
}

.social-tag-cloud a,
.social-tag-cloud span {
    padding: 9px 11px;
    font-size: 0.78rem;
}

@media (max-width: 1280px) {
    .social-home {
        grid-template-columns: minmax(0, 1fr);
    }

    .social-col--right {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .home-topbar-inner {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "brand toolbar"
            "search search";
        gap: 12px;
    }

    .home-toolbar {
        justify-content: flex-end;
    }

    .social-landing-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .social-feed-toolbar {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    body.home-page .home-main {
        padding-top: 136px;
    }

    .home-topbar-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "search"
            "toolbar";
    }

    .home-toolbar {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .social-col--right {
        grid-template-columns: 1fr;
    }

    .social-card__media {
        min-height: 0;
    }

    .social-reaction-bar {
        max-width: min(100%, 320px);
        flex-wrap: wrap;
    }
}

@media (max-width: 540px) {
    body.home-page .home-main {
        padding-top: 146px;
    }

    .home-search {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .home-search button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .social-card__actions,
    .social-card__actions--ghost {
        grid-template-columns: 1fr;
    }

    .social-card__media {
        min-height: 260px;
    }

    .social-card__metrics {
        align-items: flex-start;
        gap: 8px;
    }

    .social-reactions-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .social-reaction-bar {
        max-width: calc(100vw - 48px);
        flex-wrap: wrap;
    }

    .social-comment-item {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 8px;
        padding: 9px 10px;
    }

    .social-avatar--comment {
        width: 36px;
        height: 36px;
    }

    .social-comment-item__meta {
        flex-direction: column;
    }

    .social-comment-item__delete {
        align-self: flex-start;
    }

    .social-feed-toolbar {
        justify-content: flex-start;
    }

    .social-feed-toolbar__tabs {
        width: 100%;
    }
}

/* Minimal SexFan home override */
body.home-page .social-landing-head,
body.home-page .social-feed-toolbar,
body.home-page .social-col--right {
    display: none !important;
}

body.home-page .social-stories-panel {
    display: block !important;
}

body.home-page .social-home {
    width: min(1120px, calc(100vw - 24px));
    margin: 12px auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

body.home-page .social-col--center {
    min-width: 0;
    display: grid;
    gap: 12px;
}

body.home-page .social-panel,
body.home-page .social-card,
body.home-page .social-empty-feed {
    border-radius: 18px;
    background: rgba(9, 9, 24, 0.96);
    border: 1px solid rgba(155, 92, 255, 0.12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

body.home-page .social-stories-panel {
    padding: 12px;
    background: rgba(12, 12, 30, 0.94);
}

body.home-page .social-stories-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

body.home-page .social-stories-panel__head > div {
    display: grid;
    gap: 2px;
}

body.home-page .social-panel__eyebrow {
    display: inline-flex;
    margin-bottom: 3px;
    color: rgba(216, 180, 254, 0.9);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.home-page .social-panel__head h2 {
    margin: 0;
    font-size: 1.02rem;
}

body.home-page .social-panel__link {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.9rem;
    font-weight: 700;
}

body.home-page .story-strip--compact {
    grid-auto-columns: 74px;
    gap: 8px;
}

body.home-page .story-chip {
    padding: 4px 2px 0;
}

body.home-page .story-chip strong {
    font-size: 0.74rem;
}

body.home-page .story-chip small {
    font-size: 0.68rem;
}

body.home-page .social-composer {
    padding: 12px;
    background: rgba(14, 14, 34, 0.96);
    border: 1px solid rgba(155, 92, 255, 0.14);
    box-shadow: 0 8px 20px rgba(18, 12, 44, 0.12);
}

body.home-page .social-composer__top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

body.home-page .social-avatar--composer {
    width: 44px;
    height: 44px;
}

body.home-page .social-composer__trigger {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(155, 92, 255, 0.18);
    color: rgba(28, 26, 48, 0.74);
    border-radius: 999px;
    padding: 0 12px 0 18px;
    gap: 14px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(18, 12, 44, 0.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.home-page .social-composer__trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(18, 12, 44, 0.10);
    border-color: rgba(155, 92, 255, 0.28);
}

body.home-page .social-composer__trigger-text {
    min-width: 0;
    text-align: left;
    font-size: 0.98rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.home-page .social-composer__trigger-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.20));
    color: #6d28d9;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

body.home-page .social-composer__trigger-icon svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

body.home-page .social-composer__bottom,
body.home-page .social-upload {
    display: none !important;
}

body.home-page .social-feed-panel {
    display: grid;
    gap: 12px;
}

body.home-page .social-empty-feed {
    min-height: 180px;
    display: grid;
    place-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
}

body.messages-page {
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.08), transparent 18%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.10), transparent 18%),
        linear-gradient(180deg, #080812 0%, #0f1121 100%);
}

body.messages-page .messages-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    background: rgba(7, 7, 13, 0.90);
    backdrop-filter: blur(16px);
}

body.messages-page .messages-topbar__inner {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    padding-block: 10px;
    box-sizing: border-box;
}

body.messages-page .messages-topbar__title strong {
    display: block;
    color: #f8fafc;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    letter-spacing: -0.03em;
}

body.messages-page .messages-topbar__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

body.messages-page .messages-topbar__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

body.messages-page .messages-topbar__icon:hover,
body.messages-page .messages-topbar__icon:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(244, 114, 182, 0.34);
    background: rgba(255, 255, 255, 0.08);
}

body.messages-page .messages-topbar__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

body.messages-page .messages-main {
    display: grid;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
}

body.messages-page .messages-toolbar,
body.messages-page .messages-sidebar,
body.messages-page .messages-thread-panel {
    background: rgba(15, 17, 31, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.18);
    backdrop-filter: blur(14px);
}

body.messages-page .messages-toolbar {
    display: grid;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 24px;
}

body.messages-page .messages-toolbar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

body.messages-page .messages-toolbar__title h1 {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #f8fafc;
}

body.messages-page .messages-toolbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.messages-page .messages-toolbar__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.messages-page .messages-toolbar__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

body.messages-page .messages-tabs,
body.messages-page .messages-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

body.messages-page .messages-tabs::-webkit-scrollbar,
body.messages-page .messages-filters::-webkit-scrollbar {
    display: none;
}

body.messages-page .messages-tab,
body.messages-page .messages-chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
}

body.messages-page .messages-tab.is-active,
body.messages-page .messages-chip.is-active {
    border-color: rgba(244, 114, 182, 0.35);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(255, 77, 141, 0.18));
    color: #f8fafc;
}

body.messages-page .messages-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    min-width: 0;
}

body.messages-page .messages-sidebar,
body.messages-page .messages-thread-panel {
    border-radius: 24px;
    overflow: hidden;
    min-width: 0;
}

body.messages-page .messages-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}

body.messages-page .messages-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.messages-page .messages-sidebar__head h2 {
    margin: 4px 0 0;
    color: #f8fafc;
    font-size: 1.05rem;
    line-height: 1.2;
}

body.messages-page .messages-sidebar__count {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(124, 58, 237, 0.16);
    border: 1px solid rgba(124, 58, 237, 0.20);
    color: #f8fafc;
    font-weight: 800;
}

body.messages-page .messages-sidebar__list {
    display: grid;
    gap: 10px;
    max-height: min(74vh, 780px);
    overflow: auto;
    padding-right: 4px;
}

body.messages-page .messages-sidebar__empty {
    display: grid;
    gap: 6px;
    padding: 18px 6px;
    color: #cbd5e1;
}

body.messages-page .messages-conversation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.10);
    background: rgba(255, 255, 255, 0.03);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

body.messages-page .messages-conversation:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(196, 132, 252, 0.24);
}

body.messages-page .messages-conversation.is-active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 77, 141, 0.10));
    border-color: rgba(196, 132, 252, 0.28);
}

body.messages-page .messages-conversation__avatar,
body.messages-page .messages-thread__avatar,
body.messages-page .message-row__avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.55), rgba(124, 58, 237, 0.55));
    color: #fff;
    font-weight: 900;
    background-size: cover;
    background-position: center;
    position: relative;
    flex: none;
}

body.messages-page .messages-conversation__avatar.has-image,
body.messages-page .messages-thread__avatar.has-image,
body.messages-page .message-row__avatar.has-image {
    color: transparent;
}

body.messages-page .messages-conversation__avatar__dot,
body.messages-page .messages-thread__avatar__dot,
body.messages-page .message-row__avatar__dot {
    position: absolute;
    left: -1px;
    bottom: -1px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid #080812;
}

body.messages-page .messages-conversation__avatar__official,
body.messages-page .messages-thread__avatar__official,
body.messages-page .message-row__avatar__official {
    position: absolute;
    right: -2px;
    top: -2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    background: linear-gradient(135deg, #8b5cf6, #ff4d8d);
    color: #fff;
    border: 2px solid #080812;
}

body.messages-page .messages-conversation__body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

body.messages-page .messages-conversation__title-line,
body.messages-page .messages-thread__title-line,
body.messages-page .message-bubble__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

body.messages-page .messages-conversation__title-line strong,
body.messages-page .messages-thread__title-line h2 {
    color: #f8fafc;
    font-size: 0.98rem;
    line-height: 1.1;
    margin: 0;
}

body.messages-page .messages-conversation__snippet,
body.messages-page .messages-conversation__location,
body.messages-page .messages-conversation__time,
body.messages-page .messages-thread__status,
body.messages-page .messages-thread__location,
body.messages-page .message-bubble__time {
    color: #a5adbd;
    font-size: 0.86rem;
    line-height: 1.4;
}

body.messages-page .messages-conversation__snippet {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.messages-page .messages-conversation__meta {
    display: grid;
    justify-items: end;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.78rem;
}

body.messages-page .messages-conversation__unread {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #ff4d8d, #8b5cf6);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

body.messages-page .messages-thread-panel {
    display: flex;
    min-width: 0;
    min-height: min(74vh, 780px);
}

body.messages-page .messages-thread {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
}

body.messages-page .messages-thread__mobilebar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px 0;
}

body.messages-page .messages-thread__back {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.messages-page .messages-thread__mobiletitle {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.messages-page .messages-thread__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

body.messages-page .messages-thread__profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body.messages-page .messages-thread__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

body.messages-page .messages-thread__status {
    color: #cbd5e1;
}

body.messages-page .messages-thread__messages {
    flex: 1;
    overflow: auto;
    padding: 16px 18px;
    display: grid;
    gap: 12px;
    align-content: start;
}

body.messages-page .messages-thread__empty-inline,
body.messages-page .messages-empty {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    padding: 28px 18px;
    color: #cbd5e1;
}

body.messages-page .messages-empty h2 {
    color: #f8fafc;
    font-size: 1.1rem;
    margin: 0;
}

body.messages-page .messages-empty p,
body.messages-page .messages-thread__empty-inline p {
    margin: 0;
    color: #a5adbd;
}

body.messages-page .messages-empty__icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(255, 77, 141, 0.18));
    color: #fff;
    font-size: 1.8rem;
}

body.messages-page .message-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

body.messages-page .message-row.is-self {
    justify-content: flex-end;
}

body.messages-page .message-bubble {
    max-width: min(78%, 640px);
    border-radius: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
}

body.messages-page .message-bubble.is-self {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 77, 141, 0.12));
    border-color: rgba(196, 132, 252, 0.18);
}

body.messages-page .message-bubble__body {
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

body.messages-page .message-bubble__time {
    display: block;
    margin-top: 8px;
    font-size: 0.76rem;
    color: #94a3b8;
}

body.messages-page .messages-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 14px 18px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.10);
}

body.messages-page .messages-compose textarea {
    width: 100%;
    min-height: 46px;
    max-height: 180px;
    resize: none;
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    outline: none;
    line-height: 1.6;
}

body.messages-page .messages-compose textarea::placeholder {
    color: #8e97aa;
}

body.messages-page .messages-compose textarea:focus {
    border-color: rgba(196, 132, 252, 0.36);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

body.messages-page .messages-compose .btn {
    min-height: 46px;
    padding-inline: 18px;
}

body.messages-page .messages-compose__error {
    grid-column: 1 / -1;
    margin: -2px 0 0;
    color: #fda4af;
    font-size: 0.86rem;
}

body.messages-page .messages-thread.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

@media (max-width: 980px) {
    body.messages-page .messages-main {
        padding-top: 10px;
        padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.messages-page .messages-layout {
        grid-template-columns: 1fr;
    }

    body.messages-page .messages-layout:not(.messages-layout--chat-open) .messages-thread-panel {
        display: none;
    }

    body.messages-page .messages-layout.messages-layout--chat-open .messages-sidebar {
        display: none;
    }

    body.messages-page .messages-thread-panel {
        min-height: calc(100vh - 220px);
    }

    body.messages-page .messages-thread__mobilebar {
        display: flex;
    }

    body.messages-page .messages-thread__head,
    body.messages-page .messages-thread__messages,
    body.messages-page .messages-compose {
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (max-width: 720px) {
    body.messages-page .messages-main {
        padding-top: 8px;
    }

    body.messages-page .messages-toolbar {
        border-radius: 20px;
        padding: 12px 14px;
    }

    body.messages-page .messages-tabs,
    body.messages-page .messages-filters {
        gap: 6px;
    }

    body.messages-page .messages-tab,
    body.messages-page .messages-chip {
        min-height: 34px;
        padding-inline: 12px;
        font-size: 0.84rem;
    }

    body.messages-page .messages-sidebar,
    body.messages-page .messages-thread-panel {
        border-radius: 20px;
    }

    body.messages-page .messages-conversation {
        padding: 11px;
        gap: 10px;
    }

    body.messages-page .message-bubble {
        max-width: 100%;
    }

    body.messages-page .messages-compose {
        grid-template-columns: 1fr;
    }

    body.messages-page .messages-compose .btn {
        width: 100%;
    }
}

body.messages-page {
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.08), transparent 18%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.10), transparent 18%),
        linear-gradient(180deg, #080812 0%, #0f1121 100%);
}

body.messages-page .messages-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    background: rgba(7, 7, 13, 0.90);
    backdrop-filter: blur(16px);
}

body.messages-page .messages-topbar__inner {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    padding-block: 10px;
    box-sizing: border-box;
}

body.messages-page .messages-topbar__title strong {
    display: block;
    color: #f8fafc;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    letter-spacing: -0.03em;
}

body.messages-page .messages-topbar__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

body.messages-page .messages-topbar__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

body.messages-page .messages-topbar__icon:hover,
body.messages-page .messages-topbar__icon:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(244, 114, 182, 0.34);
    background: rgba(255, 255, 255, 0.08);
}

body.messages-page .messages-topbar__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

body.messages-page .messages-main {
    display: grid;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
}

body.messages-page .messages-toolbar,
body.messages-page .messages-sidebar,
body.messages-page .messages-thread-panel {
    background: rgba(15, 17, 31, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.18);
    backdrop-filter: blur(14px);
}

body.messages-page .messages-toolbar {
    display: grid;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 24px;
}

body.messages-page .messages-toolbar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

body.messages-page .messages-toolbar__title h1 {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #f8fafc;
}

body.messages-page .messages-toolbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.messages-page .messages-toolbar__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.messages-page .messages-toolbar__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

body.messages-page .messages-tabs,
body.messages-page .messages-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

body.messages-page .messages-tabs::-webkit-scrollbar,
body.messages-page .messages-filters::-webkit-scrollbar {
    display: none;
}

body.messages-page .messages-tab,
body.messages-page .messages-chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
}

body.messages-page .messages-tab.is-active,
body.messages-page .messages-chip.is-active {
    border-color: rgba(244, 114, 182, 0.35);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(255, 77, 141, 0.18));
    color: #f8fafc;
}

body.messages-page .messages-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    min-width: 0;
}

body.messages-page .messages-sidebar,
body.messages-page .messages-thread-panel {
    border-radius: 24px;
    overflow: hidden;
    min-width: 0;
}

body.messages-page .messages-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}

body.messages-page .messages-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.messages-page .messages-sidebar__head h2 {
    margin: 4px 0 0;
    color: #f8fafc;
    font-size: 1.05rem;
    line-height: 1.2;
}

body.messages-page .messages-sidebar__count {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(124, 58, 237, 0.16);
    border: 1px solid rgba(124, 58, 237, 0.20);
    color: #f8fafc;
    font-weight: 800;
}

body.messages-page .messages-sidebar__list {
    display: grid;
    gap: 10px;
    max-height: min(74vh, 780px);
    overflow: auto;
    padding-right: 4px;
}

body.messages-page .messages-sidebar__empty {
    display: grid;
    gap: 6px;
    padding: 18px 6px;
    color: #cbd5e1;
}

body.messages-page .messages-conversation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.10);
    background: rgba(255, 255, 255, 0.03);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

body.messages-page .messages-conversation:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(196, 132, 252, 0.24);
}

body.messages-page .messages-conversation.is-active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 77, 141, 0.10));
    border-color: rgba(196, 132, 252, 0.28);
}

body.messages-page .messages-conversation__avatar,
body.messages-page .messages-thread__avatar,
body.messages-page .message-row__avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.55), rgba(124, 58, 237, 0.55));
    color: #fff;
    font-weight: 900;
    background-size: cover;
    background-position: center;
    position: relative;
    flex: none;
}

body.messages-page .messages-conversation__avatar.has-image,
body.messages-page .messages-thread__avatar.has-image,
body.messages-page .message-row__avatar.has-image {
    color: transparent;
}

body.messages-page .messages-conversation__avatar__dot,
body.messages-page .messages-thread__avatar__dot,
body.messages-page .message-row__avatar__dot {
    position: absolute;
    left: -1px;
    bottom: -1px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid #080812;
}

body.messages-page .messages-conversation__avatar__official,
body.messages-page .messages-thread__avatar__official,
body.messages-page .message-row__avatar__official {
    position: absolute;
    right: -2px;
    top: -2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    background: linear-gradient(135deg, #8b5cf6, #ff4d8d);
    color: #fff;
    border: 2px solid #080812;
}

body.messages-page .messages-conversation__body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

body.messages-page .messages-conversation__title-line,
body.messages-page .messages-thread__title-line,
body.messages-page .message-bubble__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

body.messages-page .messages-conversation__title-line strong,
body.messages-page .messages-thread__title-line h2 {
    color: #f8fafc;
    font-size: 0.98rem;
    line-height: 1.1;
    margin: 0;
}

body.messages-page .messages-conversation__snippet,
body.messages-page .messages-conversation__location,
body.messages-page .messages-conversation__time,
body.messages-page .messages-thread__status,
body.messages-page .messages-thread__location,
body.messages-page .message-bubble__time {
    color: #a5adbd;
    font-size: 0.86rem;
    line-height: 1.4;
}

body.messages-page .messages-conversation__snippet {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.messages-page .messages-conversation__meta {
    display: grid;
    justify-items: end;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.78rem;
}

body.messages-page .messages-conversation__unread {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #ff4d8d, #8b5cf6);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

body.messages-page .messages-thread-panel {
    display: flex;
    min-width: 0;
    min-height: min(74vh, 780px);
}

body.messages-page .messages-thread {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
}

body.messages-page .messages-thread__mobilebar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px 0;
}

body.messages-page .messages-thread__back {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.messages-page .messages-thread__mobiletitle {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.messages-page .messages-thread__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

body.messages-page .messages-thread__profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body.messages-page .messages-thread__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

body.messages-page .messages-thread__status {
    color: #cbd5e1;
}

body.messages-page .messages-thread__messages {
    flex: 1;
    overflow: auto;
    padding: 16px 18px;
    display: grid;
    gap: 12px;
    align-content: start;
}

body.messages-page .messages-thread__empty-inline,
body.messages-page .messages-empty {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    padding: 28px 18px;
    color: #cbd5e1;
}

body.messages-page .messages-empty h2 {
    color: #f8fafc;
    font-size: 1.1rem;
    margin: 0;
}

body.messages-page .messages-empty p,
body.messages-page .messages-thread__empty-inline p {
    margin: 0;
    color: #a5adbd;
}

body.messages-page .messages-empty__icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(255, 77, 141, 0.18));
    color: #fff;
    font-size: 1.8rem;
}

body.messages-page .message-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

body.messages-page .message-row.is-self {
    justify-content: flex-end;
}

body.messages-page .message-bubble {
    max-width: min(78%, 640px);
    border-radius: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
}

body.messages-page .message-bubble.is-self {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 77, 141, 0.12));
    border-color: rgba(196, 132, 252, 0.18);
}

body.messages-page .message-bubble__body {
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

body.messages-page .message-bubble__time {
    display: block;
    margin-top: 8px;
    font-size: 0.76rem;
    color: #94a3b8;
}

body.messages-page .messages-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 14px 18px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.10);
}

body.messages-page .messages-compose textarea {
    width: 100%;
    min-height: 46px;
    max-height: 180px;
    resize: none;
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    outline: none;
    line-height: 1.6;
}

body.messages-page .messages-compose textarea::placeholder {
    color: #8e97aa;
}

body.messages-page .messages-compose textarea:focus {
    border-color: rgba(196, 132, 252, 0.36);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

body.messages-page .messages-compose .btn {
    min-height: 46px;
    padding-inline: 18px;
}

body.messages-page .messages-compose__error {
    grid-column: 1 / -1;
    margin: -2px 0 0;
    color: #fda4af;
    font-size: 0.86rem;
}

body.messages-page .messages-thread.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

@media (max-width: 980px) {
    body.messages-page .messages-main {
        padding-top: 10px;
        padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.messages-page .messages-layout {
        grid-template-columns: 1fr;
    }

    body.messages-page .messages-layout:not(.messages-layout--chat-open) .messages-thread-panel {
        display: none;
    }

    body.messages-page .messages-layout.messages-layout--chat-open .messages-sidebar {
        display: none;
    }

    body.messages-page .messages-thread-panel {
        min-height: calc(100vh - 220px);
    }

    body.messages-page .messages-thread__mobilebar {
        display: flex;
    }

    body.messages-page .messages-thread__head,
    body.messages-page .messages-thread__messages,
    body.messages-page .messages-compose {
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (max-width: 720px) {
    body.messages-page .messages-main {
        padding-top: 8px;
    }

    body.messages-page .messages-toolbar {
        border-radius: 20px;
        padding: 12px 14px;
    }

    body.messages-page .messages-tabs,
    body.messages-page .messages-filters {
        gap: 6px;
    }

    body.messages-page .messages-tab,
    body.messages-page .messages-chip {
        min-height: 34px;
        padding-inline: 12px;
        font-size: 0.84rem;
    }

    body.messages-page .messages-sidebar,
    body.messages-page .messages-thread-panel {
        border-radius: 20px;
    }

    body.messages-page .messages-conversation {
        padding: 11px;
        gap: 10px;
    }

    body.messages-page .message-bubble {
        max-width: 100%;
    }

    body.messages-page .messages-compose {
        grid-template-columns: 1fr;
    }

    body.messages-page .messages-compose .btn {
        width: 100%;
    }
}

body.home-page .home-feed-note {
    margin: 8px 0 0;
    padding: 8px 2px 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
}

body.home-page .home-feed-note--favorites {
    color: rgba(255, 255, 255, 0.56);
}

body.home-page .home-feed-note {
    margin: 8px 0 0;
    padding: 8px 2px 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
}

body.home-page .home-feed-note--favorites {
    color: rgba(255, 255, 255, 0.56);
}

body.home-page .social-card {
    padding: 12px;
}

body.home-page .social-card__media {
    min-height: 0;
}

body.home-page .social-card__media--single {
    width: 100%;
    height: clamp(220px, 34vw, 300px);
    min-height: 220px;
    border-radius: 18px;
    overflow: hidden;
    background: #04040b;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.home-page .social-card__media--single img,
body.home-page .social-card__media--single video {
    width: 100%;
    height: 100%;
    display: block;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
    background: #000;
}

body.home-page .social-card__media--single.is-video::after {
    display: none;
}

body.home-page .social-card__media--single.is-video {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    background: transparent;
    height: auto;
    min-height: 0;
}

body.home-page .social-card__media--single.is-video > .social-video-player {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    height: min(58vh, 560px);
    min-height: 320px;
    max-height: min(58vh, 560px);
}

body.home-page .social-video-player {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: min(58vh, 560px);
    min-height: 320px;
    max-height: min(58vh, 560px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    border-radius: 18px;
    box-sizing: border-box;
    margin-inline: auto;
    aspect-ratio: var(--video-aspect, 16 / 9);
    isolation: isolate;
    cursor: pointer;
    touch-action: manipulation;
}

body.home-page .social-video-player.is-portrait {
    width: 100%;
    max-width: 100%;
    height: min(70vh, 700px);
    min-height: 360px;
    max-height: min(70vh, 700px);
}

body.home-page .social-video-player__media {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center center;
    background: #000;
}

body.home-page .social-video-player__play {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.24));
    color: #fff;
    cursor: pointer;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
    opacity: 1;
}

body.home-page .social-video-player__play span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 4px solid rgba(255, 255, 255, 0.94);
    background: rgba(0, 0, 0, 0.36);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.40);
    font-size: 2.1rem;
    line-height: 1;
    padding-left: 4px;
    transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

body.home-page .social-video-player__media {
    position: relative;
    z-index: 1;
    cursor: pointer;
}

body.home-page .social-video-player__play.is-visible {
    opacity: 1;
}

body.home-page .social-video-player__play.is-paused span {
    padding-left: 0;
}

body.home-page .social-video-player__play.is-paused span,
body.home-page .social-video-player__play.is-playing-flash span {
    font-size: 1.95rem;
}

body.home-page .social-video-player__play.is-hidden {
    opacity: 0;
    transform: scale(0.92);
}

body.home-page .social-video-player__play.is-resting span {
    font-size: 2.15rem;
}

body.home-page .social-video-player__loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.24));
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease;
}

body.home-page .social-video-player.is-loading .social-video-player__loading {
    opacity: 1;
}

body.home-page .social-video-player__loading span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.20);
    border-top-color: rgba(255, 255, 255, 0.94);
    animation: sfVideoSpin 0.9s linear infinite;
}

@keyframes sfVideoSpin {
    to {
        transform: rotate(360deg);
    }
}

body.home-page .social-video-player__error {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 4;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(88, 18, 30, 0.88);
    border: 1px solid rgba(255, 71, 122, 0.22);
    color: #ffd7df;
    font-size: 0.92rem;
    line-height: 1.35;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.30);
}

body.home-page .social-card__carousel {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #04040b;
}

body.home-page .social-card__carousel-track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-y;
    cursor: grab;
}

body.home-page .social-card__carousel-track::-webkit-scrollbar {
    display: none;
}

body.home-page .social-card__carousel-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

body.home-page .social-card__carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: clamp(220px, 34vw, 300px);
    min-height: 220px;
    scroll-snap-align: start;
    margin: 0;
    background: #04040b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.home-page .social-card__carousel-slide img,
body.home-page .social-card__carousel-slide video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center center;
    background: #000;
}

body.home-page .social-card__media--single video,
body.home-page .social-card__carousel-slide video {
    border-radius: inherit;
}

body.home-page .social-card__media--single video::-webkit-media-controls-panel,
body.home-page .social-card__carousel-slide video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.6);
}

body.home-page .social-card__carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(7, 7, 18, 0.50);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

body.home-page .social-card__carousel-arrow:hover {
    background: rgba(7, 7, 18, 0.72);
    transform: translateY(-50%) scale(1.03);
}

body.home-page .social-card__carousel-arrow:disabled {
    opacity: 0.28;
    cursor: default;
}

body.home-page .social-card__carousel-arrow--prev {
    left: 12px;
}

body.home-page .social-card__carousel-arrow--next {
    right: 12px;
}

body.home-page .social-card__carousel-arrow span {
    font-size: 1.9rem;
    line-height: 1;
    margin-top: -2px;
}

body.home-page .social-card__carousel-counter {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(7, 7, 18, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
}

body.home-page .social-card__toolbar {
    gap: 8px;
}

@media (max-width: 760px) {
    body.home-page .social-home {
        width: min(100vw - 20px, 1120px);
        margin-top: 12px;
    }

    body.home-page .social-composer__bottom {
        flex-direction: column;
        align-items: stretch;
    }

    body.home-page .social-composer__top {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.home-page .social-upload,
    body.home-page .social-composer__bottom .btn {
        width: 100%;
    }

    body.home-page .social-comment-form {
        grid-template-columns: minmax(0, 1fr) 96px;
    }

    body.home-page .social-card__media {
        min-height: 0;
    }

    body.home-page .social-card__media--single,
    body.home-page .social-card__carousel-slide {
        height: clamp(200px, 58vw, 260px);
        min-height: 200px;
    }

    body.home-page .social-card__media--single.is-video > .social-video-player {
        height: min(45vh, 420px);
        min-height: 220px;
        max-height: min(45vh, 420px);
    }

    body.home-page .social-video-player {
        height: min(45vh, 420px);
        min-height: 220px;
        max-height: min(45vh, 420px);
    }

    body.home-page .social-video-player.is-portrait {
        height: min(65vh, 560px);
        min-height: 260px;
        max-height: min(65vh, 560px);
    }

    body.home-page .social-card__carousel-arrow {
        width: 38px;
        height: 38px;
    }

    body.home-page .social-card__carousel-arrow span {
        font-size: 1.7rem;
    }
}

body.modal-open {
    overflow: hidden;
}

body.search-page .app-main-minimal {
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 180px !important;
}

body.search-page {
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.09), transparent 18%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 16%),
        linear-gradient(180deg, #090914 0%, #101122 100%);
    color: #e5e7eb;
}

body.search-page .search-main {
    display: grid;
    gap: 12px;
}

body.search-page .search-topbar {
    position: sticky;
    top: 0;
    z-index: 95;
    background: rgba(9, 10, 19, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.16);
    backdrop-filter: blur(14px);
}

body.search-page .search-topbar__inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
}

body.search-page .search-topbar__back {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(196, 132, 252, 0.18);
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    text-decoration: none;
    font-size: 1.15rem;
    flex: 0 0 auto;
}

body.search-page .search-topbar__title {
    flex: 1 1 auto;
    min-width: 0;
}

body.search-page .search-topbar__title strong {
    display: block;
    color: #f8fafc;
    font-size: clamp(1.02rem, 1.8vw, 1.24rem);
    line-height: 1.1;
    font-weight: 800;
}

body.search-page .search-topbar__filter {
    min-height: 40px;
    padding-inline: 14px;
    flex: 0 0 auto;
}

body.search-page .search-shell {
    display: grid;
    gap: 12px;
}

body.search-page .search-toolbar,
body.search-page .search-filters,
body.search-page .search-tip,
body.search-page .search-result,
body.search-page .search-empty {
    background: rgba(11, 14, 26, 0.90);
    border: 1px solid rgba(148, 163, 184, 0.08);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.14);
    backdrop-filter: blur(12px);
}

body.search-page .search-toolbar {
    padding: 12px;
    border-radius: 18px;
    align-items: center;
}

body.search-page .search-toolbar__form {
    grid-template-columns: minmax(0, 1.6fr) 180px auto;
    gap: 10px;
    align-items: end;
}

body.search-page .search-toolbar__query--desktop {
    display: block;
}

body.search-page .search-toolbar__submit {
    min-height: 44px;
}

body.search-page .search-filters__query--mobile {
    display: grid;
}

body.search-page .search-tip {
    border-radius: 18px;
}

body.search-page .search-results {
    gap: 12px;
}

body.search-page .search-result {
    padding: 12px;
    border-radius: 18px;
    gap: 10px;
}

body.search-page .search-result__main {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
}

body.search-page .search-result__avatar {
    width: 62px;
    height: 62px;
}

body.search-page .search-result__arrow {
    display: none;
}

body.search-page .search-result__content {
    gap: 10px;
}

body.search-page .search-result__gallery {
    gap: 8px;
}

body.search-page .search-result__photo,
body.search-page .search-result__photo img {
    min-height: 112px;
}

body.search-page .search-result__footer {
    align-items: flex-end;
}

body.search-page .search-result__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.search-page .search-action {
    border: 1px solid rgba(196, 132, 252, 0.16);
    background: rgba(8, 9, 20, 0.72);
    color: #fff;
    font-weight: 800;
}

body.search-page .search-action--add {
    min-width: 118px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #f72585);
}

body.search-page .search-action--icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
}

body.search-page .search-empty {
    padding: 16px;
}

@media (max-width: 760px) {
    body.search-page .app-main-minimal {
        padding-top: 10px;
        padding-bottom: 184px !important;
    }

    body.search-page .search-topbar__inner {
        min-height: 56px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    body.search-page .search-topbar__filter {
        min-height: 38px;
    }

    body.search-page .search-toolbar__query--desktop,
    body.search-page .search-toolbar__submit {
        display: none;
    }

    body.search-page .search-toolbar__form {
        grid-template-columns: minmax(0, 1fr);
    }

    body.search-page .search-toolbar__sort span {
        display: none;
    }

    body.search-page .search-toolbar__view {
        justify-self: end;
    }

    body.search-page .search-result__main {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.search-page .search-result__avatar {
        width: 56px;
        height: 56px;
    }

    body.search-page .search-result__photo,
    body.search-page .search-result__photo img {
        min-height: 96px;
    }

    body.search-page .search-results.is-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 761px) {
    body.search-page .search-filters__query--mobile {
        display: none;
    }
}

.post-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 18px;
}

.post-modal[hidden] {
    display: none !important;
}

.post-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 3, 10, 0.82);
    backdrop-filter: blur(14px);
}

.post-modal__panel {
    position: relative;
    width: min(1180px, 100%);
    max-height: calc(100vh - 36px);
    overflow: hidden;
    border-radius: 28px;
    background: rgba(8, 8, 20, 0.98);
    border: 1px solid rgba(155, 92, 255, 0.18);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.post-modal__head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 10px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(155, 92, 255, 0.14);
}

.post-modal__head h2 {
    margin: 0;
    text-align: center;
    font-size: 1.2rem;
}

.post-modal__icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
}

.post-modal__form,
.post-modal__grid {
    min-height: 0;
}

.post-modal__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.post-modal__media {
    min-width: 0;
    padding: 18px;
    display: grid;
    gap: 16px;
    align-content: start;
    overflow: auto;
    border-right: 1px solid rgba(155, 92, 255, 0.12);
}

.post-modal__dropzone {
    min-height: 260px;
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(circle at top, rgba(255, 77, 141, 0.10), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(139, 92, 246, 0.08));
    display: grid;
    place-items: center;
    gap: 10px;
    text-align: center;
    padding: 24px;
}

.post-modal__dropzone-icon {
    width: 86px;
    height: 86px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 77, 141, 0.26);
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent-2);
    font-size: 3rem;
    font-weight: 300;
}

.post-modal__dropzone strong {
    font-size: 1.05rem;
}

.post-modal__dropzone p {
    margin: 0;
    max-width: 42ch;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

.post-modal__preview {
    display: grid;
    gap: 12px;
}

.post-modal__preview-empty {
    min-height: 120px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 18px;
    color: rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    border: 1px solid rgba(155, 92, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.post-modal__preview-item {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(155, 92, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.post-modal__preview-item img,
.post-modal__preview-item video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    background: #03030a;
}

.post-modal__preview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.post-modal__preview-meta strong {
    color: #fff;
}

.post-modal__preview-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-modal__preview-controls button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.post-modal__side {
    min-width: 0;
    padding: 18px;
    display: grid;
    gap: 16px;
    align-content: start;
    overflow: auto;
}

.post-modal__field {
    display: grid;
    gap: 10px;
}

.post-modal__field > span,
.post-modal__visibility legend {
    color: rgba(255, 255, 255, 0.90);
    font-weight: 800;
}

.post-modal__field textarea {
    min-height: 170px;
    resize: vertical;
}

.post-modal__field small {
    text-align: right;
    color: rgba(255, 255, 255, 0.58);
}

.post-modal__visibility {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(155, 92, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.post-modal__visibility label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.post-modal__terms {
    margin: 0;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.5;
    font-size: 0.92rem;
}

.post-modal__terms a {
    color: #f9a8d4;
    font-weight: 700;
}

.post-modal__status {
    margin: 0;
    min-height: 20px;
    color: #fca5a5;
    font-size: 0.92rem;
    line-height: 1.4;
}

.post-modal__status.is-error {
    color: #fca5a5;
}

.social-card__gallery {
    position: relative;
    display: grid;
    gap: 10px;
}

.social-card__gallery--1 {
    grid-template-columns: 1fr;
}

.social-card__gallery--1 .social-card__media-tile {
    min-height: 420px;
}

.social-card__gallery--2,
.social-card__gallery--3,
.social-card__gallery--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.social-card__media-tile {
    min-height: 220px;
    overflow: hidden;
    border-radius: 18px;
    background: #04040b;
    border: 1px solid rgba(155, 92, 255, 0.10);
}

.social-card__media-tile img,
.social-card__media-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.social-card__media-more {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(6, 6, 16, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
    .post-modal {
        padding: 0;
        align-items: stretch;
    }

    .post-modal__panel {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .post-modal__grid {
        grid-template-columns: 1fr;
    }

    .post-modal__media {
        border-right: 0;
        border-bottom: 1px solid rgba(155, 92, 255, 0.12);
    }

    .post-modal__preview-item img,
    .post-modal__preview-item video {
        height: 200px;
    }
}

@media (max-width: 540px) {
    .post-modal__head {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        padding: 14px;
    }

    .post-modal__icon-btn {
        width: 40px;
        height: 40px;
    }

    .post-modal__media,
    .post-modal__side {
        padding: 14px;
    }

    .post-modal__dropzone {
        min-height: 220px;
        padding: 18px;
    }

    .social-card__gallery--1 .social-card__media-tile {
        min-height: 300px;
    }

    .social-card__gallery--2,
    .social-card__gallery--3,
    .social-card__gallery--4 {
        grid-template-columns: 1fr;
    }
}

.home-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    pointer-events: none;
}

.home-bottom-nav__shell {
    width: min(760px, calc(100% - 24px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(7, 7, 15, 0.92);
    border: 1px solid rgba(155, 92, 255, 0.20);
    box-shadow:
        0 -14px 36px rgba(0, 0, 0, 0.32),
        0 12px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(20px);
    pointer-events: auto;
}

.home-bottom-nav__item {
    min-height: 72px;
    padding: 10px 8px 8px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-bottom-nav__item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

.home-bottom-nav__item.is-active {
    color: #fff;
    background: linear-gradient(180deg, rgba(124, 32, 255, 0.18), rgba(255, 37, 58, 0.12));
    box-shadow: inset 0 0 0 1px rgba(196, 132, 252, 0.18);
}

.home-bottom-nav__icon {
    width: 34px;
    height: 34px;
    position: relative;
    display: grid;
    place-items: center;
    color: currentColor;
}

.home-bottom-nav__icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.home-bottom-nav__label {
    line-height: 1;
}

.home-bottom-nav__badge {
    position: absolute;
    top: -3px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 0.67rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 760px) {
    body.home-page .home-main {
        padding-bottom: 146px !important;
    }

    .home-bottom-nav {
        padding-inline: 0;
    }

    .home-bottom-nav__shell {
        width: 100%;
        max-width: 100%;
        border-radius: 22px 22px 0 0;
        padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
        gap: 4px;
    }

    .home-bottom-nav__item {
        min-height: 68px;
        padding-inline: 4px;
    }
}

body.is-authenticated .home-main,
body.is-authenticated .app-main,
body.is-authenticated .app-main-minimal {
    padding-bottom: 132px !important;
}

@media (max-width: 760px) {
    body.is-authenticated .home-main,
    body.is-authenticated .app-main,
    body.is-authenticated .app-main-minimal {
        padding-bottom: 146px !important;
    }
}

body.discover-page {
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.10), transparent 22%),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.08), transparent 18%),
        linear-gradient(180deg, #fbfcff 0%, #f5f2fb 40%, #eef1ff 100%);
    color: #111827;
}

body.discover-page .app-main-minimal {
    min-height: 0;
    padding-top: 14px;
}

body.discover-page .topbar,
body.discover-page .topbar-minimal {
    background: rgba(7, 7, 13, 0.9) !important;
    border-bottom: 1px solid rgba(155, 92, 255, 0.14);
}

.discover-shell {
    display: grid;
    gap: 14px;
}

.discover-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.discover-head__copy {
    display: grid;
    gap: 8px;
    max-width: 720px;
}

.discover-head__eyebrow,
.discover-section__eyebrow,
.discover-banner__eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(124, 32, 255, 0.10);
    border: 1px solid rgba(124, 32, 255, 0.16);
    color: #6d28d9;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.discover-head h1 {
    margin: 0;
    font-size: clamp(1.7rem, 2.5vw, 2.3rem);
    line-height: 1.05;
    color: #111827;
    letter-spacing: -0.04em;
}

.discover-head p {
    margin: 0;
    max-width: 64ch;
    color: #4b5563;
    line-height: 1.7;
}

.discover-filter-button {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(124, 32, 255, 0.22);
    background: rgba(255, 255, 255, 0.82);
    color: #4c1d95;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(76, 29, 149, 0.08);
}

.discover-filters,
.discover-section,
.discover-banner,
.discover-empty,
.discover-mini.card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(124, 58, 237, 0.08);
    box-shadow: 0 16px 36px rgba(76, 29, 149, 0.07);
    backdrop-filter: blur(14px);
}

.discover-filters {
    padding: 16px;
}

.discover-filter-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.discover-filter-form label {
    display: grid;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #4c1d95;
}

.discover-filter-form input,
.discover-filter-form select {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(124, 58, 237, 0.16);
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    outline: none;
}

.discover-filter-check {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding-bottom: 4px;
}

.discover-filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.discover-section,
.discover-banner {
    padding: 16px;
}

.discover-section__head,
.discover-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.discover-section__head h2,
.discover-section-head h2 {
    margin: 6px 0 0;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    color: #111827;
    letter-spacing: -0.03em;
}

.discover-section__link {
    color: #6d28d9;
    font-weight: 800;
}

.discover-online-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 92px;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 4px;
    scrollbar-width: thin;
}

.discover-online-strip::-webkit-scrollbar {
    height: 6px;
}

.discover-online-chip {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: #111827;
}

.discover-online-chip strong,
.discover-online-chip small {
    width: 100%;
    text-align: center;
}

.discover-online-chip strong {
    font-size: 0.78rem;
    line-height: 1.1;
}

.discover-online-chip small {
    color: #6b7280;
    font-size: 0.72rem;
}

.discover-online-chip__ring {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding: 3px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 37, 58, 0.18));
    box-shadow: 0 12px 24px rgba(76, 29, 149, 0.08);
}

.discover-online-chip__ring.is-live {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.34), rgba(124, 58, 237, 0.22));
}

.discover-online-chip__avatar {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #ff4d8d);
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.92);
}

.discover-online-chip__avatar--add {
    font-size: 2rem;
}

.discover-online-chip__badges {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.discover-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.06);
    border: 1px solid rgba(17, 24, 39, 0.06);
    color: #374151;
    font-size: 0.7rem;
    font-weight: 800;
}

.discover-chip.is-live {
    background: rgba(16, 185, 129, 0.10);
    border-color: rgba(16, 185, 129, 0.16);
    color: #0f766e;
}

.discover-chip.is-premium {
    background: rgba(124, 58, 237, 0.10);
    border-color: rgba(124, 58, 237, 0.16);
    color: #6d28d9;
}

.discover-chip.is-verified {
    background: rgba(59, 130, 246, 0.10);
    border-color: rgba(59, 130, 246, 0.16);
    color: #2563eb;
}

.discover-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 241, 255, 0.92));
}

.discover-banner.is-dismissing {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.discover-banner__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(124, 58, 237, 0.14);
    background: rgba(255, 255, 255, 0.84);
    color: #6d28d9;
    cursor: pointer;
}

.discover-banner__copy {
    display: grid;
    gap: 6px;
}

.discover-banner__copy strong {
    font-size: 1.08rem;
    color: #111827;
}

.discover-banner__copy p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.discover-mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 14px;
}

.discover-tile {
    display: grid;
    gap: 8px;
}

.discover-tile.is-tall {
    grid-row: span 2;
}

.discover-tile.is-wide {
    grid-column: span 2;
}

.discover-tile__frame {
    position: relative;
    overflow: hidden;
    min-height: 236px;
    border-radius: 22px;
    background: linear-gradient(180deg, #111827 0%, #0b1020 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

.discover-tile.is-tall .discover-tile__frame {
    min-height: 320px;
}

.discover-tile.is-wide .discover-tile__frame {
    min-height: 284px;
}

.discover-tile__media {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: #0b1020;
}

.discover-tile__placeholder {
    min-height: inherit;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top, rgba(255, 77, 141, 0.18), transparent 38%), linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(76, 29, 149, 0.82));
}

.discover-tile__placeholder-mark {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
}

.discover-tile__overlay {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: grid;
    gap: 8px;
    padding: 12px 13px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.78));
    color: #fff;
}

.discover-tile__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.discover-tile__avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #7c3aed, #ff4d8d);
    background-size: cover;
    background-position: center;
    color: #fff;
    font-weight: 900;
    flex: 0 0 auto;
}

.discover-tile__author strong {
    display: block;
    font-size: 0.92rem;
}

.discover-tile__author small {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
}

.discover-tile__chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.discover-tile__caption {
    margin: 0;
    color: #475569;
    line-height: 1.55;
    font-size: 0.92rem;
}

.discover-tile__count {
    position: absolute;
    right: 14px;
    top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.discover-tile__actions {
    position: absolute;
    left: 14px;
    top: 14px;
    display: flex;
    gap: 7px;
    z-index: 2;
}

.discover-action {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(17, 24, 39, 0.54);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.discover-action:hover {
    transform: translateY(-1px);
}

.discover-action.is-like:hover {
    background: rgba(255, 37, 58, 0.88);
    border-color: rgba(255, 255, 255, 0.24);
}

.discover-action.is-favorite:hover {
    background: rgba(124, 58, 237, 0.88);
    border-color: rgba(255, 255, 255, 0.24);
}

.discover-action.is-pass:hover {
    background: rgba(107, 114, 128, 0.88);
    border-color: rgba(255, 255, 255, 0.24);
}

.discover-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.discover-mini {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 13px 14px;
    border-radius: 20px;
}

.discover-mini__media {
    display: inline-flex;
}

.discover-mini__avatar {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 77, 141, 0.18));
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(124, 58, 237, 0.12);
    color: #6d28d9;
    font-size: 1.2rem;
    font-weight: 900;
}

.discover-mini__copy {
    display: grid;
    gap: 4px;
}

.discover-mini__copy strong {
    color: #111827;
}

.discover-mini__copy small {
    color: #6b7280;
}

.discover-mini__tag {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.12);
    color: #6d28d9;
    font-size: 0.72rem;
    font-weight: 800;
}

.discover-mini__actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.discover-empty {
    padding: 18px;
}

.discover-empty strong {
    display: block;
    margin-bottom: 6px;
    color: #111827;
}

.discover-empty p {
    margin: 0;
    color: #4b5563;
}

@media (max-width: 1024px) {
    .discover-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .discover-mosaic,
    .discover-mini-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body.discover-page .app-main-minimal {
        padding-top: 12px;
    }

    .discover-head {
        align-items: flex-start;
    }

    .discover-section,
    .discover-banner,
    .discover-filters {
        padding: 14px;
    }

    .discover-filter-form {
        grid-template-columns: 1fr;
    }

    .discover-banner {
        grid-template-columns: 1fr;
    }

    .discover-online-strip {
        grid-auto-columns: 90px;
    }

    .discover-tile.is-tall,
    .discover-tile.is-wide {
        grid-column: auto;
        grid-row: auto;
    }

    .discover-tile__frame,
    .discover-tile.is-tall .discover-tile__frame,
    .discover-tile.is-wide .discover-tile__frame {
        min-height: 250px;
    }

    .discover-mini {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .discover-mini__actions {
        grid-column: 1 / -1;
    }
}

body.search-page .topbar,
body.search-page .topbar-minimal,
body.search-page .home-topbar,
body.search-page .home-topbar--compact,
body.profile-page .topbar,
body.profile-page .topbar-minimal {
    display: none;
}

body.search-page .app-main-minimal,
body.profile-page .app-main-minimal {
    padding-top: 12px;
}

body.search-page {
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.12), transparent 20%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.10), transparent 18%),
        linear-gradient(180deg, #090914 0%, #101122 100%);
    color: #e5e7eb;
}

body.profile-page {
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.10), transparent 18%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 20%),
        linear-gradient(180deg, #090914 0%, #101122 100%);
    color: #e5e7eb;
}

.search-shell,
.profile-shell {
    display: grid;
    gap: 12px;
}

.search-head,
.profile-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.search-back,
.profile-back {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(196, 132, 252, 0.20);
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
}

.search-head__copy,
.profile-head__copy {
    display: grid;
    gap: 4px;
}

.search-head__eyebrow,
.profile-head__eyebrow {
    color: #a78bfa;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.search-head h1,
.profile-head h1 {
    margin: 0;
    font-size: clamp(1.55rem, 2vw, 2.1rem);
    line-height: 1.05;
    color: #f8fafc;
}

.search-filter-button {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(244, 114, 182, 0.22);
    background: linear-gradient(135deg, #f72585, #b5179e);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.search-toolbar,
.search-filters,
.search-tip,
.search-result,
.search-empty,
.profile-card {
    background: rgba(15, 17, 31, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.10);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.20);
    backdrop-filter: blur(14px);
}

.search-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    flex-wrap: wrap;
}

.search-toolbar__form {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 180px auto;
    gap: 10px;
    align-items: end;
    flex: 1 1 520px;
}

.search-toolbar__query input,
.search-toolbar__sort select,
.search-filters__form input,
.search-filters__form select {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid rgba(196, 132, 252, 0.14);
    background: rgba(8, 9, 20, 0.78);
    color: #f8fafc;
    outline: none;
}

.search-toolbar__sort span,
.search-filters__form label span {
    display: block;
    margin-bottom: 8px;
    color: #a5b4fc;
    font-size: 0.78rem;
    font-weight: 700;
}

.search-toolbar__view {
    display: inline-flex;
    gap: 8px;
}

.search-view-button {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(196, 132, 252, 0.14);
    background: rgba(8, 9, 20, 0.72);
    color: rgba(248, 250, 252, 0.72);
    text-decoration: none;
    font-size: 1rem;
}

.search-view-button.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.30), rgba(247, 37, 133, 0.34));
    border-color: rgba(244, 114, 182, 0.28);
}

.search-tip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(15, 17, 31, 0.78);
}

.search-tip.is-dismissing {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.search-tip__copy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-tip__icon {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(244, 114, 182, 0.18);
    color: #ff6aa2;
    font-size: 1.1rem;
    flex: 0 0 auto;
}

.search-tip p {
    margin: 0;
    color: rgba(226, 232, 240, 0.92);
    line-height: 1.5;
}

.search-tip__close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
}

.search-filters {
    padding: 14px;
}

.search-filters__form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.search-filters__check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding-bottom: 4px;
    color: #e5e7eb;
    font-weight: 700;
}

.search-filters__check input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.search-filters__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.search-results {
    display: grid;
    gap: 14px;
}

.search-results.is-list {
    grid-template-columns: 1fr;
}

.search-results.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-result {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
}

.search-result__main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.search-result__avatar {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #7c3aed, #f72585);
    background-size: cover;
    background-position: center;
    color: #fff;
    font-weight: 900;
    flex: 0 0 auto;
}

.search-result__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result__dot,
.profile-card__dot {
    position: absolute;
    left: 3px;
    bottom: 3px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid #0f1324;
    background: #22c55e;
}

.search-result__meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.search-result__title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-result__title-line strong,
.profile-card__title-line strong {
    font-size: 1rem;
    color: #f8fafc;
}

.search-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}

.search-pill.is-verified {
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
}

.search-pill.is-premium {
    background: rgba(124, 58, 237, 0.16);
    color: #d8b4fe;
}

.search-result__headline,
.search-result__location,
.profile-card__headline,
.profile-card__location {
    color: rgba(226, 232, 240, 0.76);
    font-size: 0.88rem;
    line-height: 1.4;
}

.search-result__arrow {
    color: rgba(226, 232, 240, 0.42);
    font-size: 1.8rem;
    line-height: 1;
}

.search-result__content {
    display: grid;
    gap: 12px;
}

.search-result__bio {
    color: rgba(226, 232, 240, 0.86);
}

.search-result__bio summary {
    cursor: pointer;
    list-style: none;
    line-height: 1.6;
}

.search-result__bio summary::-webkit-details-marker {
    display: none;
}

.search-result__bio summary span {
    color: #f9a8d4;
    font-weight: 800;
}

.search-result__bio p {
    margin: 10px 0 0;
    color: rgba(226, 232, 240, 0.76);
    line-height: 1.6;
}

.search-result__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.search-result__photo {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 140px;
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.78);
}

.search-result__photo img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
    display: block;
}

.search-result__photo--empty {
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.25rem;
}

.search-result__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.search-result__status {
    display: grid;
    gap: 2px;
}

.search-result__status strong {
    color: #f8fafc;
    font-size: 0.88rem;
}

.search-result__status small {
    color: rgba(226, 232, 240, 0.66);
    font-size: 0.78rem;
}

.search-result__actions {
    display: inline-flex;
    gap: 8px;
}

.search-action {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(196, 132, 252, 0.16);
    background: rgba(8, 9, 20, 0.72);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.search-empty {
    padding: 18px;
    border-radius: 20px;
}

.search-empty strong {
    display: block;
    margin-bottom: 4px;
    color: #f8fafc;
}

.search-empty p {
    margin: 0;
    color: rgba(226, 232, 240, 0.74);
    line-height: 1.6;
}

.profile-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
}

.profile-card__hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.profile-card__avatar {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #7c3aed, #f72585);
    background-size: cover;
    background-position: center;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
}

.profile-card__avatar.has-image {
    background-color: #0b1020;
}

.profile-card__avatar span {
    position: relative;
    z-index: 1;
}

.profile-card__copy {
    display: grid;
    gap: 5px;
}

.profile-card__title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-card__status {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.profile-card__status strong {
    color: #f8fafc;
}

.profile-card__status small {
    color: rgba(226, 232, 240, 0.64);
}

.profile-card__actions {
    display: flex;
    justify-content: flex-end;
}

.profile-card__bio {
    margin: 0;
    color: rgba(226, 232, 240, 0.86);
    line-height: 1.7;
}

.profile-card__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.profile-card__photo {
    margin: 0;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(17, 24, 39, 0.82);
    min-height: 180px;
}

.profile-card__photo img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    display: block;
}

.profile-card__empty {
    grid-column: 1 / -1;
    padding: 20px;
    border-radius: 18px;
    background: rgba(8, 9, 20, 0.64);
    color: rgba(226, 232, 240, 0.76);
}

@media (max-width: 1024px) {
    .search-toolbar__form,
    .search-filters__form {
        grid-template-columns: 1fr 1fr;
    }

    .search-results.is-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .search-head,
    .profile-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .search-filter-button,
    .profile-head .btn {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .search-toolbar__form,
    .search-filters__form {
        grid-template-columns: 1fr;
    }

    .search-result__main,
    .profile-card__hero {
        grid-template-columns: 1fr;
    }

    .search-result__avatar,
    .profile-card__avatar {
        width: 86px;
        height: 86px;
    }

    .search-result__gallery,
    .profile-card__gallery {
        grid-template-columns: 1fr;
    }

    .search-result__photo,
    .search-result__photo img,
    .profile-card__photo,
    .profile-card__photo img {
        min-height: 140px;
    }
}

body.messages-page {
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.10), transparent 18%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 18%),
        linear-gradient(180deg, #080812 0%, #0f1121 100%);
    color: #e5e7eb;
}

body.messages-page .topbar,
body.messages-page .topbar-minimal {
    display: none;
}

body.messages-page .app-main-minimal {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 170px !important;
}

.messages-shell {
    display: grid;
    gap: 14px;
}

.messages-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.messages-hero__copy {
    display: grid;
    gap: 8px;
    max-width: 760px;
}

.messages-hero__eyebrow,
.messages-sidebar__eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.18);
    color: #c4b5fd;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.messages-hero h1 {
    margin: 0;
    font-size: clamp(1.5rem, 2.3vw, 2.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #f8fafc;
}

.messages-hero p {
    margin: 0;
    color: #b6bccb;
    line-height: 1.7;
    max-width: 72ch;
}

.messages-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.messages-sidebar,
.messages-thread-panel {
    background: rgba(15, 17, 31, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(14px);
}

.messages-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    min-width: 0;
}

.messages-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.messages-sidebar__head h2 {
    margin: 4px 0 0;
    color: #f8fafc;
    font-size: 1.1rem;
    line-height: 1.2;
}

.messages-sidebar__count {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(124, 58, 237, 0.16);
    border: 1px solid rgba(124, 58, 237, 0.18);
    color: #f8fafc;
    font-weight: 800;
}

.messages-sidebar__list {
    display: grid;
    gap: 10px;
    overflow: auto;
    max-height: min(74vh, 780px);
    padding-right: 2px;
}

.messages-sidebar__list::-webkit-scrollbar,
.messages-thread__messages::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.messages-sidebar__list::-webkit-scrollbar-thumb,
.messages-thread__messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

.messages-conversation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.10);
    background: rgba(255, 255, 255, 0.03);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.messages-conversation:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(196, 132, 252, 0.24);
}

.messages-conversation.is-active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 77, 141, 0.10));
    border-color: rgba(196, 132, 252, 0.28);
}

.messages-conversation__avatar,
.messages-thread__avatar,
.message-row__avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.55), rgba(124, 58, 237, 0.55));
    color: #fff;
    font-weight: 900;
    background-size: cover;
    background-position: center;
    position: relative;
    flex: none;
}

.messages-conversation__avatar.has-image,
.messages-thread__avatar.has-image,
.message-row__avatar.has-image {
    color: transparent;
}

.messages-conversation__avatar__dot,
.messages-thread__avatar__dot,
.message-row__avatar__dot {
    position: absolute;
    left: -1px;
    bottom: -1px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid #080812;
}

.messages-conversation__avatar__official,
.messages-thread__avatar__official,
.message-row__avatar__official {
    position: absolute;
    right: -2px;
    top: -2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    background: linear-gradient(135deg, #8b5cf6, #ff4d8d);
    color: #fff;
    border: 2px solid #080812;
}

.messages-conversation__body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.messages-conversation__title-line,
.messages-thread__title-line,
.message-bubble__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.messages-conversation__title-line strong,
.messages-thread__title-line h2 {
    color: #f8fafc;
    font-size: 0.98rem;
    line-height: 1.1;
    margin: 0;
}

.messages-conversation__snippet,
.messages-conversation__location,
.messages-conversation__time,
.messages-thread__status,
.messages-thread__location,
.message-bubble__time {
    color: #a5adbd;
    font-size: 0.86rem;
    line-height: 1.4;
}

.messages-conversation__snippet {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messages-conversation__meta {
    display: grid;
    justify-items: end;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.78rem;
}

.messages-conversation__unread {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #ff4d8d, #8b5cf6);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.messages-thread-panel {
    display: flex;
    min-width: 0;
    min-height: min(74vh, 780px);
    overflow: hidden;
}

.messages-thread {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
}

.messages-thread__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.messages-thread__profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.messages-thread__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.messages-thread__status {
    color: #cbd5e1;
}

.messages-thread__messages {
    flex: 1;
    overflow: auto;
    padding: 18px 20px;
    display: grid;
    gap: 12px;
    align-content: start;
}

.messages-thread__empty-inline,
.messages-empty {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    padding: 28px 18px;
    color: #cbd5e1;
}

.messages-thread__empty-inline strong,
.messages-empty h2 {
    color: #f8fafc;
    font-size: 1.1rem;
    margin: 0;
}

.messages-thread__empty-inline p,
.messages-empty p {
    margin: 0;
    color: #a5adbd;
}

.messages-empty__icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(255, 77, 141, 0.18));
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.message-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.message-row.is-self {
    justify-content: flex-end;
}

.message-bubble {
    max-width: min(78%, 640px);
    border-radius: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
}

.message-bubble.is-self {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 77, 141, 0.12));
    border-color: rgba(196, 132, 252, 0.18);
}

.message-bubble__body {
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.message-bubble__time {
    display: block;
    margin-top: 8px;
    font-size: 0.76rem;
    color: #94a3b8;
}

.messages-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 16px 20px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.10);
}

.messages-compose textarea {
    width: 100%;
    min-height: 48px;
    max-height: 180px;
    resize: none;
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    outline: none;
    line-height: 1.6;
}

.messages-compose textarea::placeholder {
    color: #8e97aa;
}

.messages-compose textarea:focus {
    border-color: rgba(196, 132, 252, 0.36);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.messages-compose .btn {
    min-height: 48px;
    padding-inline: 18px;
}

.messages-compose__error {
    grid-column: 1 / -1;
    margin: -2px 0 0;
    color: #fda4af;
    font-size: 0.86rem;
}

.messages-thread.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

@media (max-width: 980px) {
    .messages-layout {
        grid-template-columns: 1fr;
    }

    .messages-sidebar__list {
        max-height: 320px;
    }
}

@media (max-width: 720px) {
    body.messages-page .app-main-minimal {
        padding-top: 0;
        padding-bottom: 184px !important;
    }

    .messages-thread-panel {
        min-height: 62vh;
    }

    .messages-thread__head,
    .messages-thread__messages,
    .messages-compose {
        padding-left: 14px;
        padding-right: 14px;
    }

    .messages-compose {
        grid-template-columns: 1fr;
    }

    .messages-compose .btn {
        width: 100%;
    }

    .message-bubble {
        max-width: 100%;
    }
}
body.home-page .home-topbar--compact {
    background: rgba(7, 7, 13, 0.86);
    border-bottom: 1px solid rgba(168, 85, 247, 0.16);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.20);
}

body.home-page .home-topbar-inner--compact {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    padding-block: 10px;
    padding-inline: clamp(12px, 2vw, 20px);
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    flex-direction: row;
}

body.home-page .home-topbar-inner--compact .brand-home {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: clamp(10px, 1.6vw, 14px);
}

body.home-page .home-topbar-inner--compact .brand-wordmark {
    min-width: 0;
    display: grid;
    gap: 2px;
}

body.home-page .home-topbar-inner--compact .brand-wordmark strong {
    white-space: nowrap;
    font-size: clamp(0.95rem, 1.5vw, 1.02rem);
}

body.home-page .home-topbar-inner--compact .brand-wordmark small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.home-page .home-toolbar--compact {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-left: auto;
}

body.home-page .home-icon-btn,
body.home-page .home-avatar-btn {
    flex: 0 0 auto;
    position: relative;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

body.home-page .home-icon-btn:hover,
body.home-page .home-icon-btn:focus-visible,
body.home-page .home-avatar-btn:hover,
body.home-page .home-avatar-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(244, 114, 182, 0.38);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

body.home-page .home-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

body.home-page .home-icon-btn--compose {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(236, 72, 153, 0.22));
}

body.home-page .home-icon-btn--compose:hover,
body.home-page .home-icon-btn--compose:focus-visible {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.34), rgba(236, 72, 153, 0.30));
}

body.home-page .home-icon-btn--notifications strong {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 0.68rem;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(7, 7, 13, 0.95);
}

body.home-page .home-avatar-btn__circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(236, 72, 153, 0.9));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

body.home-page .social-stories-panel {
    padding: 12px;
    background: rgba(11, 11, 22, 0.95);
    border-color: rgba(155, 92, 255, 0.14);
    box-shadow: 0 8px 20px rgba(16, 12, 30, 0.16);
}

body.home-page .social-stories-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

body.home-page .social-stories-panel__head > div {
    display: grid;
    gap: 2px;
}

body.home-page .social-panel__eyebrow {
    display: inline-flex;
    margin-bottom: 3px;
    color: rgba(216, 180, 254, 0.9);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.home-page .social-panel__head h2 {
    margin: 0;
    font-size: 1.02rem;
}

body.home-page .social-panel__link {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.9rem;
    font-weight: 700;
}

body.home-page .story-strip--compact {
    grid-auto-columns: 78px;
    gap: 10px;
}

body.home-page .story-chip {
    padding: 4px 2px 0;
    position: relative;
}

body.home-page .story-chip strong {
    font-size: 0.74rem;
}

body.home-page .story-chip small {
    font-size: 0.68rem;
}

body.home-page .story-chip__ring {
    width: 70px;
    height: 70px;
    position: relative;
}

body.home-page .story-chip__ring--add {
    background: linear-gradient(135deg, #7c20ff, #ec4899, #ff2f5f);
}

body.home-page .story-chip__avatar--add {
    font-size: 1.4rem;
    font-weight: 900;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 36%),
        linear-gradient(135deg, rgba(168, 85, 247, 0.42), rgba(236, 72, 153, 0.42));
}

body.home-page .story-chip__dot {
    position: absolute;
    left: 6px;
    bottom: 6px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid rgba(7, 7, 13, 0.96);
    background: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.18);
}

body.home-page .story-chip__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: -2px;
}

body.home-page .story-chip__badges span {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(155, 92, 255, 0.16);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.62rem;
    line-height: 1.2;
}

body.home-page .home-feed-tabs {
    margin-top: 10px;
    margin-bottom: 6px;
}

body.home-page .home-feed-tabs__list {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 2px 8px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.home-page .home-feed-tabs__item {
    position: relative;
    padding: 10px 2px 12px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.93rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

body.home-page .home-feed-tabs__item.is-active {
    color: #fff;
}

body.home-page .home-feed-tabs__item.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

body.home-page .home-email-banner--compact {
    margin-top: 10px;
    padding: 12px 14px;
}

body.home-page .home-notifications-panel {
    margin-top: 10px;
    padding: 12px;
    background: rgba(11, 11, 22, 0.95);
    border-color: rgba(155, 92, 255, 0.12);
}

body.home-page .home-notifications-list {
    display: grid;
    gap: 8px;
}

body.home-page .home-notification-item {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.home-page .home-notification-item strong {
    font-size: 0.92rem;
}

body.home-page .home-notification-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    line-height: 1.45;
}

body.home-page .home-notification-item small {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.75rem;
}

@media (max-width: 760px) {
    body.home-page .home-topbar-inner--compact {
        min-height: 60px;
        padding-block: 8px;
        padding-inline: 10px;
        gap: 8px;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    body.home-page .home-topbar-inner--compact .brand-mark-home {
        width: 36px;
        height: 36px;
        border-radius: 13px;
    }

    body.home-page .home-topbar-inner--compact .brand-wordmark strong {
        font-size: 0.9rem;
    }

    body.home-page .home-topbar-inner--compact .brand-wordmark small {
        display: none;
    }

    body.home-page .home-toolbar--compact {
        gap: 6px;
        margin-left: auto;
        flex-wrap: nowrap;
    }

    body.home-page .home-icon-btn,
    body.home-page .home-avatar-btn {
        min-width: 38px;
        min-height: 38px;
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    body.home-page .home-icon-btn svg {
        width: 16px;
        height: 16px;
    }

    body.home-page .home-avatar-btn__circle {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }

    body.home-page .home-main {
        padding-top: 42px;
    }

    body.home-page .story-strip--compact {
        grid-auto-columns: 74px;
        gap: 8px;
    }

    body.home-page .story-chip__ring {
        width: 66px;
        height: 66px;
    }
}

@media (max-width: 540px) {
    body.home-page .home-topbar-inner--compact {
        gap: 6px;
        padding-inline: 8px;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    body.home-page .home-topbar-inner--compact .brand-wordmark strong {
        font-size: 0.85rem;
    }

    body.home-page .home-main {
        padding-top: 44px;
    }

    body.home-page .home-feed-tabs__list {
        gap: 14px;
    }

    body.home-page .home-toolbar--compact {
        gap: 5px;
        margin-left: auto;
        flex-wrap: nowrap;
    }

    body.home-page .home-icon-btn,
    body.home-page .home-avatar-btn {
        min-width: 34px;
        min-height: 34px;
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    body.home-page .home-icon-btn svg {
        width: 15px;
        height: 15px;
    }

    body.home-page .home-avatar-btn__circle {
        width: 26px;
        height: 26px;
        font-size: 0.68rem;
    }
}
@media (min-width: 761px) {
    body.home-page .home-main { padding-top: 40px; }
}

/* Home authenticated spacing fix */
body.home-page .home-main {
    overflow: visible !important;
    padding-top: 104px !important;
}

@media (max-width: 760px) {
    body.home-page .home-main {
        padding-top: 96px !important;
    }
}

body.discover-page {
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.10), transparent 22%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.10), transparent 18%),
        linear-gradient(180deg, #090914 0%, #101122 100%);
    color: #e5e7eb;
}

body.discover-page .discover-topbar--compact {
    background: rgba(7, 7, 13, 0.86);
    border-bottom: 1px solid rgba(168, 85, 247, 0.16);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.20);
}

body.discover-page .discover-topbar-inner--compact {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    padding-block: 10px;
    padding-inline: clamp(12px, 2vw, 20px);
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    flex-direction: row;
}

body.discover-page .discover-topbar-inner--compact .brand-home {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: clamp(10px, 1.6vw, 14px);
}

body.discover-page .discover-brand-wordmark {
    min-width: 0;
    display: grid;
    gap: 2px;
}

body.discover-page .discover-topbar__toolbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-left: auto;
}

body.discover-page .home-icon-btn,
body.discover-page .home-avatar-btn {
    flex: 0 0 auto;
    position: relative;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.discover-page .discover-main {
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 170px !important;
}

body.discover-page .discover-shell {
    display: grid;
    gap: 14px;
}

body.discover-page .discover-head h1,
body.discover-page .discover-section__head h2,
body.discover-page .discover-section-head h2 {
    color: #f8fafc;
}

body.discover-page .discover-head p {
    color: #b6bccb;
}

body.discover-page .discover-filters,
body.discover-page .discover-section,
body.discover-page .discover-banner,
body.discover-page .discover-empty,
body.discover-page .discover-mini.card {
    background: rgba(15, 17, 31, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.10);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.20);
    backdrop-filter: blur(14px);
}

body.discover-page .discover-filter-form input,
body.discover-page .discover-filter-form select {
    background: rgba(8, 9, 20, 0.82);
    color: #f8fafc;
}

body.discover-page .discover-online-chip,
body.discover-page .discover-mini__copy strong,
body.discover-page .discover-empty strong {
    color: #f8fafc;
}

body.discover-page .discover-online-chip small,
body.discover-page .discover-mini__copy small,
body.discover-page .discover-tile__caption,
body.discover-page .discover-empty p {
    color: #b6bccb;
}

body.discover-page .discover-banner {
    background: linear-gradient(135deg, rgba(15, 17, 31, 0.94), rgba(31, 17, 54, 0.92));
}

body.discover-page .discover-tile__frame {
    background: linear-gradient(180deg, #111827 0%, #0b1020 100%);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.16);
}

body.discover-page .discover-tile__overlay {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.78));
}

body.discover-page .discover-nearby {
    display: grid;
    gap: 12px;
}

@media (max-width: 760px) {
    body.discover-page .discover-topbar-inner--compact {
        min-height: 60px;
        gap: 8px;
        padding-inline: 12px;
    }

    body.discover-page .discover-brand-wordmark small {
        display: none;
    }

    body.discover-page .home-icon-btn,
    body.discover-page .home-avatar-btn {
        min-width: 38px;
        min-height: 38px;
        border-radius: 12px;
    }

    body.discover-page .discover-filter-form {
        grid-template-columns: 1fr;
    }

    body.discover-page .discover-banner {
        grid-template-columns: 1fr;
    }

    body.discover-page .discover-tile__frame,
    body.discover-page .discover-tile.is-tall .discover-tile__frame,
    body.discover-page .discover-tile.is-wide .discover-tile__frame {
        min-height: 250px;
    }

    body.discover-page .discover-nearby {
        display: none;
    }
}

body.discover-page {
    overflow-x: hidden;
}

body.discover-page .discover-main,
body.discover-page .discover-shell,
body.discover-page .discover-head,
body.discover-page .discover-filters,
body.discover-page .discover-section,
body.discover-page .discover-banner,
body.discover-page .discover-mosaic,
body.discover-page .discover-mini-grid,
body.discover-page .discover-empty {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.discover-page .discover-topbar-inner--compact,
body.discover-page .discover-topbar-inner--compact .brand-home,
body.discover-page .discover-topbar__toolbar {
    max-width: 100%;
}

body.discover-page .discover-online-strip {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

@media (max-width: 760px) {
    body.discover-page .discover-mosaic,
    body.discover-page .discover-mini-grid {
        grid-template-columns: 1fr !important;
    }

    body.discover-page .discover-tile,
    body.discover-page .discover-mini {
        min-width: 0;
    }
}

body.discover-page {
    overflow-x: hidden;
}

body.discover-page .discover-main,
body.discover-page .discover-shell,
body.discover-page .discover-head,
body.discover-page .discover-filters,
body.discover-page .discover-section,
body.discover-page .discover-banner,
body.discover-page .discover-mosaic,
body.discover-page .discover-mini-grid,
body.discover-page .discover-empty {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.discover-page .discover-topbar-inner--compact,
body.discover-page .discover-topbar-inner--compact .brand-home,
body.discover-page .discover-topbar__toolbar {
    max-width: 100%;
}

body.discover-page .discover-online-strip {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

@media (max-width: 760px) {
    body.discover-page .discover-mosaic,
    body.discover-page .discover-mini-grid {
        grid-template-columns: 1fr !important;
    }

    body.discover-page .discover-tile,
    body.discover-page .discover-mini {
        min-width: 0;
    }
}

body.discover-page {
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.10), transparent 22%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.10), transparent 18%),
        linear-gradient(180deg, #090914 0%, #101122 100%);
    color: #e5e7eb;
}

body.discover-page .discover-topbar--compact {
    background: rgba(7, 7, 13, 0.86);
    border-bottom: 1px solid rgba(168, 85, 247, 0.16);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.20);
}

body.discover-page .discover-topbar-inner--compact {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    padding-block: 10px;
    padding-inline: clamp(12px, 2vw, 20px);
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    flex-direction: row;
}

body.discover-page .discover-topbar-inner--compact .brand-home {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: clamp(10px, 1.6vw, 14px);
}

body.discover-page .discover-brand-wordmark {
    min-width: 0;
    display: grid;
    gap: 2px;
}

body.discover-page .discover-brand-wordmark strong {
    white-space: nowrap;
    font-size: clamp(0.95rem, 1.5vw, 1.02rem);
}

body.discover-page .discover-brand-wordmark small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.discover-page .discover-topbar__toolbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-left: auto;
}

body.discover-page .home-icon-btn,
body.discover-page .home-avatar-btn {
    flex: 0 0 auto;
    position: relative;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

body.discover-page .home-icon-btn:hover,
body.discover-page .home-icon-btn:focus-visible,
body.discover-page .home-avatar-btn:hover,
body.discover-page .home-avatar-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(244, 114, 182, 0.38);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

body.discover-page .home-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

body.discover-page .home-icon-btn--compose {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(236, 72, 153, 0.22));
}

body.discover-page .home-icon-btn--compose:hover,
body.discover-page .home-icon-btn--compose:focus-visible {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.34), rgba(236, 72, 153, 0.30));
}

body.discover-page .home-icon-btn--notifications strong {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 0.68rem;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(7, 7, 13, 0.95);
}

body.discover-page .home-avatar-btn__circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9a8d4, #a855f7);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
}

body.discover-page .discover-main {
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 170px !important;
}

body.discover-page .discover-shell {
    display: grid;
    gap: 14px;
}

body.discover-page .discover-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 2px;
}

body.discover-page .discover-head__copy {
    display: grid;
    gap: 8px;
    max-width: 720px;
}

body.discover-page .discover-head__eyebrow,
body.discover-page .discover-section__eyebrow,
body.discover-page .discover-banner__eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.18);
    color: #c4b5fd;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.discover-page .discover-head h1,
body.discover-page .discover-section__head h2,
body.discover-page .discover-section-head h2 {
    margin: 0;
    color: #f8fafc;
    letter-spacing: -0.04em;
}

body.discover-page .discover-head h1 {
    font-size: clamp(1.55rem, 2vw, 2.1rem);
}

body.discover-page .discover-head p {
    margin: 0;
    max-width: 64ch;
    color: #b6bccb;
    line-height: 1.65;
}

body.discover-page .discover-filter-button {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(124, 32, 255, 0.22);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.96), rgba(236, 72, 153, 0.94));
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(76, 29, 149, 0.10);
}

body.discover-page .discover-filters,
body.discover-page .discover-section,
body.discover-page .discover-banner,
body.discover-page .discover-empty,
body.discover-page .discover-mini.card {
    background: rgba(15, 17, 31, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.10);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.20);
    backdrop-filter: blur(14px);
}

body.discover-page .discover-filters,
body.discover-page .discover-section,
body.discover-page .discover-banner {
    padding: 14px;
}

body.discover-page .discover-filter-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

body.discover-page .discover-filter-form label {
    display: grid;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #cbd5e1;
}

body.discover-page .discover-filter-form input,
body.discover-page .discover-filter-form select {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(196, 132, 252, 0.14);
    background: rgba(8, 9, 20, 0.82);
    color: #f8fafc;
    outline: none;
}

body.discover-page .discover-filter-check {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding-bottom: 4px;
}

body.discover-page .discover-filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

body.discover-page .discover-section__head,
body.discover-page .discover-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

body.discover-page .discover-section__head h2,
body.discover-page .discover-section-head h2 {
    margin: 6px 0 0;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    color: #f8fafc;
}

body.discover-page .discover-section__link {
    color: #d8b4fe;
    font-weight: 800;
}

body.discover-page .discover-online-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 92px;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 4px;
    scrollbar-width: thin;
}

body.discover-page .discover-online-chip {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: #e5e7eb;
}

body.discover-page .discover-online-chip small {
    color: #94a3b8;
}

body.discover-page .discover-online-chip__ring {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding: 3px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.26), rgba(255, 37, 58, 0.26));
    box-shadow: 0 12px 24px rgba(76, 29, 149, 0.12);
}

body.discover-page .discover-online-chip__ring.is-live {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.34), rgba(124, 58, 237, 0.22));
}

body.discover-page .discover-online-chip__avatar {
    border: 2px solid rgba(255, 255, 255, 0.92);
}

body.discover-page .discover-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

body.discover-page .discover-chip.is-live {
    background: rgba(16, 185, 129, 0.10);
    border-color: rgba(16, 185, 129, 0.16);
    color: #99f6e4;
}

body.discover-page .discover-chip.is-premium {
    background: rgba(124, 58, 237, 0.10);
    border-color: rgba(124, 58, 237, 0.16);
    color: #d8b4fe;
}

body.discover-page .discover-chip.is-verified {
    background: rgba(59, 130, 246, 0.10);
    border-color: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
}

body.discover-page .discover-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 17, 31, 0.94), rgba(31, 17, 54, 0.92));
}

body.discover-page .discover-banner.is-dismissing {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

body.discover-page .discover-banner__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(124, 58, 237, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    cursor: pointer;
}

body.discover-page .discover-banner__copy strong {
    font-size: 1.08rem;
    color: #f8fafc;
}

body.discover-page .discover-banner__copy p {
    margin: 0;
    color: #b6bccb;
    line-height: 1.6;
}

body.discover-page .discover-mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 14px;
}

body.discover-page .discover-tile {
    display: grid;
    gap: 8px;
}

body.discover-page .discover-tile.is-tall {
    grid-row: span 2;
}

body.discover-page .discover-tile.is-wide {
    grid-column: span 2;
}

body.discover-page .discover-tile__frame {
    position: relative;
    overflow: hidden;
    min-height: 236px;
    border-radius: 22px;
    background: linear-gradient(180deg, #111827 0%, #0b1020 100%);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.16);
}

body.discover-page .discover-tile.is-tall .discover-tile__frame {
    min-height: 320px;
}

body.discover-page .discover-tile.is-wide .discover-tile__frame {
    min-height: 284px;
}

body.discover-page .discover-tile__media {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: #0b1020;
}

body.discover-page .discover-tile__placeholder {
    min-height: inherit;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top, rgba(255, 77, 141, 0.18), transparent 38%), linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(76, 29, 149, 0.82));
}

body.discover-page .discover-tile__placeholder-mark {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
}

body.discover-page .discover-tile__overlay {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: grid;
    gap: 8px;
    padding: 12px 13px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.78));
    color: #fff;
}

body.discover-page .discover-tile__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.discover-page .discover-tile__avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #7c3aed, #ff4d8d);
    background-size: cover;
    background-position: center;
    color: #fff;
    font-weight: 900;
    flex: 0 0 auto;
}

body.discover-page .discover-tile__author small {
    color: rgba(255, 255, 255, 0.82);
}

body.discover-page .discover-tile__chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

body.discover-page .discover-tile__caption {
    margin: 0;
    color: #b6bccb;
    line-height: 1.55;
    font-size: 0.92rem;
}

body.discover-page .discover-tile__count {
    position: absolute;
    right: 14px;
    top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

body.discover-page .discover-tile__actions {
    position: absolute;
    left: 14px;
    top: 14px;
    display: flex;
    gap: 7px;
    z-index: 2;
}

body.discover-page .discover-action {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(17, 24, 39, 0.54);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

body.discover-page .discover-action:hover {
    transform: translateY(-1px);
}

body.discover-page .discover-action.is-like:hover {
    background: rgba(255, 37, 58, 0.88);
    border-color: rgba(255, 255, 255, 0.24);
}

body.discover-page .discover-action.is-favorite:hover {
    background: rgba(124, 58, 237, 0.88);
    border-color: rgba(255, 255, 255, 0.24);
}

body.discover-page .discover-action.is-pass:hover {
    background: rgba(107, 114, 128, 0.88);
    border-color: rgba(255, 255, 255, 0.24);
}

body.discover-page .discover-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.discover-page .discover-mini {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 13px 14px;
    border-radius: 20px;
}

body.discover-page .discover-mini__avatar {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 77, 141, 0.18));
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(124, 58, 237, 0.12);
    color: #d8b4fe;
    font-size: 1.2rem;
    font-weight: 900;
}

body.discover-page .discover-mini__copy strong {
    color: #f8fafc;
}

body.discover-page .discover-mini__copy small {
    color: #94a3b8;
}

body.discover-page .discover-mini__tag {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.10);
    border: 1px solid rgba(124, 58, 237, 0.14);
    color: #d8b4fe;
    font-size: 0.72rem;
    font-weight: 800;
}

body.discover-page .discover-empty {
    padding: 18px;
}

body.discover-page .discover-empty strong {
    color: #f8fafc;
}

body.discover-page .discover-empty p {
    margin: 0;
    color: #b6bccb;
}

@media (max-width: 760px) {
    body.discover-page .discover-topbar-inner--compact {
        min-height: 60px;
        gap: 8px;
        padding-inline: 12px;
    }

    body.discover-page .discover-brand-wordmark small {
        display: none;
    }

    body.discover-page .discover-topbar__toolbar {
        gap: 6px;
    }

    body.discover-page .home-icon-btn,
    body.discover-page .home-avatar-btn {
        min-width: 38px;
        min-height: 38px;
        border-radius: 12px;
    }

    body.discover-page .discover-main {
        padding-top: 12px;
        padding-bottom: 168px !important;
    }

    body.discover-page .discover-head {
        align-items: flex-start;
    }

    body.discover-page .discover-section,
    body.discover-page .discover-banner,
    body.discover-page .discover-filters {
        padding: 14px;
    }

    body.discover-page .discover-filter-form {
        grid-template-columns: 1fr;
    }

    body.discover-page .discover-banner {
        grid-template-columns: 1fr;
    }

    body.discover-page .discover-online-strip {
        grid-auto-columns: 90px;
    }

    body.discover-page .discover-tile.is-tall,
    body.discover-page .discover-tile.is-wide {
        grid-column: auto;
        grid-row: auto;
    }

    body.discover-page .discover-tile__frame,
    body.discover-page .discover-tile.is-tall .discover-tile__frame,
    body.discover-page .discover-tile.is-wide .discover-tile__frame {
        min-height: 250px;
    }

    body.discover-page .discover-nearby {
        display: none;
    }
}
body.profile-menu-page .app-main-minimal {
    padding-top: 16px;
    padding-bottom: 130px !important;
}

.profile-menu-shell {
    display: grid;
    justify-items: center;
    gap: 16px;
}

.profile-menu-card {
    width: min(100%, 740px);
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 28px;
    background: rgba(15, 17, 31, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
}

.profile-menu-card__hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.profile-menu-card__avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #7c3aed, #f72585);
    background-size: cover;
    background-position: center;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
    border: 3px solid rgba(244, 114, 182, 0.18);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.22);
}

.profile-menu-card__avatar.has-image {
    background-color: #0b1020;
}

.profile-menu-card__copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.profile-menu-card__eyebrow {
    color: #a78bfa;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.profile-menu-card__copy h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    line-height: 1.05;
    color: #f8fafc;
}

.profile-menu-card__copy p,
.profile-menu-card__copy small {
    margin: 0;
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.5;
}

.profile-menu-card__edit {
    white-space: nowrap;
}

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

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(196, 132, 252, 0.12);
    background: rgba(8, 9, 20, 0.72);
    color: #e5e7eb;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(244, 114, 182, 0.24);
    background: rgba(17, 24, 39, 0.92);
}

.profile-menu-item__icon {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.20), rgba(247, 37, 133, 0.20));
    color: #fff;
    flex: 0 0 auto;
}

.profile-menu-item__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.profile-menu-item__copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.profile-menu-item__copy strong {
    font-size: 0.98rem;
    color: #f8fafc;
}

.profile-menu-item__copy small {
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.8rem;
    line-height: 1.3;
}

.profile-menu-item__arrow {
    color: rgba(226, 232, 240, 0.46);
    font-size: 1.5rem;
    line-height: 1;
    flex: 0 0 auto;
}

.profile-menu-item[href*="logout"] {
    border-color: rgba(244, 63, 94, 0.18);
}

.profile-menu-item[href*="logout"] .profile-menu-item__icon {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.24), rgba(244, 114, 182, 0.20));
}

@media (max-width: 760px) {
    .profile-menu-card {
        padding: 16px;
        border-radius: 24px;
    }

    .profile-menu-card__hero {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .profile-menu-card__edit {
        width: 100%;
        justify-content: center;
    }

    .profile-menu-item {
        padding: 12px;
    }
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body.is-authenticated {
    overflow-x: hidden;
}

body.is-authenticated .wrap,
body.is-authenticated .app-main,
body.is-authenticated .app-main-minimal,
body.is-authenticated .home-main,
body.is-authenticated .discover-main,
body.is-authenticated .search-main,
body.is-authenticated .messages-main,
body.is-authenticated .profile-main,
body.is-authenticated .profile-menu-shell,
body.is-authenticated .profile-shell,
body.is-authenticated .messages-layout,
body.is-authenticated .messages-sidebar,
body.is-authenticated .messages-thread-panel,
body.is-authenticated .discover-shell,
body.is-authenticated .discover-section,
body.is-authenticated .discover-banner,
body.is-authenticated .discover-filters,
body.is-authenticated .discover-empty,
body.is-authenticated .search-shell,
body.is-authenticated .search-toolbar,
body.is-authenticated .search-filters,
body.is-authenticated .search-tip,
body.is-authenticated .search-result,
body.is-authenticated .search-empty {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

body.home-page .social-home {
    width: min(1120px, calc(100% - 24px));
}

body.home-page .social-reaction-bar {
    max-width: 100%;
}

@media (max-width: 760px) {
    body.home-page .social-home {
        width: min(100%, 1120px);
    }

    body.home-page .social-home,
    body.home-page .social-main,
    body.home-page .social-feed,
    body.home-page .social-card,
    body.home-page .social-card__content,
    body.home-page .social-card__header,
    body.home-page .social-card__footer,
    body.home-page .social-composer,
    body.home-page .social-composer__top,
    body.home-page .social-composer__bottom,
    body.home-page .social-video-player,
    body.home-page .social-card__media--single,
    body.home-page .social-card__carousel-slide {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    body.home-page .social-video-player,
    body.home-page .social-card__media--single.is-video > .social-video-player {
        height: min(65vh, 560px);
        min-height: 220px;
        max-height: min(65vh, 560px);
    }

    body.home-page .social-video-player.is-portrait {
        height: min(65vh, 560px);
        min-height: 240px;
        max-height: min(65vh, 560px);
    }

    body.home-page .social-card__media--single {
        height: clamp(180px, 58vw, 260px);
        min-height: 180px;
    }

    body.home-page .social-card__media--single.is-video {
        height: auto;
        min-height: 0;
    }

    body.home-page .social-card__media--single img,
    body.home-page .social-card__media--single video,
    body.home-page .social-video-player__media,
    body.home-page .social-card__carousel-slide img,
    body.home-page .social-card__carousel-slide video {
        width: 100%;
        max-width: 100%;
        object-fit: contain;
    }

    body.home-page .social-home .social-reaction-bar {
        max-width: 100%;
    }

    .post-modal {
        padding: 0;
        align-items: stretch;
        overflow-x: hidden;
    }

    .post-modal__panel {
        width: 100%;
        max-width: 100%;
        max-height: 100dvh;
        border-radius: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .post-modal__head {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 8px;
        padding: 12px 14px;
    }

    .post-modal__head h2 {
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

    .post-modal__icon-btn {
        width: 40px;
        height: 40px;
    }

    .post-modal__grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }

    .post-modal__media,
    .post-modal__side {
        padding: 12px 14px;
        overflow: visible;
    }

    .post-modal__media {
        border-right: 0;
        border-bottom: 1px solid rgba(155, 92, 255, 0.12);
    }

    .post-modal__dropzone {
        min-height: 180px;
        padding: 16px 12px;
        width: 100%;
        max-width: 100%;
    }

    .post-modal__dropzone strong,
    .post-modal__dropzone p,
    .post-modal__terms,
    .post-modal__status {
        overflow-wrap: anywhere;
    }

    .post-modal__dropzone .btn,
    .post-modal__side .btn-block {
        width: 100%;
        max-width: 100%;
        min-height: 46px;
        white-space: normal;
    }

    .post-modal__preview {
        width: 100%;
        max-width: 100%;
    }

    .post-modal__preview-empty {
        min-height: 96px;
    }

    .post-modal__preview-item {
        width: 100%;
        max-width: 100%;
        padding: 10px;
    }

    .post-modal__preview-item img,
    .post-modal__preview-item video {
        width: 100%;
        max-width: 100%;
        height: min(52vw, 240px);
        max-height: 240px;
        object-fit: contain;
        background: #000;
    }

    .post-modal__preview-meta {
        flex-wrap: wrap;
    }

    .post-modal__preview-controls {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .post-modal__preview-controls button {
        width: 100%;
        min-width: 0;
    }

    .post-modal__field textarea {
        width: 100%;
        max-width: 100%;
        min-height: 140px;
    }

    .post-modal__visibility {
        width: 100%;
        max-width: 100%;
        padding: 12px;
    }
}

