/* ─── Stripe-inspired Design System ────────────────────────────────────────── */
:root {
    /* ── MLDetect brand palette ─────────────────────────────────────────────
       Detect Navy #1E4E82 · Signal Green #206A4A · Deep Ink #0F2A47
       Brandbook rule: Signal Green on Detect Navy is 1.29:1 — never pair them.
       Green appears on light grounds only; dark grounds use --accent-soft. */

    /* Legacy names, brand values (still referenced across the sheet) */
    --color-primary:     #0F2A47;
    --color-secondary:   #1E4E82;
    --color-accent:      #206A4A;
    --color-primary-dark:#0B1A2B;
    --color-light-bg:    #F6F8FB;
    --color-white:       #FFFFFF;
    --color-text:        #0F2A47;
    --color-text-muted:  #5B7089;
    --color-border:      #DCE5EF;
    --color-success:     #206A4A;

    --sidebar-width:     260px;
    --official-notice-height: 44px;
    --navbar-height:     64px;
    --public-header-height: calc(var(--official-notice-height) + var(--navbar-height));

    /* Typography */
    --font-display: "Montserrat", "Segoe UI", Arial, sans-serif;
    --font-body:    "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
    --font-mono:    "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;

    /* Brand token layer */
    --ground:        #F6F8FB;
    --surface:       #FFFFFF;
    --surface-2:     #EEF3F9;
    --surface-3:     #F6F8FB;
    --line:          #DCE5EF;
    --line-mid:      #DCE5EF;
    --line-strong:   #C3D2E3;
    --ink:           #0F2A47;
    --ink-deep:      #0B1A2B;
    --ink-mid:       #16304B;
    --ink-body:      #5B7089;
    --ink-muted:     #5B7089;
    --ink-faint:     #5B7089;
    --ink-soft:      #5B7089;
    --ink-firm:      #5B7089;
    --accent:        #1E4E82;
    --accent-2:      #206A4A;
    --accent-soft:   #7FB3E3;
    --warning:       #D99326;
    --danger:        #C2453C;
    --accent-hover:  #17406C;
    --accent-2-hover:#1B5A3F;
    --accent-rgb:    30 78 130;
    --accent-2-rgb:  32 106 74;
    --ink-rgb:       15 42 71;
    --surface-rgb:   255 255 255;

    /* Status colours stay semantic (not brand-swapped) */
    --status-warn-bg: #FFF6E8;  --status-warn-fg: #8A5A12;
    --status-ok-bg:   #E9F3EE;  --status-ok-fg:   #15503A;
    --status-err-bg:  #FBECEB;  --status-err-fg:  #8C2F28;

    --radius-2xl:    20px;
    --maxw:          1160px;

    /* Logo-override vars (populated by inline style when logo is active) */
    --logo-primary:   var(--color-primary);
    --logo-secondary: var(--color-secondary);
    --logo-accent:    var(--color-accent);
}


/* ─── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

a { color: var(--color-secondary); text-decoration: none; }
a:hover { color: var(--accent-2); }
/* Green never lands on a dark ground (1.31:1 on navy). Any anchor inside a
   dark surface resolves to white instead — this guards links that have no
   hover rule of their own, e.g. .footer-contact-link. */
.stripe-footer a:hover,
.sidebar a:hover,
.stripe-cta-band a:hover,
.section-dark a:hover,
.auth-page > a:hover { color: var(--surface); }

/* ─── Typography ────────────────────────────────────────────────────────────── */
.display-headline {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.section-headline {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    color: var(--color-secondary);
}
.lead-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}
.eyebrow {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn-stripe-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent-2);
    color: var(--surface);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    text-decoration: none;
}
.btn-stripe-primary:hover {
    background: var(--accent-2-hover);
    color: var(--surface);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgb(var(--accent-2-rgb) / 0.35);
}

/* Signal Green on Detect Navy is 1.31:1 — on dark grounds the primary CTA
   inverts to a white button instead of merging into the background. */
.stripe-cta-band .btn-stripe-primary,
.section-dark .btn-stripe-primary {
    background: var(--surface);
    color: var(--ink);
}
.stripe-cta-band .btn-stripe-primary:hover,
.section-dark .btn-stripe-primary:hover {
    background: var(--surface);
    color: var(--accent-2-hover);
    box-shadow: 0 6px 20px rgb(var(--ink-rgb) / 0.38);
}
.btn-stripe-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.73rem 1.6rem;
    border-radius: 999px;
    border: 1.5px solid var(--line-strong);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    text-decoration: none;
}
.btn-stripe-outline:hover {
    border-color: var(--accent);
    background: rgb(var(--accent-rgb) / 0.06);
    color: var(--accent);
}

/* Dark-ground contexts keep the light-on-dark treatment */
.stripe-cta-band .display-headline,
.section-dark .display-headline { color: var(--surface); }
.stripe-cta-band .btn-stripe-outline,
.section-dark .btn-stripe-outline {
    color: var(--surface);
    border-color: rgb(var(--surface-rgb) / 0.35);
}
.stripe-cta-band .btn-stripe-outline:hover,
.section-dark .btn-stripe-outline:hover {
    border-color: rgb(var(--surface-rgb) / 0.8);
    background: rgb(var(--surface-rgb) / 0.08);
    color: var(--surface);
}
.btn-stripe-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--ink);
    color: var(--surface);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}
.btn-stripe-dark:hover {
    background: var(--color-primary-dark);
    color: var(--surface);
    transform: translateY(-1px);
}

/* Bootstrap overrides */
.btn-primary {
    background: var(--accent-2);
    border-color: var(--accent-2);
    border-radius: 999px;
    font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--accent-2-hover);
    border-color: var(--accent-2-hover);
}
.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
    border-radius: 999px;
    font-weight: 600;
}
.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* ─── Official Notice ───────────────────────────────────────────────────────── */
.official-domain-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    min-height: var(--official-notice-height);
    background: var(--surface-3);
    color: var(--ink);
    border-bottom: 1px solid rgb(var(--ink-rgb) / 0.10);
    box-shadow: 0 1px 8px rgb(var(--ink-rgb) / 0.08);
    display: flex;
    align-items: center;
}
.official-domain-notice__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.55rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-size: 0.84rem;
    line-height: 1.35;
    font-weight: 500;
    text-align: center;
}
.official-domain-notice i {
    color: var(--accent-2);
    font-size: 1rem;
    flex: 0 0 auto;
}
.official-domain-notice strong,
.official-domain {
    color: var(--ink);
    font-weight: 800;
}

/* ─── Navbar ────────────────────────────────────────────────────────────────── */
.stripe-navbar {
    position: fixed;
    top: var(--official-notice-height);
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgb(var(--surface-rgb) / 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    transition: background 0.3s, box-shadow 0.3s;
}
.stripe-navbar.scrolled {
    background: rgb(var(--surface-rgb) / 0.96);
    box-shadow: 0 4px 24px rgb(var(--ink-rgb) / 0.10);
    backdrop-filter: blur(14px);
}
.stripe-navbar .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.stripe-navbar .nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    flex-shrink: 0;
}
.stripe-navbar .nav-brand img {
    height: 42px;
    max-width: 190px;
    object-fit: contain;
}
.stripe-navbar .nav-brand .brand-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.stripe-navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}
.stripe-navbar .nav-links a {
    color: var(--ink-body);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}
.stripe-navbar .nav-links a:hover {
    color: var(--ink);
    background: rgb(var(--ink-rgb) / 0.05);
}
.stripe-navbar .nav-links a.active {
    color: var(--accent-2);
    font-weight: 600;
}
.stripe-navbar .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.stripe-navbar .nav-actions .nav-signin {
    color: var(--ink-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: color 0.2s;
}
.stripe-navbar .nav-actions .nav-signin:hover { color: var(--accent); }
.stripe-navbar .lang-btn {
    background: rgb(var(--ink-rgb) / 0.05);
    color: var(--ink-body);
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.62rem;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 34px;
}
.lang-flag {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 16px;
    flex: 0 0 24px;
    overflow: hidden;
    border-radius: 2px;
    background: linear-gradient(135deg, #d7deea 0 50%, #eef2f7 50% 100%);
    box-shadow: 0 0 0 1px rgb(var(--ink-rgb) / 0.18);
    line-height: 1;
    vertical-align: -0.12em;
}
.lang-flag.flag-us {
    background:
        linear-gradient(180deg,
            #b22234 0 7.69%, #fff 7.69% 15.38%,
            #b22234 15.38% 23.07%, #fff 23.07% 30.76%,
            #b22234 30.76% 38.45%, #fff 38.45% 46.14%,
            #b22234 46.14% 53.83%, #fff 53.83% 61.52%,
            #b22234 61.52% 69.21%, #fff 69.21% 76.9%,
            #b22234 76.9% 84.59%, #fff 84.59% 92.28%,
            #b22234 92.28% 100%);
}
.lang-flag.flag-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 42%;
    height: 54%;
    background: #3c3b6e;
}
.lang-flag.flag-cz {
    background: linear-gradient(180deg, #fff 0 50%, #d7141a 50% 100%);
}
.lang-flag.flag-cz::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 58%;
    background: #11457e;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.lang-flag.flag-es {
    background: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}
.lang-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.footer-lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgb(var(--surface-rgb) / 0.18);
    background: rgb(var(--surface-rgb) / 0.06);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.footer-lang-link.active,
.footer-lang-link:hover {
    background: rgb(var(--surface-rgb) / 0.14);
    border-color: rgb(var(--surface-rgb) / 0.45);
    transform: translateY(-1px);
}
.footer-lang-link .lang-flag {
    width: 20px;
    height: 14px;
    flex-basis: 20px;
}

/* ─── Hero Section ──────────────────────────────────────────────────────────── */
.stripe-hero {
    position: relative;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--public-header-height);
}
/* Ambient blurred blobs — the light-ground replacement for the dark glow */
.stripe-hero .hero-bg-gradient {
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(ellipse 42% 36% at 16% 14%, rgb(var(--accent-rgb) / 0.20) 0%, transparent 70%),
        radial-gradient(ellipse 38% 32% at 86% 26%, rgb(var(--accent-2-rgb) / 0.16) 0%, transparent 68%),
        radial-gradient(ellipse 52% 42% at 50% 104%, rgb(var(--accent-rgb) / 0.12) 0%, transparent 72%);
    filter: blur(28px);
    pointer-events: none;
}
.stripe-hero .hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgb(var(--accent-rgb) / 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgb(var(--accent-rgb) / 0.055) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 78%);
            mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 78%);
    pointer-events: none;
}
.stripe-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 6rem 2rem 3rem;
    text-align: center;
}
.stripe-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgb(var(--accent-2-rgb) / 0.10);
    border: 1px solid rgb(var(--accent-2-rgb) / 0.28);
    color: var(--accent-2);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 2rem;
}
.stripe-hero .hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.stripe-hero .hero-sub {
    color: var(--ink-muted);
    font-size: 0.85rem;
    margin-top: 1.25rem;
}
.stripe-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.stripe-hero .hero-stat-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
}
.stripe-hero .hero-stat-label {
    font-size: 0.82rem;
    color: var(--ink-muted);
    margin-top: 0.35rem;
}

/* ─── Wave Divider ──────────────────────────────────────────────────────────── */
.wave-divider {
    position: relative;
    overflow: hidden;
    line-height: 0;
}
.wave-divider svg {
    display: block;
    width: 100%;
}

/* ─── Sections ──────────────────────────────────────────────────────────────── */
.stripe-section {
    padding: 3.5rem 0;
}
.stripe-section-alt {
    padding: 3.5rem 0;
    background: var(--ground);
}
.section-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 2rem;
}
.section-header {
    max-width: 640px;
    margin-bottom: 2rem;
}
.section-header.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Feature / Service Cards ───────────────────────────────────────────────── */
.stripe-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    height: 100%;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}
.stripe-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0.35;
    transition: opacity 0.25s;
}
.stripe-card:hover {
    box-shadow: 0 10px 34px rgb(var(--ink-rgb) / 0.08);
    border-color: var(--line-strong);
    transform: translateY(-4px);
}
.stripe-card:hover::before { opacity: 1; }
.stripe-card .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgb(var(--accent-rgb) / 0.12), rgb(var(--accent-2-rgb) / 0.10));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}
.stripe-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.6rem;
}
.stripe-card p {
    font-size: 0.9rem;
    color: var(--ink-muted);
    line-height: 1.7;
    margin: 0;
}

/* ─── Video Cards ───────────────────────────────────────────────────────────── */
.video-card {
    background: var(--surface);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.video-card:hover {
    box-shadow: 0 10px 34px rgb(var(--ink-rgb) / 0.08);
    border-color: var(--line-strong);
    transform: translateY(-4px);
}
.video-card .video-meta {
    padding: 1.25rem;
}
.video-card .video-meta h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.35rem;
}
.video-card .video-meta p {
    font-size: 0.82rem;
    color: var(--ink-muted);
    margin: 0;
}

/* ─── CTA Band ──────────────────────────────────────────────────────────────── */
.stripe-cta-band {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--ink-mid) 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.stripe-cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, rgb(var(--accent-rgb) / 0.20) 0%, transparent 70%);
}

/* ─── Blog Cards ────────────────────────────────────────────────────────────── */
.blog-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.blog-card:hover {
    box-shadow: 0 10px 34px rgb(var(--ink-rgb) / 0.08);
    border-color: var(--line-strong);
    transform: translateY(-4px);
}
.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-card .blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.blog-card p {
    font-size: 0.875rem;
    color: var(--ink-muted);
    flex: 1;
    line-height: 1.7;
}
.blog-card .blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.stripe-footer {
    background: var(--color-primary);
    color: rgb(var(--surface-rgb) / 0.6);
    padding: 4rem 0 2rem;
}
.stripe-footer .footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 2rem;
}
.stripe-footer .footer-brand img {
    height: 48px;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
}
.stripe-footer .footer-brand-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--surface);
    letter-spacing: -0.02em;
}
.stripe-footer .footer-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 0.5rem;
    max-width: 220px;
}
.stripe-footer .footer-col h6 {
    color: var(--surface);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.stripe-footer .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.stripe-footer .footer-col ul li {
    margin-bottom: 0.6rem;
}
.stripe-footer .footer-col ul li a {
    color: rgb(var(--surface-rgb) / 0.55);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s;
}
.stripe-footer .footer-col ul li a:hover { color: var(--surface); }
.stripe-footer .footer-contact-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: rgb(var(--surface-rgb) / 0.55);
    font-size: 0.88rem;
    line-height: 1.45;
}
.stripe-footer .footer-contact-link i {
    color: rgb(var(--surface-rgb) / 0.78);
    font-size: 0.98rem;
    line-height: 1.35;
    flex: 0 0 1rem;
}
.stripe-footer .footer-contact-text {
    color: rgb(var(--surface-rgb) / 0.55);
}
.stripe-footer .footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgb(var(--surface-rgb) / 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
}
.stripe-footer .social-links { display: flex; gap: 0.75rem; }
.stripe-footer .social-links a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgb(var(--surface-rgb) / 0.08);
    color: rgb(var(--surface-rgb) / 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.stripe-footer .social-links a:hover {
    background: rgb(var(--surface-rgb) / 0.18);
    color: var(--surface);
}

/* ─── Messages ──────────────────────────────────────────────────────────────── */
.messages-container {
    position: fixed;
    top: calc(var(--public-header-height) + 1rem);
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 380px;
}
.messages-container .alert {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgb(var(--ink-rgb) / 0.12);
    border: none;
    font-size: 0.9rem;
}

/* ─── Auth Pages ────────────────────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--ink-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}
.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgb(var(--accent-rgb) / 0.20) 0%, transparent 70%);
    pointer-events: none;
}
.auth-page .auth-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgb(var(--surface-rgb) / 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgb(var(--surface-rgb) / 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.auth-card {
    position: relative;
    z-index: 2;
    background: var(--surface);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 24px 80px rgb(var(--ink-rgb) / 0.30);
}
.auth-card .auth-logo {
    max-height: 48px;
    max-width: 160px;
    object-fit: contain;
}
.auth-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.auth-card .form-control {
    border-radius: 10px;
    border: 1.5px solid var(--line-strong);
    padding: 0.65rem 0.9rem;
    font-size: 0.92rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-card .form-control:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgb(var(--accent-2-rgb) / 0.15);
}
.auth-card .btn-submit {
    background: var(--accent-2);
    color: var(--surface);
    font-weight: 700;
    border-radius: 999px;
    padding: 0.75rem;
    font-size: 0.95rem;
    border: none;
    width: 100%;
    transition: background 0.2s, transform 0.15s;
}
.auth-card .btn-submit:hover {
    background: var(--accent-2-hover);
    transform: translateY(-1px);
}

/* ─── Dashboard Sidebar ─────────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--color-primary);
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgb(var(--surface-rgb) / 0.06);
}
.sidebar-brand {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgb(var(--surface-rgb) / 0.07);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.sidebar-brand img {
    max-height: 44px;
    max-width: 160px;
    object-fit: contain;
}
.sidebar-brand .brand-text {
    font-size: 1rem;
    font-weight: 800;
    color: var(--surface);
    letter-spacing: -0.02em;
}
.sidebar-nav { padding: 1rem 0.75rem; flex: 1; overflow-y: scroll; min-height: 0; max-height: calc(100vh - 130px); }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgb(var(--surface-rgb) / 0.2); border-radius: 2px; }
.sidebar-nav .nav-section {
    padding: 0.75rem 0.5rem 0.35rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgb(var(--surface-rgb) / 0.35);
    font-weight: 700;
}
.sidebar-nav .nav-link {
    color: rgb(var(--surface-rgb) / 0.65);
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.18s;
    margin-bottom: 1px;
}
.sidebar-nav .nav-link:hover {
    color: var(--surface);
    background: rgb(var(--surface-rgb) / 0.08);
}
/* Light-alpha + accent rule: stays legible on navy after the palette swap,
   where an accent-tinted fill would be navy-on-navy. */
.sidebar-nav .nav-link.active {
    color: var(--surface);
    background: rgb(var(--surface-rgb) / 0.12);
    box-shadow: inset 3px 0 0 var(--accent-soft);
    font-weight: 600;
}
.sidebar-nav .nav-link i { width: 16px; text-align: center; opacity: 0.8; }
.sidebar-nav .nav-link.active i { opacity: 1; }
.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgb(var(--surface-rgb) / 0.07);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.sidebar-user .avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgb(var(--surface-rgb) / 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--surface);
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.sidebar-user .user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--surface);
}
.sidebar-user .user-role {
    font-size: 0.72rem;
    color: rgb(var(--surface-rgb) / 0.45);
}

/* ─── Dashboard Layout ──────────────────────────────────────────────────────── */
.dashboard-wrapper { margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; background: var(--ground); }
.dashboard-topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 99;
}
.dashboard-topbar .page-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-muted);
}
.dashboard-content { padding: 2rem 1.5rem; flex: 1; }

/* ─── Dashboard Cards ───────────────────────────────────────────────────────── */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.stat-card:hover {
    box-shadow: 0 10px 30px rgb(var(--ink-rgb) / 0.07);
    border-color: var(--line-strong);
}
.stat-card .stat-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.stat-card .stat-icon.primary { background: rgb(var(--accent-rgb) / 0.10); color: var(--accent); }
.stat-card .stat-icon.secondary { background: rgb(var(--accent-2-rgb) / 0.12); color: var(--accent-2); }
.stat-card .stat-icon.accent { background: rgb(var(--accent-rgb) / 0.08); color: var(--warning); }
.stat-card .stat-icon.success { background: rgb(var(--accent-2-rgb) / 0.10); color: var(--accent-2); }
.stat-card .stat-value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.stat-card .stat-label { font-size: 0.82rem; color: var(--ink-muted); margin-top: 0.2rem; font-weight: 500; }

.content-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}
.content-card .card-header-custom {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
}
.content-card .card-header-custom h5,
.content-card .card-header-custom h6 {
    margin: 0;
    font-weight: 700;
    color: var(--ink);
    font-size: 0.95rem;
}
.content-card .card-body-custom { padding: 1.25rem; }

/* ─── Tables ────────────────────────────────────────────────────────────────── */
.table-custom { border-collapse: separate; border-spacing: 0; width: 100%; }
.table-custom th {
    background: var(--ground);
    color: var(--ink-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--line);
}
.table-custom td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    font-size: 0.9rem;
}
.table-custom tbody tr:hover { background: var(--ground); }
.table-custom tbody tr:last-child td { border-bottom: none; }

/* ─── Badges ────────────────────────────────────────────────────────────────── */
.badge-pending   { background: var(--status-warn-bg); color: var(--status-warn-fg); font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: 50px; }
.badge-verified  { background: var(--status-ok-bg); color: var(--status-ok-fg); font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: 50px; }
.badge-approved  { background: var(--status-ok-bg); color: var(--status-ok-fg); font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: 50px; }
.badge-rejected  { background: var(--status-err-bg); color: var(--status-err-fg); font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: 50px; }

/* ─── Verification Badge ────────────────────────────────────────────────────── */
.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}
.verification-badge.pending  { background: var(--status-warn-bg); color: var(--status-warn-fg); }
.verification-badge.verified { background: var(--status-ok-bg); color: var(--status-ok-fg); }
.verification-badge.rejected { background: var(--status-err-bg); color: var(--status-err-fg); }

/* Package cards — silver, gold and navy reference palette. */
.packages-section { background: #f5f9fe; padding: 2.5rem 0 4rem; }
.pkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.pkg-card {
    --pkg-border: #d9e2ee;
    --pkg-metal: #95a8c0;
    --pkg-header: linear-gradient(125deg, #e1e8f0, #ced8e5 55%, #edf2f8);
    --pkg-button: linear-gradient(120deg, #e1e8f1, #dbe4ef);
    --pkg-button-text: #47658a;
    display: flex; flex-direction: column; min-width: 0; overflow: hidden;
    border: 2px solid var(--pkg-border); border-radius: 14px;
    background: #fbfdff; color: #173e72;
    box-shadow: 0 12px 32px rgb(29 65 113 / .04);
    transition: box-shadow .2s ease;
}
.pkg-card:hover { box-shadow: 0 14px 34px rgb(29 65 113 / .12); }
.pkg-header {
    display: flex; align-items: center; gap: 1.25rem; min-height: 138px;
    padding: 1.4rem 1.5rem; border-radius: 11px 11px 22px 22px;
    background: var(--pkg-header); position: relative;
}
.pkg-heading { min-width: 0; }
.pkg-name { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.15rem); font-weight: 700; color: #103c73; margin: 0; overflow-wrap: anywhere; }
.pkg-tagline { margin: .5rem 0 0; color: #536f94; font-size: .68rem; line-height: 1.6; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }
.pkg-emblem {
    width: 76px; height: 76px; flex: 0 0 76px; display: grid; place-items: center;
    border: 6px solid #dfe8f1; border-radius: 50%; color: #f5faff;
    background: linear-gradient(125deg, #c6d4e4, #526c89 48%, #a4b7cc);
    box-shadow: 0 3px 6px #48608055, inset 0 0 0 2px #ffffff80, 0 0 0 2px #f6faff;
    font-size: 2.25rem; text-shadow: 0 2px 3px #304c6d88;
}
.pkg-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.pkg-desc { font-size: 1rem; line-height: 1.65; color: #3e6094; margin: 0 0 1.35rem; }
.pkg-price { margin: 0 0 1.25rem; }
.pkg-price-amt { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: #173e72; }
.pkg-price-period { font-size: .85rem; color: #536f94; }
.pkg-features { list-style: none; padding: 1.35rem 0 0; margin: 0 0 1.75rem; border-top: 1px solid var(--pkg-border); }
.pkg-feature { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1rem; font-size: .95rem; line-height: 1.55; color: #3e6094; }
.pkg-feature:last-child { margin-bottom: 0; }
.pkg-check { display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--pkg-metal); color: #fff; font-size: 1rem; }
.pkg-cta { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: auto; padding: .9rem 1rem; border-radius: 10px; background: var(--pkg-button); color: var(--pkg-button-text); font-size: .95rem; font-weight: 600; text-decoration: none; transition: filter .2s; }
.pkg-cta:hover { color: var(--pkg-button-text); filter: brightness(.96); }
.pkg-cta i { font-size: 1.25rem; }
.pkg-badge { display: inline-block; margin-top: .5rem; padding: .15rem .5rem; border: 1px solid currentColor; border-radius: 20px; font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; color: #173e72; }
.pkg-gold { --pkg-border: #efa916; --pkg-metal: #efad25; --pkg-header: linear-gradient(120deg, #ffe6a2, #f7d37f 55%, #fff0cf); --pkg-button: linear-gradient(110deg, #ffda82, #f5bc46); --pkg-button-text: #123f78; }
.pkg-gold .pkg-tagline { color: #875908; }
.pkg-gold .pkg-emblem { border-color: #ffe498; background: linear-gradient(125deg, #ffe185, #c4890c 48%, #f8c243); box-shadow: 0 3px 6px #a7782555, inset 0 0 0 2px #fff0b8, 0 0 0 2px #f3c453; }
.pkg-platinum { --pkg-border: #1a4b89; --pkg-metal: #123b75; --pkg-header: linear-gradient(135deg, #23518c, #133f7a 55%, #0b2b5b); --pkg-button: linear-gradient(120deg, #204d88, #0d3064); --pkg-button-text: #fff; }
.pkg-platinum .pkg-name, .pkg-platinum .pkg-tagline, .pkg-platinum .pkg-badge { color: #f5f8ff; }
.pkg-platinum .pkg-emblem { border-radius: 18px; border-color: #bbccdf; background: linear-gradient(135deg, #406997, #0b2e5d 65%, #5680ae); }
@media (max-width: 1100px) { .pkg-header { gap: .85rem; padding: 1.25rem; } .pkg-emblem { width: 58px; height: 58px; flex-basis: 58px; font-size: 1.8rem; } .pkg-body { padding: 1.25rem; } }
@media (max-width: 991px) { .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pkg-grid { grid-template-columns: minmax(0, 1fr); } .pkg-name { font-size: 1.85rem; } .pkg-header { min-height: 124px; } }

/* ─── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .stripe-navbar .nav-links { display: none; }
}
@media (max-width: 768px) {
    :root { --official-notice-height: 62px; }
    .official-domain-notice__inner {
        padding: 0.55rem 1rem;
        font-size: 0.76rem;
        gap: 0.45rem;
    }
    .official-domain-notice i {
        font-size: 0.95rem;
    }
    .stripe-navbar .nav-inner {
        padding: 0 1rem;
        gap: 0.75rem;
    }
    .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .sidebar.open { transform: translateX(0); }
    .dashboard-wrapper { margin-left: 0; }
    .stripe-hero .hero-stats { gap: 1.5rem; }
    .auth-card { padding: 1.75rem 1.25rem; }
}

/* ─── Public site: MLDetect evidence-ledger direction ────────────────────────
   The public experience deliberately avoids the familiar recovery-site formula
   of a centered dark hero, rounded floating cards and a repeated card grid.
   These rules sit late in the sheet so dashboards retain their own UI system. */
html { scroll-behavior: smooth; }
body:has(.stripe-navbar) {
    background: #f3f5f2;
    color: var(--ink);
}
body:has(.stripe-navbar)::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .42;
    background-image: linear-gradient(90deg, rgb(var(--ink-rgb) / .025) 1px, transparent 1px);
    background-size: 48px 48px;
}
:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid #d99326;
    outline-offset: 3px;
    box-shadow: none;
}
.official-domain-notice {
    background: var(--ink-deep);
    color: #fff;
    border: 0;
    box-shadow: none;
}
.official-domain-notice strong,
.official-domain { color: #fff; }
.official-domain-notice i { color: #e6b65b; }
.stripe-navbar {
    background: rgb(255 255 255 / .96);
    border-bottom: 1px solid rgb(var(--ink-rgb) / .14);
    backdrop-filter: blur(18px);
}
.stripe-navbar.scrolled {
    background: rgb(255 255 255 / .99);
    box-shadow: 0 8px 30px rgb(var(--ink-rgb) / .09);
}
.stripe-navbar .nav-inner { max-width: 1280px; }
.stripe-navbar .nav-brand img { height: 36px; max-width: 210px; }
.stripe-navbar .nav-links { justify-content: center; gap: .6rem; }
.stripe-navbar .nav-links a {
    position: relative;
    border-radius: 0;
    padding: .55rem .35rem;
    color: var(--ink-body);
}
.stripe-navbar .nav-links a::after {
    content: '';
    position: absolute;
    right: .35rem;
    bottom: .18rem;
    left: .35rem;
    height: 2px;
    background: var(--accent-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.stripe-navbar .nav-links a:hover,
.stripe-navbar .nav-links a.active { background: transparent; color: var(--ink); }
.stripe-navbar .nav-links a:hover::after,
.stripe-navbar .nav-links a.active::after { transform: scaleX(1); }
.stripe-navbar .nav-actions .nav-signin { color: var(--ink); }
.lang-btn, .mobile-menu-toggle {
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    color: var(--ink);
}
.mobile-menu-toggle { width: 40px; height: 40px; padding: 0; }
.mobile-menu {
    background: #fff;
    border-top: 1px solid var(--line);
}
.mobile-menu__inner { display: grid; padding: .8rem 1rem 1rem; }
.mobile-menu__inner a {
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
    padding: .85rem .25rem;
}
.mobile-menu__inner a:last-child { border-bottom: 0; }

/* Asymmetric editorial landing composition */
.stripe-hero {
    align-items: flex-start;
    min-height: auto;
    overflow: clip;
    background: #edf2ee;
    border-bottom: 1px solid var(--line-strong);
    padding: var(--public-header-height) 0 0;
}
.stripe-hero::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: var(--public-header-height);
    right: 8%;
    width: min(38vw, 540px);
    height: min(38vw, 540px);
    border: 1px solid rgb(var(--accent-2-rgb) / .32);
    border-radius: 50%;
    box-shadow: 0 0 0 48px rgb(var(--accent-2-rgb) / .055), 0 0 0 112px rgb(var(--accent-rgb) / .035);
}
.stripe-hero .hero-bg-gradient {
    inset: 0;
    filter: none;
    opacity: .82;
    background: radial-gradient(circle at 83% 24%, rgb(var(--accent-2-rgb) / .16), transparent 20%), linear-gradient(118deg, #f8faf7 0%, #edf2ee 55%, #e1eae4 100%);
}
.stripe-hero .hero-grid {
    opacity: .58;
    background-image: linear-gradient(90deg, rgb(var(--ink-rgb) / .06) 1px, transparent 1px);
    background-size: calc((100% - 4rem) / 12) 100%;
    -webkit-mask-image: none;
    mask-image: none;
}
.stripe-hero .hero-content {
    width: 100%;
    max-width: 1280px;
    padding: clamp(4.5rem, 9vw, 8.5rem) 2rem 0;
    text-align: left;
}
.stripe-hero .hero-badge {
    border-radius: 0;
    background: transparent;
    border: 0;
    border-left: 3px solid var(--accent-2);
    color: var(--ink);
    letter-spacing: .08em;
    padding: .12rem 0 .12rem .75rem;
    text-transform: uppercase;
}
.stripe-hero .display-headline {
    max-width: 790px;
    font-size: clamp(2.8rem, 6.6vw, 5.8rem);
    letter-spacing: -.055em;
    line-height: .98;
    margin-bottom: 1.7rem !important;
}
.stripe-hero .display-headline + p { margin-left: 0 !important; max-width: 570px !important; font-size: 1.1rem !important; }
.stripe-hero .hero-ctas { justify-content: flex-start; margin-top: 2.1rem; }
.btn-stripe-primary, .btn-stripe-outline { border-radius: 2px; }
.btn-stripe-primary {
    background: var(--ink);
    padding: .82rem 1.45rem;
    box-shadow: inset 0 -2px 0 rgb(255 255 255 / .2);
}
.btn-stripe-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 9px 18px rgb(var(--ink-rgb) / .18); }
.btn-stripe-outline { border-color: var(--ink); color: var(--ink); }
.btn-stripe-outline:hover { border-color: var(--accent-2); background: rgb(var(--accent-2-rgb) / .08); color: var(--ink); }
.stripe-hero .hero-sub { color: var(--ink-body); }
.stripe-hero .hero-videos { position: relative; z-index: 2; margin-top: 4.5rem; }
.stripe-hero .hero-stats {
    justify-content: flex-start;
    gap: 0;
    margin: 4rem -2rem 0;
    padding: 0 2rem;
    border-top: 1px solid rgb(var(--ink-rgb) / .16);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stripe-hero .hero-stats > div { padding: 1.45rem 1.25rem 1.7rem 0; border-right: 1px solid rgb(var(--ink-rgb) / .14); text-align: left !important; }
.stripe-hero .hero-stats > div + div { padding-left: 1.25rem; }
.stripe-hero .hero-stats > div:last-child { border-right: 0; }
.stripe-hero .hero-stat-val { color: var(--accent); font-family: var(--font-display); }
.stripe-hero .video-card, .stripe-card { border-radius: 2px; box-shadow: 8px 8px 0 rgb(var(--ink-rgb) / .09); }
.stripe-hero .video-card:hover, .stripe-card:hover { transform: translate(-2px, -2px); box-shadow: 11px 11px 0 rgb(var(--accent-2-rgb) / .16); }

/* Content sections use a report-like rhythm rather than repeated floating cards. */
.stripe-section, .stripe-section-alt { padding: clamp(4rem, 8vw, 7rem) 0; }
.stripe-section-alt { background: transparent; }
.section-container { max-width: 1280px; }
.section-header.centered { max-width: 780px; text-align: left; margin-left: 0; margin-right: 0; }
.eyebrow {
    color: var(--accent);
    font-size: clamp(2rem, 4vw, 3.45rem);
    letter-spacing: -.045em;
}
#galleryCarousel .carousel-inner { border-radius: 2px !important; box-shadow: 10px 10px 0 rgb(var(--accent-rgb) / .18) !important; }
.gallery-dot, .gallery-dot.gallery-dot-active { border-radius: 0; }
.gallery-dot.gallery-dot-active { background: var(--accent-2); border-color: var(--accent-2); }
.blog-marquee-track { overflow: visible; -webkit-mask-image: none; mask-image: none; }
.blog-marquee-inner { width: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); animation: none; gap: 1.5rem; }
.blog-marquee-item { width: auto; }
.blog-marquee-item[aria-hidden="true"] { display: none; }
.blog-marquee-item > a > div { border-radius: 2px !important; box-shadow: none !important; border-top: 4px solid var(--accent) !important; }
.blog-marquee-item > a > div:hover { transform: translateY(-4px) !important; box-shadow: 0 12px 24px rgb(var(--ink-rgb) / .1) !important; }
.stripe-cta-band {
    background: var(--ink-deep);
    padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.stripe-cta-band::before { background: repeating-linear-gradient(90deg, transparent 0 47px, rgb(255 255 255 / .055) 48px), linear-gradient(120deg, rgb(var(--accent-rgb) / .24), transparent 60%); opacity: 1; }
.stripe-cta-band .section-container { text-align: left !important; max-width: 1000px; margin-left: max(2rem, calc((100vw - 1280px) / 2 + 2rem)); }
.stripe-cta-band .d-flex { justify-content: flex-start !important; }
.stripe-cta-band .btn-stripe-primary { background: #fff; color: var(--ink); }
.stripe-cta-band .btn-stripe-primary:hover { background: #e6b65b; }
.stripe-footer { border-top: 4px solid var(--accent-2); }

/* Motion is opt-in: without JavaScript, all content is present and readable. */
.motion-reveal { opacity: 0; transform: translateY(18px); transition: opacity .52s ease var(--reveal-delay, 0ms), transform .52s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms); }
.motion-reveal.is-revealed { opacity: 1; transform: none; }
@media (max-width: 991px) {
    .stripe-hero::before { right: -15%; width: 62vw; height: 62vw; }
    .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blog-marquee-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .stripe-navbar .nav-brand img { height: 31px; max-width: 160px; }
    .stripe-hero .hero-content { padding: 4rem 1.25rem 0; }
    .stripe-hero .display-headline { font-size: clamp(2.5rem, 13vw, 4.2rem); }
    .stripe-hero .hero-ctas { align-items: stretch; }
    .stripe-hero .hero-ctas a { justify-content: center; width: 100%; }
    .stripe-hero .hero-stats { grid-template-columns: repeat(2, 1fr); margin: 3rem -1.25rem 0; padding: 0 1.25rem; }
    .stripe-hero .hero-stats > div:nth-child(2) { border-right: 0; }
    .stripe-hero .hero-stats > div:nth-child(n+3) { border-top: 1px solid rgb(var(--ink-rgb) / .14); }
    .section-container { padding: 0 1.25rem; }
    .pkg-grid, .blog-marquee-inner { grid-template-columns: 1fr; }
    .stripe-cta-band .section-container { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
    .motion-reveal { opacity: 1; transform: none; }
}

/* ─── Client Portfolio Dashboard ────────────────────────────────────────────── */
.pcc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.pcc-header .pcc-eyebrow {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.3rem;
}
.pcc-header .pcc-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.01em;
}
.pcc-pills { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.pcc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.32rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-body);
    white-space: nowrap;
}
.pcc-pill strong { color: var(--ink); font-weight: 700; }
.pcc-pill.is-warn {
    background: var(--status-warn-bg);
    border-color: rgb(217 147 38 / 0.35);
    color: var(--status-warn-fg);
}
.pcc-pill.is-ok {
    background: var(--status-ok-bg);
    border-color: rgb(var(--accent-2-rgb) / 0.30);
    color: var(--status-ok-fg);
}

/* ── Gradient portfolio hero ───────────────────────────────────────────────── */
.portfolio-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    background: linear-gradient(115deg, var(--color-primary) 0%, var(--accent) 62%, #2A6BAE 100%);
    padding: 1.9rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.portfolio-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 120% at 82% 50%, rgb(var(--surface-rgb) / 0.10) 0%, transparent 70%);
    pointer-events: none;
}
.portfolio-hero > * { position: relative; z-index: 2; }
.portfolio-hero .ph-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgb(var(--surface-rgb) / 0.72);
    margin-bottom: 0.5rem;
}
.portfolio-hero .ph-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 2.9rem);
    font-weight: 800;
    color: var(--surface);
    line-height: 1;
    letter-spacing: -0.025em;
}
.portfolio-hero .ph-sub {
    font-size: 0.8rem;
    color: rgb(var(--surface-rgb) / 0.62);
    margin-top: 0.6rem;
}
.portfolio-hero .ph-change {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.85rem;
    background: rgb(var(--surface-rgb) / 0.14);
    border: 1px solid rgb(var(--surface-rgb) / 0.22);
    color: var(--surface);
    border-radius: 999px;
    padding: 0.28rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
}
.portfolio-hero .ph-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    color: var(--ink);
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s, color 0.2s;
    white-space: nowrap;
}
.portfolio-hero .ph-action:hover {
    color: var(--accent-2-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgb(var(--ink-rgb) / 0.35);
}

/* ── Wallet cards ──────────────────────────────────────────────────────────── */
.wallet-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-2xl);
    padding: 1.35rem 1.4rem;
    height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.wallet-card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 10px 30px rgb(var(--ink-rgb) / 0.06);
}
.wallet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}
.wallet-id { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.wallet-badge {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    flex-shrink: 0;
    background: rgb(var(--accent-rgb) / 0.10);
    color: var(--accent);
    border: 1px solid rgb(var(--accent-rgb) / 0.20);
}
.wallet-badge.is-fiat {
    background: rgb(var(--accent-2-rgb) / 0.10);
    color: var(--accent-2);
    border-color: rgb(var(--accent-2-rgb) / 0.22);
}
.wallet-name {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}
.wallet-meta {
    font-size: 0.76rem;
    color: var(--ink-muted);
    margin-top: 0.15rem;
}
.change-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    background: var(--status-ok-bg);
    color: var(--status-ok-fg);
}
.change-pill.is-down { background: var(--status-err-bg); color: var(--status-err-fg); }
.state-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgb(var(--accent-2-rgb) / 0.10);
    color: var(--accent-2);
}
.wallet-balance {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
}
.wallet-balance .wb-unit {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-muted);
    margin-left: 0.3rem;
}
.wallet-approx { font-size: 0.82rem; color: var(--ink-muted); margin-top: 0.4rem; }
.wallet-approx.is-unknown { color: var(--status-warn-fg); }

/* ── Deposit address panel ─────────────────────────────────────────────────── */
.deposit-panel {
    margin-top: 1.15rem;
    background: var(--ground);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
}
.deposit-panel .dp-label {
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 0.4rem;
}
.deposit-panel .dp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}
.deposit-panel .dp-addr {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.deposit-panel .dp-addr.is-empty { color: var(--ink-muted); font-family: var(--font-body); }
.dp-copy {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.dp-copy:hover { color: var(--accent-2); border-color: var(--accent-2); background: rgb(var(--accent-2-rgb) / 0.07); }

/* ── Activity + status ─────────────────────────────────────────────────────── */
.activity-empty {
    text-align: center;
    padding: 2.6rem 1rem;
    color: var(--ink-muted);
    font-size: 0.88rem;
}
.activity-empty .ae-icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--ground);
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}
.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.status-row:last-child { margin-bottom: 0; }
.status-row .sr-left { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.status-row.is-warn { background: var(--status-warn-bg); border-color: rgb(217 147 38 / 0.30); color: var(--status-warn-fg); }
.status-row.is-ok   { background: var(--status-ok-bg);   border-color: rgb(var(--accent-2-rgb) / 0.28); color: var(--status-ok-fg); }
.status-row.is-err  { background: var(--status-err-bg);  border-color: rgb(140 47 40 / 0.28); color: var(--status-err-fg); }
.status-row .sr-action {
    flex-shrink: 0;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid currentColor;
    text-decoration: none;
    color: inherit;
}
.status-row .sr-action:hover { background: rgb(var(--surface-rgb) / 0.55); color: inherit; }

.pricing-note {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    background: var(--status-warn-bg);
    border: 1px solid rgb(217 147 38 / 0.30);
    color: var(--status-warn-fg);
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 575px) {
    .portfolio-hero { padding: 1.5rem 1.25rem; }
    .portfolio-hero .ph-action { width: 100%; justify-content: center; }
    .pcc-header { flex-direction: column; }
}

/* ─── Social Login Buttons ─────────────────────────────────────────────────── */
.social-login-section {
    /* spacing handled inline in template */
}
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--color-border);
    background: var(--surface);
    color: var(--ink);
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    width: 100%;
}
.btn-social:hover {
    background: var(--ground);
    border-color: var(--line-strong);
    box-shadow: 0 2px 8px rgb(var(--ink-rgb) / 0.08);
}
/* ─── Social Modal Overlays ────────────────────────────────────────────────── */
/* Ensure modals render on top of auth page */
.modal-backdrop { z-index: 1050; }
.modal { z-index: 1060; }
.modal-dialog { z-index: 1070; }

/* Uploaded Apollortd artwork retains its original proportions and background. */
.stripe-navbar .nav-brand { max-height: 100%; min-width: 0; }
.stripe-navbar .nav-brand img { display: block; width: auto; height: 52px; max-height: calc(var(--navbar-height) - 16px); max-width: 180px; object-fit: contain; }
.stripe-footer .footer-brand img { width: 300px; height: auto; max-width: 100%; background: #fff; border-radius: 6px; }
.sidebar-brand img { width: 200px; max-width: 100%; max-height: none; height: auto; background: #fff; border-radius: 6px; }
.auth-card .auth-logo { width: 320px; max-width: 100%; max-height: none; height: auto; }
@media (max-width: 575px) { .stripe-navbar .nav-brand img { width: auto; height: 44px; max-width: 144px; } }
