/* =============================================================================
   DAMPLUNG — Design System & Global Styles
   Fonts: Syne (display) + DM Sans (body)
   Palette: Navy · Amber · Cream
   ============================================================================= */

/* ─── 1. Design Tokens ─── */
:root {
    /* Colors */
    --navy:          #1B2E4B;
    --navy-light:    #2A4570;
    --amber:         #F0A500;
    --amber-light:   #FFF4D6;
    --cream:         #F8F5EF;
    --cream-deep:    #EFE8DC;
    --white:         #FFFFFF;
    --text:          #1A1714;
    --text-2:        #6B6560;
    --text-3:        #A89F96;
    --border:        #E3D9CC;
    --border-light:  #EDE6DC;
    --green:         #18A55A;
    --red:           #E03E2D;

    /* Spacing (4px base) */
    --s1: 4px;  --s2: 8px;  --s3: 12px;  --s4: 16px;
    --s5: 20px; --s6: 24px; --s8: 32px;  --s10: 40px;
    --s12: 48px; --s16: 64px; --s20: 80px; --s24: 96px;

    /* Typography */
    --font-display: 'Syne', system-ui, sans-serif;
    --font-body:    'DM Sans', system-ui, sans-serif;

    /* Radii */
    --r-sm: 6px;  --r-md: 10px; --r-lg: 16px;
    --r-xl: 22px; --r-2xl: 28px; --r-full: 9999px;

    /* Shadows */
    --shadow-sm:   0 1px 3px rgba(27,46,75,.07), 0 1px 2px rgba(27,46,75,.04);
    --shadow-md:   0 4px 14px rgba(27,46,75,.09), 0 2px 4px rgba(27,46,75,.05);
    --shadow-lg:   0 12px 36px rgba(27,46,75,.12), 0 4px 10px rgba(27,46,75,.06);
    --shadow-card: 0 2px 20px rgba(27,46,75,.08), 0 0 0 1px rgba(27,46,75,.04);
    --shadow-float:0 20px 60px rgba(27,46,75,.16), 0 4px 16px rgba(27,46,75,.08);

    /* Transitions */
    --t-fast: 130ms ease;
    --t-base: 240ms ease;
    --t-slow: 420ms ease;
}

/* ─── 2. Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--cream);
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ─── 3. Layout ─── */
.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: var(--s6);
}

@media (min-width: 768px) {
    .container { padding-inline: var(--s12); }
}

/* ─── 4. Typography ─── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; }
h4, h5, h6 { font-family: var(--font-body); }

/* ─── 5. Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 11px 22px;
    border-radius: var(--r-full);
    border: 1.5px solid transparent;
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
    white-space: nowrap;
    user-select: none;
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    box-shadow: 0 2px 8px rgba(27,46,75,.25);
}
.btn-primary:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    box-shadow: 0 4px 14px rgba(27,46,75,.30);
}

.btn-ghost {
    background: transparent;
    color: var(--text-2);
}
.btn-ghost:hover {
    background: rgba(27,46,75,.06);
    color: var(--text);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--navy);
    background: rgba(27,46,75,.04);
}

.btn-lg  { padding: 14px 28px; font-size: 16px; }
.btn-xl  { padding: 16px 40px; font-size: 17px; }
.btn-sm  { padding: 8px 16px; font-size: 13px; }

/* ─── 6. Navigation ─── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: #f5f2ec;
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow var(--t-base);
}

.nav.nav--scrolled {
    box-shadow: 0 2px 12px rgba(27,46,75,.08);
}

.nav__inner {
    display: flex;
    align-items: center;
    gap: var(--s8);
    height: 64px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--s3);
    flex-shrink: 0;
    transition: opacity var(--t-fast);
}
.logo:hover { opacity: 0.8; }
.logo__mark { flex-shrink: 0; }
.logo__text {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--navy);
}

/* Nav links */
.nav__menu {
    display: none;
    align-items: center;
    gap: var(--s8);
    margin-left: auto;
}

.nav__menu nav {
    display: flex;
    align-items: center;
    gap: var(--s6);
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    transition: color var(--t-fast);
}
.nav-link:hover { color: var(--text); }

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--s2);
}

/* Logged-in user pill in landing nav */
.nav-user-link {
    display: flex;
    align-items: center;
    gap: var(--s2);
    padding: var(--s1) var(--s3) var(--s1) var(--s1);
    border-radius: var(--r-full);
    border: 1px solid var(--border);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.nav-user-link:hover {
    border-color: var(--navy);
    box-shadow: var(--shadow-sm);
}
.nav-user-av {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nav-user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* Hamburger */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--s2);
    margin-left: auto;
    width: 36px;
}
.nav-toggle span {
    display: block;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--t-base), opacity var(--t-base);
    transform-origin: center;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu open */
.nav__menu.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(248,245,239,.97);
    backdrop-filter: blur(14px);
    padding: var(--s6);
    gap: var(--s4);
    border-bottom: 1px solid var(--border-light);
}

.nav__menu.is-open nav {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s2);
}

.nav__menu.is-open .nav-link {
    font-size: 16px;
    padding: var(--s2) 0;
}

.nav__menu.is-open .nav__actions {
    flex-direction: row;
    padding-top: var(--s4);
    border-top: 1px solid var(--border-light);
    width: 100%;
}

@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .nav__menu { display: flex; }
}

/* ─── 7. Hero ─── */
.hero {
    padding-top: 110px;
    padding-bottom: var(--s16);
    display: flex;
    align-items: center;
    background:
        radial-gradient(ellipse 65% 55% at 75% 55%, rgba(240,165,0,.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 45% at 20% 80%, rgba(27,46,75,.05) 0%, transparent 60%),
        var(--cream);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s16);
    align-items: center;
}

@media (min-width: 900px) {
    .hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--s12);
    }
}

@media (min-width: 1100px) {
    .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* Hero text */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 6px 14px;
    margin-bottom: var(--s6);
    box-shadow: var(--shadow-sm);
}

.hero__heading {
    font-size: clamp(40px, 5.5vw, 68px);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1.04;
    margin-bottom: var(--s6);
}

.text-accent {
    color: var(--navy);
    position: relative;
    display: inline-block;
}
.text-accent::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0; right: 0;
    height: 4px;
    background: var(--amber);
    border-radius: 2px;
    opacity: 0.7;
}

.hero__sub {
    font-size: 18px;
    color: var(--text-2);
    line-height: 1.65;
    max-width: 480px;
    margin-bottom: var(--s8);
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s3);
    margin-bottom: var(--s10);
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: var(--s5);
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.stat__num {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}
.stat__label {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 500;
    letter-spacing: 0.01em;
}
.stat__sep {
    width: 1px;
    height: 32px;
    background: var(--border);
    flex-shrink: 0;
}

/* ─── 8. Profile Card Stack ─── */
.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.card-stack {
    position: relative;
    width: 340px;
    height: 440px;
    flex-shrink: 0;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.pcard {
    position: absolute;
    width: 320px;
    background: var(--white);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-float);
    overflow: hidden;
}

.pcard--back-2 {
    bottom: 0; left: 10px;
    height: 380px;
    transform: rotate(-7deg) scale(0.87);
    transform-origin: bottom center;
    background: var(--cream-deep);
    box-shadow: var(--shadow-md);
    opacity: 0.5;
}

.pcard--back-1 {
    bottom: 0; left: 0;
    height: 405px;
    transform: rotate(-3.5deg) scale(0.94);
    transform-origin: bottom center;
    background: var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: flex-start;
    padding: var(--s5);
    opacity: 0.75;
}

.pcard-back-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.02em;
}

.pcard--front {
    bottom: 0; left: 0;
    height: 420px;
    display: flex;
    flex-direction: column;
    transform: rotate(0);
}

/* Profile card interior */
.pcard__header {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s5) var(--s5) var(--s4);
    border-bottom: 1px solid var(--border-light);
}

.pcard__avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.02em;
}

.pcard__meta { flex: 1; min-width: 0; }
.pcard__name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}
.pcard__loc {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-3);
    font-weight: 500;
}

.match-pill {
    background: #ECFDF3;
    color: #15803D;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--r-full);
    white-space: nowrap;
    flex-shrink: 0;
}

.pcard__body {
    padding: var(--s4) var(--s5);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}

.pcard__section-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}

.pcard__building {
    font-size: 14px;
    color: var(--text);
    line-height: 1.55;
    font-weight: 400;
}

.pcard__footer {
    padding: var(--s4) var(--s5) var(--s5);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s4);
}

.pcard__seeking {
    font-size: 12px;
    color: var(--text-2);
    font-weight: 400;
}
.pcard__seeking strong { font-weight: 600; color: var(--text); }

.pcard__actions { display: flex; gap: var(--s3); }

.act-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-2);
    flex-shrink: 0;
}
.act-btn:hover { transform: scale(1.12); box-shadow: var(--shadow-md); }

.act-btn--pass:hover { border-color: var(--red); color: var(--red); background: #FEF2F0; }
.act-btn--like:hover { border-color: var(--green); color: var(--green); background: #F0FDF4; }

/* Tags */
.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s1);
}
.tag {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-2);
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 3px 10px;
    letter-spacing: 0.01em;
}

/* ─── 9. Sections ─── */
.section {
    padding-block: var(--s16);
}

.section--alt {
    background: var(--cream-deep);
}

.section-header {
    text-align: center;
    margin-bottom: var(--s16);
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: var(--s16);
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber);
    background: var(--amber-light);
    padding: 5px 14px;
    border-radius: var(--r-full);
    margin-bottom: var(--s4);
}

.section-heading {
    font-size: clamp(30px, 3.5vw, 46px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: var(--s4);
}

.section-sub {
    font-size: 17px;
    color: var(--text-2);
}

.section-cta {
    text-align: center;
    margin-top: var(--s12);
}

/* ─── 10. Steps ─── */
.steps {
    display: flex;
    align-items: flex-start;
    gap: var(--s4);
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .steps { flex-wrap: nowrap; align-items: center; }
}

.step {
    flex: 1;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    padding: var(--s6);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-base), box-shadow var(--t-base);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step__num {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-3);
    margin-bottom: var(--s4);
}

.step__icon {
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    background: var(--amber-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
    margin-bottom: var(--s4);
}

.step__title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: var(--s2);
}

.step__desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
}

.step__arrow {
    flex-shrink: 0;
    color: var(--border);
    display: none;
    align-self: center;
    padding-top: 20px;
}

@media (min-width: 768px) {
    .step__arrow { display: flex; }
}

/* ─── 11. Community / Member Cards ─── */
.profiles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s6);
}

@media (min-width: 600px) {
    .profiles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .profiles-grid { grid-template-columns: repeat(3, 1fr); }
}

.member-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    padding: var(--s6);
    display: flex;
    flex-direction: column;
    gap: var(--s5);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-base), box-shadow var(--t-base);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.mc__avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.02em;
}

.role-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 4px 11px;
    border-radius: var(--r-full);
}
.role-badge--founder { background: #EEF2FF; color: #4338CA; }
.role-badge--eng     { background: #F0FDF4; color: #15803D; }
.role-badge--design  { background: #FDF2F8; color: #9D174D; }

.mc__body { display: flex; flex-direction: column; gap: var(--s2); flex: 1; }

.mc__name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.mc__loc {
    font-size: 13px;
    color: var(--text-3);
    font-weight: 500;
}

.mc__building {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.55;
    margin-top: var(--s1);
}
.mc__building-label {
    font-weight: 600;
    color: var(--text);
}

.mc__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--s4);
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.mc__seeking {
    font-size: 12px;
    color: var(--text-2);
}

/* ─── 12. Benefits ─── */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s5);
}

@media (min-width: 600px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

.benefit {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    padding: var(--s6) var(--s6) var(--s8);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-base), box-shadow var(--t-base);
}

.benefit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.benefit__icon {
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
    margin-bottom: var(--s5);
}

.benefit__title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: var(--s3);
}

.benefit__desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.65;
}

/* ─── 13. CTA Section ─── */
.section--cta {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.section--cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 80% 50%, rgba(240,165,0,.12) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 10% 80%, rgba(255,255,255,.04) 0%, transparent 60%);
    pointer-events: none;
}

.cta-block {
    position: relative;
    text-align: center;
    max-width: 560px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s5);
}

.cta-heading {
    font-size: clamp(36px, 4.5vw, 58px);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--white);
    line-height: 1.08;
}

.cta-sub {
    font-size: 17px;
    color: rgba(255,255,255,.65);
    margin-top: -var(--s2);
}

.section--cta .btn-primary {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--navy);
    box-shadow: 0 4px 18px rgba(240,165,0,.35);
    font-weight: 600;
}
.section--cta .btn-primary:hover {
    background: #F5B420;
    border-color: #F5B420;
    box-shadow: 0 6px 24px rgba(240,165,0,.45);
}

.cta-note {
    font-size: 13px;
    color: rgba(255,255,255,.40);
    margin-top: -var(--s2);
}

/* ─── 14. Footer ─── */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border-light);
    padding-block: var(--s12) var(--s8);
}

.footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s10);
    flex-wrap: wrap;
    margin-bottom: var(--s10);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}
.footer__tagline {
    font-size: 13px;
    color: var(--text-3);
    max-width: 200px;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2) var(--s6);
    margin-top: 4px;
}
.footer__links a {
    font-size: 13px;
    color: var(--text-2);
    font-weight: 500;
    transition: color var(--t-fast);
}
.footer__links a:hover { color: var(--text); }

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--s4);
    padding-top: var(--s6);
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-3);
}

.footer__made { font-weight: 500; }

/* ─── 15. Scroll Animations ─── */
.fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-in {
    animation: slideUp 0.7s ease forwards;
}

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

/* ─── 16. Responsive Adjustments ─── */
@media (max-width: 899px) {
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--s16);
    }
    .hero__visual {
        order: -1;
    }
    .hero__grid {
        /* show visual above text on mobile */
    }
    .card-stack {
        width: 300px;
        height: 390px;
    }
    .pcard {
        width: 280px;
    }
    .pcard--back-2 { height: 330px; }
    .pcard--back-1 { height: 355px; }
    .pcard--front  { height: 370px; }
}

@media (max-width: 599px) {
    .hero__ctas { flex-direction: column; }
    .hero__ctas .btn { width: 100%; justify-content: center; }
    .hero__stats { gap: var(--s4); }
    .section { padding-block: var(--s16); }
}

/* ─── 17. Scrollbar Styling ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* =============================================================================
   18. SPA — Logo button (replaces anchor tag)
   ============================================================================= */
.logo-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* =============================================================================
   19. App Nav (shown in app view)
   ============================================================================= */
.app-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.app-nav__inner {
    height: 100%;
    display: flex;
    align-items: center;
    padding-inline: var(--s5);
    gap: var(--s4);
}

.app-nav__center {
    flex: 1;
    text-align: center;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.app-nav__right {
    display: flex;
    align-items: center;
    gap: var(--s3);
    margin-left: auto;
}

.app-user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    display: none;
}

@media (min-width: 600px) {
    .app-user-name { display: block; }
}

.icon-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-2);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: var(--cream); color: var(--text); }

/* =============================================================================
   20. App View Layout
   ============================================================================= */
#viewApp {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-top: 56px; /* app-nav height */
}

.app-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ─── Sidebar ─── */
.app-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--white);
    border-right: 1px solid var(--border-light);
    padding: var(--s5) var(--s3);
    display: none;
    flex-direction: column;
}

@media (min-width: 768px) {
    .app-sidebar { display: flex; }
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--s1);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: 10px var(--s4);
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background var(--t-fast), color var(--t-fast);
    position: relative;
}

.sidebar-item:hover { background: var(--cream); color: var(--text); }
.sidebar-item.active { background: var(--amber-light); color: var(--navy); font-weight: 600; }

.sidebar-badge {
    margin-left: auto;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--r-full);
    min-width: 18px;
    text-align: center;
}

/* ─── Main panels ─── */
.app-main {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: var(--cream);
}

.app-panel {
    position: absolute;
    inset: 0;
    display: none;
    overflow-y: auto;
}

.app-panel.active { display: flex; flex-direction: column; }

.panel-inner {
    padding: var(--s8) var(--s8) var(--s24);
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
}

.panel-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: var(--s6);
}

.empty-panel-text {
    font-size: 14px;
    color: var(--text-3);
    padding: var(--s6) 0;
}

/* =============================================================================
   21. Swipe Area (in-app, web-optimized)
   ============================================================================= */
.swipe-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--s6) var(--s4) var(--s4);
    overflow: hidden;
}

.swipe-header {
    display: flex;
    align-items: center;
    gap: var(--s3);
    margin-bottom: var(--s5);
    width: 100%;
    max-width: 400px;
    justify-content: center;
}

.swipe-dots { display: flex; gap: 5px; }

.swipe-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--border);
    transition: width var(--t-base), background var(--t-base);
}
.swipe-dot.active {
    width: 18px;
    border-radius: 4px;
    background: var(--navy);
}

.swipe-counter-text {
    font-size: 12px;
    color: var(--text-3);
    font-weight: 500;
}

.card-stage {
    position: relative;
    width: 100%;
    max-width: 400px;
    flex: 1;
    min-height: 0;
}

/* ─── Swipe cards (web, larger than landing preview) ─── */
.scard {
    position: absolute;
    width: 100%;
    max-width: 380px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-float);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.42s cubic-bezier(0.34, 0.64, 0.38, 1),
                opacity 0.28s ease;
    height: calc(100% - 8px);
    max-height: 480px;
}

.scard.s-current {
    opacity: 1;
    pointer-events: auto;
    z-index: 3;
    transform: translateX(-50%) translateY(0) rotate(0deg);
}

.scard.s-next {
    opacity: 1;
    z-index: 2;
    transform: translateX(-50%) translateY(14px) scale(0.94);
}

.scard.s-next2 {
    opacity: 0.55;
    z-index: 1;
    transform: translateX(-50%) translateY(28px) scale(0.88);
}

.scard.s-out-left {
    transform: translateX(calc(-50% - 130%)) rotate(-18deg) !important;
    opacity: 0 !important;
    pointer-events: none;
}
.scard.s-out-right {
    transform: translateX(calc(-50% + 130%)) rotate(18deg) !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* Like / Pass stamp on cards */
.scard-stamp {
    position: absolute;
    top: 20px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 5px 14px;
    border-radius: var(--r-sm);
    border-width: 2.5px;
    border-style: solid;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.1s;
}
.scard-stamp--like { left: 16px; color: var(--green); border-color: var(--green); transform: rotate(-12deg); }
.scard-stamp--pass { right: 16px; color: var(--red); border-color: var(--red); transform: rotate(12deg); }

/* Card photo gradient */
.scard__photo {
    height: 180px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scard__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,.55) 100%);
}
.scard__photo-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    background: rgba(255,255,255,.2);
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.scard__photo-name {
    position: absolute;
    bottom: 12px; left: 16px;
    z-index: 2;
}
.scard__photo-name h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.scard__photo-name p {
    font-size: 12px;
    color: rgba(255,255,255,.82);
    font-weight: 500;
}
.scard__match-badge {
    position: absolute;
    top: 12px; right: 12px;
    z-index: 2;
    background: rgba(255,255,255,.9);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--r-full);
}

/* Card body */
.scard__body {
    flex: 1;
    padding: var(--s4) var(--s5);
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    overflow: hidden;
}
.scard__label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-3);
}
.scard__building {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}
.scard__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.scard__tag {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-2);
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 3px 9px;
}
.scard__seeking {
    font-size: 12px;
    color: var(--text-2);
    padding-top: var(--s3);
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}
.scard__seeking strong { color: var(--text); font-weight: 600; }

/* ─── Action buttons ─── */
.swipe-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s5);
    padding: var(--s4) 0 var(--s2);
    flex-shrink: 0;
}

.swipe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.swipe-btn:hover { transform: scale(1.1); }
.swipe-btn:active { transform: scale(0.9); }

.swipe-btn--pass {
    width: 58px; height: 58px;
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--red);
    box-shadow: 0 3px 12px rgba(224,62,45,.14);
}
.swipe-btn--pass:hover { border-color: var(--red); background: #FEF2F0; box-shadow: 0 5px 18px rgba(224,62,45,.24); }

.swipe-btn--super {
    width: 46px; height: 46px;
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--amber);
    box-shadow: 0 2px 8px rgba(240,165,0,.12);
}
.swipe-btn--super:hover { border-color: var(--amber); background: var(--amber-light); }

.swipe-btn--like {
    width: 58px; height: 58px;
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--green);
    box-shadow: 0 3px 12px rgba(24,165,90,.14);
}
.swipe-btn--like:hover { border-color: var(--green); background: #F0FDF4; box-shadow: 0 5px 18px rgba(24,165,90,.24); }

/* ─── Empty state inside card stage ─── */
.empty-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--s3);
    text-align: center;
    padding: var(--s8);
}
.empty-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.empty-sub { font-size: 13px; color: var(--text-2); }

/* =============================================================================
   22. Match Overlay
   ============================================================================= */
.match-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27,46,75,.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--s6);
}
.match-overlay.is-open {
    display: flex;
}

.match-overlay__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s4);
    text-align: center;
    max-width: 360px;
    width: 100%;
}

.match-overlay__emoji { font-size: 52px; }

.match-overlay__title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--amber);
}

.match-overlay__sub {
    font-size: 16px;
    color: rgba(255,255,255,.7);
}

.match-avatars {
    display: flex;
    align-items: center;
    gap: var(--s4);
    margin: var(--s2) 0;
}

.match-av {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    border: 2.5px solid var(--amber);
    letter-spacing: 0.02em;
}

/* =============================================================================
   23. Mobile Tab Bar (app view)
   ============================================================================= */
.mobile-tabs {
    display: flex;
    background: var(--white);
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .mobile-tabs { display: none; }
}

.mobile-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 0 10px;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-3);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: color var(--t-fast);
}
.mobile-tab.active { color: var(--navy); }
.mobile-tab:hover { color: var(--text-2); }

/* =============================================================================
   24. Auth Modal
   ============================================================================= */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(27,46,75,.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--s6);
}
.modal-backdrop.is-open {
    display: flex;
}

.modal-box {
    background: var(--white);
    border-radius: var(--r-2xl);
    padding: var(--s8);
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: var(--shadow-float);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: var(--s4);
    right: var(--s4);
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--cream);
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    line-height: 1;
    transition: background var(--t-fast);
}
.modal-close:hover { background: var(--border); }

.modal-tabs {
    display: flex;
    gap: 2px;
    background: var(--cream);
    border-radius: var(--r-full);
    padding: 3px;
    margin-bottom: var(--s6);
}

.modal-tab {
    flex: 1;
    padding: 8px 16px;
    border-radius: var(--r-full);
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
}
.modal-tab.active {
    background: var(--white);
    color: var(--navy);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.auth-form { display: flex; flex-direction: column; gap: var(--s4); }

/* ─── Form fields (shared) ─── */
.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--s1);
}

.form-field label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-2);
    text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    background: var(--cream);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    appearance: none;
    -webkit-appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--navy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(27,46,75,.08);
}

.form-field textarea { resize: vertical; line-height: 1.5; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s4);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: var(--s4);
    padding-top: var(--s2);
}

.form-status {
    font-size: 13px;
    color: var(--green);
    font-weight: 500;
}

.auth-submit {
    width: 100%;
    justify-content: center;
    padding: 13px;
}

.auth-error {
    font-size: 13px;
    color: var(--red);
    background: #FEF2F0;
    border: 1px solid #FECACA;
    border-radius: var(--r-md);
    padding: 10px 14px;
}

.modal-divider {
    display: flex;
    align-items: center;
    gap: var(--s4);
    margin: var(--s5) 0;
    color: var(--text-3);
    font-size: 12px;
}
.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.auth-demo-btn {
    width: 100%;
    justify-content: center;
    gap: var(--s2);
    font-size: 13px;
}

/* =============================================================================
   25. Matches Grid & Messages List
   ============================================================================= */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--s4);
}

.match-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.match-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.match-card__photo {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.match-card__av {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
}
.match-card__av img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.match-card__info {
    padding: var(--s3) var(--s4) var(--s4);
}
.match-card__name {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.match-card__sub { font-size: 11px; color: var(--text-3); }
.match-new {
    display: inline-block;
    margin-top: 4px;
    font-size: 9px;
    font-weight: 700;
    background: var(--amber);
    color: var(--navy);
    padding: 2px 7px;
    border-radius: var(--r-full);
}

/* Messages */
.messages-list { display: flex; flex-direction: column; gap: 2px; }

.message-item {
    display: flex;
    align-items: center;
    gap: var(--s4);
    padding: var(--s3) var(--s4);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background var(--t-fast);
}
.message-item:hover { background: var(--cream); }

.message-item__av {
    width: 46px; height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
}
.message-item__body { flex: 1; min-width: 0; }
.message-item__name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.message-item__preview {
    font-size: 12px;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.message-item__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.message-item__time { font-size: 11px; color: var(--text-3); }
.message-item__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }

/* =============================================================================
   26. Profile form (in-app)
   ============================================================================= */
.profile-avatar-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s2);
    margin-bottom: var(--s6);
}
.profile-avatar-btn {
    position: relative;
    display: block;
    width: 90px; height: 90px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: none;
}
.profile-avatar-btn:hover .profile-avatar-overlay,
.profile-avatar-btn.uploading .profile-avatar-overlay { opacity: 1; }
.profile-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.48);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}
.profile-avatar-circle {
    width: 90px; height: 90px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.02em;
}
.profile-avatar-circle img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.avatar-upload-hint {
    font-size: 12px;
    color: var(--text-muted, #888);
    text-align: center;
}
.scard__photo-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.profile-form { display: flex; flex-direction: column; gap: var(--s5); }
.profile-form-wrap { max-width: 560px; }

/* =============================================================================
   27. Demo banner
   ============================================================================= */
.demo-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--navy);
    color: rgba(255,255,255,.75);
    font-size: 13px;
    text-align: center;
    padding: 10px var(--s6);
    z-index: 90;
}
.demo-banner button {
    background: none;
    border: none;
    color: var(--amber);
    font-weight: 600;
    cursor: pointer;
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (min-width: 768px) {
    .demo-banner { padding-bottom: 10px; }
}

/* =============================================================================
   28. Search Panel
   ============================================================================= */
.search-bar-wrap {
    padding: var(--s4) var(--s6);
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.search-input-row {
    display: flex;
    align-items: center;
    gap: var(--s3);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-xl);
    padding: 9px 14px;
    transition: border-color var(--t-fast);
}
.search-input-row:focus-within { border-color: var(--amber); }
.search-input-row svg { color: var(--text-3); flex-shrink: 0; }
.search-input-row input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: var(--font-body);
    background: transparent;
    color: var(--navy);
}
.search-input-row input::placeholder { color: var(--text-3); }
.search-results {
    flex: 1;
    overflow-y: auto;
    padding: var(--s4) var(--s6);
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}
.search-result-card {
    display: flex;
    align-items: flex-start;
    gap: var(--s4);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--s4);
    cursor: pointer;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search-result-card:hover {
    border-color: var(--amber);
    box-shadow: var(--shadow-sm);
}
.search-result-av {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 2px; }
.search-result-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.search-result-tag { font-size: 11px; background: var(--amber-light); color: var(--navy); padding: 2px 8px; border-radius: 20px; font-weight: 500; }

/* =============================================================================
   29. Settings Panel
   ============================================================================= */
.settings-wrap { flex: 1; overflow-y: auto; }
.settings-section { padding: var(--s5) var(--s6); }
.settings-section + .settings-section { border-top: 1px solid var(--border); }
.settings-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-3);
    margin-bottom: var(--s4);
}
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s4);
    padding: var(--s2) 0;
}
.settings-row-label { font-size: 15px; font-weight: 500; color: var(--navy); }
.settings-row-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.lang-toggle {
    display: flex;
    gap: 3px;
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 3px;
}
.lang-btn {
    padding: 5px 14px;
    border: none;
    border-radius: calc(var(--r-lg) - 2px);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    background: transparent;
    color: var(--text-2);
    transition: background var(--t-fast), color var(--t-fast);
}
.lang-btn.active {
    background: var(--navy);
    color: var(--white);
}

