/* ============================================================
   Cupidon.services — design system
   Temă dublă (dark implicit / light), accent rose→violet
   ============================================================ */

:root {
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --accent-1: #F43F5E;
    --accent-2: #A855F7;
    --grad-accent: linear-gradient(120deg, #F43F5E, #A855F7);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --container: 1160px;
    --nav-h: 68px;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, .25), 0 12px 32px -16px rgba(0, 0, 0, .4);
    --shadow-modal: 0 24px 80px -24px rgba(0, 0, 0, .6);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0B0B10;
    --bg-alt: #0F0F16;
    --surface: #14141D;
    --surface-2: #1B1B26;
    --border: rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .16);
    --text: #F2F2F7;
    --text-2: #A7AAB8;
    --text-3: #7A7E8F;
    --accent-soft: rgba(244, 63, 94, .12);
    --accent-2-soft: rgba(168, 85, 247, .14);
    --ring-track: rgba(255, 255, 255, .08);
    --nav-bg: rgba(11, 11, 16, .82);
    --own-bubble: #22402F;      /* verde pastel închis, odihnitor pe fundal întunecat */
    --own-bubble-text: #E6F4EA;
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #FBFAFC;
    --bg-alt: #F4F2F8;
    --surface: #FFFFFF;
    --surface-2: #F6F5FA;
    --border: rgba(22, 20, 34, .1);
    --border-strong: rgba(22, 20, 34, .2);
    --text: #17151F;
    --text-2: #55525F;
    --text-3: #85828F;
    --accent-soft: rgba(244, 63, 94, .09);
    --accent-2-soft: rgba(168, 85, 247, .1);
    --ring-track: rgba(22, 20, 34, .08);
    --nav-bg: rgba(251, 250, 252, .85);
    --own-bubble: #DCF5D8;      /* verde pastel deschis */
    --own-bubble-text: #17301D;
    --shadow-card: 0 1px 2px rgba(22, 20, 34, .05), 0 12px 32px -16px rgba(22, 20, 34, .12);
}

/* ============ RESET & BAZĂ ============ */
*, *::before, *::after { box-sizing: border-box; }

/* atributul hidden trebuie să învingă orice display din stilurile noastre
   (ex. .cookie-bar cu flex, .icon-btn cu inline-flex) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}

p { margin: 0 0 1em; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: rgba(168, 85, 247, .35); }

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}
.container-narrow { max-width: 780px; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--surface);
    color: var(--text);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    z-index: 200;
}
.skip-link:focus { left: 16px; top: 12px; }

:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============ BUTOANE ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: .95rem;
    padding: 11px 22px;
    text-decoration: none;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s;
    white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
    background: var(--grad-accent);
    color: #fff;
    box-shadow: 0 4px 20px -6px rgba(244, 63, 94, .5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px -6px rgba(168, 85, 247, .55); }

.btn-ghost {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); }

.btn-lg { padding: 14px 30px; font-size: 1.02rem; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-block { width: 100%; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: transparent;
    font-size: 1.05rem;
    transition: background .18s, border-color .18s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }

/* ============ NAVBAR ============ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: var(--nav-h);
    min-width: 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.brand-mark { width: 30px; height: 30px; }
.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
}
.brand-tld {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 2px;
    margin-inline: auto;
    min-width: 0;
    overflow: hidden;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-2);
    font-size: .92rem;
    font-weight: 500;
    padding: 8px 13px;
    border-radius: var(--radius-pill);
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

/* utilizator autentificat în navbar */
.user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-pill);
    padding: 4px 5px 4px 4px;
}
.user-chip[hidden] { display: none; }
.user-chip .avatar { width: 30px; height: 30px; font-size: .78rem; }
.user-chip-name {
    font-weight: 600;
    font-size: .88rem;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.btn-logout {
    width: 32px;
    height: 32px;
    font-size: .95rem;
    border: 0;
    color: var(--text-3);
}
.btn-logout:hover { color: var(--accent-1); }

.nav-burger { display: none; flex-direction: column; gap: 4px; }
.burger-line {
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .25s var(--ease), opacity .2s;
}
.nav-burger[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 10px 24px 20px;
    border-top: 1px solid var(--border);
}
.mobile-menu a {
    text-decoration: none;
    color: var(--text-2);
    font-weight: 500;
    padding: 11px 4px;
    border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .btn { margin-top: 10px; }
.mobile-menu.open { display: flex; }

/* ============ HERO ============ */
.hero {
    position: relative;
    padding: 96px 0 72px;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    inset: -40% -20% auto;
    height: 130%;
    background:
        radial-gradient(42% 55% at 30% 30%, rgba(244, 63, 94, .16), transparent 70%),
        radial-gradient(40% 50% at 72% 25%, rgba(168, 85, 247, .17), transparent 70%);
    pointer-events: none;
}
[data-theme="light"] .hero-glow {
    background:
        radial-gradient(42% 55% at 30% 30%, rgba(244, 63, 94, .1), transparent 70%),
        radial-gradient(40% 50% at 72% 25%, rgba(168, 85, 247, .12), transparent 70%);
}
.hero-inner {
    position: relative;
    text-align: center;
    max-width: 880px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-2);
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 26px;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, .6);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); }
    70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
    font-size: clamp(2.1rem, 5.4vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 22px;
}
.grad-text {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.13rem);
    color: var(--text-2);
    max-width: 640px;
    margin: 0 auto 34px;
}
.hero-sub strong { color: var(--text); }

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 52px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 0;
    max-width: 720px;
    margin-inline: auto;
}
.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 12px 14px;
}
.stat dt {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 800;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat dd {
    margin: 2px 0 0;
    font-size: .82rem;
    color: var(--text-3);
}

/* ============ SECȚIUNI ============ */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 12px;
}
.section-head h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    font-weight: 700;
}
.section-desc { color: var(--text-2); margin: 0; }

.demo-tag {
    font-size: .68rem;
    letter-spacing: .05em;
    font-weight: 600;
    color: var(--text-3);
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    text-transform: none;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

/* ============ PAȘI ============ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.step-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 30px 26px 24px;
    box-shadow: var(--shadow-card);
    transition: transform .2s var(--ease), border-color .2s;
}
.step-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.step-num {
    position: absolute;
    top: 18px;
    right: 22px;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text);
    opacity: .07;
}
.step-icon { font-size: 1.9rem; margin-bottom: 14px; }
.step-card h3 { font-size: 1.12rem; }
.step-card p { color: var(--text-2); font-size: .93rem; margin: 0; }

/* ============ QUIZ ============ */
.quiz-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 34px 38px 30px;
}
.quiz-progress {
    height: 6px;
    border-radius: 3px;
    background: var(--ring-track);
    overflow: hidden;
    margin-bottom: 26px;
}
.quiz-progress-fill {
    height: 100%;
    width: 8.3%;
    border-radius: 3px;
    background: var(--grad-accent);
    transition: width .35s var(--ease);
}
.quiz-meta {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 10px;
}
.quiz-question {
    font-size: clamp(1.15rem, 2.6vw, 1.45rem);
    margin-bottom: 24px;
}
.quiz-options { display: grid; gap: 12px; }
.quiz-option {
    text-align: left;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    transition: border-color .15s, background .15s, transform .15s var(--ease);
}
.quiz-option:hover { border-color: var(--accent-2); transform: translateY(-1px); }
.quiz-option.selected { border-color: var(--accent-2); background: var(--accent-2-soft); }
.quiz-option-title { font-weight: 600; margin-bottom: 3px; }
.quiz-option-desc { font-size: .86rem; color: var(--text-2); }

.quiz-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
}
.quiz-hint { font-size: .8rem; color: var(--text-3); text-align: right; }

/* rezultat */
.quiz-result { text-align: center; }
.quiz-result-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 6px;
}
.quiz-result-type {
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: .04em;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}
.quiz-result-name { font-weight: 600; font-size: 1.15rem; margin-bottom: 10px; }
.quiz-result-desc { color: var(--text-2); max-width: 520px; margin: 0 auto 26px; }

.dim-bars { display: grid; gap: 14px; max-width: 460px; margin: 0 auto 26px; }
.dim-bar-row { display: grid; gap: 5px; }
.dim-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-2);
}
.dim-bar-labels .dominant { color: var(--text); }
.dim-track {
    height: 8px;
    background: var(--ring-track);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}
.dim-fill {
    height: 100%;
    background: var(--grad-accent);
    border-radius: 4px;
    transition: width .6s var(--ease);
}

.quiz-result-matches p { font-size: .86rem; color: var(--text-3); margin-bottom: 10px; }
.match-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.match-chip {
    font-size: .85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--accent-2-soft);
    border: 1px solid var(--border);
}
.quiz-result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ CALCULATOR ============ */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr 1fr;
    gap: 20px;
    align-items: start;
}
.calc-panel { padding: 26px 24px; }
.calc-panel h3 { font-size: 1.05rem; margin-bottom: 18px; }

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 7px;
}
.field output { color: var(--accent-2); font-weight: 700; }
.field select,
.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field input[type="password"],
.field input[type="date"],
.field textarea {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 11px 13px;
    font: inherit;
    font-size: .93rem;
    transition: border-color .15s;
}
.field select:focus, .field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent-2);
}
.field textarea { resize: vertical; }

input[type="range"] {
    width: 100%;
    accent-color: var(--accent-2);
    height: 26px;
}

/* câmpuri de mesaj multi-linie */
.chat-textarea {
    flex: 1;
    resize: none;
    height: 42px;      /* un singur rând când e gol */
    min-height: 42px;
    overflow-y: auto;
    max-height: 140px;
    line-height: 1.45;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 10px 13px;
    font: inherit;
    font-size: .93rem;
}
.chat-textarea:focus { outline: none; border-color: var(--accent-2); }
/* ---- fereastra de mesaje: maximizare pe tot ecranul ---- */
.modal-action {
    position: absolute;
    top: 14px;
    right: 56px;              /* lângă butonul de închidere */
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-2);
    font-size: .95rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.modal-action:hover { color: var(--accent-2); border-color: var(--accent-2); }
.modal-action[hidden] { display: none !important; }

#chatModal.maximized { padding: 0; }
#chatModal.maximized .modal-card {
    max-width: none;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;         /* derulează doar lista de mesaje */
    animation: none;
}
#chatModal.maximized .chat-box-real {
    flex: 1;
    max-height: none;
    min-height: 0;
}
/* pe ecran mare, mesajele nu trebuie să se întindă cât un rând de ziar */
#chatModal.maximized .chat-real-head,
#chatModal.maximized .chat-box-real,
#chatModal.maximized .chat-form,
#chatModal.maximized .chat-locked,
#chatModal.maximized .chat-reply-bar {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
#chatModal.maximized .chat-msg { max-width: 68%; }
/* maximizat, acțiunile de blocare/raportare ies din cale */
#chatModal.maximized #chatActions { display: none !important; }

.chat-form, .comment-form { align-items: flex-end; }
/* În mesajele private, caseta de scris e generoasă din start (două rânduri) și
   crește până la 220px; butoanele rămân aliniate jos, lângă ea. */
.chat-form .chat-textarea { height: 86px; min-height: 86px; max-height: 220px; }

/* păstrează rândurile doar în textul propriu-zis, nu în toată bula */
.msg-text { display: block; white-space: pre-wrap; }
.comment p, .post-full-body { white-space: pre-wrap; }

/* jocuri */
.game-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent-2-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; flex-shrink: 0;
}
.game-card { cursor: pointer; }

/* șah */
.chess-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    width: min(100%, 420px);
    margin: 0 auto;
    border: 2px solid var(--border-strong);
    border-radius: 8px;
    overflow: hidden;
}
.chess-board .sq {
    aspect-ratio: 1;
    border: 0;
    font-size: clamp(1.4rem, 6.4vw, 2.5rem);
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
/* piesele: aceleași glife pline, diferențiate doar prin culoare */
.chess-board .pc { line-height: 1; }
.chess-board .pc-major { font-size: 1em; }      /* rege, damă, turn, nebun, cal */
.chess-board .pc-pawn  { font-size: .78em; }    /* pionii, vizibil mai mici */
.chess-board .pc-w {
    color: #FFFFFF;
    text-shadow: 0 0 1px #2A2A33, 0 0 2px #2A2A33, 0 1px 1px rgba(0,0,0,.35);
}
.chess-board .pc-b {
    color: #15151C;
    text-shadow: 0 0 1px rgba(255,255,255,.35);
}
.chess-board .light { background: #EFE6DA; color: #1a1a22; }
.chess-board .dark  { background: #B58863; color: #1a1a22; }
.chess-board .sel { outline: 3px solid var(--accent-2); outline-offset: -3px; }
.chess-board .target::after {
    content: '';
    width: 26%; height: 26%;
    border-radius: 50%;
    background: rgba(168, 85, 247, .75);
}

/* ghicește la ce mă gândesc */
.guess-log {
    display: grid;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 14px;
}
.guess-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 13px;
    font-size: .9rem;
}
.guess-entry.mine { border-left: 3px solid var(--accent-2); }
.guess-q { flex: 1; }
.guess-a { font-weight: 700; font-size: .78rem; padding: 2px 9px; border-radius: 999px; }
.guess-a.yes { background: rgba(52,211,153,.16); color: #34D399; }
.guess-a.no { background: rgba(244,63,94,.14); color: #FB7185; }
.guess-a.pending { color: var(--text-3); }

/* 5 în linie */
.gomoku-board {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 1px;
    width: min(100%, 440px);
    margin: 0 auto;
    background: var(--border-strong);
    border: 2px solid var(--border-strong);
    border-radius: 6px;
    overflow: hidden;
}
.gk-cell {
    aspect-ratio: 1;
    border: 0;
    padding: 0;
    background: #E8DCC8;
    position: relative;
}
[data-theme="dark"] .gk-cell { background: #C8B79B; }
.gk-cell:not([disabled]):hover { background: #F5E9D5; }
.gk-cell.gk-w::after, .gk-cell.gk-b::after {
    content: '';
    position: absolute;
    inset: 12%;
    border-radius: 50%;
}
.gk-cell.gk-w::after { background: #FAFAFC; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.gk-cell.gk-b::after { background: #1B1B24; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.gk-cell.gk-last { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.gk-cell.gk-win::after { box-shadow: 0 0 0 2px #34D399, 0 1px 3px rgba(0,0,0,.4); }

/* moara */
.mill-board { width: min(100%, 360px); margin: 0 auto; display: block; color: var(--text-2); }
.mill-pt { cursor: pointer; transition: r .15s; }
.mill-pt:hover { stroke: var(--accent-2); }

/* ============ TABLE (backgammon) ============ */
.tb-scroll { overflow-x: auto; margin-bottom: 12px; }
.tb-board {
    min-width: 280px;   /* încape pe telefon; sub asta, containerul derulează */
    display: grid;
    grid-template-columns: 6fr .85fr 6fr 1.5fr;
    grid-template-rows: 1fr 1fr;
    aspect-ratio: 15 / 10;
    background: #6B4A32;                       /* rama de lemn */
    border: 12px solid #6B4A32;
    border-radius: 12px;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,.45), 0 14px 34px rgba(0,0,0,.4);
    overflow: hidden;
    user-select: none;
}
.tb-quad { display: grid; grid-template-columns: repeat(6, 1fr); background: #24382E; }
.tb-quad.tl { grid-area: 1 / 1; }
.tb-quad.tr { grid-area: 1 / 3; }
.tb-quad.bl { grid-area: 2 / 1; }
.tb-quad.br { grid-area: 2 / 3; }

/* triunghiurile */
.tb-point { position: relative; }
.tb-point::before { content: ''; position: absolute; inset: 0; background: var(--tri); }
.tb-quad.tl .tb-point::before, .tb-quad.tr .tb-point::before { clip-path: polygon(0 0, 100% 0, 50% 97%); }
.tb-quad.bl .tb-point::before, .tb-quad.br .tb-point::before { clip-path: polygon(50% 3%, 100% 100%, 0 100%); }
.tb-point.light { --tri: #E2D3B4; }
.tb-point.dark  { --tri: #A64F38; }
.tb-point.sel { background: rgba(251, 191, 36, .22); }
.tb-point.sel::before { filter: brightness(1.25); }
.tb-point.can, .tb-point.mine { cursor: pointer; }

/* ținta unei mutări posibile — pusă în vârful triunghiului, unde nu stau piese */
.tb-point.can::after {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%);
    width: 32%; aspect-ratio: 1; border-radius: 50%;
    background: rgba(52, 211, 153, .9); box-shadow: 0 0 10px rgba(52, 211, 153, .9);
}
.tb-quad.tl .tb-point.can::after, .tb-quad.tr .tb-point.can::after { bottom: 1%; }
.tb-quad.bl .tb-point.can::after, .tb-quad.br .tb-point.can::after { top: 1%; }

/* piesele */
.tb-chk {
    position: absolute; left: 50%; transform: translateX(-50%);
    width: 84%; aspect-ratio: 1; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .6rem; font-weight: 800; line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,.55);
}
.tb-chk.w { background: radial-gradient(circle at 34% 28%, #FFFDF7, #DCD0BB 68%, #B5A88F); color: #2A2A33; border: 1px solid #97896F; }
.tb-chk.b { background: radial-gradient(circle at 34% 28%, #56566B, #23232E 68%, #131319); color: #F2F2F7; border: 1px solid #0C0C11; }

/* bara centrală */
.tb-bar {
    grid-area: 1 / 2 / 3 / 3;
    background: linear-gradient(#5A3D29, #43301F);
    box-shadow: inset 3px 0 6px rgba(0,0,0,.45), inset -3px 0 6px rgba(0,0,0,.45);
    display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    padding: 3% 0;
}
.tb-bar.sel { box-shadow: inset 0 0 0 3px #FBBF24; }
.tb-bar.mine { cursor: pointer; }
.tb-bar-half { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; }
.tb-bar-half:last-child { flex-direction: column-reverse; }
.tb-bar .tb-chk { position: static; transform: none; width: 76%; }

/* tăvile pentru piesele scoase */
.tb-tray {
    grid-area: 1 / 4 / 3 / 5;
    background: linear-gradient(#5A3D29, #43301F);
    box-shadow: inset 3px 0 6px rgba(0,0,0,.45);
    display: flex; flex-direction: column; gap: 5%; padding: 5%;
}
.tb-tray-half {
    flex: 1; border-radius: 5px; background: rgba(0,0,0,.3);
    display: flex; flex-direction: column; gap: 2px; padding: 5%;
}
.tb-tray-half:last-child { flex-direction: column-reverse; }
.tb-tray-half.can { box-shadow: 0 0 0 3px #34D399; cursor: pointer; }
.tb-off { height: 8%; min-height: 5px; border-radius: 3px; flex: 0 0 auto; }
.tb-off.w { background: linear-gradient(#FFFDF7, #C7BAA2); }
.tb-off.b { background: linear-gradient(#56566B, #191921); }

/* zarurile */
.tb-bottom { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.tb-dice { display: flex; gap: 8px; }
.tb-die {
    width: 34px; height: 34px; border-radius: 7px; padding: 4px;
    background: linear-gradient(#FFFDF7, #DDD2BE);
    border: 1px solid #A5987F; box-shadow: 0 2px 5px rgba(0,0,0,.45);
    display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 1px;
}
.tb-die.used { opacity: .25; }
.tb-pip { border-radius: 50%; background: #24242E; }
.tb-side { display: flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--text-2); }
.tb-side .tb-chk { position: static; transform: none; width: 20px; height: 20px; }
.tb-hint { text-align: center; font-size: .86rem; color: var(--text-2); margin: 0 0 10px; }
.tb-hint strong { color: var(--accent-2); }

.feed-mode { margin-bottom: 14px; }
.feed-mode .lang-switch { display: inline-flex; }
.feed-mode-info { font-size: .8rem; color: var(--text-3); margin: 8px 0 0; }
.feed-mode-info strong { color: var(--accent-2); }
@media (max-width: 560px) {
    .feed-mode .lang-switch { display: flex; width: 100%; }
    .feed-mode .lang-btn { flex: 1; padding: 8px 10px; font-size: .78rem; }
}

/* ============ SCRABBLE ============ */
.sc-scroll { overflow-x: auto; margin-bottom: 10px; }
.sc-board {
    min-width: 280px;   /* încape pe telefon fără derulare laterală */
    container-type: inline-size;
    display: grid; grid-template-columns: repeat(15, 1fr);
    aspect-ratio: 1; gap: 1.5px;
    background: #3E3A33; padding: 5px; border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0,0,0,.4);
    user-select: none;
}
.sc-cell {
    position: relative; border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
    background: #D8CDB5; color: #4A4034;
    font-size: 1.9cqw; font-weight: 700; line-height: 1; text-align: center;
}
.sc-cell.tw { background: #C1543F; color: #FFF0EA; }
.sc-cell.dw { background: #DE9C8E; color: #4A2A22; }
.sc-cell.tl { background: #3B7CA8; color: #EAF4FB; }
.sc-cell.dl { background: #A9CBE3; color: #24435C; }
.sc-cell.centru::after { content: '★'; font-size: 4cqw; color: #8C4A3A; }
.sc-cell.liber { cursor: pointer; }
.sc-cell.liber:hover { outline: 2px solid var(--accent-2); outline-offset: -2px; }

/* piesele de pe tablă */
.sc-tile {
    position: absolute; inset: 0; border-radius: 2px;
    background: linear-gradient(#F5E4B8, #E3CB94);
    color: #3A2B18; border: 1px solid #B99B5F;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 2px rgba(0,0,0,.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 4.2cqw; font-weight: 800; line-height: 1;
}
.sc-tile .sc-v { position: absolute; right: 4%; bottom: 2%; font-size: 2.1cqw; font-weight: 700; opacity: .75; }
.sc-tile.alba { color: #7A6A52; font-style: italic; }
.sc-tile.temp { box-shadow: 0 0 0 2px #34D399, 0 1px 3px rgba(0,0,0,.4); cursor: pointer; }
.sc-tile.ultima { box-shadow: 0 0 0 2px #FBBF24, 0 1px 3px rgba(0,0,0,.4); }

/* suportul cu piesele proprii */
.sc-rack {
    display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
    background: linear-gradient(#6B4A32, #4B3322);
    padding: 9px; border-radius: 8px; margin-bottom: 10px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,.45);
    min-height: 58px; align-items: center;
}
.sc-rt {
    width: 40px; height: 40px; border-radius: 4px; position: relative;
    background: linear-gradient(#F5E4B8, #E3CB94);
    color: #3A2B18; border: 1px solid #B99B5F;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 4px rgba(0,0,0,.4);
    font-size: 1.15rem; font-weight: 800; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform .12s var(--ease);
}
.sc-rt:hover { transform: translateY(-3px); }
.sc-rt.sel { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--accent-2), 0 4px 8px rgba(0,0,0,.45); }
.sc-rt.schimb { box-shadow: 0 0 0 2px #FB7185, 0 2px 4px rgba(0,0,0,.4); }
.sc-rt .sc-v { position: absolute; right: 3px; bottom: 1px; font-size: .6rem; opacity: .75; }
.sc-rt.goala { background: rgba(0,0,0,.25); border-color: transparent; box-shadow: none; cursor: default; }

.sc-bar { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: .86rem; color: var(--text-2); margin-bottom: 10px; }
.sc-bar b { color: var(--text); font-variant-numeric: tabular-nums; }
.sc-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.sc-hint { text-align: center; font-size: .86rem; color: var(--text-2); margin: 0 0 10px; }
.sc-hint strong { color: var(--accent-2); }
.sc-log { max-height: 110px; overflow-y: auto; font-size: .78rem; color: var(--text-3); border-top: 1px solid var(--border); padding-top: 8px; }
.sc-log div { padding: 2px 0; }

/* ============ GHICEȘTE RĂSPUNSUL MEU ============ */
.ga-top { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: var(--text-2); margin-bottom: 12px; }
.ga-top b { color: var(--text); font-variant-numeric: tabular-nums; }
.ga-nivel { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 11px; font-size: .72rem; font-weight: 700; }
.ga-nivel.n0 { background: rgba(148,163,184,.18); color: #CBD5E1; }
.ga-nivel.n1 { background: rgba(52,211,153,.16); color: #34D399; }
.ga-nivel.n2 { background: rgba(168,85,247,.16); color: #C084FC; }
.ga-nivel.n3 { background: rgba(244,63,94,.16); color: #FB7185; }

.ga-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; margin-bottom: 12px; }
.ga-q { font-size: 1.14rem; font-weight: 600; line-height: 1.45; margin: 10px 0 16px; }
.ga-col-title { font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin: 0 0 7px; }
.ga-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .ga-cols { grid-template-columns: 1fr; } }
.ga-opts { display: flex; flex-direction: column; gap: 7px; }
.ga-opt {
    text-align: left; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; font-size: .88rem;
    color: var(--text); cursor: pointer; transition: border-color .15s, background .15s;
}
.ga-opt:hover { border-color: var(--accent-2); }
.ga-opt:disabled { cursor: default; opacity: .75; }
.ga-opt:disabled:hover { border-color: var(--border); }
.ga-opt.sel:disabled { opacity: 1; }
.ga-opt.sel { border-color: var(--accent-2); background: rgba(168,85,247,.15); font-weight: 600; }
.ga-opts.mine .ga-opt.sel { border-color: #34D399; background: rgba(52,211,153,.15); }

.ga-wait { text-align: center; padding: 22px 10px; color: var(--text-2); }
.ga-wait .ga-mare { font-size: 2rem; display: block; margin-bottom: 8px; }
.ga-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

.ga-log { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; margin-top: 6px; }
.ga-runda { border-left: 3px solid var(--border); background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 13px; }
.ga-runda.potrivire { border-left-color: #F43F5E; }
.ga-runda-q { font-size: .88rem; font-weight: 600; margin: 0 0 6px; }
.ga-linie { font-size: .8rem; color: var(--text-2); display: flex; gap: 7px; align-items: baseline; padding: 1px 0; }
.ga-linie .ga-cine { color: var(--text-3); min-width: 62px; }
.ga-linie b { color: var(--text); font-weight: 600; }
.ga-bif { font-weight: 700; }
.ga-bif.da { color: #34D399; }
.ga-bif.nu { color: #FB7185; }
.ga-sarit { font-size: .78rem; color: var(--text-3); font-style: italic; padding: 4px 0; }
.ga-final { text-align: center; margin-bottom: 14px; }
.ga-final-scor { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============ STORY DUEL ============ */
.sd-cuvinte { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.sd-cuv {
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
    padding: 5px 13px; font-size: .85rem; font-weight: 600; color: var(--text-2);
    transition: background .15s, color .15s, border-color .15s;
}
.sd-cuv.folosit { background: rgba(52,211,153,.16); border-color: #34D399; color: #34D399; }
.sd-cuv.folosit::before { content: '✓ '; }
.sd-area { width: 100%; min-height: 180px; resize: vertical; font: inherit; font-size: .95rem; line-height: 1.6; }
.sd-sub { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--text-3); margin: 6px 0 12px; }
.sd-povesti { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 700px) { .sd-povesti { grid-template-columns: 1fr; } }
.sd-poveste { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 15px 17px; }
.sd-poveste.mea { border-color: var(--accent-2); }
.sd-autor { font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); margin: 0 0 9px; }
.sd-text { font-size: .93rem; line-height: 1.65; white-space: pre-wrap; margin: 0 0 10px; }
.sd-folosite { font-size: .74rem; color: var(--text-3); border-top: 1px solid var(--border); padding-top: 8px; margin: 0; }

/* ============ MESAJE ÎN PARTIDĂ ============ */
.gc-wrap { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 6px; }
.gc-titlu { font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin: 0 0 9px; }
.gc-list { display: flex; flex-direction: column; gap: 6px; max-height: 210px; overflow-y: auto; margin-bottom: 10px; padding-right: 2px; }
.gc-gol { font-size: .82rem; color: var(--text-3); text-align: center; padding: 12px 0; }
.gc-msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; font-size: .88rem; line-height: 1.45; word-break: break-word; }
.gc-msg.eu { align-self: flex-end; background: var(--grad-accent); color: #fff; border-bottom-right-radius: 4px; }
.gc-msg.el { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.gc-ora { display: block; font-size: .64rem; opacity: .7; margin-top: 3px; }
.gc-form { display: flex; gap: 8px; align-items: flex-end; }
.gc-form textarea { flex: 1; min-height: 40px; max-height: 120px; resize: none; font: inherit; font-size: .9rem; }

/* desen */
.scribble-canvas {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    touch-action: none;
    cursor: crosshair;
}
.scribble-tools { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 10px 0; }
.scribble-tools input[type="color"] { width: 42px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: none; }

/* poveste */
.story-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    line-height: 1.75;
    max-height: 320px;
    overflow-y: auto;
}
.story-line { }
.story-line.mine { color: var(--accent-2); font-weight: 600; }

/* aprecieri cu emoji */
.emoji-grid { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.emoji-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 7px 13px;
    font-size: .9rem;
    transition: border-color .15s, background .15s, transform .12s var(--ease);
}
.emoji-btn:hover:not(:disabled) { border-color: var(--accent-2); transform: translateY(-1px); }
.emoji-btn.given { border-color: var(--accent-2); background: var(--accent-2-soft); font-weight: 700; }
.emoji-btn:disabled { opacity: .8; cursor: default; }
.emoji-icon { font-size: 1.05rem; }
.emoji-count { font-variant-numeric: tabular-nums; }
.emoji-from { margin: 10px 0 18px; }
.ef-titlu { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin: 0 0 8px; }
.ef-rand { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 5px 0; border-top: 1px solid var(--border); }
.ef-cap { font-size: .84rem; white-space: nowrap; color: var(--text-2); }
.ef-cap b { color: var(--text); }
.ef-oameni { font-size: .84rem; color: var(--text-2); flex: 1; min-width: 0; }
.ef-oameni .author-link { font-size: .84rem; }
.emoji-total { font-size: .78rem; color: var(--text-3); margin-left: 4px; }

/* profiluri demonstrative */
.demo-chip { color: var(--text-3); background: rgba(127,127,127,.16); font-weight: 600; }

/* vizualizare pe tot ecranul */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(4, 4, 8, .92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 24px;
    cursor: zoom-out;
}
.lightbox.open { display: flex; animation: fadeIn .18s var(--ease); }
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(0, 0, 0, .4);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
}
.avatar.has-photo[data-lightbox], .chat-img { cursor: zoom-in; }

/* fotografii în chat */
.chat-img {
    max-width: 220px;
    max-height: 220px;
    border-radius: 10px;
    margin: 4px 0;
    display: block;
}

/* mesaje vocale */
.chat-audio { width: 220px; max-width: 100%; height: 36px; margin: 2px 0; }
.audio-expired { font-size: .84rem; font-style: italic; opacity: .75; }
#btnMic.recording { background: var(--accent-1); color: #fff; border-color: transparent; animation: recPulse 1s infinite; }
@keyframes recPulse { 50% { opacity: .65; } }

/* notificări */
.notif-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent-2-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.convo-item.unread { border-color: var(--accent-2); background: var(--accent-2-soft); }
.convo-item .post-time { font-size: .74rem; }

/* sondaje în discuții */
.poll-list { display: grid; gap: 8px; margin-bottom: 14px; }
.poll-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: .9rem;
    overflow: hidden;
    transition: border-color .15s;
}
.poll-row:hover { border-color: var(--accent-2); }
.poll-row.voted { border-color: var(--accent-2); font-weight: 600; }
.poll-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: var(--accent-2-soft);
    transition: width .5s var(--ease);
}
.poll-label { position: relative; flex: 1; }
.poll-pct { position: relative; font-size: .82rem; color: var(--text-2); }

/* nume de autor clicabil → profil public */
.author-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--accent-2);
    text-underline-offset: 3px;
}
.author-link:hover { color: var(--accent-2); }

/* meniul paginilor interne (aplicație) */
.app-nav { display: flex; align-items: center; gap: 8px; }
.app-nav a {
    text-decoration: none;
    font-size: .87rem;
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    padding: 7px 14px;
    white-space: nowrap;
}
.app-nav a:hover { background: var(--surface-2); }
.app-nav a { position: relative; }
.user-chip-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 17px; height: 17px; padding: 0 4px; margin-left: 6px;
    border-radius: 999px; background: var(--grad-accent); color: #fff;
    font-size: .66rem; font-weight: 800; line-height: 1; vertical-align: middle;
}
.nav-badge[hidden] { display: none; }
/* pe ecran mic meniul e ascuns, deci semnalăm pe butonul ☰ */
.app-menu-btn.are-noutati::after {
    content: ''; position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px; border-radius: 50%; background: #F43F5E;
    box-shadow: 0 0 0 2px var(--surface);
}
.app-menu-btn { position: relative; }
.app-menu-btn { display: none; }

/* Meniul complet are nevoie de ~1150px ca să încapă lângă siglă și butoane.
   Sub asta îl strângem în spatele lui ☰ — altfel bara iese din ecran pe laptop. */
@media (max-width: 1180px) {
    .app-menu-btn { display: inline-flex; }
    .app-nav {
        display: none;
        position: absolute;
        top: calc(var(--nav-h) - 4px);
        right: 16px;
        left: auto;
        min-width: 220px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--surface);
        border: 1px solid var(--border-strong);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-modal);
        padding: 8px;
        z-index: 130;
    }
    .app-nav.open { display: flex; }
    .app-nav a { border: 0; padding: 12px 14px; font-size: .95rem; }
}

/* pe telefon strângem și restul barei */
@media (max-width: 760px) {
    .app-nav { left: 16px; }
    .nav-inner { gap: 10px; }
    .nav-actions { gap: 6px; }
    .icon-btn { width: 36px; height: 36px; font-size: .98rem; }
    .navbar .brand-text { font-size: 1.02rem; }
    .navbar .brand-mark { width: 26px; height: 26px; }
    .user-chip-name { display: none; }
    .user-chip { padding: 3px; gap: 4px; }
    .btn-logout { width: 28px; height: 28px; }
}

@media (max-width: 480px) {
    /* sub 480px păstrăm doar sigla, ca butoanele să încapă complet */
    .navbar .brand-text { display: none; }
}

/* citat în mesaje și comentarii */
.quote-block {
    display: block;
    border-left: 3px solid var(--accent-2);
    background: rgba(127, 127, 127, .12);
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 6px;
    font-size: .82rem;
    opacity: .85;
    max-height: 60px;
    overflow: hidden;
}
.quote-author { display: block; font-weight: 700; font-size: .74rem; margin-bottom: 2px; }
.chat-msg { position: relative; }
.quote-btn {
    position: absolute;
    top: 2px;
    right: 4px;
    background: none;
    border: 0;
    font-size: .8rem;
    opacity: 0;
    padding: 2px 4px;
    transition: opacity .15s;
}
.chat-msg:hover .quote-btn, .quote-btn:focus { opacity: .75; }
@media (hover: none) { .quote-btn { opacity: .55; } }

.reply-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-2);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: .82rem;
}
.reply-bar[hidden] { display: none; }
.reply-bar-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.reply-bar-x { background: none; border: 0; font-size: 1.1rem; color: var(--text-3); line-height: 1; }
.reply-bar-x:hover { color: var(--accent-1); }

/* aforisme despre dragoste */
.aphorism-box {
    margin: 0 0 22px;
    padding: 22px 28px;
    text-align: center;
    background:
        linear-gradient(120deg, rgba(244, 63, 94, .07), rgba(168, 85, 247, .07)),
        var(--surface);
    transition: opacity .6s ease;
}
.aphorism-box.fading { opacity: 0; }
.aphorism-text {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    font-style: italic;
    margin: 0 0 6px;
}
.aphorism-text::before { content: '„'; color: var(--accent-2); }
.aphorism-text::after { content: '”'; color: var(--accent-2); }
.aphorism-author { font-size: .84rem; color: var(--text-3); font-style: normal; }
.aphorism-author::before { content: '— '; }

/* pagini interne (aplicație, setări) */
.page-main {
    padding: 40px 24px 80px;
    margin-inline: auto;
}
.page-main.container { max-width: var(--container); }
.page-main.container-narrow { max-width: 720px; }
.page-card { padding: 30px 28px; }

.search-panel { padding: 20px 22px; }
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    align-items: end;
}
.search-grid .field { margin-bottom: 0; }
.search-actions { display: flex; gap: 8px; flex-wrap: wrap; }   /* pe telefon nu încap pe un rând */
@media (max-width: 900px) {
    .search-grid { grid-template-columns: 1fr 1fr; }
    .search-actions { grid-column: 1 / -1; }
}

/* chestionar de compatibilitate — chips */
.accept-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.accept-chip {
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-2);
    border-radius: var(--radius-pill);
    padding: 9px 15px;
    font-size: .87rem;
    font-weight: 500;
    transition: border-color .15s, background .15s, color .15s;
}
.accept-chip:hover { border-color: var(--accent-2); color: var(--text); }
.accept-chip.selected {
    border-color: var(--accent-2);
    background: var(--accent-2-soft);
    color: var(--text);
    font-weight: 600;
}
.muted-note { font-size: .72rem; color: var(--text-3); text-transform: none; letter-spacing: 0; font-weight: 400; }

/* câmp de parolă cu buton de afișare */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-toggle {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    font-size: 1.05rem;
    line-height: 1;
    padding: 7px 9px;
    border-radius: 8px;
    color: var(--text-3);
}
.pw-toggle:hover { background: var(--surface); }

.calc-result {
    padding: 30px 26px;
    text-align: center;
    position: sticky;
    top: calc(var(--nav-h) + 20px);
}
.score-ring-wrap { position: relative; width: 168px; margin: 0 auto 16px; }
.score-ring { transform: rotate(-90deg); }
.ring-bg, .ring-val {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
}
.ring-bg { stroke: var(--ring-track); }
.ring-val {
    stroke: url(#ringGrad);
    stroke-dasharray: 326.7;
    stroke-dashoffset: 326.7;
    transition: stroke-dashoffset .7s var(--ease);
}
.score-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.score-num {
    font-family: var(--font-display);
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1;
}
.score-cap { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

.score-verdict {
    font-weight: 700;
    font-size: 1.02rem;
    margin-bottom: 18px;
}
.score-reasons {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    text-align: left;
}
.score-reasons li {
    display: flex;
    gap: 10px;
    font-size: .87rem;
    color: var(--text-2);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 13px;
}
.score-reasons .r-icon { flex-shrink: 0; }

/* ============ DESCOPERIRE ============ */
.channel-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 26px;
    scrollbar-width: thin;
}
.tab-btn {
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 9px 17px;
    font-size: .87rem;
    font-weight: 600;
    color: var(--text-2);
    transition: border-color .15s, color .15s, background .15s;
}
.tab-btn:hover { border-color: var(--border-strong); color: var(--text); }
.tab-btn.active {
    background: var(--grad-accent);
    border-color: transparent;
    color: #fff;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 13px;
    transition: transform .2s var(--ease), border-color .2s;
}
.profile-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }

.profile-top { display: flex; align-items: center; gap: 14px; }
.avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    flex-shrink: 0;
}
.profile-name { font-weight: 700; font-size: 1.02rem; }
.profile-role { font-size: .84rem; color: var(--text-2); }

.match-badge {
    margin-left: auto;
    font-size: .78rem;
    font-weight: 700;
    color: #34D399;
    background: rgba(52, 211, 153, .12);
    border: 1px solid rgba(52, 211, 153, .3);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
}

.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ptag {
    font-size: .76rem;
    font-weight: 500;
    color: var(--text-2);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}
.profile-why {
    font-size: .84rem;
    color: var(--text-2);
    background: var(--accent-2-soft);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    margin: 0;
}
.profile-card .btn { margin-top: auto; }

/* ============ FORUM ============ */
.forum-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    align-items: start;
}
.forum-side { padding: 22px 20px; position: sticky; top: calc(var(--nav-h) + 20px); }
.forum-side h4 { font-size: .95rem; margin-bottom: 12px; }
.community-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 4px; }
.community-list li {
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.community-list li:hover { background: var(--surface-2); color: var(--text); }
.community-list li.active { background: var(--accent-2-soft); color: var(--text); font-weight: 600; }

.forum-feed { display: grid; gap: 16px; }
.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: border-color .15s, transform .18s var(--ease);
}
.post-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.post-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.post-head .avatar { width: 38px; height: 38px; font-size: .9rem; }
.post-author { font-weight: 600; font-size: .92rem; }
.post-time { font-size: .78rem; color: var(--text-3); }
.mbti-chip {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--accent-2);
    background: var(--accent-2-soft);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}
.post-title { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.post-excerpt {
    font-size: .9rem;
    color: var(--text-2);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-meta { display: flex; gap: 16px; font-size: .82rem; color: var(--text-3); align-items: center; }
.post-meta .like-btn {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
    display: inline-flex;
    gap: 5px;
    align-items: center;
}
.post-meta .like-btn.liked { color: var(--accent-1); font-weight: 600; }

/* detalii postare (modal) */
.post-full-body { font-size: .95rem; color: var(--text-2); white-space: pre-line; margin-bottom: 20px; }
.comments-list { display: grid; gap: 12px; margin-bottom: 18px; }
.comment {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: .88rem;
}
.comment-author { font-weight: 600; font-size: .82rem; margin-bottom: 3px; }
.comment p { margin: 0; color: var(--text-2); }
.comment-form { display: flex; gap: 10px; }
.comment-form input { flex: 1; }

/* ============ EVENIMENTE ============ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.event-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .2s var(--ease), border-color .2s;
}
.event-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.event-date {
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-2);
}
.event-title { font-size: 1.1rem; font-weight: 700; }
.event-detail { font-size: .86rem; color: var(--text-2); display: flex; gap: 8px; }
.capacity-track {
    height: 7px;
    background: var(--ring-track);
    border-radius: 4px;
    overflow: hidden;
}
.capacity-fill { height: 100%; background: var(--grad-accent); border-radius: 4px; }
.capacity-label { font-size: .78rem; color: var(--text-3); }
.event-card .btn { margin-top: auto; }

/* ============ TEHNOLOGIE ============ */
.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.tech-chip {
    font-size: .92rem;
    font-weight: 600;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-card);
}

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 12px; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 22px;
    box-shadow: var(--shadow-card);
    transition: border-color .15s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    font-size: .98rem;
    padding: 18px 30px 18px 0;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-3);
    transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { color: var(--text-2); font-size: .92rem; padding-bottom: 18px; margin: 0; }

/* ============ CTA FINAL ============ */
.cta-final { padding-top: 20px; }
.cta-card {
    text-align: center;
    background:
        radial-gradient(60% 120% at 50% 0%, rgba(168, 85, 247, .16), transparent 70%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px 30px;
    box-shadow: var(--shadow-card);
}
.cta-card h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-card p { color: var(--text-2); margin-bottom: 26px; }

/* ============ FOOTER ============ */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    padding: 56px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 40px;
}
.footer-brand .brand-text { font-size: 1.25rem; }
.footer-tag { color: var(--text-2); font-size: .9rem; max-width: 300px; margin-top: 10px; }
.footer-col h4 { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer-col a {
    display: block;
    text-decoration: none;
    color: var(--text-2);
    font-size: .9rem;
    padding: 5px 0;
    transition: color .15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    font-size: .82rem;
    color: var(--text-3);
    text-align: center;
}
.footer-bottom p { margin: 0; }

/* ============ MODALE ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 5, 10, .6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fadeIn .2s var(--ease);
}
.modal-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }

.modal-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 88vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    padding: 30px 30px 26px;
    animation: slideUp .25s var(--ease);
}
.modal-wide { max-width: 620px; }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px); } }

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface-2);
    font-size: 1.15rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
}
.modal-close:hover { color: var(--text); border-color: var(--border-strong); }

/* taburi autentificare */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 4px;
    margin-bottom: 22px;
}
.auth-tab {
    border: 0;
    background: transparent;
    border-radius: var(--radius-pill);
    padding: 9px 10px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--text-2);
    transition: background .15s, color .15s;
}
.auth-tab.active {
    background: var(--grad-accent);
    color: #fff;
}

/* ---- autentificare cu Google (aspect conform ghidului de brand Google) ---- */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 11px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid #747775;
    background: #fff;
    color: #1f1f1f;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow .15s, background .15s;
}
.btn-google:hover { background: #f7f8f8; box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.btn-google:disabled { opacity: .6; cursor: default; }
[data-theme="dark"] .btn-google {
    background: #131314;
    border-color: #8e918f;
    color: #e3e3e3;
}
[data-theme="dark"] .btn-google:hover { background: #1e1f20; }
.g-logo { width: 20px; height: 20px; flex: 0 0 20px; }
.google-note {
    margin: 10px 2px 0;
    font-size: .78rem;
    line-height: 1.5;
    color: var(--text-2);
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-2);
    font-size: .78rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* butoanele dezactivate trebuie să se și vadă ca atare */
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* mesajul de disponibilitate a numelui (numele sunt unice pe site) */
.name-hint { font-size: .74rem; line-height: 1.5; color: var(--text-3); margin: 6px 2px 0; }
.name-hint.ok { color: #34D399; }
.name-hint.bad { color: #FB7185; }

/* ============ NOTIȚĂ PRIVATĂ DESPRE UN MEMBRU ============ */
.note-box {
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 18px;
}
.note-box label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 8px; }
.note-private {
    font-size: .66rem; text-transform: uppercase; letter-spacing: .06em;
    background: rgba(16, 185, 129, .16); color: #34D399;
    border-radius: 999px; padding: 2px 8px; margin-left: 4px; font-weight: 700;
}
.note-box textarea {
    width: 100%; resize: vertical; min-height: 56px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    border-radius: var(--radius-sm); padding: 9px 11px; font: inherit; font-size: .87rem; line-height: 1.5;
}
.note-box textarea:focus { outline: none; border-color: var(--accent-2); }
.note-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.note-count { font-size: .72rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.note-hint { font-size: .72rem; color: var(--text-3); line-height: 1.5; margin: 8px 0 0; }

/* ============ AVATARE PREDEFINITE ============ */
.avatar-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 12px; margin-bottom: 20px;
}
.avatar-pick {
    background: var(--surface-2); border: 2px solid var(--border);
    border-radius: var(--radius-md); padding: 6px; cursor: pointer;
    display: flex; flex-direction: column; gap: 6px; align-items: center;
    transition: border-color .15s, transform .1s;
}
.avatar-pick img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    border-radius: var(--radius-sm); display: block; background: var(--surface);
}
.avatar-pick span { font-size: .72rem; color: var(--text-2); font-weight: 600; }
.avatar-pick:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.avatar-pick.active { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(168, 85, 247, .22); }
.avatar-pick.active span { color: var(--accent-2); }
.avatar-pick:disabled { opacity: .6; cursor: default; }

/* ============ NOUTĂȚI (feed de postări) ============ */
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
@media (max-width: 900px) { .feed-layout { grid-template-columns: minmax(0, 1fr); } }

.post-composer { padding: 16px; margin-bottom: 20px; }
.post-composer textarea { width: 100%; margin-bottom: 10px; }
.post-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post-actions .spacer { flex: 1; }
.post-img-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
    font-size: .8rem; color: var(--text-2);
}
/* .link-btn e, implicit, un link centrat pe toată lățimea — aici stă în rând */
.post-img-row .link-btn { width: auto; margin: 0; text-align: left; }
#postImgPreview {
    width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm);
    border: 1px solid var(--border); flex: 0 0 56px;
}
/* fișier tras peste compozitor */
.post-composer.drop-target { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(168, 85, 247, .18); }

.post-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 16px; margin-bottom: 14px;
}
.post-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.post-author {
    display: flex; align-items: center; gap: 10px; background: none; border: 0;
    padding: 0; cursor: pointer; text-align: left; color: var(--text); min-width: 0;
}
.post-author .avatar { width: 40px; height: 40px; font-size: .8rem; flex: 0 0 40px; }
.post-name { display: block; font-weight: 600; font-size: .92rem; }
.post-meta { display: block; font-size: .74rem; color: var(--text-3); }
.post-author:hover .post-name { color: var(--accent-2); }
.post-head-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.post-src {
    font-size: .68rem; color: var(--text-3); background: var(--surface-2);
    border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.post-text { margin: 0 0 10px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-img {
    display: block; width: 100%; max-height: 460px; object-fit: cover;
    border-radius: var(--radius-sm); cursor: zoom-in; margin-bottom: 10px;
}
.post-foot { font-size: .7rem; color: var(--text-3); }
.post-expired {
    font-size: .78rem; color: var(--text-3); background: var(--surface-2);
    border: 1px dashed var(--border); border-radius: var(--radius-sm);
    padding: 10px 12px; margin: 0 0 10px;
}
/* textele lungi (până la 10.000 de caractere) se strâng cu „vezi tot” */
.post-text.clamped {
    display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical;
    overflow: hidden;
}
/* .link-btn e definit mai jos ca bloc centrat — aici îl vrem lipit la stânga */
.post-more.post-more { display: inline-block; width: auto; margin: -4px 0 10px; text-align: left; font-size: .8rem; }

/* ---- reacții ---- */
.post-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    border-top: 1px solid var(--border); margin-top: 12px; padding-top: 10px;
}
.react-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.react-btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 999px; padding: 3px 10px; font-size: .9rem;
    cursor: pointer; color: var(--text-2); line-height: 1.5;
    transition: border-color .15s, transform .1s, opacity .15s;
}
.react-btn span { font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.react-btn:hover { border-color: var(--accent-2); transform: translateY(-1px); }
.react-btn.mine { border-color: var(--accent-2); background: rgba(168, 85, 247, .16); color: var(--text); }
/* reacțiile nefolosite stau discret până treci cu mouse-ul peste rând */
.react-btn.extra { opacity: .5; padding: 3px 8px; }
.react-row:hover .react-btn.extra, .react-btn.extra:focus-visible { opacity: .85; }
.react-total { font-size: .74rem; color: var(--text-3); }
.post-cmt-toggle {
    background: none; border: 0; color: var(--text-2); font-size: .8rem;
    cursor: pointer; padding: 3px 6px; border-radius: var(--radius-sm);
}
.post-cmt-toggle:hover { color: var(--accent-2); background: var(--surface-2); }

/* ---- comentarii ---- */
.post-comments { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; }
.cmt-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.cmt { display: flex; gap: 9px; align-items: flex-start; }
.cmt-av { background: none; border: 0; padding: 0; cursor: pointer; flex: 0 0 30px; }
.cmt-av .avatar { width: 30px; height: 30px; font-size: .66rem; }
.cmt-body {
    flex: 1; min-width: 0; background: var(--surface-2);
    border-radius: var(--radius-sm); padding: 8px 11px;
}
.cmt-head { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--text-3); }
.cmt-head strong { color: var(--text); font-size: .82rem; }
.cmt-del { background: none; border: 0; cursor: pointer; margin-left: auto; opacity: .5; font-size: .8rem; }
.cmt-del:hover { opacity: 1; }
.cmt-text { margin: 3px 0 0; font-size: .87rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmt-form { display: flex; gap: 8px; align-items: flex-end; }
.cmt-form textarea { flex: 1; }

.feed-side { padding: 16px; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
@media (max-width: 900px) { .feed-side { position: static; max-height: none; } }
.feed-side h4 { margin: 0 0 4px; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.net-count {
    font-size: .7rem; background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 999px; padding: 1px 8px; color: var(--text-3); font-weight: 600;
}
.net-list { display: flex; flex-direction: column; gap: 4px; }
.net-item {
    display: flex; align-items: center; gap: 9px; background: none; border: 0;
    padding: 6px 4px; border-radius: var(--radius-sm); cursor: pointer; color: var(--text); text-align: left;
}
.net-item:hover { background: var(--surface-2); color: var(--accent-2); }
.net-item .avatar { width: 30px; height: 30px; font-size: .68rem; flex: 0 0 30px; }
.net-name { font-size: .85rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- pagina de completare a profilului după loginul social ---- */
/* `.field label` e `space-between` (etichetă + notă la capete); la bifă
   vrem eticheta lipită de căsuță */
.field label.check-label {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    line-height: 1.55;
}
.field label.check-label input { margin-top: 3px; }
.welcome-main { max-width: 620px; }
.welcome-card { padding: 28px; }
@media (max-width: 480px) { .welcome-card { padding: 20px 16px; } }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-error {
    color: #FB7185;
    font-size: .86rem;
    font-weight: 500;
    background: rgba(244, 63, 94, .1);
    border: 1px solid rgba(244, 63, 94, .3);
    border-radius: var(--radius-sm);
    padding: 10px 13px;
    margin: 0 0 14px;
}
.form-error[hidden] { display: none; }

.modal-note a { color: var(--accent-2); }

/* oferta freemium pe viață */
.offer-box {
    background: linear-gradient(120deg, rgba(244, 63, 94, .12), rgba(168, 85, 247, .12));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: .86rem;
    text-align: center;
    margin: 0 0 18px;
}
.offer-box strong { color: var(--accent-2); }
.offer-box[hidden] { display: none; }

/* regulile bunei purtări la înregistrare */
.conduct-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-2);
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    margin-bottom: 16px;
    font-size: .82rem;
}
.conduct-box strong { display: block; margin-bottom: 4px; }
.conduct-box p { color: var(--text-2); margin: 0 0 6px; line-height: 1.55; }
.conduct-box p strong { display: inline; color: var(--text); }
.conduct-note { font-size: .76rem; color: var(--text-3) !important; margin-bottom: 0 !important; }

/* honeypot anti-bot — invizibil pentru oameni */
.hp-field {
    position: absolute;
    left: -9999px;
    top: 0;
    height: 1px;
    overflow: hidden;
}

.link-btn {
    display: block;
    width: 100%;
    background: none;
    border: 0;
    color: var(--accent-2);
    font-size: .86rem;
    font-weight: 600;
    text-align: center;
    padding: 12px 0 2px;
}
.link-btn:hover { text-decoration: underline; }

.user-chip-main {
    display: flex;
    align-items: center;
    gap: 9px;
    background: none;
    border: 0;
    padding: 0;
}

/* profilul meu */
.mp-photo-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.mp-avatar {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
    background-size: cover;
    background-position: center;
}
.mp-photo-hint { font-size: .76rem; color: var(--text-3); margin: 8px 0 0; }
.mp-mbti {
    margin: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 13px;
    font-size: .93rem;
    font-weight: 600;
}
.mp-mbti a { color: var(--accent-2); }

/* avatar cu fotografie */
.avatar.has-photo {
    background-size: cover;
    background-position: center;
    color: transparent;
}

/* mesaje */
.btn-messages { position: relative; }
.msg-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--accent-1);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.msg-badge[hidden] { display: none; }

.convo-list { display: grid; gap: 8px; max-height: 60vh; overflow-y: auto; }
.convo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    transition: border-color .15s;
}
.convo-item:hover { border-color: var(--accent-2); }
.convo-item .avatar { width: 44px; height: 44px; font-size: .95rem; flex-shrink: 0; }
.convo-info { min-width: 0; flex: 1; }
.convo-name { font-weight: 700; font-size: .95rem; }
.convo-last {
    font-size: .83rem;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.convo-unread {
    background: var(--accent-1);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-real-head {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 14px;
}
.chat-real-head .avatar { width: 44px; height: 44px; font-size: .95rem; }
.chat-box-real { max-height: 46vh; min-height: 200px; }
.chat-empty { text-align: center; color: var(--text-3); font-size: .88rem; padding: 30px 10px; }
.chat-time { font-size: .68rem; opacity: .7; display: block; margin-top: 3px; }

.modal-head { text-align: center; margin-bottom: 22px; }
.modal-emoji { font-size: 2.2rem; margin-bottom: 8px; }
.modal-head h3 { font-size: 1.3rem; margin-bottom: 6px; }
.modal-sub { color: var(--text-2); font-size: .9rem; margin: 0; }
.modal-note { font-size: .78rem; color: var(--text-3); text-align: center; margin: 12px 0 0; }

/* profil în modal */
.pm-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.pm-head .avatar { width: 64px; height: 64px; font-size: 1.4rem; }
.pm-name { font-size: 1.25rem; font-weight: 700; }
.pm-role { color: var(--text-2); font-size: .9rem; }
.pm-bio { color: var(--text-2); font-size: .93rem; margin-bottom: 16px; }
.pm-section-label {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 8px;
}
.pm-compat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--accent-2-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: .9rem;
}
.pm-compat strong { font-size: 1.2rem; color: #34D399; }

/* chat demo */
.chat-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 14px;
    padding-right: 4px;
}
.chat-msg {
    max-width: 80%;
    padding: 9px 14px;
    border-radius: 14px;
    font-size: .89rem;
}
.chat-msg.own {
    align-self: flex-end;
    background: var(--own-bubble);
    color: var(--own-bubble-text);
    border: 1px solid rgba(127, 180, 140, .28);
    border-bottom-right-radius: 4px;
}
.chat-msg.their {
    align-self: flex-start;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}
.chat-form { display: flex; gap: 10px; }
.chat-form input { flex: 1; }

/* ============ TOAST ============ */
.toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 180;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-modal);
    padding: 12px 24px;
    font-size: .9rem;
    font-weight: 500;
    max-width: min(92vw, 480px);
    text-align: center;
    animation: toastIn .25s var(--ease);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 1020px) {
    .nav-links { display: none; }
    .nav-burger { display: inline-flex; }
    .btn-nav-cta { display: none; }
    /* butonul de autentificare rămâne mereu vizibil în bara de sus */
    #btnNavLogin.btn-nav-cta { display: inline-flex; padding: 9px 15px; font-size: .87rem; }

    .calc-grid { grid-template-columns: 1fr 1fr; }
    .calc-result { grid-column: 1 / -1; grid-row: 2; position: static; }

    .profiles-grid, .events-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .section { padding: 60px 0; }
    .hero { padding: 64px 0 52px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .br-desktop { display: none; }

    .calc-grid { grid-template-columns: 1fr; }
    .calc-result { grid-column: auto; grid-row: auto; }

    .profiles-grid, .events-grid, .steps-grid { grid-template-columns: 1fr; }

    .forum-layout { grid-template-columns: 1fr; }
    .forum-side { position: static; }
    .community-list { display: flex; flex-wrap: wrap; gap: 6px; }
    .community-list li { border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 7px 13px; font-size: .82rem; }

    .quiz-card { padding: 24px 20px; }
    .quiz-footer { flex-direction: column-reverse; align-items: stretch; text-align: center; }
    .quiz-hint { text-align: center; }

    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .modal-card { padding: 24px 20px; }
}

/* ============================================================
   ZONĂ PERICULOASĂ, ȘTERGERE CONT, BLOCARE/RAPORTARE, COOKIE-URI
   ============================================================ */
.btn-danger {
    background: #DC2626;
    color: #fff;
    border: 1px solid #DC2626;
}
.btn-danger:hover { background: #B91C1C; border-color: #B91C1C; }
.btn-danger:disabled { opacity: .45; cursor: not-allowed; }

.danger-zone {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.danger-box {
    background: rgba(220, 38, 38, .07);
    border: 1px solid rgba(220, 38, 38, .3);
    border-radius: 14px;
    padding: 16px 18px;
}
.danger-title {
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #F87171;
    margin: 0 0 8px;
}
.danger-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-2);
    font-size: .9rem;
    line-height: 1.65;
}
.danger-list li { margin-bottom: 3px; }
.danger-list code {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 1px 5px;
    font-size: .85em;
    word-break: break-all;
}

/* chat: bară de acțiuni și stare blocată */
.chat-actions {
    display: flex;
    gap: 18px;
    justify-content: flex-end;
    margin-top: 10px;
}
.chat-actions .link-btn { font-size: .82rem; color: var(--text-3); }
.chat-actions .link-btn:hover { color: #F87171; }

.chat-locked {
    margin: 10px 0 0;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px dashed var(--border-strong);
    border-radius: 12px;
    color: var(--text-3);
    font-size: .88rem;
    text-align: center;
    line-height: 1.5;
}

.avatar.deleted {
    background: var(--surface-2) !important;
    border: 1px dashed var(--border-strong);
    color: var(--text-3);
    font-size: .9rem;
}
.convo-name.deleted, .chat-real-head .convo-name.deleted {
    color: var(--text-3);
    font-style: italic;
    font-weight: 500;
    word-break: break-word;
}

/* bară de informare cookie-uri */
.cookie-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 120;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
}
.cookie-bar p {
    margin: 0;
    font-size: .86rem;
    color: var(--text-2);
    line-height: 1.55;
}
.cookie-bar a { color: var(--brand, #F43F5E); text-decoration: underline; }
.cookie-bar .btn { flex-shrink: 0; }

@media (max-width: 560px) {
    .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; }
    .chat-actions { justify-content: center; }
}

/* ============ PAGINI LEGALE (termeni, confidențialitate, contact) ============ */
.legal-page { max-width: 820px; padding: 40px 20px 70px; }
.legal-page h1 { font-size: 2rem; margin: 6px 0 8px; }
.legal-page h2 {
    font-size: 1.12rem; margin: 34px 0 10px; padding-top: 18px;
    border-top: 1px solid var(--border);
}
.legal-page p, .legal-page li { line-height: 1.7; color: var(--text-2); }
.legal-page a { color: var(--accent-2); }
.legal-updated { font-size: .82rem; color: var(--text-3); margin-bottom: 26px; }
.legal-lead { font-size: 1.02rem; color: var(--text); }
.legal-list { margin: 0 0 14px; padding-left: 22px; }
.legal-list li { margin-bottom: 8px; }
.legal-table {
    width: 100%; border-collapse: collapse; margin: 14px 0 18px;
    font-size: .9rem; display: block; overflow-x: auto;
}
.legal-table th, .legal-table td {
    border: 1px solid var(--border); padding: 10px 12px;
    text-align: left; vertical-align: top; line-height: 1.6;
}
.legal-table th { background: var(--surface-2); color: var(--text); font-weight: 600; white-space: nowrap; }
.legal-table-wide th { white-space: normal; }
.legal-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.legal-table td { color: var(--text-2); }
.legal-box {
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 14px 16px; line-height: 1.7;
}
.legal-back { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
.legal-page code {
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 5px; padding: 1px 6px; font-size: .86em;
}

/* ---- acordul pentru date sensibile (art. 9 GDPR) ---- */
.consent-box {
    background: var(--surface-2); border: 1px solid var(--border);
    border-left: 3px solid var(--accent-2);
    border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 18px;
}
.consent-box .check-label { margin-bottom: 8px; font-weight: 400; }
.consent-box .check-label strong { font-weight: 700; }
.consent-note { font-size: .78rem; color: var(--text-3); line-height: 1.6; margin: 0; }
.consent-state { font-size: .76rem; color: var(--text-2); margin: 8px 0 0; }

/* ============ SECȚIUNEA „DE CE ALTFEL" (comparație) ============ */
.vs-wrap {
    max-width: 1000px; margin: 0 auto;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--surface); overflow: hidden;
}

/* capul de tabel: două coloane, cea din dreapta accentuată */
.vs-head {
    display: grid; grid-template-columns: 210px 1fr 1fr;
    border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.vs-head::before { content: ''; }              /* celulă goală peste criterii */
.vs-head span { padding: 14px 18px; font-weight: 700; font-size: .88rem; }
.vs-col-them { color: var(--text-3); }
.vs-col-us {
    color: #fff; background: var(--grad-accent);
    display: flex; align-items: center; gap: 2px;
}
.vs-col-us .brand-tld { opacity: .85; }

.vs-row {
    display: grid; grid-template-columns: 210px 1fr 1fr;
    border-bottom: 1px solid var(--border);
}
.vs-row:last-child { border-bottom: 0; }
.vs-row:hover { background: rgba(148, 163, 184, .04); }
.vs-crit {
    margin: 0; padding: 18px; font-weight: 600; font-size: .9rem;
    color: var(--text); background: var(--surface-2);
    border-right: 1px solid var(--border);
}
.vs-them, .vs-us {
    padding: 18px; font-size: .92rem; line-height: 1.6;
    display: flex; gap: 10px; align-items: flex-start;
}
/* textul stă într-un singur element, ca <b> să rămână în frază, nu alături */
.vs-them > span:last-child, .vs-us > span:last-child { flex: 1; min-width: 0; }
.vs-them { color: var(--text-3); }
.vs-us { color: var(--text); background: rgba(168, 85, 247, .06); }
.vs-us b { color: var(--accent-2); font-weight: 700; }
.vs-x, .vs-check {
    flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 700; margin-top: 1px;
}
.vs-x { background: rgba(148, 163, 184, .16); color: var(--text-3); }
.vs-check { background: var(--grad-accent); color: #fff; }

/* pe telefon comparația devine un teanc de fișe */
@media (max-width: 780px) {
    .vs-head { display: none; }
    .vs-row { grid-template-columns: 1fr; border-bottom: 8px solid var(--bg); }
    .vs-crit {
        border-right: 0; border-bottom: 1px solid var(--border);
        padding: 14px 16px; font-size: .95rem;
    }
    .vs-them, .vs-us { padding: 14px 16px; }
    .vs-them::after {
        content: 'aplicațiile de swipe'; position: absolute; opacity: 0; /* doar pentru cititoarele de ecran */
    }
    .vs-them { position: relative; }
}

/* cifrele de sub tabel */
.proof-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px; max-width: 1000px; margin: 22px auto 0;
}
.proof {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 20px 18px; text-align: center;
    transition: border-color .15s, transform .15s;
}
.proof:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.proof-num {
    display: block; font-family: var(--font-display); font-weight: 800;
    font-size: 2.1rem; line-height: 1.1;
    background: var(--grad-accent); -webkit-background-clip: text;
    background-clip: text; color: transparent;
}
.proof-lbl { display: block; margin-top: 6px; font-size: .8rem; color: var(--text-2); line-height: 1.5; }

.vs-note {
    max-width: 1000px; margin: 18px auto 0; text-align: center;
    font-size: .76rem; color: var(--text-3); line-height: 1.6;
}

/* ============ QUIZ (zilnic și săptămânal) ============ */
.lang-switch { display: flex; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 4px; }
.lang-btn { border: 0; background: transparent; border-radius: var(--radius-pill); padding: 7px 14px; font-size: .84rem; font-weight: 600; color: var(--text-2); cursor: pointer; }
.lang-btn.active { background: var(--grad-accent); color: #fff; }

.trivia-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.trivia-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.trivia-card-head { display: flex; gap: 14px; align-items: flex-start; }
.trivia-emoji { font-size: 2rem; line-height: 1; }
.trivia-card h3 { margin: 0 0 2px; font-size: 1.15rem; }
.trivia-sub { margin: 0; font-size: .82rem; color: var(--text-3); line-height: 1.5; }
.trivia-theme { margin: 0; font-size: .9rem; color: var(--text-2); }
.trivia-theme strong { color: var(--accent-2); }
.trivia-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .74rem; color: var(--text-3); }
.trivia-meta span { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }
.trivia-done { display: flex; align-items: baseline; gap: 12px; }
.trivia-score { font-family: var(--font-display); font-size: 2rem; font-weight: 800; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trivia-score span { font-size: 1rem; }
.trivia-score.big { font-size: 3rem; }
.trivia-rank { font-size: .84rem; color: var(--text-2); }
.trivia-note { margin: 0; font-size: .78rem; color: var(--text-3); }
.trivia-catalog { text-align: center; margin-top: 22px; font-size: .78rem; color: var(--text-3); }

.trivia-progress { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .8rem; color: var(--text-3); margin-bottom: 8px; flex-wrap: wrap; padding-right: 46px; }  /* loc pentru butonul de închidere */
.trivia-theme-chip { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; font-size: .72rem; }
.trivia-bar { height: 5px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-bottom: 20px; }

/* cronometrul de 15 secunde */
.trivia-timer {
    margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700;
    font-size: .95rem; color: var(--text-2); min-width: 42px; text-align: right;
}
.trivia-timer.urgent { color: #FB7185; }
.trivia-clock { height: 4px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.trivia-clock-fill { height: 100%; width: 100%; background: var(--grad-accent); border-radius: 999px; }
.trivia-clock-fill.urgent { background: #FB7185; }
@media (prefers-reduced-motion: no-preference) {
    .trivia-timer.urgent { animation: puls-timp .8s ease-in-out infinite; }
}
@keyframes puls-timp { 50% { opacity: .45; } }
.trivia-bar-fill { height: 100%; background: var(--grad-accent); transition: width .25s var(--ease); }
.trivia-question { font-size: 1.2rem; font-weight: 600; line-height: 1.5; margin: 0 0 18px; }
.trivia-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.trivia-option {
    display: flex; align-items: center; gap: 12px; text-align: left;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 13px 15px; font: inherit; font-size: .95rem; color: var(--text); cursor: pointer;
    transition: border-color .15s, background .15s, transform .1s;
}
.trivia-option:hover { border-color: var(--accent-2); transform: translateX(2px); }
.trivia-option.selected { border-color: var(--accent-2); background: rgba(168, 85, 247, .14); }
.trivia-letter {
    flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: .76rem; font-weight: 700; color: var(--text-2);
}
.trivia-option.selected .trivia-letter { background: var(--grad-accent); color: #fff; border-color: transparent; }
.trivia-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.trivia-count { font-size: .78rem; color: var(--text-3); }

.trivia-result-head { text-align: center; margin-bottom: 22px; }
.trivia-verdict { font-size: 1.1rem; font-weight: 600; margin: 6px 0 2px; }
.trivia-review { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow-y: auto; }
.trivia-rev { border-left: 3px solid var(--border); background: var(--surface-2); border-radius: var(--radius-sm); padding: 11px 14px; }
.trivia-rev.ok { border-left-color: #34D399; }
.trivia-rev.bad { border-left-color: #FB7185; }
.trivia-rev-q { margin: 0 0 5px; font-size: .9rem; font-weight: 600; display: flex; gap: 8px; line-height: 1.5; }
.trivia-rev.ok .trivia-rev-q > span { color: #34D399; }
.trivia-rev.bad .trivia-rev-q > span { color: #FB7185; }
.trivia-rev-a { margin: 0; font-size: .82rem; color: var(--text-2); }
.trivia-rev-why { margin: 6px 0 0; font-size: .78rem; color: var(--text-3); line-height: 1.55; }

.top-list { display: flex; flex-direction: column; gap: 6px; }
.top-row { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--radius-sm); }
.top-row.me { background: rgba(168, 85, 247, .12); }
.top-place { flex: 0 0 30px; text-align: center; font-weight: 700; font-size: .9rem; color: var(--text-2); }
.top-row .avatar { width: 32px; height: 32px; font-size: .7rem; flex: 0 0 32px; }
.top-name { flex: 1; font-size: .9rem; font-weight: 500; }
.top-score { font-size: .84rem; font-weight: 700; color: var(--accent-2); font-variant-numeric: tabular-nums; }
