/* ============================================================
   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);
}

[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);
    --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; }

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: 28px;
    height: var(--nav-h);
}
.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: 4px;
    margin-inline: auto;
}
.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;
}

/* 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;
}

.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; }

/* 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(--grad-accent);
    color: #fff;
    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; }

    .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; }
}
