/* ------------------------------------------------------------
   1. DESIGN TOKENS
------------------------------------------------------------ */
:root {
    /* Core surfaces */
    --bg-900:        #060b09;
    --bg-850:        #081009;
    --bg-800:        #0a1511;
    --panel:         #0d1a15;
    --panel-2:       #10201a;
    --dark:          #363636;

    /* Glass system */
    --glass:         rgba(255, 255, 255, 0.04);
    --glass-2:       rgba(255, 255, 255, 0.06);
    --line:          rgba(255, 255, 255, 0.08);
    --line-strong:   rgba(255, 255, 255, 0.16);
    --line-form:     rgba(204, 204, 204, 0.8);

    /* Brand palette */
    --emerald:       #34d399;
    --emerald-deep:  #10b981;
    --emerald-dim:   rgba(52, 211, 153, 0.12);
    --teal:          #2dd4bf;
    --gold:          #fbbf24;
    --gold-dim:      rgba(251, 191, 36, 0.12);
    --lime:          #bef264;

    /* Text */
    --text:          #e9f2ed;
    --form-text:     #2d2d2d;
    --text-soft:     #c4d4cc;
    --muted:         #8fa39a;
    --muted-2:       #6b7f76;
    --muted-3:       #2f2f2f;

    /* Gradient recipes */
    --grad-brand:    linear-gradient(120deg, #34d399 0%, #2dd4bf 50%, #fbbf24 100%);
    --grad-btn:      linear-gradient(120deg, #10b981 0%, #0d9488 100%);
    --grad-glow:     radial-gradient(circle, rgba(52, 211, 153, 0.22) 0%, transparent 70%);

    /* Elevation */
    --shadow-sm:     0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-md:     0 10px 34px rgba(0, 0, 0, 0.45);
    --shadow-glow:   0 0 40px rgba(52, 211, 153, 0.18);
    --shadow-glow-lg: 0 0 70px rgba(52, 211, 153, 0.28);

    /* Type stacks */
    --font-head:     'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:     'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

    /* Geometry */
    --radius:        18px;
    --radius-sm:     12px;
    --radius-xs:     8px;

    /* Theme Color */
    --theme-color: #008065;
}

/* ------------------------------------------------------------
   2. GLOBAL RESET & BASE
------------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-900);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--text);
}

p { color: var(--muted); }

a { text-decoration: none; transition: all 0.25s ease; }

img { max-width: 100%; height: auto; }

::selection {
    background: var(--emerald);
    color: var(--bg-900);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-850); }

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--emerald-deep), #0d5c49);
    border-radius: 10px;
    border: 2px solid var(--bg-850);
}

::-webkit-scrollbar-thumb:hover { background: var(--emerald); }

/* ------------------------------------------------------------
   3. SCROLL PROGRESS BAR
------------------------------------------------------------ */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--grad-brand);
    z-index: 3000;
    transition: width 0.08s linear;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}

/* ------------------------------------------------------------
   4. UTILITIES
------------------------------------------------------------ */
.grad-text {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mono { font-family: var(--font-mono); }

.section {
    position: relative;
    padding: 120px 0;
}

.section--tint {
    background: var(--bg-850);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.sec-head {
    max-width: 720px;
    margin: 0 auto 72px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.sec-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--emerald);
    padding: 0.5rem 1.3rem;
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 100px;
    background: var(--emerald-dim);
    margin-bottom: 1.4rem;
}

.sec-tag i { font-size: 0.85rem; }

.sec-title {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    margin-bottom: 1.1rem;
}

.sec-desc {
    font-size: 1.06rem;
    color: var(--muted);
    max-width: 580px;
    margin: 0 auto;
}

.ghost-index {
    position: absolute;
    top: 30px;
    right: 4%;
    font-family: var(--font-mono);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* ------------------------------------------------------------
   5. BUTTONS
------------------------------------------------------------ */
.btn-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--grad-btn);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-xs);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 34px rgba(16, 185, 129, 0.5), var(--shadow-glow);
    color: #ffffff;
}

.btn-glow:hover::before { left: 130%; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--glass);
    color: var(--text);
    border: 1px solid var(--line-strong);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-xs);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    border-color: var(--emerald);
    color: var(--emerald);
    background: var(--emerald-dim);
    transform: translateY(-3px);
}

.btn-glow.btn-sm,
.btn-ghost.btn-sm {
    padding: 0.55rem 1.15rem;
    font-size: 0.82rem;
}

/* ------------------------------------------------------------
   6. NAVBAR
------------------------------------------------------------ */
.navbar {
    background: rgba(6, 11, 9, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 1.05rem 0;
    transition: all 0.35s ease;
    z-index: 2000;
}

.navbar.scrolled {
    padding: 0.55rem 0;
    background: rgba(6, 11, 9, 0.94);
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text) !important;
    letter-spacing: -0.02em;
}

.navbar-brand img { height: 38px; width: auto; }

.navbar-brand .brand-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 10px var(--emerald);
    animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(0.8); }
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted) !important;
    margin: 0 0.55rem;
    padding: 0.5rem 0.2rem;
    position: relative;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--grad-brand);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active-link { color: var(--text) !important; }

.nav-link:hover::after,
.nav-link.active-link::after { width: 100%; }

.navbar-toggler {
    border: 1px solid var(--line-strong);
    padding: 0.45rem 0.65rem;
    color: var(--text);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e9f2ed' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E");
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--panel);
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        padding: 1.4rem;
        margin-top: 0.9rem;
        box-shadow: var(--shadow-md);
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .nav-link {
        margin: 0.15rem 0;
        padding: 0.6rem 0.2rem;
    }
}

/* ------------------------------------------------------------
   7. HERO
------------------------------------------------------------ */
.hero {
    position: relative;
    padding: 175px 0 110px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -220px;
    right: -140px;
    width: 720px;
    height: 720px;
    background: var(--grad-glow);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -260px;
    left: -160px;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 75%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--emerald);
    background: var(--glass);
    border: 1px solid rgba(52, 211, 153, 0.35);
    padding: 0.55rem 1.35rem;
    border-radius: 100px;
    margin-bottom: 1.8rem;
    backdrop-filter: blur(8px);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 10px var(--emerald);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.hero-title {
    font-size: clamp(2.6rem, 5.6vw, 4.3rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.16rem;
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 2.4rem;
    line-height: 1.85;
}

.hero-sub strong {
    color: var(--text-soft);
    font-weight: 600;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.4rem;
}

.hero-stats {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 2rem;
    max-width: 520px;
}

.hstat {
    flex: 1;
    padding: 0 1.6rem;
    border-left: 1px solid var(--line);
}

.hstat:first-child {
    padding-left: 0;
    border-left: none;
}

.hstat-num {
    font-family: var(--font-mono);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    display: block;
}

.hstat-num .unit { color: var(--emerald); }

.hstat-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted-2);
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.invoice-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 2.1rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
    position: relative;
    max-width: 460px;
    margin-left: auto;
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

.invoice-card::before {
    content: 'LIVE PREVIEW';
    position: absolute;
    top: -12px;
    left: 28px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--bg-900);
    background: var(--grad-brand);
    padding: 0.3rem 0.9rem;
    border-radius: 4px;
}

.inv-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.4rem;
}

.inv-top h5 {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
}

.inv-no {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--emerald);
}

.inv-top .inv-ico {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--emerald-dim);
    border: 1px solid rgba(52, 211, 153, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--emerald);
}

.inv-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.92rem;
}

.inv-line span { color: var(--muted); }

.inv-line strong {
    color: var(--text-soft);
    font-weight: 600;
}

.inv-line .amount {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.inv-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.inv-actions .btn-glow,
.inv-actions .btn-ghost { flex: 1; }

.chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-soft);
    background: rgba(13, 26, 21, 0.85);
    border: 1px solid var(--line-strong);
    padding: 0.55rem 1rem;
    border-radius: 100px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    z-index: 3;
}

.chip i { color: var(--emerald); }

.chip.chip-a { top: 8%; left: -6%; animation: floatChip 5s ease-in-out infinite; }
.chip.chip-b { bottom: 22%; left: -12%; animation: floatChip 6.5s ease-in-out 0.8s infinite; }
.chip.chip-c { top: 42%; right: -8%; animation: floatChip 5.5s ease-in-out 1.4s infinite; }

.chip.chip-c i { color: var(--gold); }

@keyframes floatChip {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* ------------------------------------------------------------
   8. TICKER / MARQUEE
------------------------------------------------------------ */
.ticker {
    background: var(--bg-850);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding: 1.05rem 0;
    position: relative;
    z-index: 2;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 32s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-group {
    display: flex;
    align-items: center;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    padding: 0 1.8rem;
    white-space: nowrap;
}

.ticker-item .sep {
    color: var(--emerald);
    font-size: 0.9rem;
}

@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ------------------------------------------------------------
   9. METRICS BAND
------------------------------------------------------------ */
.metrics {
    padding: 84px 0;
    position: relative;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.metric-cell {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.2rem 1.6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

.metric-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--grad-brand);
    transition: width 0.4s ease;
}

.metric-cell:hover {
    transform: translateY(-6px);
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: var(--shadow-glow);
}

.metric-cell:hover::before { width: 100%; }

.metric-icon {
    font-size: 1.4rem;
    color: var(--emerald);
    margin-bottom: 0.9rem;
    display: block;
}

.metric-cell:nth-child(2) .metric-icon { color: var(--teal); }
.metric-cell:nth-child(3) .metric-icon { color: var(--gold); }
.metric-cell:nth-child(4) .metric-icon { color: var(--lime); }

.metric-num {
    font-family: var(--font-mono);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.05;
    display: block;
    margin-bottom: 0.4rem;
}

.metric-num .suffix { color: var(--emerald); }

.metric-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted-2);
}

/* ------------------------------------------------------------
   10. FEATURES — BENTO GRID
------------------------------------------------------------ */
.features {
    background: var(--bg-850);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.09) 0%, transparent 70%);
    pointer-events: none;
}

.f-card {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

.f-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grad-brand);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.f-card:hover {
    transform: translateY(-6px);
    border-color: rgba(52, 211, 153, 0.42);
    background: var(--glass-2);
    box-shadow: var(--shadow-glow);
}

.f-card:hover::after { opacity: 1; }

.f-index {
    position: absolute;
    top: 1.4rem;
    right: 1.7rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--muted-2);
    transition: color 0.3s ease;
}

.f-card:hover .f-index { color: var(--emerald); }

.f-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-sm);
    background: var(--emerald-dim);
    border: 1px solid rgba(52, 211, 153, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--emerald);
    margin-bottom: 1.5rem;
    transition: all 0.35s ease;
}

.f-card:nth-child(even) .f-icon {
    background: var(--gold-dim);
    border-color: rgba(251, 191, 36, 0.28);
    color: var(--gold);
}

.f-card:hover .f-icon {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: var(--shadow-glow);
}

.f-title {
    font-size: 1.28rem;
    margin-bottom: 0.8rem;
}

.f-text {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 0;
}

.f-card--wide {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.f-card--wide .f-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.f-card--wide .f-body { flex: 1; }

.f-card--wide .f-pill {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold);
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: var(--gold-dim);
    padding: 0.45rem 1rem;
    border-radius: 100px;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .f-card--wide {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }
}

/* ------------------------------------------------------------
   11. HOW IT WORKS — STEPS
------------------------------------------------------------ */
.steps { position: relative; }

.step-card {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.8rem 2.1rem 2.4rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

.step-card:hover {
    border-color: rgba(52, 211, 153, 0.42);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.step-ghost {
    position: absolute;
    top: -18px;
    right: 6px;
    font-family: var(--font-head);
    font-size: 7rem;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
    pointer-events: none;
    transition: all 0.35s ease;
}

.step-card:hover .step-ghost {
    -webkit-text-stroke-color: rgba(52, 211, 153, 0.22);
}

.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--emerald);
    background: var(--emerald-dim);
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 0.4rem 0.95rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.step-title {
    font-size: 1.32rem;
    margin-bottom: 0.9rem;
}

.step-text {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 0;
}

.step-wrap { position: relative; }

@media (min-width: 992px) {
    .step-wrap:not(:last-child)::after {
        content: '\F138';
        font-family: 'bootstrap-icons';
        position: absolute;
        top: 50%;
        right: -34px;
        transform: translateY(-50%);
        font-size: 1.3rem;
        color: var(--emerald);
        opacity: 0.55;
        z-index: 2;
    }
}

/* ------------------------------------------------------------
   12. NEW — USE CASES (who it's for) — reuses design tokens
------------------------------------------------------------ */
.usecase { position: relative; }

.u-card {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.3rem 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

.u-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grad-brand);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.u-card:hover {
    transform: translateY(-6px);
    border-color: rgba(52, 211, 153, 0.42);
    background: var(--glass-2);
    box-shadow: var(--shadow-glow);
}

.u-card:hover::after { opacity: 1; }

.u-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: var(--emerald-dim);
    border: 1px solid rgba(52, 211, 153, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: var(--emerald);
    margin-bottom: 1.4rem;
    transition: all 0.35s ease;
}

.u-card:nth-child(even) .u-icon {
    background: var(--gold-dim);
    border-color: rgba(251, 191, 36, 0.28);
    color: var(--gold);
}

.u-card:hover .u-icon {
    transform: scale(1.08) rotate(-4deg);
}

.u-tag {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted-2);
    margin-bottom: 0.5rem;
    display: block;
}

.u-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.u-text {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.75;
    margin-bottom: 0;
}

/* ------------------------------------------------------------
   13. KNOWLEDGE / ABOUT SECTION
------------------------------------------------------------ */
.knowledge {
    background: var(--bg-850);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.k-card {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.6rem;
    height: 100%;
    position: relative;
    transition: all 0.35s ease;
}

.k-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.8rem;
    bottom: 1.8rem;
    width: 3px;
    border-radius: 3px;
    background: var(--grad-brand);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.k-card:hover {
    border-color: rgba(52, 211, 153, 0.4);
    background: var(--glass-2);
}

.k-card:hover::before { opacity: 1; }

.k-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.k-ico {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--emerald-dim);
    border: 1px solid rgba(52, 211, 153, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--emerald);
    flex-shrink: 0;
}

.k-card h3 { font-size: 1.5rem; margin: 0; }

.k-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.k-card strong { color: var(--text-soft); }

.k-list {
    list-style: none;
    padding: 0;
    margin: 1.3rem 0;
}

.k-list li {
    position: relative;
    padding: 0.55rem 0 0.55rem 2rem;
    color: var(--muted);
    font-size: 0.93rem;
    border-bottom: 1px dashed var(--line);
}

.k-list li:last-child { border-bottom: none; }

.k-list li::before {
    content: '\F26E';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 0.62rem;
    color: var(--emerald);
    font-size: 0.9rem;
}

.vs-card {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.6rem;
    height: 100%;
    transition: all 0.35s ease;
}

.vs-card:hover { border-color: rgba(251, 191, 36, 0.4); }

.vs-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.8rem;
    margin-top: 1.6rem;
}

.vs-col-title {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-xs);
    text-align: center;
    margin-bottom: 1.1rem;
}

.vs-col--tax .vs-col-title {
    color: var(--emerald);
    background: var(--emerald-dim);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.vs-col--pro .vs-col-title {
    color: var(--gold);
    background: var(--gold-dim);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--panel-2);
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-soft);
    letter-spacing: 0.08em;
}

.vs-list {
    list-style: none;
    padding: 0;
}

.vs-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.7rem;
    font-size: 0.9rem;
    color: var(--muted);
    border-bottom: 1px dashed var(--line);
}

.vs-list li:last-child { border-bottom: none; }

.vs-list li::before {
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 0.58rem;
    font-size: 0.85rem;
}

.vs-col--tax .vs-list li::before {
    content: '\F26E';
    color: var(--emerald);
}

.vs-col--pro .vs-list li::before {
    content: '\F2EA';
    color: var(--gold);
}

@media (max-width: 768px) {
    .vs-grid { grid-template-columns: 1fr; }
    .vs-divider { padding: 0.4rem 0; }
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    margin: 1.4rem 0;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.help-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1.15rem 1.3rem;
    background: rgba(255, 255, 255, 0.015);
    border-bottom: 1px dashed var(--line);
    border-right: 1px dashed var(--line);
    font-size: 0.92rem;
    color: var(--muted);
    transition: background 0.25s ease;
}

.help-item:hover { background: var(--emerald-dim); }

.help-item i {
    color: var(--emerald);
    font-size: 1.05rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.help-item strong { color: var(--text-soft); }

/* ------------------------------------------------------------
   14. NEW — TESTIMONIALS — reuses design tokens
------------------------------------------------------------ */
.testi { position: relative; }

.t-card {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.3rem 2.1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.35s ease;
}

.t-card:hover {
    border-color: rgba(52, 211, 153, 0.42);
    background: var(--glass-2);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.t-quote-mark {
    font-size: 1.9rem;
    color: var(--emerald);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 1.1rem;
}

.t-stars {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    margin-bottom: 1.05rem;
}

.t-text {
    color: var(--text-soft);
    font-size: 0.97rem;
    line-height: 1.8;
    flex: 1;
    margin-bottom: 1.6rem;
}

.t-person {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    border-top: 1px dashed var(--line);
    padding-top: 1.3rem;
}

.t-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--panel-2);
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--emerald);
    flex-shrink: 0;
}

.t-name {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.3;
}

.t-role {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted-2);
}

/* ------------------------------------------------------------
   15. FAQ
------------------------------------------------------------ */
.faq-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 0.95rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: rgba(52, 211, 153, 0.45);
    background: var(--glass-2);
    box-shadow: var(--shadow-glow);
}

.faq-q {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.35rem 1.7rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.25s ease;
}

.faq-q:hover { background: rgba(255, 255, 255, 0.02); }

.faq-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted-2);
    letter-spacing: 0.1em;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.faq-item.active .faq-num { color: var(--emerald); }

.faq-q h5 {
    flex: 1;
    font-size: 1.06rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-soft);
    transition: color 0.3s ease;
}

.faq-item.active .faq-q h5 { color: var(--text); }

.faq-chevron {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.35s ease;
}

.faq-item.active .faq-chevron {
    background: var(--emerald);
    border-color: var(--emerald);
    color: var(--bg-900);
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-a-inner {
    padding: 0.2rem 1.7rem 1.6rem 4.6rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.85;
}

@media (max-width: 576px) {
    .faq-a-inner { padding-left: 1.7rem; }
}

/* ------------------------------------------------------------
   16. CTA
------------------------------------------------------------ */
.cta {
    position: relative;
    padding: 140px 0;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid var(--line);
}

.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, transparent 60%);
    pointer-events: none;
}

.cta-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 560px;
    height: 560px;
    border: 1px dashed rgba(52, 211, 153, 0.18);
    border-radius: 50%;
    animation: spinSlow 40s linear infinite;
    pointer-events: none;
}

.cta-ring::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 14px var(--emerald);
}

@keyframes spinSlow {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.cta-inner {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: clamp(2rem, 4.6vw, 3.2rem);
    margin-bottom: 1.2rem;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 2.4rem;
}

.cta-note {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted-2);
    margin-top: 1.6rem;
}

.cta-note i { color: var(--emerald); }

/* ------------------------------------------------------------
   17. FOOTER
------------------------------------------------------------ */
footer {
    background: var(--bg-850);
    border-top: 1px solid var(--line);
    padding: 90px 0 34px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    height: 1px;
    background: var(--grad-brand);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.55rem;
    color: var(--text);
    margin-bottom: 1.1rem;
}

.footer-brand img { height: 36px; }

.footer-about {
    color: var(--muted-2);
    font-size: 0.92rem;
    max-width: 300px;
    line-height: 1.8;
}

footer h6 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--emerald);
    margin-bottom: 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--line);
}

.footer-link {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 0;
    transition: all 0.25s ease;
}

.footer-link i {
    font-size: 0.7rem;
    margin-right: 0.4rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.footer-link:hover {
    color: var(--text);
    padding-left: 18px;
}

.footer-link:hover i {
    opacity: 1;
    color: var(--emerald);
}

.social-row {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.social-row a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    border: 1px solid var(--line-strong);
    color: var(--muted);
    background: var(--glass);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-row a:hover {
    background: var(--emerald);
    border-color: var(--emerald);
    color: var(--bg-900);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.news-box {
    display: flex;
    background: var(--glass);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.news-box:focus-within {
    border-color: var(--emerald);
    box-shadow: var(--shadow-glow);
}

.news-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.85rem 1.1rem;
    color: var(--text);
    font-size: 0.9rem;
    font-family: var(--font-body);
    min-width: 0;
}

.news-box input::placeholder { color: var(--muted-2); }

.news-box button {
    background: var(--grad-btn);
    border: none;
    color: #fff;
    padding: 0 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: filter 0.25s ease;
}

.news-box button:hover { filter: brightness(1.15); }

.footer-bottom {
    margin-top: 70px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted-2);
    font-size: 0.85rem;
}

.footer-bottom .mono {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--emerald); }

/* ------------------------------------------------------------
   18. BACK TO TOP
------------------------------------------------------------ */
#backTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-xs);
    background: var(--panel-2);
    border: 1px solid var(--line-strong);
    color: var(--emerald);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.35s ease;
    z-index: 1500;
    box-shadow: var(--shadow-md);
}

#backTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backTop:hover {
    background: var(--emerald);
    color: var(--bg-900);
    border-color: var(--emerald);
    box-shadow: var(--shadow-glow);
}

/* ------------------------------------------------------------
   19. KEYFRAMES + ENTRANCE HELPERS
------------------------------------------------------------ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

.anim-1 { animation: fadeUp 0.7s ease 0.05s both; }
.anim-2 { animation: fadeUp 0.7s ease 0.15s both; }
.anim-3 { animation: fadeUp 0.7s ease 0.25s both; }
.anim-4 { animation: fadeUp 0.7s ease 0.35s both; }
.anim-5 { animation: fadeUp 0.7s ease 0.45s both; }

/* ------------------------------------------------------------
   20. ACCESSIBILITY — REDUCED MOTION
------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------
   21. RESPONSIVE — FULL BREAKPOINT COVERAGE
------------------------------------------------------------ */
@media (max-width: 1199px) {
    .hero-title { font-size: clamp(2.4rem, 5vw, 3.6rem); }
    .invoice-card { padding: 1.8rem; }
    .chip.chip-a { left: -2%; }
    .chip.chip-b { left: -4%; }
    .chip.chip-c { right: -3%; }
    .k-card, .vs-card { padding: 2.2rem; }
    .f-card { padding: 2rem; }
}

@media (max-width: 991px) {
    .section { padding: 90px 0; }
    .hero { padding: 150px 0 90px; }
    .invoice-card { margin: 3.2rem auto 0; }
    .chip { display: none; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .ghost-index { display: none; }
    .sec-head { margin-bottom: 56px; }
    .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.3rem;
    }
    .hstat { padding: 0; border-left: none; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
    .metric-num { font-size: 2rem; }
    .metric-cell { padding: 1.7rem 1.1rem; }
    .k-card, .vs-card { padding: 1.9rem; }
    .faq-q { padding: 1.15rem 1.2rem; gap: 0.8rem; }
    .faq-q h5 { font-size: 0.98rem; }
    .t-card { padding: 1.9rem 1.6rem; }
    .cta { padding: 100px 0; }
    .cta-ring { width: 400px; height: 400px; }
    .step-card { padding: 2.3rem 1.7rem 2rem; }
    .u-card { padding: 1.9rem 1.6rem; }
    footer { padding: 70px 0 28px; }
    #backTop { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

@media (max-width: 576px) {
    .hero { padding: 135px 0 75px; }
    .hero-sub { font-size: 1.05rem; }
    .hero-ctas .btn-glow,
    .hero-ctas .btn-ghost { width: 100%; }
    .inv-actions { flex-direction: column; }
    .metrics-grid { grid-template-columns: 1fr; }
    .sec-title { font-size: 1.75rem; }
    .cta-title { font-size: 1.9rem; }
    .cta-text { font-size: 1rem; }
    .f-card--wide { padding: 1.8rem 1.5rem; }
    .vs-grid { gap: 1.2rem; }
    .help-grid { grid-template-columns: 1fr; }
    .help-item { border-right: none; }
    .faq-num { display: none; }
    .faq-a-inner { padding: 0.2rem 1.2rem 1.4rem 1.2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; }
    .news-box input { padding: 0.75rem 0.9rem; }
}

/* Very small phones */
@media (max-width: 380px) {
    .hero-title { font-size: 2rem; }
    .hstat-num { font-size: 1.55rem; }
    .metric-num { font-size: 1.7rem; }
}

/* ============================================================
   AUTH PAGES — LOGIN / REGISTER / FORGOT PASSWORD
   Neon Glass Fintech — matches landing page
   (fully scoped under .auth-page — safe inside app.css)
============================================================ */

/* ---------- Page shell & ambient background ---------- */
.auth-page {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
}

.auth-orb--one {
    top: -200px;
    right: -120px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.16) 0%, transparent 70%);
}

.auth-orb--two {
    bottom: -240px;
    left: -140px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.09) 0%, transparent 70%);
}

/* ---------- Layout grid ---------- */
.auth-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
    width: 100%;
}

/* ---------- Brand side ---------- */
.auth-brand {
    display: flex;
    flex-direction: column;
    padding: 44px 60px;
    background: var(--bg-850);
    border-right: 1px solid var(--line);
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.auth-logo:hover { opacity: 0.85; }

.auth-logo img { height: 38px; width: auto; }

.auth-logo .brand-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 10px var(--emerald);
    animation: pulse 2.2s ease-in-out infinite;
}

.auth-brand-body {
    margin: auto 0;
    padding: 3rem 0;
    /*max-width: 520px;*/
}

.auth-hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    margin-bottom: 1.8rem;
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-glow);
    animation: floatCard 6s ease-in-out infinite;
}

.auth-hero-logo img {
    width: 100%;
    height: auto;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--emerald);
    background: var(--glass);
    border: 1px solid rgba(52, 211, 153, 0.35);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    margin-bottom: 1.6rem;
    backdrop-filter: blur(8px);
}

.auth-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 10px var(--emerald);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.auth-headline {
    font-family: var(--font-head);
    font-size: clamp(2.1rem, 3.2vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 1rem;
    color: var(--text);
}

.auth-sub {
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.8;
    max-width: 440px;
    margin-bottom: 0;
}

.auth-points {
    list-style: none;
    padding: 0;
    margin: 2.2rem 0;
    display: grid;
    gap: 0.85rem;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-soft);
    font-size: 0.93rem;
}

.auth-points i {
    color: var(--emerald);
    font-size: 1.05rem;
}

.auth-brand-foot {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--muted-2);
}

/* ---------- Form side ---------- */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
    border: 1px solid #6262624d;
    border-radius: var(--radius);
    padding: 2.6rem 2.3rem;
    backdrop-filter: blur(16px);
    position: relative;
    animation: fadeUp 0.7s ease both;
}

/* Floating tag on card — same treatment as "LIVE PREVIEW" on landing */
.auth-card::before {
    content: 'MEMBER AREA';
    position: absolute;
    top: -11px;
    left: 26px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--bg-900);
    background: var(--grad-brand);
    padding: 0.3rem 0.9rem;
    border-radius: 4px;
}

.auth-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--emerald);
    padding: 0.45rem 1.2rem;
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 100px;
    background: var(--emerald-dim);
}

.auth-title {
    font-family: var(--font-head);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1.1rem 0 0.4rem;
    line-height: 1.25;
}

.auth-desc {
    color: var(--muted-3);
    font-size: 0.92rem;
    margin-bottom: 1.8rem;
}

/* ---------- Alerts (Bootstrap markup, dark restyle) ---------- */
.auth-page .alert {
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    border-radius: var(--radius-xs);
    font-size: 0.88rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid;
    margin-bottom: 1.6rem;
}

.auth-page .alert-success {
    background: var(--emerald-dim);
    border-color: rgba(52, 211, 153, 0.35);
    color: var(--emerald);
}

.auth-page .alert-danger {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.35);
    color: #f87171;
}

.auth-page .alert .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    margin-left: auto;
    padding: 0.35rem 0.6rem;
    flex-shrink: 0;
}

/* ---------- Form fields ---------- */
.auth-field { margin-bottom: 1.25rem; }

.auth-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted-3);
    display: block;
    margin-bottom: 0.55rem;
}

.auth-mini-link {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--emerald-deep);
    text-decoration: none;
    transition: color 0.25s ease;
}

.auth-mini-link:hover { color: var(--teal); }

.auth-input-group {
    display: flex;
    align-items: center;
    background: var(--glass);
    border: 1px solid var(--line-form);
    border-radius: var(--radius-xs);
    overflow: hidden;
    transition: all 0.25s ease;
}

.auth-input-group:focus-within {
    border-color: var(--emerald);
    background: var(--glass-2);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12), var(--shadow-glow);
}

.auth-input-icon {
    padding: 0 0.9rem;
    color: var(--muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: color 0.25s ease;
}

.auth-input-group:focus-within .auth-input-icon {
    color: var(--emerald);
}

.auth-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 0.95rem 0.95rem 0.95rem 0.35rem;
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--font-body);
    border-radius: 0;
}

.auth-input::placeholder { color: var(--muted-2); }

/* Neutralize Bootstrap's .form-control inside our group */
.auth-page .auth-input.form-control,
.auth-page .auth-input.form-control:focus {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--form-text);
}

/* Password visibility toggle */
.auth-pass-toggle {
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 0 1rem;
    align-self: stretch;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.25s ease;
}

.auth-pass-toggle:hover { color: var(--emerald); }

/* ---------- Submit button ---------- */
.btn-auth-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--theme-color);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    padding: 0.95rem;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 34px rgba(16, 185, 129, 0.5), var(--shadow-glow);
    color: #ffffff;
}

/* ---------- Bottom links ---------- */
.auth-alt {
    text-align: center;
    margin-top: 1.6rem;
}

.auth-alt p {
    color: var(--muted-3);
    font-size: 0.92rem;
    margin: 0;
}

.auth-alt a {
    color: var(--emerald-deep);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
}

.auth-alt a:hover { color: var(--teal); }

.auth-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.4rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted-2);
    text-decoration: none;
    transition: color 0.25s ease;
}

.auth-back:hover { color: var(--emerald); }

/* ============================================================
   AUTH — RESPONSIVE
============================================================ */
@media (max-width: 991px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }

    /* Form first, brand below (same behaviour as before) */
    .auth-panel { order: 1; padding: 48px 20px; }
    .auth-brand { order: 2; padding: 48px 24px 56px; border-right: none; border-top: 1px solid var(--line); }

    .auth-brand-body {
        margin: 0;
        padding: 0;
        max-width: 100%;
    }

    .auth-hero-logo { width: 80px; height: 80px; border-radius: 20px; padding: 14px; }
    .auth-points { gap: 0.7rem; }
    .auth-stats { max-width: 100%; }
}

@media (max-width: 576px) {
    .auth-panel { padding: 40px 16px; }
    .auth-card { padding: 2rem 1.5rem; }
    .auth-title { font-size: 1.45rem; }
    .auth-headline { font-size: 1.85rem; }
    .auth-sub { font-size: 0.95rem; }
    .auth-brand { padding: 40px 20px 48px; }
    .auth-stats .stat { padding: 0 0.9rem; }
    .auth-stats .stat span { font-size: 1.3rem; }
}

@media (max-width: 380px) {
    .auth-stats { flex-direction: column; gap: 1rem; }
    .auth-stats .stat { padding: 0; border-left: none; }
}

/* ============================================================
   AUTH — REGISTER PAGE EXTRAS
============================================================ */

/* Password strength meter (visual only) */
.pw-strength {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.pw-strength .seg {
    width: 34px;
    height: 4px;
    border-radius: 4px;
    background: var(--line-strong);
    transition: background 0.3s ease;
}

.pw-strength .seg.on.level-1 { background: #f87171; }
.pw-strength .seg.on.level-2 { background: var(--gold); }
.pw-strength .seg.on.level-3 { background: var(--emerald); }

.pw-strength-label {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-left: 0.35rem;
}

/* Match hint (visual only) */
.auth-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.55rem;
    font-size: 0.78rem;
    color: var(--muted-2);
    transition: color 0.25s ease;
}

.auth-hint.ok {
    color: var(--emerald);
}

.auth-hint.err {
    color: #f87171;
}

/* ============================================================
   AUTH — FORGOT PASSWORD EXTRAS
============================================================ */

/* Multi-step indicator */
.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 1.9rem;
    padding: 1rem 0.75rem;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.astep {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.astep-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--glass);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.35s ease;
}

.astep-label {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted-2);
    transition: color 0.3s ease;
}

.astep.is-active .astep-dot {
    background: var(--emerald);
    border-color: var(--emerald);
    color: var(--bg-900);
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.45);
}

.astep.is-active .astep-label {
    color: var(--emerald);
}

.astep.is-done .astep-dot {
    background: var(--emerald-dim);
    border-color: rgba(52, 211, 153, 0.45);
    color: var(--emerald);
}

.astep.is-done .astep-label {
    color: var(--muted);
}

.astep-line {
    flex: 1;
    max-width: 42px;
    height: 1px;
    background: var(--line-strong);
    margin-bottom: 1.1rem;
    transition: background 0.35s ease;
}

/* Step visibility + entrance animation
   (reuses fadeUp keyframes already in app.css) */
.auth-page .step { display: none; }

.auth-page .step.active {
    display: block;
    animation: fadeUp 0.35s ease both;
}

/* Step helper text */
.auth-note {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.auth-note strong {
    color: var(--emerald);
    font-weight: 600;
    word-break: break-all;
}

.auth-note-small {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.75rem;
    color: var(--muted-2);
}

.auth-note-small i {
    color: var(--gold);
}

/* Big mono OTP input */
.auth-otp,
.auth-page .auth-otp.form-control {
    font-family: var(--font-mono);
    font-size: 1.45rem !important;
    font-weight: 700;
    letter-spacing: 0.5em;
    text-indent: 0.5em;   /* visually centers the tracked digits */
    text-align: center;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

/* Resend link */
.auth-resend {
    background: transparent;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px dashed var(--line-strong);
    transition: all 0.25s ease;
}

.auth-resend:hover {
    color: var(--emerald);
    border-color: var(--emerald);
    background: var(--emerald-dim);
}

/* Success step icon */
.auth-success-ico {
    width: 88px;
    height: 88px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--emerald-dim);
    border: 1px solid rgba(52, 211, 153, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: var(--emerald);
    box-shadow: var(--shadow-glow);
    animation: pulse 2.4s ease-in-out infinite;
}

/* ============================================================
   AUTH — TOASTIFY POLISH (cosmetic only)
============================================================ */
.auth-page .toastify {
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    box-shadow: var(--shadow-md);
}

/* ============================================================
   AUTH EXTRAS — RESPONSIVE
============================================================ */
@media (max-width: 576px) {
    .astep-label { display: none; }
    .astep-dot { width: 30px; height: 30px; font-size: 0.78rem; }
    .astep-line { max-width: 24px; }
    .auth-otp,
    .auth-page .auth-otp.form-control { font-size: 1.2rem !important; letter-spacing: 0.4em; text-indent: 0.4em; }
    .pw-strength .seg { width: 26px; }
}

/* ============================================================
   LEGAL PAGES — PRIVACY / TERMS (scoped under .legal-page)
============================================================ */

/* ---------- Hero ---------- */
.legal-hero {
    position: relative;
    padding: 50px 0 70px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -120px;
    width: 600px;
    height: 600px;
    background: var(--grad-glow);
    border-radius: 50%;
    pointer-events: none;
}

.legal-hero .hero-sub { margin-bottom: 1.6rem; }

/* Last-updated / reading-time chips */
.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.legal-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    background: var(--glass);
    border: 1px solid var(--line-strong);
    padding: 0.45rem 1rem;
    border-radius: 100px;
}

.legal-chip i { color: var(--emerald); }

/* ---------- Layout: sticky TOC + content ---------- */
.legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 110px;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    backdrop-filter: blur(12px);
}

.legal-toc-title {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--emerald);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.85rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}

.legal-toc nav {
    display: flex;
    flex-direction: column;
}

.toc-link {
    font-size: 0.84rem;
    color: var(--muted);
    padding: 0.42rem 0.75rem;
    border-radius: var(--radius-xs);
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.toc-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.toc-link.active {
    color: var(--emerald);
    background: rgba(52, 211, 153, 0.08);
    border-left-color: var(--emerald);
    font-weight: 600;
}

/* ---------- Content blocks ---------- */
.legal-block {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 2.2rem 2.4rem;
    margin-bottom: 1.6rem;
    scroll-margin-top: 120px;   /* anchor offset under fixed navbar */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.legal-block h2 {
    font-size: 1.45rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px dashed var(--line);
}

.lnum {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--emerald);
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    flex-shrink: 0;
}

.legal-block p {
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.legal-block p:last-child { margin-bottom: 0; }

.legal-block strong { color: var(--text-soft); }

.legal-block ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.1rem;
}

.legal-block ul li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.9rem;
    font-size: 0.93rem;
    line-height: 1.75;
    color: var(--muted);
    border-bottom: 1px dashed var(--line);
}

.legal-block ul li:last-child { border-bottom: none; }

.legal-block ul li::before {
    content: '\F26E';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 0.6rem;
    color: var(--emerald);
    font-size: 0.9rem;
}

.legal-block a { font-weight: 600; }

/* ---------- Note / warning callouts ---------- */
.legal-note {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: var(--radius-sm);
    padding: 1.05rem 1.2rem;
    margin: 1.2rem 0;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--muted);
}

.legal-note i { color: var(--emerald); font-size: 1.25rem; flex-shrink: 0; margin-top: 0.15rem; }
.legal-note strong { color: var(--text-soft); }

.legal-note.warn {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.32);
}

.legal-note.warn i { color: var(--gold); }
.legal-note.warn strong { color: var(--gold); }

/* ---------- Grievance officer card ---------- */
.officer-card { max-width: 560px; }

.officer-card .f-icon { margin-bottom: 1.2rem; }

.legal-contact-list {
    list-style: none;
    padding: 0;
    margin: 0.9rem 0 0;
}

.legal-contact-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.legal-contact-list li i { color: var(--emerald); font-size: 1rem; }
.legal-contact-list li strong { color: var(--text); }

/* Footer legal links */
.legal-footlinks a {
    color: var(--muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-footlinks a:hover { color: var(--emerald); }
.legal-footlinks .sep { color: var(--muted-2); margin: 0 0.4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .legal-hero { padding: 150px 0 60px; }

    .legal-layout { grid-template-columns: 1fr; gap: 1.8rem; }

    .legal-toc {
        position: static;
    }

    .legal-toc nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .toc-link {
        border-left: none;
        border: 1px solid var(--line-strong);
        border-radius: 100px;
        padding: 0.4rem 0.95rem;
        font-size: 0.76rem;
    }

    .toc-link.active {
        border-color: var(--emerald);
        background: rgba(52, 211, 153, 0.12);
    }
}

@media (max-width: 576px) {
    .legal-hero { padding: 135px 0 50px; }
    .legal-block { padding: 1.6rem 1.4rem; }
    .legal-block h2 { font-size: 1.2rem; gap: 0.6rem; }
    .legal-meta { gap: 0.5rem; }
    .legal-chip { font-size: 0.62rem; padding: 0.4rem 0.8rem; }
}

/* ============================================================
   BLOG PAGES — scoped additions
============================================================ */

/* ---------- Hero (reuses .legal-hero markup; glow alias) ---------- */
.blog-hero {
    position: relative;
    padding: 165px 0 70px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -120px;
    width: 600px;
    height: 600px;
    background: var(--grad-glow);
    border-radius: 50%;
    pointer-events: none;
}

/* meta chips wrapper (uses .legal-chip children) */
.blog-meta { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---------- Article extras inside .legal-block ---------- */
.legal-block h3 {
    font-size: 1.08rem;
    color: var(--text);
    margin: 1.1rem 0 0.6rem;
}

/* ---------- Comparison table ---------- */
.cmp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.6rem 0 1rem;
    font-size: 0.92rem;
}

.cmp-table thead th {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--emerald);
    text-align: left;
    padding: 0.75rem 0.9rem;
    border-bottom: 2px solid rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.06);
}

.cmp-table tbody td {
    padding: 0.8rem 0.9rem;
    color: var(--muted);
    border-bottom: 1px dashed var(--line);
    vertical-align: top;
}

.cmp-table tbody td:first-child {
    color: var(--text-soft);
    font-weight: 600;
}

.cmp-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* ---------- Related-post read link ---------- */
.post-read {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--emerald);
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
}

.post-read:hover { color: var(--teal); gap: 0.75rem; }

/* ---------- Responsive (legal-layout breakpoints already handle TOC) ---------- */
@media (max-width: 576px) {
    .cmp-table thead th, .cmp-table tbody td { padding: 0.6rem 0.55rem; font-size: 0.82rem; }
    .blog-hero { padding: 135px 0 50px; }
}

/* ============================================================
   BLOG INDEX — POST CARDS (scoped)
============================================================ */

/* ---------- Card base (used by grid + featured) ---------- */
.post-card {
    display: flex;
    flex-direction: column;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.1rem 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    color: inherit;
    transition: all 0.35s ease;
}

.post-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grad-brand);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    border-color: rgba(52, 211, 153, 0.42);
    background: var(--glass-2);
    box-shadow: var(--shadow-glow);
    color: inherit;
}

.post-card:hover::after { opacity: 1; }

/* ---------- Top row: category + read time ---------- */
.pc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.post-cat {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--emerald);
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
}

.pc-readtime {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--muted-2);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

/* ---------- Icon glyph ---------- */
.pc-glyph {
    width: 62px;
    height: 62px;
    border-radius: var(--radius-sm);
    background: var(--emerald-dim);
    border: 1px solid rgba(52, 211, 153, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--emerald);
    margin-bottom: 1.3rem;
    transition: transform 0.35s ease;
}

.post-card:hover .pc-glyph { transform: scale(1.08) rotate(-4deg); }

.pc-glyph--sm {
    width: 54px;
    height: 54px;
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
}

/* ---------- Titles & excerpts ---------- */
.pc-title {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 0.85rem;
    transition: color 0.3s ease;
}

.post-card:hover .pc-title { color: var(--emerald); }

.pc-title--sm { font-size: 1.12rem; }

.pc-excerpt {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.75;
    margin-bottom: 1.3rem;
    flex: 1;
}

.pc-excerpt--sm {
    font-size: 0.88rem;
    margin-bottom: 1.1rem;
}

/* ---------- Footer row (grid cards) ---------- */
.pc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.1rem;
    border-top: 1px dashed var(--line);
}

.pc-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted-2);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ============================================================
   FEATURED CARD — horizontal layout
============================================================ */
.post-card--featured {
    flex-direction: row;
    align-items: stretch;
    gap: 2.5rem;
    padding: 2.8rem 2.6rem;
}

.pc-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pc-left .post-cat { margin-bottom: 1.2rem; }

.pc-left .pc-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.pc-left .pc-excerpt { margin-bottom: 1.6rem; }

.pc-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-shrink: 0;
}

.pc-glyph--lg {
    width: 86px;
    height: 86px;
    font-size: 2.2rem;
    border-radius: var(--radius);
}

.pc-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted-2);
}

.pc-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.pc-meta i { color: var(--emerald); }

/* ---------- Featured responsive ---------- */
@media (max-width: 767px) {
    .post-card--featured {
        flex-direction: column;
        gap: 1.4rem;
        padding: 2rem 1.6rem;
    }

    .pc-right {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    .pc-glyph--lg {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .pc-meta {
        flex-direction: row;
        align-items: center;
        gap: 1.1rem;
    }
}