/* Self-hosted Onest (variable font, weights 100–900). No external font services. */
@font-face {
    font-family: 'Onest';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/onest-400.woff2') format('woff2');
}

:root {
    /* Bootstrap overrides: secondary text must pass 4.5:1 on our inks */
    --bs-secondary-rgb: 122, 147, 140;
    --bs-link-color: #C7D7D1; /* unstyled anchors must never render bootstrap blue */
    --bs-secondary-color: #7A938C;
    --bs-body-color: #F4F5F4;

    /* Palette — roles */
    --ink-900: #020908;   /* darkest hero / footer */
    --ink-800: #031714;   /* main brand background */
    --ink-700: #071D19;   /* cards */
    --ink-600: #0A211D;   /* panels */
    --ink-500: #152A27;   /* secondary surfaces */
    --emerald: #0E5345;   /* brighter borders, UI elements */
    --mint: #4FD1A0;      /* primary accent / CTA */
    --mint-bright: #5BD6A4;
    --mint-glow: #6BDBAC;
    --text-primary: #F4F5F4;
    --text-secondary: #C7D7D1;
    --text-muted: #7A938C;
    --champagne: #E7CAA1; /* premium CTA, rare */
    --gold: #C89B58;
    --light-bg: #F4F4F0;
    --light-bg-2: #FAFAF7;
    --light-text: #091612;

    /* Hairlines */
    --hairline: rgba(104, 184, 150, .16);
    --hairline-strong: rgba(104, 184, 150, .28);
    --hairline-dark: rgba(9, 22, 18, .12);

    /* Type — single grotesk family (Onest), serious enterprise look */
    --font-sans: 'Onest', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-serif: var(--font-sans); /* legacy alias: no serif in this system */

    /* Layout */
    --maxw: 1360px;
    --gutter: clamp(20px, 4vw, 64px);
    --radius-s: 4px;
    --radius-m: 6px;
    --header-h: 72px;

    /* Effects */
    --glow-soft: 0 10px 14px rgba(0, 0, 0, .3);
    --hero-bg: linear-gradient(180deg, #031714 0%, #020908 38%, #06241F 100%);
}

/* ---------------------------------------------------------------- base ---- */
html { scroll-behavior: smooth; }

html {
    scrollbar-gutter: stable;
}
body.brand-redesign {
    margin: 0;
    background: var(--ink-800);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
/* Sticky footer even when content is shorter than the viewport */
body.brand-redesign > .site-footer,
body.brand-redesign > footer.site-footer,
body.brand-redesign footer:last-of-type {
    margin-top: auto;
}

body.brand-redesign ::selection { background: rgba(79, 209, 160, .25); color: var(--text-primary); }

.wrap {
    max-width: var(--maxw);
    width: 100%;
    margin: 0 auto;
    padding-inline: var(--gutter);
}
/* Wide mode (search page): nearly full viewport width */
.wrap--wide {
    max-width: min(1920px, calc(100vw - 2 * var(--gutter)));
    width: 100%;
}

/* ------------------------------------------------------------ eyebrow ----- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mint);
    margin: 0 0 18px;
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mint));
}

.eyebrow--center::after {
    content: "";
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, var(--mint), transparent);
}

/* ---------------------------------------------------------- typography ---- */
.display-h {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--text-primary);
    font-size: clamp(38px, 5.4vw, 62px);
    line-height: 1.06;
    letter-spacing: -.028em;
    margin: 0 0 24px;
}
.display-h em {
    font-style: normal;
    color: var(--mint);
}

.h2-serif {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--text-primary);
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.12;
    letter-spacing: -.022em;
    margin: 0 0 18px;
}
.h2-serif em { font-style: normal; color: var(--mint); }

.h3-serif {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 19px;
    line-height: 1.25;
    letter-spacing: -.01em;
    margin: 0 0 10px;
}

.lead {
    font-size: clamp(16px, 1.4vw, 18px);
    color: var(--text-secondary);
    max-width: 34ch;
    margin: 0 0 28px;
}

.body-text p { margin: 0 0 14px; max-width: 58ch; }
.body-text a { color: var(--mint); text-decoration: none; border-bottom: 1px solid rgba(79, 209, 160, .35); }
.body-text a:hover { color: var(--mint-bright); }

.small-muted {
    font-size: 12.5px;
    color: var(--text-muted);
    letter-spacing: .02em;
}

/* ------------------------------------------------------------- buttons ---- */
.btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 26px;
    border-radius: var(--radius-s);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn-brand .arr { font-size: 15px; line-height: 1; transition: transform .18s ease; }
.btn-brand:hover .arr { transform: translateX(3px); }

.btn-brand--primary {
    background: var(--mint);
    color: #06251E;
}
.btn-brand--primary:hover {
    background: var(--mint-bright);
    color: #06251E;
    box-shadow: var(--glow-soft);
}

.btn-brand--champagne {
    background: var(--champagne);
    color: #241a0c;
}
.btn-brand--champagne:hover { background: #EFD8B4; }

.btn-brand--ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--hairline-strong);
}
.btn-brand--ghost:hover {
    color: var(--text-primary);
    border-color: rgba(104, 184, 150, .5);
    background: rgba(14, 83, 69, .18);
}

.btn-brand--sm { height: 40px; padding: 4px 18px; font-size: 13px; }

/* Toastify vendored css ships an indigo glow shadow; neutralize it */
.toastify {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .45) !important;
}

/* ------------------------------------------------------------- header ----- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 300;             /* whole header stack ABOVE the backdrop */
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(2, 9, 8, .82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    gap: 36px;
}
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    color: var(--text-primary);
}
.brand-link svg text { font-family: var(--font-sans); }

/* Emblem (taynopis_logo.svg, viewBox 1024) — scaled to UI sizes */
.brand-emblem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.brand-emblem svg {
    width: 34px;
    height: 34px;
    display: block;
}
.brand-emblem[style*="--emb"] svg {
    width: var(--emb);
    height: var(--emb);
}
.site-header .brand-emblem svg,
.site-footer .brand-emblem svg {
    width: 38px;
    height: 38px;
}

/* ============ Checkboxes & switches (unified Taynopis style) ============ */
input[type="checkbox"],
.form-check-input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1.5px solid var(--border-input, #2A4A42);
    border-radius: 5px;
    background: rgba(4, 21, 18, .6);
    margin: 0 8px 0 0;
    position: relative;
    cursor: pointer;
    transition: all .2s ease;
    vertical-align: middle;
    top: -1px;
}
input[type="checkbox"]:hover,
.form-check-input:hover {
    border-color: var(--mint, #4FD1A0);
    box-shadow: 0 0 0 3px rgba(79, 209, 160, .12);
}
input[type="checkbox"]:checked,
.form-check-input:checked {
    background: linear-gradient(135deg, #06251E 0%, #0A3630 100%);
    border-color: var(--mint, #4FD1A0);
}
input[type="checkbox"]:checked::after,
.form-check-input:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1.5px;
    width: 5px;
    height: 9px;
    border: solid var(--mint, #4FD1A0);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    border-radius: 1px;
}
input[type="checkbox"]:disabled,
.form-check-check-input:disabled,
.form-check-input:disabled {
    opacity: .4;
    cursor: not-allowed;
}
/* Bootstrap switch variant: pill with sliding knob */
.form-check-input[role="switch"], .form-switch .form-check-input {
    width: 36px;
    height: 20px;
    border-radius: 20px;
    top: 0;
}
.form-check-input[role="switch"]::before, .form-switch .form-check-input::before {
    content: "";
    position: absolute;
    left: 2.5px;
    top: 2.5px;
    width: 13px;
    height: 13px;
    border: none;
    border-radius: 50%;
    background: #4A6560;
    transition: all .2s ease;
}
.form-check-input[role="switch"]:checked::before, .form-switch .form-check-input:checked::before {
    left: 19px;
    background: var(--mint, #4FD1A0);
    box-shadow: none;
}
/* switch: no checkmark, knob only (overrides ::after above) */
.form-check-input[role="switch"]:checked::after, .form-switch .form-check-input:checked::after {
    content: none;
}

/* Wordmark svg — aligned with emblem on one line */
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.brand-wordmark-svg {
    display: inline-flex;
    align-items: center;
}
.brand-wordmark-svg svg {
    height: 18px;
    width: auto;
    display: block;
}
.site-header .brand-wordmark-svg svg,
.site-footer .brand-wordmark-svg svg {
    height: 20px;
}

.brand-wordmark {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--text-primary);
}
.brand-wordmark b { color: var(--mint); font-weight: 500; }

.nav-main { display: flex; align-items: center; gap: 28px; margin-left: 8px; }
.nav-main a {
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.nav-main a:hover { color: var(--text-primary); }
.nav-main a.active { color: var(--mint); border-bottom-color: rgba(79, 209, 160, .45); }

.site-header__cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.link-quiet {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: .05em;
}
.link-quiet:hover { color: var(--text-primary); }

.nav-burger {
    display: none;
    background: none;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-s);
    color: var(--text-secondary);
    width: 42px; height: 42px;
    cursor: pointer;
}

/* Mobile nav */
@media (max-width: 980px) {
    /* desktop links & CTA hidden; mobile copies live inside the dropdown */
    .nav-main > a, .site-header__cta .link-quiet, .site-header__cta .btn-brand { display: none; }
    .nav-burger { display: inline-flex; align-items: center; justify-content: center; }

    .site-header.open .nav-main {
        display: flex;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        height: calc(100dvh - var(--header-h));  /* full remaining screen height */
        max-height: calc(100dvh - var(--header-h));
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        margin-left: 0;
        background: #020908de;   /* translucent: dimmed backdrop shows through */
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--hairline);
        padding: 8px var(--gutter) 24px;
        overflow-y: auto;
        z-index: 320;              /* inside header (z 300) -> above backdrop */
    }
    .site-header.open .nav-main > a {
        display: block;
        padding: 14px 6px;
        font-size: 16px;
        border-bottom: none;
        border-left: 2px solid transparent;
        transition: color .2s ease, border-color .2s ease, background .2s ease;
    }
    .site-header.open .nav-main > a:hover {
        color: var(--mint);
        background: rgba(14, 83, 69, .16);
        border-left-color: rgba(79, 209, 160, .45);
    }
    .site-header.open .nav-main > a.active { border-left-color: var(--mint); }

    /* CTA buttons at the bottom of the dropdown */
    .site-header.open .nav-mobile-sections {
        display: grid;
        gap: 2px;
        padding: 16px 6px 6px;
        margin-top: 12px;
        border-top: 1px solid var(--hairline);
    }
    .nav-mobile-sections__title {
        font-size: 10.5px;
        font-weight: 600;
        letter-spacing: .18em;
        text-transform: uppercase;
        color: var(--text-muted);
        margin: 0 0 6px;
    }
    .nav-mobile-sections .bd-links-nav { display: flex; flex-direction: column; }
    .nav-mobile-sections .bd-links-group { padding: 6px 0; }
    .nav-mobile-sections .bd-links-heading { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); }
    .nav-mobile-sections .bd-links-link { color: var(--text-secondary); font-size: 15px; padding: 10px 6px; display: block; text-decoration: none; }
    .nav-mobile-sections .bd-links-link.active { color: var(--mint); }
    .nav-mobile-sections .bd-links-link:hover { color: var(--text-primary); }

    .site-header.open .nav-mobile-cta {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: auto;          /* push to bottom of the menu */
        padding-top: 20px;
    }
    .site-header.open .nav-mobile-cta .nav-mobile-cta__signin {
        display: flex;
        align-items: center;
        justify-content: center;   /* text perfectly centered */
        height: 46px;
        border: 1px solid var(--hairline-strong);
        border-radius: var(--radius-s);
        color: var(--text-secondary);
        font-size: 14.5px;
        text-decoration: none;
        transition: color .2s ease, border-color .2s ease, background .2s ease;
    }
    .site-header.open .nav-mobile-cta .nav-mobile-cta__signin:hover,
    .site-header.open .nav-mobile-cta .nav-mobile-cta__signin:active {
        color: var(--mint);
        border-color: rgba(79, 209, 160, .6);
        background: rgba(14, 83, 69, .35);
    }
    .site-header.open .nav-mobile-cta .btn-brand {
        width: 100%;
        height: 46px;
        font-size: 14.5px;
        background: var(--mint);
        color: #06251E;             /* dark text on mint — visible */
        transition: background .2s ease, color .2s ease, box-shadow .2s ease;
    }
    .site-header.open .nav-mobile-cta .btn-brand:hover {
        background: var(--mint-bright);
        color: #06251E;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
    }
}

/* Desktop: hide mobile CTA */
.nav-mobile-cta { display: none; }

/* Fullscreen dim backdrop BEHIND the opened mobile menu (below header stack) */
.nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 190;              /* below .site-header (300) => menu shows above */
}
.nav-backdrop.open { opacity: 1; visibility: visible; }

/* Smooth open/close for the mobile menu itself */
@media (max-width: 980px) {
    .site-header .nav-main { transition: opacity .2s ease, transform .2s ease; }
    .site-header:not(.open) .nav-main { opacity: 0; transform: translateY(-8px); pointer-events: none; }
}

/* --------------------------------------------------------------- hero ----- */
.hero {
    position: relative;
    background: var(--hero-bg);
    overflow: hidden;
}
.hero__grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(104, 184, 150, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(104, 184, 150, .045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 90% 70% at 60% 30%, black 30%, transparent 75%);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    padding-block: clamp(72px, 10vh, 128px) clamp(64px, 8vh, 96px);
}
@media (max-width: 980px) { .hero__inner { grid-template-columns: 1fr; } }

.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 22px;
}
.hero__kicker .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--mint);
    box-shadow: none;
}

/* Giant brand word in hero: solid light face with a soft mint glow */
.hero-brand {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: clamp(48px, 9vw, 124px);
    line-height: 1;
    letter-spacing: .04em;
    color: #E9F2EE;
    user-select: none;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    margin-bottom: 6px;
    text-shadow: none;
}

/* Hero visual: animated canvas globe (cloudflare-dash style).
   Absolutely positioned: vertically centered, bleeds past the right edge,
   larger and closer on wide screens. Sits BEHIND the text column. */
.hero__visual {
    position: absolute;
    top: 50%;
    right: -32%;
    width: 42rem;
    max-width: none;
    aspect-ratio: 1;
    transform: translateY(-50%);
    opacity: .55;
    z-index: 0;
    pointer-events: none;
}
.hero__inner > div:not(.hero__visual) {
    position: relative;
    z-index: 1;
}
.hero__visual canvas { display: block; width: 100%; height: 100%; }
@media (min-width: 1280px) {
    .hero__visual { right: -18%; width: 46rem; }
}
@media (min-width: 1536px) {
    .hero__visual { right: -8%; width: 50rem; }
}
@media (max-width: 980px) {
    .hero__visual { right: -40%; width: 30rem; opacity: .4; }
}
.hero__inner { position: relative; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 30px; }

.hero__meta {
    display: flex;
    gap: 26px;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: .04em;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { opacity: .8; }

/* Email check form (hero) */
.check-strip {
    background: rgba(2, 9, 8, .55);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    padding-block: 38px 42px;
}
.check-strip__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: clamp(20px, 4vw, 60px);
    align-items: center;
}
@media (max-width: 860px) { .check-strip__inner { grid-template-columns: 1fr; } }

.check-form {
    display: flex;
    gap: 10px;
    background: var(--ink-700);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-m);
    padding: 8px;
}
/* Mobile: stack input above the button, no horizontal overflow */
@media (max-width: 640px) {
    .check-form {
        flex-direction: column;
        padding: 10px;
    }
    .check-form input {
        width: 100%;
        height: 48px;
        padding: 0 12px;
        font-size: 16px; /* prevents iOS zoom-on-focus */
    }
    .check-form .btn-brand { width: 100%; }
}

/* Compact square icon-only submit button inside the check form (desktop) */
@media (min-width: 641px) {
    .check-form .btn-brand {
        height: 46px;
        width: 46px;
        padding: 0;
        flex-shrink: 0;
        font-size: 0;          /* hide the "Check" word */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .check-form .btn-brand::before {
        content: '';
        display: block;
        width: 19px; height: 19px;
        background: currentColor;
        -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3'/></svg>") center / contain no-repeat;
        mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3'/></svg>") center / contain no-repeat;
        transform: scaleX(-1); /* handle on the left, pointing to the field */
    }
    .check-form .btn-brand .arr { display: none; }
    .check-form .btn-brand.is-loading::before { display: none; }
}

/* Inline check results right under the email form */
.inline-check {
    margin-top: 16px;
    background: var(--ink-700);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-m);
    padding: 18px;
    max-height: 320px;
    overflow-y: auto;
}
.inline-check__head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}
.inline-check__title {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -.01em;
}
.inline-check__count {
    font-size: 12px;
    color: var(--mint);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.inline-check__ok { color: var(--mint); }
.inline-check__empty { color: var(--text-muted); }

/* "Leaked" = danger (red) semantics */
.inline-check__title--bad { color: #e58a81; }
.inline-check__count--bad {
    color: #e58a81;
    border-color: rgba(220, 90, 80, .45);
    background: rgba(220, 90, 80, .12);
}
.inline-check__text-bad { color: #e0a49e; font-size: 13px; }
.inline-check__text-bad b { color: #e58a81; }
.inline-check table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.inline-check th {
    text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-muted); font-weight: 600; padding: 6px 8px;
    border-bottom: 1px solid var(--hairline-strong);
}
.inline-check td {
    padding: 7px 8px; border-bottom: 1px solid var(--hairline);
    color: var(--text-secondary); word-break: break-all;
}
.inline-check td.c { color: var(--mint); white-space: nowrap; }
.inline-check__more { margin-top: 10px; font-size: 12px; color: var(--text-muted); }
.check-form input {
    flex: 1;
    min-width: 0;
    height: 46px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    padding: 0 14px;
}
.check-form input::placeholder { color: var(--text-muted); }
.check-form:focus-within { border-color: rgba(104, 184, 150, .45); box-shadow: var(--glow-soft); }
.check-form.error { border-color: rgba(220, 90, 80, .55); }

/* Loading state: spinner inside the check button + status line below */
.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-top-color: transparent;
    animation: btnSpin .8s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
.check-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}
.check-status .btn-spinner {
    width: 12px;
    height: 12px;
    border-width: 1.6px;
    color: var(--mint);
}

/* -------------------------------------------------- cookie consent ------- */
.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 900;
    background: #040e0d;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-m);
    box-shadow: 0 10px 14px rgba(0, 0, 0, .45);
    animation: cookieUp .35s ease both;
}
@keyframes cookieUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cookie-consent__inner {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 16px 20px;
    max-width: 1160px;
    margin-inline: auto;
}
.cookie-consent__text {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.cookie-consent__text strong {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -.01em;
}
.cookie-consent__text span {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 78ch;
}
.cookie-consent__text a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.cookie-consent__text a:hover { color: var(--mint-bright, #6BDBAC); }
.cookie-consent .btn-brand { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 720px) {
    .cookie-consent { left: 10px; right: 10px; bottom: 10px; }
    .cookie-consent__inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
    .cookie-consent .btn-brand { width: 100%; }
    .cookie-consent__text span { font-size: 12px; }
}

/* -------------------------------------------------------- stats strip ----- */

/* Invisible reCAPTCHA: Google's floating badge slides over form fields on
   narrow screens. Keep it fully off-canvas; the required attribution is
   provided as text via .recaptcha-notice inside each captcha form. */
.grecaptcha-badge {
    visibility: hidden !important;
    pointer-events: none !important;
}
.recaptcha-notice {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted);
}
.recaptcha-notice a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.recaptcha-notice a:hover { color: var(--text-secondary); }
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-block: 1px solid var(--hairline);
    container-type: inline-size; /* value font scales with strip width */
}
@media (max-width: 860px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-cell {
    padding: 40px clamp(16px, 2.6vw, 40px);
    border-left: 1px solid var(--hairline);
    min-width: 0;
}
.stat-cell:first-child { border-left: none; }
.stat-cell:first-child { padding-left: max(var(--gutter), 16px); }
@media (max-width: 860px) {
    .stat-cell { padding-inline: max(clamp(16px, 2.6vw, 40px), 16px); }
    .stat-cell:nth-child(odd) { border-left: none; padding-left: max(var(--gutter), 16px); }
}
.stat-cell__value {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(24px, 2.6vw, 40px); /* fallback: no container-query support */
    font-size: clamp(16px, 2.5cqw, 40px); /* fits long counters like 2 160 055 481 */
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 10px;
    font-variant-numeric: lining-nums tabular-nums;
    letter-spacing: -.024em;
    white-space: nowrap;        /* never wrap long counters */
}
.stat-cell__label {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ------------------------------------------------------------- cards ------ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .card-grid { grid-template-columns: 1fr; } }

.p-card {
    background: var(--ink-700);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-m);
    padding: 28px 26px;
    transition: border-color .2s ease, transform .2s ease;
}
.p-card:hover { border-color: rgba(104, 184, 150, .4); transform: translateY(-2px); }
/* Icon and heading on one line: inline icon, no container tile */
.p-card__icon {
    display: inline-flex;
    align-items: center;
    color: var(--mint);
    margin-right: 10px;
    vertical-align: -3px;
}
.p-card h3, .p-card .card-h {
    display: inline;
    font-family: var(--font-sans);
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--text-primary);
    margin: 0 0 8px;
}
.p-card h3::after, .p-card .card-h::after { content: ''; display: block; }
.p-card p { font-size: 13.8px; color: var(--text-secondary); margin: 10px 0 0; line-height: 1.6; max-width: 34ch; }

/* --------------------------------------------------------- sections ------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--dark { background: var(--ink-800); }
.section--flush { padding-block: 44px; }
.section--darker { background: var(--ink-900); }
.section--surface { background: var(--ink-600); border-block: 1px solid var(--hairline); }
.section--light { background: var(--light-bg-2); color: var(--light-text); }
.section--light .h2-serif, .section--light .h3-serif { color: var(--light-text); }
.section--light .h2-serif em { color: var(--emerald); }
.section--light .lead, .section--light p { color: #3c4a46; }
.section--light .eyebrow { color: var(--emerald); }
.section--light .eyebrow::before { background: linear-gradient(90deg, transparent, var(--emerald)); }
.section--light .small-muted { color: #75837f; }
.section--light .p-card { background: #fff; border-color: rgba(9, 22, 18, .09); }
.section--light .p-card h3, .section--light .p-card .card-h { color: var(--light-text); }
.section--light .p-card p { color: #3c4a46; }
.section--light .p-card:hover { border-color: rgba(14, 83, 69, .45); }
.section--light .btn-brand--primary { background: var(--emerald); color: #F4F5F4; }
.section--light .btn-brand--primary:hover { background: #0c463b; }

.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__sub { max-width: 50ch; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .lead { margin-inline: auto; }

/* Split two-audience (B2B / B2C) */
.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
@media (max-width: 860px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-card {
    position: relative;
    background: var(--ink-700);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-m);
    padding: clamp(28px, 3.4vw, 44px);
    overflow: hidden;
}
.audience-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 209, 160, .5), transparent);
}
.audience-card--champagne::before {
    background: linear-gradient(90deg, transparent, rgba(231, 202, 161, .55), transparent);
}
.audience-card .tagline-word {
    position: absolute;
    top: 20px; right: 22px;
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.audience-card ul {
    list-style: none;
    margin: 20px 0 28px;
    padding: 0;
    display: grid;
    gap: 12px;
}
.audience-card li {
    display: flex;
    gap: 12px;
    font-size: 14.5px;
    color: var(--text-secondary);
}
.audience-card li::before {
    content: "";
    flex-shrink: 0;
    width: 16px; height: 16px;
    margin-top: 3px;
    border: 1px solid rgba(79, 209, 160, .5);
    border-radius: 3px;
    background:
        linear-gradient(45deg, transparent 44%, var(--mint) 44% 56%, transparent 56%) center / 8px no-repeat;
}

/* Steps (how it works) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    counter-reset: step;
}
@media (max-width: 980px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .steps-grid { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--hairline-strong); padding-top: 22px; }
.step::before {
    counter-increment: step;
    content: "0" counter(step);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    color: var(--mint);
}
.step h3 {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 12px 0 8px;
    letter-spacing: .02em;
}
.step p { font-size: 13.5px; color: var(--text-secondary); margin: 0; }

/* Dashboard preview mock */
.dash-preview {
    background: var(--ink-900);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-m);
    overflow: hidden;
    box-shadow: var(--glow-soft);
}
/* Stats report charts (public /stats): transparent, site palette */
.stats-chart-card {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-m);
    background: transparent;
    padding: 18px 20px;
}
.stats-chart-card canvas { display: block; width: 100%; }

.dash-preview__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline);
}
.dash-preview__bar i {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--ink-500);
    border: 1px solid var(--hairline-strong);
}
.dash-preview__bar i:first-child { background: rgba(79, 209, 160, .6); }
.dash-preview__bar span {
    margin-left: auto;
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.dash-preview__body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 18px;
}
@media (max-width: 680px) { .dash-preview__body { grid-template-columns: 1fr; } }
.dash-kpi {
    background: var(--ink-700);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-s);
    padding: 14px 16px;
}
.dash-kpi b {
    display: block;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 24px;
    letter-spacing: -.018em;
    color: var(--text-primary);
    line-height: 1.1;
}
.dash-kpi span {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.dash-alert {
    grid-column: span 3;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(14, 83, 69, .25);
    border: 1px solid rgba(79, 209, 160, .3);
    border-radius: var(--radius-s);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-secondary);
}
@media (max-width: 680px) { .dash-alert { grid-column: span 1; } }
.dash-alert .pulse {
    width: 8px; height: 8px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: none;
    /* Static status dot: no decorative pulse animation */
}

/* Vertical decorative word */
.side-word {
    position: absolute;
    top: 50%;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
    font-size: 11px;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: rgba(122, 147, 140, .55);
    user-select: none;
    pointer-events: none;
}
@media (max-width: 1180px) { .side-word { display: none; } }

/* Trust strip */
.trust-strip { padding-block: 6px 40px; border-top: 1px solid var(--hairline); }
.trust-strip__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 5vw, 72px);
}
.trust-item {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .12em;
    color: rgba(199, 215, 209, .38);
    white-space: nowrap;
}
.trust-strip__label {
    text-align: center;
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 26px;
}

/* CTA band */
.cta-band {
    position: relative;
    background: linear-gradient(160deg, #020908 0%, #062019 100%);
    border-block: 1px solid var(--hairline);
    text-align: center;
    padding-block: clamp(72px, 9vw, 110px);
}
.cta-band .h2-serif { margin-inline: auto; max-width: 20ch; }
.cta-band .lead { margin-inline: auto; }

/* ------------------------------------------------------------- footer ----- */
.site-footer {
    background: var(--ink-900);
    border-top: 1px solid var(--hairline);
    padding-block: 64px 34px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(28px, 4vw, 60px);
    margin-bottom: 48px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col .footer-col-h, .footer-col h3.footer-col-h {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 16px;
}
.footer-col a {
    display: block;
    font-size: 13.5px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 5px 0;
}
.footer-col a:hover { color: var(--mint); }
/* Footer brand-link: flex row (logo + wordmark centered), not block */
.footer-col a.brand-link {
    display: inline-flex;
    align-items: center;
    padding: 0;
}
.footer-bottom {
    border-top: 1px solid var(--hairline);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: .04em;
}

/* ------------------------------------------------------------ forms ------- */
.auth-shell {
    min-height: calc(100vh - var(--header-h));
    display: grid;
    place-items: center;
    background: var(--hero-bg);
    padding: 48px var(--gutter);
    position: relative;
    overflow: hidden;
}
.auth-card {
    width: min(460px, 100%);
    background: rgba(10, 33, 29, .72);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-m);
    padding: clamp(28px, 4vw, 44px);
    box-shadow: var(--glow-soft);
    backdrop-filter: blur(6px);
}
.auth-card h1 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 28px;
    color: var(--text-primary);
    margin: 0 0 6px;
    line-height: 1.15;
    letter-spacing: -.02em;
}
.auth-card .auth-note {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0 0 26px;
    line-height: 1.55;
}
.auth-card label.field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 0 7px;
}
.auth-card .field {
    width: 100%;
    height: 46px;
    background: rgba(2, 9, 8, .6);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-s);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14.5px;
    padding: 0 14px;
    outline: none;
    margin-bottom: 16px;
    transition: border-color .2s ease;
}
.auth-card .field:focus { border-color: rgba(104, 184, 150, .5); }
.auth-card .field::placeholder { color: var(--text-muted); }
.auth-card textarea.field { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.auth-card .invalid-feedback { display: none; font-size: 12px; color: #e08a80; margin: -10px 0 14px; }
.auth-card form.was-validated .field:invalid ~ .invalid-feedback { display: block; }
.auth-card form.was-validated .field:invalid { border-color: rgba(220, 90, 80, .6); }
.auth-links { margin-top: 18px; font-size: 13px; color: var(--text-muted); text-align: center; }
.auth-links a { color: var(--mint); text-decoration: none; }
.auth-links a:hover { color: var(--mint-bright); }
.auth-check {
    display: flex; align-items: center; gap: 9px;
    font-size: 13px; color: var(--text-secondary);
    margin: 4px 0 20px;
}
.auth-check input { accent-color: var(--mint); }

/* Search results (leaked data) */
.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.result-table th {
    text-align: left;
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline-strong);
}
.result-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--hairline);
    color: var(--text-secondary);
    word-break: break-all;
}
.result-table td.count { color: var(--mint); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Simple content pages (policy/terms/info) */
.doc-page { padding-block: clamp(28px, 4vw, 48px); }
.doc-page .h2-serif.doc-title {
    font-size: clamp(30px, 3.6vw, 46px);
    margin: 10px 0 6px;
}
.doc-page .doc-meta {
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mint);
    margin: 0 0 10px;
}
.doc-page .h2-serif { margin-top: 40px; }
.doc-page .doc-body { margin-top: 16px; }

/* Pricing */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
}
@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr; } }

/* ============ Token pack calculator ============ */
.calc-card {
    margin-top: 0;
    margin-bottom: 18px;
    padding: 24px 26px;
    border: 1px solid var(--hairline, #1E3A33);
    border-radius: var(--radius-m, 6px);
    background: var(--ink-700, #07110E);
    box-shadow: none;
}
/* Landing variant (inside .section--surface/-dark on /pricing): larger with gradient */
.section--surface .calc-card,
.section--dark .calc-card {
    margin-top: 34px;
    padding: clamp(24px, 4vw, 44px);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(6, 25, 22, .5), rgba(3, 15, 13, .7));
    box-shadow: 0 10px 14px rgba(0, 0, 0, .3);
}
.calc-card__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(16px, 3vw, 40px);
    align-items: center;
}
@media (max-width: 860px) { .calc-card__grid { grid-template-columns: 1fr; } }
.calc-card__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}
.calc-card__label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--text-muted, #9DB4AC);
}
.calc-card__value {
    font-family: var(--font-sans);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    color: var(--mint, #4FD1A0);
    font-variant-numeric: tabular-nums;
}
.calc-card__ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-muted, #7A948C);
    letter-spacing: .04em;
}
.calc-card__result-col {
    text-align: center;
    border-left: 1px solid var(--border-input, #1E3A33);
    padding-left: clamp(18px, 3vw, 40px);
}
@media (max-width: 860px) {
    .calc-card__result-col { border-left: none; border-top: 1px solid var(--border-input, #1E3A33); padding: 22px 0 0; }
}
.calc-card__price {
    font-family: var(--font-sans);
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary, #F4F5F4);
}
.calc-card__per {
    margin-top: 6px;
    color: var(--text-muted, #9DB4AC);
    font-size: 14px;
}
.calc-card__save {
    min-height: 20px;
    margin-top: 4px;
    font-size: 13px;
    color: var(--mint, #4FD1A0);
}
/* Package capacity: how many records can be revealed */
.calc-card__records {
    margin: 10px 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(79, 209, 160, .05);
    border: 1px solid rgba(79, 209, 160, .18);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.calc-card__records b {
    font-family: var(--font-sans);
    font-size: 26px;
    font-weight: 700;
    color: var(--mint, #4FD1A0);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.calc-card__records span {
    font-size: 12.5px;
    color: var(--text-secondary, #C7D7D1);
}
.calc-card__records small {
    font-size: 12px;
    color: var(--text-muted, #7A948C);
    line-height: 1.45;
    max-width: 52ch;
}
.calc-card__note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted, #7A948C);
    max-width: 50ch;
}

/* Stealer family badge (search table + domain stats) */
.stealer-family {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    letter-spacing: .03em;
    white-space: nowrap;
    color: var(--mint, #4FD1A0);
    background: rgba(79, 209, 160, .08);
    border: 1px solid rgba(79, 209, 160, .22);
}
.col-tb-family { white-space: nowrap; }

/* Fingerprint icon on the 2FA security-key button: inline SVG ships with
   viewBox 463x463 and no intrinsic size, it would stretch across the button. */
.fingerprint_svg_icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: currentColor;
}

/* TOTP backup codes */
.totp-bc {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(79, 209, 160, .06);
    border: 1px dashed rgba(79, 209, 160, .35);
    color: var(--mint, #4FD1A0);
    font-size: 14px;
    letter-spacing: .08em;
    user-select: all;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ============ API docs page ============ */
.api-doc__wrap {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}
@media (max-width: 900px) {
    .api-doc__wrap { grid-template-columns: 1fr; }
    .api-doc__sidebar { position: static !important; max-height: none !important; }
}
.api-doc__sidebar {
    position: sticky;
    top: calc(var(--header-h, 64px) + 16px);
    max-height: calc(100dvh - var(--header-h, 64px) - 32px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 6px;
}
.api-doc__side-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--text-muted, #7A948C);
    margin: 0 0 8px;
}
.api-doc__side-link {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary, #C7D7D1);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all .15s ease;
}
.api-doc__side-link:hover { color: var(--mint, #4FD1A0); background: rgba(79, 209, 160, .05); }
.api-doc__side-link.active {
    color: var(--mint, #4FD1A0);
    border-left-color: var(--mint, #4FD1A0);
    background: rgba(79, 209, 160, .07);
}
.api-doc__side-sub { padding-left: 22px; font-size: 12.5px; }
.api-doc__side-sub code {
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(79, 209, 160, .12);
    color: var(--mint, #4FD1A0);
    margin-right: 4px;
}

/* Endpoint card */
.api-ep {
    border: 1px solid var(--border-input, #1E3A33);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(6, 25, 22, .45), rgba(3, 15, 13, .6));
    padding: clamp(18px, 2.5vw, 28px);
    margin: 26px 0;
    scroll-margin-top: calc(var(--header-h, 64px) + 20px);
}
.api-ep__head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.api-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .08em;
    border-radius: 6px;
    flex-shrink: 0;
}
.api-method--post { background: rgba(79, 209, 160, .14); color: #4FD1A0; border: 1px solid rgba(79, 209, 160, .3); }
.api-method--get { background: rgba(122, 168, 255, .12); color: #8AB4FF; border: 1px solid rgba(122, 168, 255, .3); }
.api-method--delete { background: rgba(224, 138, 138, .12); color: #E08A8A; border: 1px solid rgba(224, 138, 138, .3); }
.api-ep__path {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14px;
    line-height: 26px;
    color: var(--text-primary, #F4F5F4);
    word-break: break-all;
    display: inline-flex;
    align-items: center;
}
.api-ep__title {
    margin: 14px 0 6px;
    font-size: 19px;
    line-height: 1.3;
    display: flex;
    align-items: center;
}
.api-ep__desc {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary, #C7D7D1);
}
.api-ep__badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0 4px;
}
.api-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 4px 10px;
    font-size: 11px;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid var(--border-input, #2A4A42);
    color: var(--text-muted, #9DB4AC);
    background: rgba(255, 255, 255, .02);
}
.api-badge--admin { border-color: rgba(224, 164, 158, .4); color: #E0A49E; }
.api-badge--billing { border-color: rgba(230, 200, 138, .35); color: #E6C88A; }
.api-badge--free { border-color: rgba(79, 209, 160, .3); color: var(--mint, #4FD1A0); }
.api-subhead {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-muted, #7A948C);
    margin: 18px 0 8px;
}
.api-resp-200 {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 5px;
    background: rgba(79, 209, 160, .14);
    color: var(--mint, #4FD1A0);
}
.api-params { font-size: 12.5px; }
.api-params code { word-break: break-all; }
.api-td-quiet { color: var(--text-muted, #9DB4AC); white-space: nowrap; }
.api-notes { margin-top: 14px; font-size: 13px; }
.code-block {
    background: #04120F;
    border: 1px solid var(--border-input, #1E3A33);
    border-radius: 10px;
    padding: 14px 16px;
    overflow-x: auto;
    font-size: 12.5px;
    line-height: 1.55;
}
.code-block code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #C7D7D1;
    white-space: pre;
}
.code-block--resp { border-color: rgba(79, 209, 160, .22); }
.code-block--resp code { color: #9FD9C6; }
/* Range slider (brand) */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--mint, #4FD1A0), rgba(79, 209, 160, .15));
    outline: none;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #06251E;
    border: 2px solid var(--mint, #4FD1A0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
    transition: transform .15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #06251E;
    border: 2px solid var(--mint, #4FD1A0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}
.price-card {
    display: flex;
    flex-direction: column;
    background: var(--ink-700);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-m);
    padding: 30px 28px;
}
.price-card--featured {
    border-color: rgba(79, 209, 160, .45);
    box-shadow: var(--glow-soft);
    position: relative;
}
.price-card--featured::before {
    content: "MOST CHOSEN";
    position: absolute;
    top: -10px; left: 28px;
    font-size: 9.5px;
    letter-spacing: .2em;
    color: #06251E;
    background: var(--mint);
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: 700;
}
.price-card .plan-name {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--text-primary);
    margin: 0 0 4px;
}
.price-card .plan-price {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 38px;
    letter-spacing: -.024em;
    color: var(--text-primary);
    margin: 14px 0 2px;
    line-height: 1;
}
.price-card .plan-price small { font-size: 15px; color: var(--text-muted); font-family: var(--font-sans); }
.price-card .plan-price small { color: var(--text-muted); } /* override bootstrap --bs-secondary-color */
.price-card .plan-note { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.price-card ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-secondary); }
.price-card li::before {
    content: "";
    flex-shrink: 0;
    width: 15px; height: 15px;
    margin-top: 3px;
    border: 1px solid rgba(79, 209, 160, .5);
    border-radius: 3px;
    background: linear-gradient(45deg, transparent 44%, var(--mint) 44% 56%, transparent 56%) center / 7px no-repeat;
}
.price-card .btn-brand { margin-top: auto; }

/* Utility */
.text-center { text-align: center; }
.price-card .plan-badge {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid rgba(79, 209, 160, .4);
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 14px;
}
.mt-auto { margin-top: auto; }

/* Flash messages restyle inside new shell.
   Opaque surface: the band sits above sections with their own gradients
   (hero-bg, auth-shell), translucency let the underlying gradient seam
   show through the card. */
.brand-flashes { max-width: var(--maxw); margin: 18px auto 6px; padding-inline: var(--gutter); display: grid; gap: 10px; }
.brand-flashes .alert {
    border-radius: var(--radius-s);
    border: 1px solid var(--hairline-strong);
    background: #0A211D;
    color: var(--text-secondary);
    padding: 12px 18px;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.brand-flashes .alert-success { border-color: rgba(79, 209, 160, .4); color: var(--mint); }
.brand-flashes .alert-danger { border-color: rgba(220, 90, 80, .4); color: #e0a49e; }
.brand-flashes .alert-warning { border-color: rgba(231, 202, 161, .4); color: var(--champagne); }

/* Brand scrollbar (WebKit + Firefox) */
* { scrollbar-width: thin; scrollbar-color: rgba(79, 209, 160, .35) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: rgba(2, 9, 8, .5); }
*::-webkit-scrollbar-thumb {
    background: rgba(79, 209, 160, .28);
    border-radius: 6px;
    border: 2px solid rgba(2, 9, 8, .5);
}
*::-webkit-scrollbar-thumb:hover { background: rgba(79, 209, 160, .5); }
*::-webkit-scrollbar-corner { background: transparent; }

/* ---------------------------------------------- reveal cells in results -- */
.reveal-td { min-width: 150px; }
.reveal-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    flex-wrap: wrap;
}
.reveal-hash {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: .04em;
    background: rgba(2, 9, 8, .5);
    border: 1px dashed var(--hairline-strong);
    border-radius: 4px;
    padding: 3px 7px;
}
.reveal-btn {
    background: rgba(231, 202, 161, .12);
    border: 1px solid rgba(231, 202, 161, .45);
    border-radius: 4px;
    color: var(--champagne);
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease;
}
.reveal-btn:hover:not(:disabled) {
    background: rgba(231, 202, 161, .22);
    border-color: rgba(231, 202, 161, .7);
}
.reveal-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.reveal-btn.revealed { display: none; }

/* token balance indicator in search bar */
.token-bal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--mint);
    border: 1px solid rgba(79, 209, 160, .35);
    background: rgba(14, 83, 69, .25);
    padding: 6px 12px;
    border-radius: 999px;
}
.token-bal b { font-weight: 600; letter-spacing: .02em; }

/* ---------------------------------------------------- CABINET ========== */
.cabinet-shell { background: var(--ink-800); }

.cabinet-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 30px 60px;
    align-items: start;
}
/* With sidebar: widen by sidebar+gap so main stays identical to pages without
   one (content does not shift between tabs).
   1360 (maxw) + 230 (sidebar) + 26 (gap) = 1616; main = 1360 - 2*64 (gutter) = 1232 */
.cabinet-layout.with-sidebar {
    grid-template-columns: 230px minmax(0, 1fr);
    max-width: calc(var(--maxw) + 256px);
}
@media (max-width: 980px) {
    .cabinet-layout.with-sidebar { grid-template-columns: 1fr; max-width: var(--maxw); }
}

.cabinet-main { min-width: 0; }
/* On mobile the section menu lives inside the fullscreen nav menu */
@media (max-width: 980px) { .cabinet-sidebar { display: none; } }

/* Section sidebar links */
.cabinet-links { display: grid; gap: 2px; position: sticky; top: calc(var(--header-h) + 20px); }
.cabinet-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-s);
    font-size: 13.5px;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cabinet-links a:hover { color: var(--text-primary); background: rgba(14, 83, 69, .16); }
.cabinet-links a.active {
    color: var(--mint);
    background: rgba(14, 83, 69, .22);
    border-left-color: var(--mint);
}
.cabinet-links .links-title {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 14px 12px 6px;
}

/* Cabinet page header */
.cab-page-head { margin-bottom: 26px; }
.cab-page-head h1 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(24px, 2.8vw, 34px);
    color: var(--text-primary);
    margin: 0 0 6px;
    line-height: 1.15;
    letter-spacing: -.022em;
}
.cab-page-head .cab-sub { font-size: 14px; color: var(--text-muted); margin: 0; }

/* Cabinet panels (bootstrap-card replacement look) */
.cab-panel {
    background: var(--ink-700);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-m);
    padding: 24px 26px;
    margin-bottom: 18px;
}
.cab-panel > h2, .cab-panel .panel-title {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--text-primary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--hairline);
}

/* Tables inside cabinet */
.cab-panel table, .result-table { color: var(--text-secondary); }
.table-brand { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table-brand td:last-child, .table-brand td:nth-child(2) { max-width: 46ch; }
.table-brand th {
    text-align: left;
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 1px solid var(--hairline-strong);
}
.table-brand td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--hairline);
    color: var(--text-secondary);
    vertical-align: middle;
}
.table-brand tr:hover td { background: rgba(14, 83, 69, .10); }

/* KPI row in cabinet */
.cab-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.cab-kpi {
    background: var(--ink-700);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-m);
    padding: 18px 20px;
}
.cab-kpi b {
    display: block;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 28px;
    color: var(--text-primary);
    line-height: 1.05;
    letter-spacing: -.02em;
}
.cab-kpi span {
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Form controls inside cabinet (bootstrap overrides) */
.cabinet-shell .form-control,
.cabinet-shell .form-select,
.auth-shell .form-control,
.auth-shell .form-select {
    background: rgba(2, 9, 8, .6);
    border: 1px solid var(--hairline-strong, #2A4A42);
    color: var(--text-primary);
    border-radius: var(--radius-s);
    font-size: 14px;
    height: 46px;
    padding: 0 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    box-shadow: none;
}
.cabinet-shell textarea.form-control,
.auth-shell textarea.form-control { height: auto; padding: 12px 14px; }
.cabinet-shell .form-control:focus,
.cabinet-shell .form-select:focus,
.auth-shell .form-control:focus,
.auth-shell .form-select:focus {
    background: rgba(2, 9, 8, .85);
    border-color: var(--mint, #4FD1A0);
    box-shadow: 0 0 0 3px rgba(79, 209, 160, .12);
    color: var(--text-primary);
}
.cabinet-shell .form-control:hover:not(:focus):not(:disabled),
.auth-shell .form-control:hover:not(:focus):not(:disabled) {
    border-color: rgba(79, 209, 160, .35);
}
.cabinet-shell .form-control::placeholder,
.auth-shell .form-control::placeholder { color: var(--text-muted); opacity: 1; }
.cabinet-shell .form-control:disabled,
.auth-shell .form-control:disabled { opacity: .45; cursor: not-allowed; }

/* Floating labels (bootstrap form-floating) restyled */
.cabinet-shell .form-floating > .form-control,
.auth-shell .form-floating > .form-control { height: 58px; padding: 24px 14px 8px; }
.cabinet-shell .form-floating > label,
.auth-shell .form-floating > label {
    color: var(--text-muted);
    padding-left: 14px;
    line-height: 1.4;
}
.cabinet-shell .form-floating > .form-control:focus ~ label,
.cabinet-shell .form-floating > .form-control:not(:placeholder-shown) ~ label,
.auth-shell .form-floating > .form-control:focus ~ label,
.auth-shell .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--mint, #4FD1A0);
    opacity: .85;
}
.cabinet-shell .form-floating > .form-control:focus { border-color: var(--mint, #4FD1A0); }

/* ============ Settings: 2FA cards & password form ============ */
.cab-panel-sub { font-size: 13.5px; color: var(--text-muted); margin: -6px 0 18px; line-height: 1.6; }
.btn-brand--sm { height: 38px; padding: 0 18px; font-size: 13px; }
.btn-brand--danger {
    background: transparent; border: 1px solid rgba(224, 138, 138, .5); color: #E08A8A;
}
.btn-brand--danger:hover { background: rgba(224, 138, 138, .1); }

.twofa-card {
    border: 1px solid var(--hairline, #1E3A33);
    border-radius: var(--radius-m, 6px);
    background: rgba(2, 9, 8, .45);
    padding: 18px 20px;
    margin-bottom: 14px;
    transition: border-color .2s ease;
}
.twofa-card--on { border-color: rgba(79, 209, 160, .35); }
.twofa-card__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.twofa-card__icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(79, 209, 160, .08);
    border: 1px solid rgba(79, 209, 160, .22);
    color: var(--mint, #4FD1A0);
}
.twofa-card__head > div { flex: 1; min-width: 0; }
.twofa-card__head h3 {
    font-family: var(--font-sans);
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px;
    display: flex; align-items: center; gap: 8px;
}
.twofa-card__head p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.twofa-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(79, 209, 160, .12);
    color: var(--mint, #4FD1A0);
    border: 1px solid rgba(79, 209, 160, .25);
    text-transform: uppercase;
}
.twofa-state {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--hairline-strong, #2A4A42);
    color: var(--text-muted, #7A948C);
}
.twofa-state--on {
    border-color: rgba(79, 209, 160, .4);
    color: var(--mint, #4FD1A0);
    background: rgba(79, 209, 160, .07);
}
.twofa-card__body { margin-top: 14px; padding-left: 56px; }
@media (max-width: 640px) { .twofa-card__body { padding-left: 0; } }
.twofa-actions { display: grid; gap: 14px; }
.twofa-action label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: .02em;
}
.twofa-inline { display: flex; gap: 10px; align-items: center; }
.twofa-inline input[type="text"] {
    width: 150px;
    text-align: center;
    letter-spacing: .25em;
    font-size: 16px;
}

/* Password form */
.pass-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.pass-form .field { display: flex; flex-direction: column; gap: 6px; }
.pass-form .field span {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: .03em;
}
.pass-form .field input[type="password"] {
    background: rgba(2, 9, 8, .6);
    border: 1px solid var(--hairline-strong, #2A4A42);
    color: var(--text-primary);
    border-radius: var(--radius-s, 4px);
    font-size: 14px;
    height: 46px;
    padding: 0 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.pass-form .field input[type="password"]:hover:not(:focus) { border-color: rgba(79, 209, 160, .35); }
.pass-form .field input[type="password"]:focus {
    outline: none;
    border-color: var(--mint, #4FD1A0);
    box-shadow: 0 0 0 3px rgba(79, 209, 160, .12);
}
.pass-form .field small { color: var(--text-muted, #7A948C); font-size: 11.5px; line-height: 1.5; }

/* TOTP setup grid */
.totp-setup-grid {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--hairline, #1E3A33);
    border-radius: var(--radius-m, 6px);
    background: rgba(2, 9, 8, .35);
}
.totp-qr { background: #fff; padding: 10px; border-radius: 10px; width: fit-content; }
.totp-secret {
    display: inline-block;
    font-size: 14px;
    letter-spacing: .06em;
    word-break: break-all;
    user-select: all;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(79, 209, 160, .06);
    border: 1px dashed rgba(79, 209, 160, .3);
    color: var(--mint, #4FD1A0);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.totp-backup-box {
    border: 1px dashed rgba(230, 200, 138, .4);
    background: rgba(230, 200, 138, .05);
    border-radius: var(--radius-m, 6px);
    padding: 14px;
    margin-bottom: 14px;
}
.totp-backup-warn { color: #E6C88A; font-size: 13px; margin: 0 0 2px; }
.totp-backup-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }

/* 2FA policy chooser */
.twofa-policy {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--hairline, #1E3A33);
    border-radius: var(--radius-m, 6px);
    background: rgba(79, 209, 160, .03);
}
.twofa-policy h3 {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-primary);
}
.twofa-policy__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .twofa-policy__opts { grid-template-columns: 1fr; } }
.twofa-policy__opt { display: block; cursor: pointer; }
.twofa-policy__opt input { position: absolute; opacity: 0; pointer-events: none; }
.twofa-policy__card {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--hairline-strong, #2A4A42);
    border-radius: var(--radius-m, 6px);
    transition: all .15s ease;
    height: 100%;
}
.twofa-policy__card strong { display: block; font-size: 13.5px; color: var(--text-primary); margin-bottom: 3px; }
.twofa-policy__card small { display: block; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.twofa-policy__opt input:checked + .twofa-policy__card {
    border-color: var(--mint, #4FD1A0);
    background: rgba(79, 209, 160, .07);
    box-shadow: 0 0 0 1px var(--mint, #4FD1A0) inset;
}
.twofa-policy__opt:hover .twofa-policy__card { border-color: rgba(79, 209, 160, .4); }
.cabinet-shell .btn-dark {
    background: var(--mint);
    border-color: var(--mint);
    color: #06251E;
    font-weight: 600;
    border-radius: var(--radius-s);
}
.cabinet-shell .btn-dark:hover { background: var(--mint-bright); border-color: var(--mint-bright); color: #06251E; }
/* bootstrap buttons text contrast (cabinet legacy pages) */
.cabinet-shell .btn-success {
    background: var(--mint);
    border-color: var(--mint);
    color: #06251E;
    font-weight: 600;
}
.cabinet-shell .btn-success:hover { background: var(--mint-bright); border-color: var(--mint-bright); color: #06251E; }
.cabinet-shell .btn-secondary {
    background: transparent;
    border-color: var(--hairline-strong);
    color: var(--text-secondary);
    border-radius: var(--radius-s);
}
.cabinet-shell .btn-secondary:hover {
    border-color: rgba(104, 184, 150, .5);
    color: var(--text-primary);
}
.cabinet-shell a { color: var(--mint); }
/* Buttons untouched: color comes from the btn-brand--* modifier (not links) */
.cabinet-shell a.btn-brand,
.cabinet-shell .btn-brand--primary,
.cabinet-shell .btn-brand--ghost,
.cabinet-shell .btn-brand--champagne { color: inherit; }
.cabinet-shell .btn-brand--primary { color: #06251E; }
.cabinet-shell .text-body-secondary, .cabinet-shell .text-muted { color: var(--text-muted) !important; }
.cabinet-shell .form-label, .cabinet-shell label { color: var(--text-secondary); font-size: 13px; }
.cabinet-shell h1, .cabinet-shell h2, .cabinet-shell h3, .cabinet-shell h4, .cabinet-shell h5 { color: var(--text-primary); }
.cabinet-shell .accordion-item { background: var(--ink-700); border-color: var(--hairline); }
.cabinet-shell .accordion-button { background: var(--ink-600); color: var(--text-primary); }
.cabinet-shell .accordion-button:not(.collapsed) { background: var(--ink-500); color: var(--mint); }
.cabinet-shell .nav-tabs { border-bottom-color: var(--hairline-strong); }
.cabinet-shell .nav-link { color: var(--text-secondary); }
.cabinet-shell .nav-link.active { color: var(--mint); border-color: var(--hairline-strong) var(--hairline-strong) transparent; background: var(--ink-700); }
.cabinet-shell .offcanvas { background: var(--ink-800); color: var(--text-secondary); }
.cabinet-shell .offcanvas .btn-close { filter: invert(1) grayscale(1); }

/* Bootstrap cards inside cabinet: force brand dark surfaces (legacy pages safety net) */
.cabinet-shell .card,
.cabinet-shell .card-header,
.cabinet-shell .card-body,
.cabinet-shell .card-footer {
    background: var(--ink-700);
    border-color: var(--hairline);
    color: var(--text-secondary);
}
.cabinet-shell .card-header {
    background: var(--ink-600);
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 1px solid var(--hairline-strong);
}
.cabinet-shell .card-header.text-bg-primary {
    background: rgba(14, 83, 69, .45);
    border-color: rgba(79, 209, 160, .4);
    color: var(--mint);
}
.cabinet-shell .card-title { color: var(--text-primary); }
.cabinet-shell .text-body-emphasis { color: var(--text-primary) !important; }
.cabinet-shell .text-body-secondary { color: var(--text-secondary) !important; }
.cabinet-shell .display-4, .cabinet-shell .display-6 {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -.02em;
    color: var(--text-primary);
}
.cabinet-shell .btn-primary {
    background: var(--mint);
    border-color: var(--mint);
    color: #06251E;
    font-weight: 600;
    border-radius: var(--radius-s);
}
.cabinet-shell .btn-primary:hover { background: var(--mint-bright); border-color: var(--mint-bright); color: #06251E; }
.cabinet-shell .btn-outline-primary {
    background: transparent;
    border-color: var(--hairline-strong);
    color: var(--text-secondary);
    border-radius: var(--radius-s);
}
.cabinet-shell .btn-outline-primary:hover {
    border-color: rgba(104, 184, 150, .5);
    color: var(--text-primary);
    background: rgba(14, 83, 69, .18);
}
.cabinet-shell .border-primary { border-color: rgba(79, 209, 160, .4) !important; }
.cabinet-shell .table { --bs-table-bg: transparent; --bs-table-color: var(--text-secondary); border-color: var(--hairline); }
.cabinet-shell .table th { color: var(--text-muted); }

/* ======================================================= SEARCH UI ======== */
/* Simple search bar + advanced query builder */

.searchbar {
    background: var(--ink-700);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-m);
    padding: 18px;
    margin-bottom: 16px;
}
.searchbar__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.searchbar__input {
    flex: 1;
    min-width: 220px;
    height: 48px;
    background: rgba(2, 9, 8, .6);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-s);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    padding: 0 16px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.searchbar__input:focus {
    border-color: rgba(104, 184, 150, .55);
    box-shadow: var(--glow-soft);
}
.searchbar__input::placeholder { color: var(--text-muted); }

/* Live query-language preview under the simple bar */
.searchbar__query {
    display: none;
    margin-top: 10px;
    font-family: ui-monospace, 'Cascadia Mono', 'JetBrains Mono', Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
    color: var(--mint);
    word-break: break-word;
}
.searchbar__query.is-visible { display: block; }
.searchbar__query .q-label { color: var(--text-muted); }

.searchbar__type {
    height: 48px;
    background: rgba(2, 9, 8, .6);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-s);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
    padding: 0 12px;
    outline: none;
}
.searchbar__type:focus { border-color: rgba(104, 184, 150, .55); }
.searchbar__type option { background: var(--ink-700); color: var(--text-primary); }

.searchbar__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}
.domain-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid rgba(79, 209, 160, .4);
    background: rgba(14, 83, 69, .3);
    color: var(--mint);
    letter-spacing: .02em;
    cursor: pointer;
    user-select: none;
    transition: border-color .2s ease, background .2s ease, opacity .2s ease;
}
.domain-chip:hover { border-color: rgba(79, 209, 160, .7); background: rgba(14, 83, 69, .5); }

/* Cabinet modals: brand dark surface (Add domain, etc.) */
.cabinet-shell .modal-content {
    background: var(--ink-700);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-m);
    color: var(--text-secondary);
}
.cabinet-shell .modal-header,
.cabinet-shell .modal-footer { border-color: var(--hairline); }
.cabinet-shell .modal-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.cabinet-shell .modal-body p { color: var(--text-secondary); font-size: 13.5px; line-height: 1.6; }
.cabinet-shell .modal-backdrop.show { opacity: .6; }

/* Domain verification TXT inputs: click-to-copy fields */
.cabinet-shell input.copy-input {
    cursor: copy;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    background: rgba(2, 9, 8, .45);
    border-color: var(--hairline);
    color: var(--text-muted);
    min-width: 180px;
}
.cabinet-shell input.copy-input:hover { border-color: rgba(79, 209, 160, .4); color: var(--text-secondary); }

/* Mobile-only sections block in the fullscreen nav menu (cabinet) */
.nav-mobile-sections { display: none; }

/* Domain stats page: selectable domain chips */
.ds-chip { font-size: 12.5px; padding: 5px 14px; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.ds-chip--active {
    background: var(--mint);
    border-color: var(--mint);
    color: #06251E;
}
.ds-chip--active .domain-chip__dot { background: #06251E; }
.domain-chip--off {
    border-color: var(--hairline-strong);
    background: transparent;
    color: var(--text-muted);
    text-decoration: line-through;
    cursor: pointer;
}
.domain-chip__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 8px rgba(79, 209, 160, .8);
}
.domain-chip--off .domain-chip__dot { background: var(--text-muted); box-shadow: none; }

.searchbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--hairline);
}
.searchbar__left { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.searchbar__hint { font-size: 12px; color: var(--text-muted); }

/* ---------------- Advanced builder ---------------- */
.qb-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-s);
}
.qb-toggle:hover { color: var(--mint); background: rgba(14, 83, 69, .16); }
.qb-toggle .chev { transition: transform .18s ease; }
.qb-toggle.open .chev { transform: rotate(90deg); }

.qb-wrap { display: none; margin-bottom: 16px; }
.qb-wrap.open { display: block; }

/* mode switcher: builder | DSL text */
.qb-modes { display: flex; gap: 8px; margin-bottom: 10px; align-items: center; }
.qb-mode-btn {
    background: none;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-s);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 12.5px;
    padding: 7px 14px;
    cursor: pointer;
}
.qb-mode-btn.active {
    background: rgba(79, 209, 160, .14);
    border-color: rgba(79, 209, 160, .45);
    color: var(--mint);
}

.qb-dsl {
    display: none;
    background: var(--ink-700);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-m);
    padding: 14px;
}
.qb-dsl.open { display: block; }
.qb-dsl textarea {
    width: 100%;
    min-height: 84px;
    background: rgba(2, 9, 8, .6);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-s);
    color: var(--text-primary);
    font-family: ui-monospace, 'Cascadia Mono', 'JetBrains Mono', Consolas, monospace;
    font-size: 13px;
    line-height: 1.65;
    padding: 10px 12px;
    outline: none;
    resize: vertical;
}
.qb-dsl textarea:focus { border-color: rgba(104, 184, 150, .55); }
.qb-dsl__hint { font-size: 12px; color: var(--text-muted); margin-top: 8px; line-height: 1.7; }
.qb-dsl__hint code {
    background: rgba(2, 9, 8, .7);
    border: 1px solid var(--hairline);
    border-radius: 3px;
    padding: 1px 5px;
    color: var(--mint);
    font-size: 11.5px;
}
.qb-dsl__err { color: #e0a49e; font-size: 12.5px; margin-top: 6px; display: none; }

/* DSL reference (collapsible field docs) */
.qb-ref-toggle {
    background: none;
    border: none;
    color: var(--mint);
    font-size: 12.5px;
    cursor: pointer;
    padding: 6px 0;
    margin-top: 4px;
    letter-spacing: .04em;
}
.qb-ref-toggle:hover { text-decoration: underline; }
.qb-ref {
    display: none;
    background: rgba(2, 9, 8, .55);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-s);
    margin-top: 8px;
    padding: 12px 14px;
}
.qb-ref.open { display: block; }
.qb-ref table { width: 100%; border-collapse: collapse; font-size: 12px; }
.qb-ref th {
    text-align: left;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 8px;
    border-bottom: 1px solid var(--hairline-strong);
}
.qb-ref td {
    padding: 5px 8px;
    border-bottom: 1px solid var(--hairline);
    color: var(--text-secondary);
    vertical-align: top;
}
.qb-ref td:first-child { white-space: nowrap; }
.qb-ref code {
    background: rgba(2, 9, 8, .7);
    border: 1px solid var(--hairline);
    border-radius: 3px;
    padding: 1px 5px;
    color: var(--mint);
    font-size: 11px;
    white-space: nowrap;
}
.qb-ref .ref-note {
    margin-top: 8px;
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.7;
}

.qb-group {
    background: var(--ink-700);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-m);
    padding: 16px;
    margin: 10px 0;
}
.qb-group--nested { background: rgba(10, 33, 29, .55); margin-left: 34px; }

.qb-group__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.qb-op-switch {
    display: inline-flex;
    background: rgba(2, 9, 8, .6);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-s);
    overflow: hidden;
}
.qb-op-switch button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    padding: 7px 16px;
    cursor: pointer;
}
.qb-op-switch button.active { background: rgba(79, 209, 160, .18); color: var(--mint); }
.qb-group__label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.qb-group__spacer { flex: 1; }

.qb-not-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-s);
    padding: 7px 11px;
    user-select: none;
    background: rgba(2, 9, 8, .4);
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.qb-not-toggle:hover { border-color: rgba(220, 90, 80, .45); }
.qb-not-toggle.on {
    color: #e0a49e;
    border-color: rgba(220, 90, 80, .55);
    background: rgba(220, 90, 80, .12);
}

.qb-group__del {
    background: none; border: 1px solid var(--hairline-strong); color: var(--text-muted);
    border-radius: var(--radius-s); cursor: pointer; padding: 6px 10px; font-size: 12px;
    line-height: 1;
    align-self: center;
}
.qb-group__del:hover { border-color: rgba(220, 90, 80, .5); color: #e0a49e; }

.qb-rows { display: grid; gap: 8px; }
.qb-row {
    display: grid;
    grid-template-columns: minmax(150px, 210px) minmax(120px, 170px) minmax(180px, 1fr) 72px 34px;
    gap: 8px;
    align-items: center;
}

.qb-row__field, .qb-row__op, .qb-row__value {
    height: 38px;
    background: rgba(2, 9, 8, .6);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-s);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13.5px;
    padding: 0 10px;
    outline: none;
    min-width: 0;
}
.qb-row__field:focus, .qb-row__op:focus, .qb-row__value:focus { border-color: rgba(104, 184, 150, .55); }
.qb-row__value::placeholder { color: var(--text-muted); }
.qb-row__del {
    height: 34px;
    width: 34px;
    background: none;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-s);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    align-self: center;
}
.qb-row__del:hover { border-color: rgba(220, 90, 80, .5); color: #e0a49e; }

.qb-addrow {
    background: none;
    border: 1px dashed var(--hairline-strong);
    border-radius: var(--radius-s);
    color: var(--text-secondary);
    font-size: 12.5px;
    padding: 8px 14px;
    cursor: pointer;
    margin-top: 4px;
}
.qb-addrow:hover { border-color: rgba(104, 184, 150, .5); color: var(--mint); }

.qb-addgroup {
    background: none;
    border: 1px dashed var(--hairline-strong);
    border-radius: var(--radius-s);
    color: var(--text-secondary);
    font-size: 12.5px;
    padding: 8px 14px;
    cursor: pointer;
    margin-top: 6px;
}
.qb-addgroup:hover { border-color: rgba(231, 202, 161, .5); color: var(--champagne); }

.qb-preview {
    background: rgba(2, 9, 8, .65);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-s);
    color: var(--mint);
    font-family: ui-monospace, 'Cascadia Mono', 'JetBrains Mono', Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
    padding: 12px 14px;
    margin-top: 12px;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 180px;
    overflow-y: auto;
}

.qb-empty { color: var(--text-muted); font-size: 13px; font-style: normal; }

@media (max-width: 760px) {
    .qb-row { grid-template-columns: 1fr 72px 34px; }
    .qb-row__op { display: none; }
}

/* date inputs in simple bar */
.searchbar__date {
    height: 48px;
    background: rgba(2, 9, 8, .6);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-s);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 13.5px;
    padding: 0 10px;
    outline: none;
    color-scheme: dark;
}

/* ------------------------------------------------ tselect (custom) ------- */
.tselect {
    position: relative;
    display: inline-block;
    min-width: 0;
}
.tselect__btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    height: 38px;
    background: rgba(2, 9, 8, .6);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-s);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13.5px;
    padding: 0 10px 0 12px;
    cursor: pointer;
    outline: none;
    text-align: left;
    transition: border-color .2s ease;
}
.tselect__btn:hover, .tselect__btn:focus-visible,
.tselect.open .tselect__btn {
    border-color: rgba(104, 184, 150, .55);
}
.tselect__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.tselect__chev {
    color: var(--mint);
    font-size: 11px;
    transition: transform .16s ease;
    flex-shrink: 0;
}
.tselect.open .tselect__chev { transform: rotate(180deg); }

.tselect__menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 300;
    max-height: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #06201B;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-s);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .55), var(--glow-soft);
    padding: 4px;
}
.tselect__menu.open { display: block; animation: tsIn .12s ease; }
@keyframes tsIn { from { opacity: 0; transform: translateY(-4px); } }

.tselect__option {
    padding: 9px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    min-height: 38px; /* touch target */
    display: flex;
    align-items: center;
    user-select: none;
}
.tselect__option:hover { background: rgba(14, 83, 69, .22); color: var(--text-primary); }
.tselect__option.active { background: rgba(14, 83, 69, .35); color: var(--text-primary); }
.tselect__option.selected { color: var(--mint); }
.tselect__option.selected::after {
    content: '✓';
    margin-left: auto;
    font-size: 12px;
}
.tselect__option.disabled {
    color: var(--text-muted);
    opacity: .45;
    cursor: not-allowed;
}
.tselect__option.hidden-by-filter { display: none; }

/* mobile: full-width menus grow upward-friendly, larger targets */
@media (max-width: 760px) {
    .tselect__btn { height: 44px; font-size: 14px; }
    .tselect__option { min-height: 44px; font-size: 14px; }
    .tselect__menu { max-height: 46vh; }
}

/* Pagination */
.cabinet-shell .pagination .page-link {
    background: transparent;
    border-color: var(--hairline);
    color: var(--text-secondary);
}
.cabinet-shell .pagination .page-item.active .page-link {
    background: rgba(14, 83, 69, .4);
    border-color: rgba(79, 209, 160, .4);
    color: var(--mint);
}

/* Feature-card heading (was h4) */
.card-h { font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: .01em; color: var(--text-primary); margin: 0 0 8px; }
