/* style.css — theme design system, plain CSS. */

/* Tokens — "Luz Viral": near-black glass surfaces floating on a deep navy-black
   void, neon green accent with DARK text on primary buttons (--color-primary-fg).
   In this dark palette the -600/-700 steps run BRIGHTER than -500 where they
   color text on dark grounds. */
:root {
    /* Brand (neon green #39FF14). RGB triplet without rgb()/commas → opacity via rgb(var(--x) / 0.5). */
    --color-primary-50: 23 37 27;    /* dark green tint (selected/hover fills) */
    --color-primary-100: 28 46 33;
    --color-primary-200: 45 70 50;
    --color-primary-500: 57 255 20;  /* #39FF14 */
    --color-primary-600: 32 201 0;   /* #20C900 — button hover (deeper) */
    --color-primary-700: 102 255 51; /* #66FF33 — readable light-green text on dark fills */
    --color-primary-900: 200 255 163;
    --color-primary-fg: 5 5 5;       /* near-black text on neon buttons */
    --glow-primary: 0 0 10px rgb(var(--color-primary-500) / 0.45), 0 0 25px rgb(var(--color-primary-500) / 0.25);
    --glow-primary-text: 0 0 8px rgb(var(--color-primary-500) / 0.65);

    /* Sidebar */
    --color-sidebar: 13 17 23;       /* #0D1117 */
    --color-sidebar-fg: 255 255 255;

    /* Page backgrounds */
    --color-page: 8 14 26;           /* #080E1A */
    --color-page-public: 8 14 26;

    /* Surfaces and UI grays */
    --color-surface: 24 24 24;       /* #181818 cards/header */
    --color-surface-muted: 36 36 36; /* #242424 — soft backgrounds: readout, thead, hover, light code */
    --color-border: 57 255 20;       /* neon green outline on interactive controls */
    --color-border-soft: 38 52 42;   /* dim green-grey dividers (cards/tables/dropdowns) */
    --color-text: 255 255 255;
    --color-text-soft: 207 207 207;  /* #CFCFCF */
    --color-text-muted: 138 138 138; /* #8A8A8A */

    /* Shape */
    --radius: 0.5rem;
    --radius-control: 0.375rem;
    --radius-pill: 9999px;
    --shadow-card: none;
    --shadow-control: none;
    --shadow-menu: 0 8px 24px rgba(0, 0, 0, 0.55);
    /* Typography: tenants override only this var (plus their own @font-face for web fonts). */
    --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Base */
body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column; /* public by default; .app--auth → row */
    background: radial-gradient(circle at 50% 0%, #17251B 0%, #0D1117 45%, #080E1A 100%) fixed;
    color: rgb(var(--color-text));
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* lets full-bleed sections (.landing-hero) break out of .container to 100vw */
}
/* Form controls don't inherit body font-family by default; force it. */
button, input, select, textarea { font-family: inherit; }
body.app--auth {
    flex-direction: row;
    background: rgb(var(--color-page));
}

/* Auth/public visibility (.hidden is toggled on the ui-*-only elements). */
.hidden { display: none !important; }
[x-cloak] { display: none !important; }

* { box-sizing: border-box; }
img { max-width: 100%; }

/* Layout (app shell) */

/* Mobile sidebar overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 30;
}
@media (min-width: 1024px) { .overlay { display: none; } }

/* Sidebar */
.sidebar {
    position: fixed;
    inset-block: 0;
    left: 0;
    z-index: 40;
    width: 240px;
    min-height: 100vh;
    background: rgb(var(--color-sidebar));
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transform: translateX(-100%);
    transition: transform 0.2s;
}
.sidebar.is-open { transform: translateX(0); }
@media (min-width: 1024px) { .sidebar { transform: translateX(0); } }

.sidebar-logo {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.25rem;
}
.sidebar-logo img { height: 2rem; object-fit: contain; }
.sidebar-brand {
    font-size: 1.125rem;
    font-weight: 700;
    color: rgb(var(--color-sidebar-fg));
    letter-spacing: -0.025em;
    text-shadow: var(--glow-primary-text);
}

.nav {
    flex: 1;
    padding: 0.5rem 0.75rem 0;
    overflow-y: auto;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 7px 0.75rem;
    margin-bottom: 2px;
    border-radius: var(--radius-control);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: rgb(var(--color-sidebar-fg) / 0.5);
    transition: all 0.15s;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}
.nav-link:hover { color: rgb(var(--color-sidebar-fg)); background: rgb(var(--color-sidebar-fg) / 0.06); }
.nav-link.is-active {
    color: rgb(var(--color-primary-500));
    background: rgb(var(--color-primary-500) / 0.08);
    box-shadow: inset 2px 0 0 rgb(var(--color-primary-500)), 0 0 14px rgb(var(--color-primary-500) / 0.15);
    text-shadow: 0 0 6px rgb(var(--color-primary-500) / 0.4);
}
.nav-link svg, .nav-link i { width: 1rem; height: 1rem; flex-shrink: 0; opacity: 0.7; }

.sidebar-logout { padding: 0 0.75rem 0.75rem; }
@media (min-width: 1024px) { .sidebar-logout { display: none; } }

/* Main wrapper */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
@media (min-width: 1024px) {
    body.app--auth .main-wrapper { margin-left: 240px; }
}

/* Header */
.header {
    background: rgb(var(--color-surface));
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 20;
}
.header--auth {
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}
.header--public { width: 100%; }
.header-inner {
    max-width: 72rem;
    margin: 0 auto;
    width: 100%;
    height: 3.5rem;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
@media (min-width: 768px) {
    .header--auth { padding: 0 1.5rem; }
    .header-inner { padding: 0 1.5rem; }
}
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 15px;
    color: rgb(var(--color-text));
    letter-spacing: -0.025em;
    text-decoration: none;
    text-shadow: var(--glow-primary-text);
}
.header-brand img { height: 1.5rem; object-fit: contain; }

/* Header icon button (hamburger, etc.) */
.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: rgb(var(--color-text-soft));
    display: inline-flex;
    align-items: center;
    transition: color 0.15s;
    padding: 0;
}
.icon-btn:hover { color: rgb(var(--color-text)); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
@media (min-width: 1024px) { .icon-btn--mobile { display: none; } }

/* Panel name hidden in the navbar by request; re-enable via display + font styles. */
.header-mobile-brand { display: none; }

/* Header action button (balance, language, currency, logout) */
.header-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    color: rgb(var(--color-text) / 0.7);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-control);
    font-size: 12px;
    transition: all 0.15s;
    text-decoration: none;
}
.header-btn:hover { color: rgb(var(--color-text)); background: rgb(255 255 255 / 0.06); }
.header-btn svg { width: 0.875rem; height: 0.875rem; }
.header-btn--balance { color: rgb(var(--color-text)); font-weight: 500; padding: 0.25rem 0.625rem; }
.header-btn--balance:hover { color: rgb(var(--color-primary-500)); background: rgb(var(--color-primary-50)); }
.header-btn--balance svg { color: rgb(var(--color-text-muted)); }
.header-btn--logout:hover { color: rgb(255 94 94); background: rgb(255 62 62 / 0.12); }
.desktop-only { display: none; }
@media (min-width: 1024px) { .desktop-only { display: flex; } }

/* Public nav links */
.pubnav { display: none; align-items: center; gap: 0.25rem; font-size: 13px; font-weight: 500; }
@media (min-width: 768px) { .pubnav { display: flex; } }
.pubnav-link {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-control);
    color: rgb(var(--color-text-soft));
    text-decoration: none;
    transition: all 0.15s;
}
.pubnav-link:hover { color: rgb(var(--color-text)); background: rgb(var(--color-surface-muted) / 0.8); }
.menu-btn { display: inline-flex; }
@media (min-width: 768px) { .menu-btn { display: none; } }

.pubmenu-mobile {
    border-top: 1px solid rgb(var(--color-border-soft));
    background: rgb(var(--color-surface));
    padding: 0.5rem;
    position: relative;
    z-index: 50;
}
@media (min-width: 768px) { .pubmenu-mobile { display: none; } }
.pubmenu-mobile a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-control);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(var(--color-text-soft));
    text-decoration: none;
    transition: all 0.15s;
}
.pubmenu-mobile a:hover { color: rgb(var(--color-primary-500)); background: rgb(var(--color-primary-500) / 0.05); }

/* Dropdowns (language / currency) */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    margin-top: 0.25rem;
    background: rgb(var(--color-surface));
    border: 1px solid rgb(var(--color-border-soft));
    border-radius: var(--radius-control);
    box-shadow: var(--shadow-menu);
    padding: 0.25rem 0;
    min-width: 120px;
    z-index: 50;
}
.dropdown-menu--right { right: 0; }
.dropdown-menu--left { left: 0; }
/* Shared header switchers (langSwitcher/currencySwitcher partials) carry no
   alignment modifier: the header context decides. */
.header--auth .dropdown-menu { right: 0; }
.header--public .dropdown-menu { left: 0; }
/* Full-width scrollable menu (new_order category/service select). */
.dropdown-menu--full { left: 0; right: 0; width: 100%; max-height: 16rem; overflow-y: auto; }
.dropdown-item.is-selected { background: rgb(var(--color-primary-50)); color: rgb(var(--color-primary-700)); }
.dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.375rem 0.75rem;
    font-size: 12px;
    color: rgb(var(--color-text-soft));
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}
.dropdown-item:hover { color: rgb(var(--color-text)); background: rgb(var(--color-surface-muted)); }

/* Main / footer */
.main {
    flex: 1;
    padding: 0.5rem 1rem 1rem;
    overflow-y: auto;
}
@media (min-width: 768px) { .main { padding: 0.75rem 1.5rem 1.5rem; } }
@media (min-width: 1024px) { .main { padding: 0.75rem 2.5rem 2.5rem; } }
.container { max-width: 72rem; margin: 0 auto; width: 100%; }
/* Instant click feedback: while a navigation request is in flight, htmx marks
   #content (hx-indicator on <body>) and the outgoing page dims immediately. */
#content { transition: opacity 0.12s; }
#content.htmx-request { opacity: 0.55; }
/* The authenticated app is data-dense (10-column order tables): give it more
   room than the public pages. Wide-screen space goes to the tables instead of
   dead side margins. */
body.app--auth .container { max-width: 88rem; }

.footer {
    flex-shrink: 0;
    background: rgb(var(--color-surface) / 0.5);
    padding: 1rem;
    font-size: 11px;
    color: rgb(var(--color-text-soft) / 0.6);
    text-align: center;
}
@media (min-width: 768px) { .footer { padding: 1rem 1.5rem; } }

/* Floating chat buttons (WhatsApp / Telegram) */
.chat-fab-stack {
    position: fixed;
    bottom: 1.5rem;
    z-index: 50;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.75rem;
}
.chat-fab-stack--left { left: 1.5rem; }
.chat-fab-stack--right { right: 1.5rem; }
.chat-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-pill);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease-out;
}
.chat-fab:hover { filter: brightness(1.08); }

.chat-fab--whatsapp { background: linear-gradient(to bottom, #2EE373, #1FA855); }
.chat-fab--telegram { background: linear-gradient(to bottom, #36B0EE, #1A88BC); }
.chat-fab svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25)); }
.chat-fab--whatsapp svg { width: 1.75rem; height: 1.75rem; }
.chat-fab--telegram svg { width: 2.25rem; height: 2.25rem; }

/* Components */

/* Card */
.card {
    background: rgb(var(--color-surface));
    border-radius: var(--radius);
    border: 1px solid rgb(var(--color-border-soft));
}
.card--pad { padding: 1.25rem; }
@media (min-width: 768px) { .card--pad { padding: 1.5rem; } }

/* Form controls */
.label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgb(var(--color-text-soft));
    margin-bottom: 0.375rem;
}
.input, .select, .textarea, .select-trigger {
    width: 100%;
    border: 1px solid rgb(var(--color-border));
    border-radius: var(--radius-control);
    background: rgb(var(--color-surface));
    padding: 9px 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem; /* uniform height across inputs, selects and triggers */
    color: rgb(var(--color-text));
    box-shadow: var(--shadow-control);
    transition: all 0.15s;
    font-family: inherit;
}
.input:focus, .select:focus, .textarea:focus, .select-trigger:focus {
    outline: none;
    border-color: rgb(var(--color-primary-500));
    box-shadow: 0 0 0 3px rgb(var(--color-primary-500) / 0.15), 0 0 14px rgb(var(--color-primary-500) / 0.25);
}
/* Button replacing a native <select>: label left, chevron right. */
.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-align: left;
    cursor: pointer;
}
.select-trigger > span:first-child {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.5rem;
}
.select-trigger .trigger-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-trigger img { width: 1rem; height: 1rem; flex-shrink: 0; }
.select-trigger .chevron { width: 1rem; height: 1rem; flex-shrink: 0; color: rgb(var(--color-text-muted)); transition: transform 0.15s; }
.select-trigger .chevron.is-open { transform: rotate(180deg); }

/* Search with magnifier on the left (new_order autocomplete); cf. .search (button right). */
.search-left { position: relative; }
.search-left > svg {
    position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
    width: 1rem; height: 1rem; color: rgb(var(--color-text-muted)); pointer-events: none;
}
.search-left .input { padding-left: 2.25rem; }
.input:disabled, .select:disabled, .textarea:disabled {
    background: rgb(var(--color-surface-muted) / 0.8);
    color: rgb(var(--color-text-soft));
    cursor: not-allowed;
}
.textarea { resize: vertical; }
.select { appearance: none; cursor: pointer; }
.checkbox {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    border-radius: 0.25rem;
    border: 1px solid rgb(var(--color-border));
    accent-color: rgb(var(--color-primary-500));
}
.field { margin-bottom: 0; }
.help { margin-top: 0.25rem; font-size: 12px; color: rgb(var(--color-text-soft)); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 9px 1.25rem;
    border-radius: var(--radius-control);
    transition: all 0.15s;
    cursor: pointer;
    border: none;
    text-decoration: none;
    line-height: 1.25rem;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--block { width: 100%; }
.btn--sm { padding: 0.375rem 0.75rem; font-size: 13px; }
.btn--primary {
    background: rgb(var(--color-primary-500));
    color: rgb(var(--color-primary-fg));
    box-shadow: 0 0 10px rgb(var(--color-primary-500) / 0.35), 0 0 22px rgb(var(--color-primary-500) / 0.18);
}
.btn--primary:hover:not(:disabled) {
    filter: brightness(1.1);
    box-shadow: 0 0 14px rgb(var(--color-primary-500) / 0.55), 0 0 32px rgb(var(--color-primary-500) / 0.3);
}
.btn--primary:active { filter: brightness(0.95); }
.btn--outline {
    background: rgb(var(--color-surface));
    color: rgb(var(--color-text));
    border: 1px solid rgb(var(--color-border));
    box-shadow: var(--shadow-control);
}
.btn--outline:hover:not(:disabled) { background: rgb(var(--color-surface-muted)); }
/* Square icon button */
.btn--icon { padding: 0.375rem; gap: 0; }
/* Very small row action buttons (tables). */
.btn--xs { padding: 0.125rem 0.5rem; font-size: 11px; border-radius: var(--radius-control); }
/* Colored semantic actions (refill=success, cancel=danger). */
.btn--success {
    background: rgb(46 231 182 / 0.1); color: #2ee7b6; border: 1px solid rgb(46 231 182 / 0.35);
    box-shadow: var(--shadow-control);
}
.btn--success:hover:not(:disabled) { background: rgb(46 231 182 / 0.18); }
.btn--danger {
    background: rgb(255 62 62 / 0.1); color: #ff6b6b; border: 1px solid rgb(255 62 62 / 0.35);
    box-shadow: var(--shadow-control);
}
.btn--danger:hover:not(:disabled) { background: rgb(255 62 62 / 0.18); }
.btn--lg { padding: 0.875rem 2rem; font-size: 0.9375rem; }
/* Metallic platinum CTA (landing hero, final CTA banner) — deliberately
   breaks from the neon primary button so the single "go to the app" action
   reads as premium/lit. Animated chrome flow + a sweeping shine loop. */
.btn--platinum {
    position: relative;
    overflow: hidden;
    background: linear-gradient(115deg, #5c5c5c 0%, #e8e8e8 14%, #ffffff 26%, #7d7d7d 40%, #ffffff 52%, #949494 66%, #ffffff 80%, #5f5f5f 100%);
    background-size: 250% 250%;
    color: #050605;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid #ffffff;
    box-shadow:
        0 10px 0 #262626,
        0 24px 45px rgb(0 0 0 / 0.6),
        0 0 30px rgb(255 255 255 / 0.45),
        0 0 55px rgb(var(--color-primary-500) / 0.2),
        inset 0 2px 3px rgb(255 255 255 / 1),
        inset 0 -6px 9px rgb(0 0 0 / 0.35);
    animation: btn-chrome-flow 4s infinite linear;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn--platinum::before {
    content: '';
    position: absolute;
    inset: 0;
    left: -150%;
    width: 60%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 1), transparent);
    transform: skewX(-25deg);
    animation: btn-chrome-shine 2.5s infinite;
}
@keyframes btn-chrome-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes btn-chrome-shine {
    0% { left: -150%; }
    35%, 100% { left: 150%; }
}
.btn--platinum:hover:not(:disabled) {
    transform: translateY(-6px) scale(1.03);
    filter: brightness(1.15);
    box-shadow:
        0 13px 0 #202020,
        0 30px 55px rgb(0 0 0 / 0.65),
        0 0 42px rgb(255 255 255 / 0.65),
        0 0 65px rgb(var(--color-primary-500) / 0.4),
        inset 0 2px 4px rgb(255 255 255 / 1);
}
.btn--platinum:active {
    transform: translateY(4px) scale(0.99);
    filter: brightness(0.95);
    box-shadow: 0 4px 0 #202020, 0 10px 20px rgb(0 0 0 / 0.55);
}

/* Accent links */
.link {
    font-weight: 500;
    color: rgb(var(--color-primary-500));
    transition: color 0.15s;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
}
.link:hover { color: rgb(var(--color-primary-500) / 0.8); }

/* Chip (network-logo filter on new_order) */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    flex-shrink: 0;
    border-radius: var(--radius-control);
    border: 1px solid rgb(var(--color-border-soft));
    background: rgb(var(--color-surface));
    color: rgb(var(--color-text-soft));
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.chip:hover { background: rgb(var(--color-surface-muted)); }
.chip img, .chip svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.chip.is-active {
    border-color: rgb(var(--color-primary-500));
    background: rgb(var(--color-primary-50));
    color: rgb(var(--color-primary-700));
    box-shadow: 0 0 0 2px rgb(var(--color-primary-500) / 0.1);
}

/* Readout (read-only box: description, charge, average time) */
.readout {
    width: 100%;
    border: 1px solid rgb(var(--color-border-soft));
    border-radius: var(--radius-control);
    background: rgb(var(--color-surface-muted));
    padding: 9px 0.75rem;
    font-size: 0.875rem;
    color: rgb(var(--color-text-soft));
    white-space: pre-line;
}
.readout--value { color: rgb(var(--color-text)); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Search (input with embedded button/magnifier) */
.search { position: relative; width: 100%; }
@media (min-width: 640px) { .search { width: 18rem; } }
.search .input { padding-right: 3rem; }
.search-btn {
    position: absolute;
    inset-block: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    border: none;
    border-radius: 0 var(--radius-control) var(--radius-control) 0;
    background: rgb(var(--color-primary-500));
    color: rgb(var(--color-primary-fg));
    cursor: pointer;
    transition: filter 0.15s;
}
.search-btn:hover { filter: brightness(1.1); }
.search-btn svg { width: 1rem; height: 1rem; }

/* Data table */
.table-wrap { overflow-x: auto; }
.table { width: 100%; text-align: left; font-size: 0.875rem; border-collapse: collapse; }
.table thead tr { border-bottom: 1px solid rgb(var(--color-border-soft)); }
.table th {
    padding: 0.625rem 0.75rem;
    font-size: 11px;
    font-weight: 600;
    color: rgb(var(--color-text-soft) / 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.table td { padding: 0.625rem 0.75rem; vertical-align: top; }
.table tbody tr { border-top: 1px solid rgb(var(--color-border-soft)); }
.table tbody tr:hover { background: rgb(var(--color-surface-muted) / 0.5); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
/* Long URL in a cell: truncate with ellipsis instead of letting it dictate the
   table width (the full link stays in href/title). */
.table .cell-trunc {
    display: inline-block;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}
.table-empty { padding: 2rem 1rem; text-align: center; font-size: 0.875rem; color: rgb(var(--color-text-soft)); }

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    padding: 0.125rem 0.5rem;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.badge--pending     { background: rgb(255 175 0 / 0.12);  color: #ffbe33; } /* amber */
.badge--processing  { background: rgb(77 163 255 / 0.12); color: #4da3ff; } /* blue */
.badge--in-progress { background: rgb(56 189 248 / 0.12); color: #38bdf8; } /* sky */
.badge--completed   { background: rgb(57 255 20 / 0.12);  color: #39ff14; } /* neon green */
.badge--partial     { background: rgb(255 159 67 / 0.12); color: #ff9f43; } /* orange */
.badge--canceled    { background: rgb(164 177 205 / 0.12); color: #a4b1cd; } /* slate */
.badge--rejected    { background: rgb(255 62 62 / 0.12);  color: #ff5e5e; } /* red */
.badge--answered    { background: rgb(77 163 255 / 0.12); color: #4da3ff; }
.badge--closed      { background: rgb(164 177 205 / 0.1); color: #8f9cb8; }
.badge--welcome     { background: rgb(167 139 250 / 0.12); color: #a78bfa; }
.badge--neutral     { background: rgb(164 177 205 / 0.12); color: #a4b1cd; }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: rgb(var(--color-text-soft));
}
.pagination-nav { display: flex; align-items: center; gap: 0.5rem; }
.page-btn {
    border: 1px solid rgb(var(--color-border));
    border-radius: var(--radius-control);
    background: rgb(var(--color-surface));
    /* Buttons do NOT inherit text color — without this the ‹ › arrows render
       in the UA default (near-black) and vanish on the dark surface. */
    color: rgb(var(--color-text-soft));
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1;
    box-shadow: var(--shadow-control);
    cursor: pointer;
    transition: all 0.15s;
}
.page-btn:hover:not(:disabled) { background: rgb(var(--color-surface-muted)); color: rgb(var(--color-text)); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Skeleton */
@keyframes pulse { 50% { opacity: 0.5; } }
.skeleton { background: rgb(var(--color-border-soft)); border-radius: var(--radius-control); animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
.skeleton-line { height: 2.5rem; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 1rem; height: 1rem; animation: spin 1s linear infinite; }

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
}
.modal-box {
    position: relative;
    width: 100%;
    max-width: 32rem;
    background: rgb(var(--color-surface));
    border-radius: var(--radius);
    box-shadow: var(--shadow-menu);
    padding: 1.25rem;
    max-height: 80vh;
    overflow-y: auto;
}
@media (min-width: 768px) { .modal-box { padding: 1.5rem; } }
.modal-close {
    background: none; border: none; cursor: pointer;
    color: rgb(var(--color-text-muted));
    font-size: 1.25rem; line-height: 1;
}
.modal-close:hover { color: rgb(var(--color-text-soft)); }

/* Alert */
.alert {
    border-radius: var(--radius-control);
    padding: 0.5rem 0.75rem;
    font-size: 13px;
}
.alert--warning { border: 1px solid rgb(255 175 0 / 0.35); background: rgb(255 175 0 / 0.08); color: #ffd166; }

/* Toast (created dynamically at runtime) */
.toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-control);
    box-shadow: var(--shadow-menu);
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 50;
    color: #fff;
    transition: opacity 0.3s;
}
.toast--ok { background: #39ff14; color: #050505; box-shadow: var(--glow-primary); }
.toast--error { background: #ff3e3e; }

/* Auth (login / signup / reset) */
.auth-page { display: flex; align-items: flex-start; justify-content: center; padding-top: 3rem; }
.auth-box { width: 100%; max-width: 380px; padding: 0 1rem; }
.auth-card { padding: 2rem; }
.auth-title {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: rgb(var(--color-text));
    text-shadow: 0 0 10px rgb(var(--color-primary-500) / 0.3);
}
.auth-alt { text-align: center; font-size: 13px; color: rgb(var(--color-text-soft)); padding-top: 0.25rem; }
/* Status/help paragraph on auth pages ("email sent", "invalid token"). */
.auth-hint { text-align: center; font-size: 13px; color: rgb(var(--color-text-soft)); }
@media (min-width: 768px) {
    .auth-page { align-items: center; padding-top: 0; min-height: 75vh; }
    .auth-box { padding: 0; }
}

/* Landing hero (public home, HTML/login.html). Two columns on desktop: pitch
   copy on the left, a floating product shot on the right; stacks on mobile.
   The animated grid + glows live in `.landing-hero-bg`, a separate absolutely
   positioned layer BEHIND the content — the fade mask must stay off the
   content layer, or the copy/stats/buttons themselves fade out toward the
   edges instead of just the backdrop. Kept pure-CSS on purpose (no external
   particle library) so the hero paints instantly and never depends on a
   third-party CDN being up. */
.landing-hero {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 3.5rem);
    min-height: calc(100svh - 3.5rem);
    overflow: hidden;
    background: radial-gradient(ellipse 120% 70% at 50% 0%, rgb(var(--color-primary-500) / 0.1), transparent 60%), rgb(var(--color-page));
}
.landing-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgb(var(--color-primary-500) / 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgb(var(--color-primary-500) / 0.16) 1px, transparent 1px);
    background-size: 42px 42px;
    background-position: center top;
    animation: landing-grid-drift 7s linear infinite;
    -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, black 40%, transparent 92%);
    mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, black 40%, transparent 92%);
}
@keyframes landing-grid-drift {
    from { background-position: 0 0; }
    to { background-position: 42px 42px; }
}
.landing-hero-bg::before,
.landing-hero-bg::after {
    content: '';
    position: absolute;
    width: 26rem;
    height: 26rem;
    border-radius: 50%;
    filter: blur(60px);
}
.landing-hero-bg::before { top: -6rem; right: -4rem; background: rgb(var(--color-primary-500) / 0.28); animation: landing-glow-drift 8s ease-in-out infinite; }
.landing-hero-bg::after { bottom: -8rem; left: -6rem; width: 22rem; height: 22rem; background: rgb(var(--color-primary-500) / 0.2); animation: landing-glow-drift 10s ease-in-out infinite reverse; }
@keyframes landing-glow-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(18px, -22px) scale(1.15); }
}
/* Slow diagonal light sweep across the whole hero — subtle, additive, never
   competes with the text (blend mode keeps it from washing out contrast). */
.landing-hero-beam {
    position: absolute;
    inset: -20% -10%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 40%, rgb(var(--color-primary-500) / 0.1) 50%, transparent 60%);
    mix-blend-mode: screen;
    animation: landing-beam-sweep 9s ease-in-out infinite;
}
@keyframes landing-beam-sweep {
    0%, 100% { transform: translateX(-25%); }
    50% { transform: translateX(25%); }
}
/* Re-establishes the .container's max-width/gutters inside the full-bleed
   hero, so the backdrop paints edge to edge while the copy/visual stay
   aligned with the rest of the page — and, crucially, sits in its own
   stacking context above the backdrop so nothing here ever fades. */
.landing-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 3rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 768px) { .landing-hero-inner { padding: 3rem 1.5rem; } }
@media (min-width: 1024px) {
    .landing-hero-inner { grid-template-columns: 1.1fr 1fr; gap: 3rem; padding: 3.5rem 2.5rem; }
}
.landing-copy { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
    .landing-hero-bg, .landing-hero-bg::before, .landing-hero-bg::after, .landing-hero-beam { animation: none; }
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    background: rgb(var(--color-primary-500) / 0.14);
    border: 1px solid rgb(var(--color-primary-500) / 0.55);
    box-shadow: 0 0 22px rgb(var(--color-primary-500) / 0.18), inset 0 0 14px rgb(var(--color-primary-500) / 0.08);
    color: rgb(var(--color-primary-500));
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgb(var(--color-primary-500) / 0.8);
}
.landing-badge svg { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }
.landing-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgb(var(--color-primary-500));
    box-shadow: 0 0 6px rgb(var(--color-primary-500)), 0 0 14px rgb(var(--color-primary-500) / 0.8);
    animation: landing-status-pulse 1.8s infinite;
    flex-shrink: 0;
}
@keyframes landing-status-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

.landing-title {
    margin: 1rem 0 0;
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: rgb(var(--color-text));
    text-shadow: 0 4px 0 rgb(0 0 0 / 0.9), 0 14px 35px rgb(0 0 0 / 0.7);
}
.landing-title__accent {
    color: rgb(var(--color-primary-500));
    animation: landing-neon-pulse 2s infinite alternate;
}
@keyframes landing-neon-pulse {
    from { text-shadow: 0 0 12px rgb(var(--color-primary-500) / 0.65), 0 0 30px rgb(var(--color-primary-500) / 0.3); }
    to   { text-shadow: 0 0 18px rgb(var(--color-primary-500) / 1), 0 0 45px rgb(var(--color-primary-500) / 0.75), 0 0 80px rgb(var(--color-primary-500) / 0.35); }
}

.landing-subtitle {
    margin-top: 1.25rem;
    max-width: 34rem;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.6;
    color: rgb(245 247 246);
    background: rgb(0 0 0 / 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 3px solid rgb(var(--color-primary-500));
    box-shadow: 0 15px 45px rgb(0 0 0 / 0.35), inset 0 0 30px rgb(255 255 255 / 0.02);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.25rem;
}
.landing-subtitle strong { color: rgb(var(--color-text)); }

.landing-stats { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.landing-stat {
    position: relative;
    flex: 1 1 170px;
    padding: 1.15rem 1.4rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(160deg, rgb(var(--color-primary-500) / 0.16), rgb(var(--color-surface) / 0.6));
    border: 1px solid rgb(var(--color-primary-500) / 0.35);
    box-shadow: 0 18px 40px rgb(0 0 0 / 0.4), inset 0 1px 0 rgb(255 255 255 / 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.landing-stat::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgb(var(--color-primary-500) / 0.9), transparent);
}
.landing-stat:hover {
    transform: translateY(-6px);
    border-color: rgb(var(--color-primary-500) / 0.75);
    box-shadow: 0 24px 50px rgb(0 0 0 / 0.45), 0 0 32px rgb(var(--color-primary-500) / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.1);
}
.landing-stat__value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: rgb(var(--color-primary-500));
    letter-spacing: -0.02em;
    text-shadow: 0 0 18px rgb(var(--color-primary-500) / 0.55);
}
.landing-stat__label {
    margin-top: 0.3rem;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgb(var(--color-text) / 0.85);
}

.landing-cta-row { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.landing-login-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9375rem;
    font-weight: 800;
    color: rgb(var(--color-text));
    text-decoration: none;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgb(var(--color-primary-500) / 0.4);
    background: rgb(var(--color-primary-500) / 0.07);
    transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.landing-login-link u { color: rgb(var(--color-primary-500)); text-decoration-color: rgb(var(--color-primary-500) / 0.7); text-underline-offset: 3px; }
.landing-login-link::after { content: '→'; color: rgb(var(--color-primary-500)); transition: transform 0.2s; }
.landing-login-link:hover {
    border-color: rgb(var(--color-primary-500) / 0.85);
    background: rgb(var(--color-primary-500) / 0.16);
    box-shadow: 0 0 24px rgb(var(--color-primary-500) / 0.25);
    transform: translateY(-2px);
}
.landing-login-link:hover::after { transform: translateX(3px); }

/* Floating product shot (right column of the hero). A halo + slow-spinning
   ring sit behind it, two spec chips float in front, and a diagonal shine
   sweeps across the frame — same "tech showcase" read as the rest of the
   hero, still pure CSS (see note above the hero rules). */
.landing-hero-visual { position: relative; z-index: 1; min-height: 22rem; display: flex; justify-content: center; align-items: center; perspective: 1600px; }
/* Pushed up and out toward the side on desktop so the shot reads as a
   floating showcase piece off to the edge, not dead-center — moves the whole
   group (halo, ring, chips, frame) together since it's a single transform. */
@media (min-width: 1024px) {
    .landing-hero-visual { transform: translate(6rem, -5.5rem); }
}
@media (min-width: 1280px) {
    .landing-hero-visual { transform: translate(8rem, -5.5rem); }
}

.landing-hero-halo {
    position: absolute;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(var(--color-primary-500) / 0.28) 0%, rgb(var(--color-primary-500) / 0.12) 35%, transparent 70%);
    filter: blur(14px);
    animation: landing-halo-pulse 4s ease-in-out infinite;
    z-index: 0;
}
@keyframes landing-halo-pulse {
    0%, 100% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.12); opacity: 1; }
}

.landing-hero-ring {
    position: absolute;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    border: 1px solid rgb(var(--color-primary-500) / 0.18);
    box-shadow: 0 0 40px rgb(var(--color-primary-500) / 0.08), inset 0 0 40px rgb(var(--color-primary-500) / 0.05);
    animation: landing-ring-rotate 20s linear infinite;
    z-index: 0;
}
.landing-hero-ring::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: rgb(var(--color-primary-500));
    box-shadow: 0 0 10px rgb(var(--color-primary-500)), 0 0 26px rgb(var(--color-primary-500));
}
@keyframes landing-ring-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (max-width: 1023px) { .landing-hero-ring { width: 20rem; height: 20rem; } .landing-hero-halo { width: 16rem; height: 16rem; } }
@media (max-width: 640px) { .landing-hero-ring { width: 15rem; height: 15rem; } .landing-hero-halo { width: 12rem; height: 12rem; } }

.landing-hero-chip {
    position: absolute;
    z-index: 3;
    padding: 0.65rem 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(var(--color-primary-500) / 0.3);
    background: linear-gradient(145deg, rgb(var(--color-surface) / 0.95), rgb(0 0 0 / 0.85));
    box-shadow: 0 16px 30px rgb(0 0 0 / 0.5), 0 0 22px rgb(var(--color-primary-500) / 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgb(var(--color-text));
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    animation: landing-chip-float 4s ease-in-out infinite;
}
.landing-hero-chip strong { display: block; margin-bottom: 2px; color: rgb(var(--color-primary-500)); font-size: 14px; }
.landing-hero-chip--1 { top: 10%; right: 2%; animation-delay: -0.8s; }
.landing-hero-chip--2 { bottom: 12%; left: 0; animation-delay: -2s; }
@keyframes landing-chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 640px) {
    .landing-hero-chip { padding: 0.5rem 0.6rem; font-size: 8px; }
    .landing-hero-chip strong { font-size: 12px; }
    .landing-hero-chip--1 { top: 4%; right: 0; }
    .landing-hero-chip--2 { bottom: 6%; left: 0; }
}

.landing-hero-frame {
    position: relative;
    z-index: 2;
    width: min(640px, 100%);
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgb(255 255 255 / 0.2);
    box-shadow: 0 50px 100px rgb(0 0 0 / 0.65), 0 0 45px rgb(var(--color-primary-500) / 0.55), 0 0 110px rgb(var(--color-primary-500) / 0.28);
    animation: landing-hero-float 5s infinite ease-in-out;
}
.landing-hero-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(100deg, transparent 35%, rgb(255 255 255 / 0.3) 50%, transparent 65%);
    transform: translateX(-130%);
    animation: landing-hero-shine 5s infinite;
    pointer-events: none;
}
.landing-hero-frame img {
    display: block;
    width: 100%;
    height: auto;
    filter: saturate(1.5) contrast(1.25) brightness(1.1);
}
@keyframes landing-hero-float {
    0%, 100% { transform: perspective(1000px) rotateY(-8deg) rotateX(4deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-4deg) rotateX(2deg) translateY(-18px); }
}
@keyframes landing-hero-shine {
    0%, 55% { transform: translateX(-130%); }
    75%, 100% { transform: translateX(130%); }
}
@media (max-width: 1023px) { .landing-hero-frame { width: min(500px, 85%); } }

/* login.html gives the sign-in card its own section below the hero;
   standalone auth pages (signup, reset-password...) keep the plain
   centered .auth-page. */
.auth-page--section { padding: 2.5rem 0 3.5rem; min-height: 0; }

/* Platform icon strip (below the hero). Simple Icons served pre-tinted neon
   green (/39FF14) so the row reads as one system instead of mixed brand colors. */
.landing-platforms { padding: 1.5rem 0 2.5rem; border-bottom: 1px solid rgb(var(--color-border-soft)); }
.landing-platforms__label {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(var(--color-text-muted));
    margin-bottom: 1.25rem;
}
.landing-platforms__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.25rem 2.75rem; }
.landing-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 11px;
    font-weight: 600;
    color: rgb(var(--color-text-muted));
}
.landing-platform img { width: 1.75rem; height: 1.75rem; opacity: 0.75; transition: all 0.15s; }
.landing-platform:hover img { opacity: 1; filter: drop-shadow(0 0 10px rgb(var(--color-primary-500) / 0.6)); transform: translateY(-2px); }

/* Per-platform bot catalog cards (brand-colored icons, unlike the neon-tinted
   compatibility strip above — this section sells the concrete offering). */
.platform-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.platform-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: rgb(var(--color-surface) / 0.6);
    border: 1px solid rgb(var(--color-border-soft));
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.platform-card:hover { border-color: rgb(var(--color-primary-500) / 0.4); box-shadow: 0 0 24px rgb(var(--color-primary-500) / 0.12); transform: translateY(-2px); }
.platform-card__header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.platform-card__header img { width: 2rem; height: 2rem; flex-shrink: 0; }
.platform-card__header h3 { margin: 0; font-size: 1.0625rem; font-weight: 700; color: rgb(var(--color-text)); }
.platform-card__list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; padding: 0; flex: 1; }
.platform-card__list li {
    font-size: 12px;
    font-weight: 600;
    color: rgb(var(--color-text-soft));
    background: rgb(var(--color-surface-muted) / 0.8);
    border: 1px solid rgb(var(--color-border-soft));
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.625rem;
}
.platform-card__cta {
    align-self: flex-start;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgb(var(--color-primary-500));
    text-decoration: none;
}
.platform-card__cta:hover { text-decoration: underline; }

/* Generic marketing section (features / steps / final CTA). */
.landing-section { padding: 3rem 0; }
.landing-section-head { max-width: 38rem; margin: 0 auto 2.5rem; text-align: center; }
.landing-section-head .landing-badge { margin-bottom: 0.875rem; }
.landing-section-title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.125rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: rgb(var(--color-text));
}
.landing-section-subtitle { margin-top: 0.75rem; color: rgb(var(--color-text-soft)); line-height: 1.6; }

/* Feature cards */
.landing-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.landing-feature {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: rgb(var(--color-surface) / 0.6);
    border: 1px solid rgb(var(--color-border-soft));
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.landing-feature:hover { border-color: rgb(var(--color-primary-500) / 0.4); box-shadow: 0 0 24px rgb(var(--color-primary-500) / 0.12); transform: translateY(-2px); }
.landing-feature-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-control);
    background: rgb(var(--color-primary-500) / 0.1);
    color: rgb(var(--color-primary-500));
    margin-bottom: 1rem;
}
.landing-feature-icon svg { width: 1.375rem; height: 1.375rem; }
.landing-feature-title { margin: 0 0 0.375rem; font-size: 1rem; font-weight: 700; color: rgb(var(--color-text)); }
.landing-feature-text { margin: 0; font-size: 0.875rem; line-height: 1.6; color: rgb(var(--color-text-soft)); }

/* Numbered steps ("how it works") */
.landing-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.landing-step {
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: var(--radius);
    background: rgb(var(--color-surface) / 0.45);
    border: 1px solid rgb(var(--color-border-soft));
}
.landing-step-number {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgb(var(--color-primary-500));
    color: rgb(var(--color-primary-fg));
    font-weight: 800;
    font-size: 0.9375rem;
    box-shadow: var(--glow-primary);
    margin-bottom: 1rem;
}
.landing-step-title { margin: 0 0 0.375rem; font-size: 1rem; font-weight: 700; color: rgb(var(--color-text)); }
.landing-step-text { margin: 0; font-size: 0.875rem; line-height: 1.6; color: rgb(var(--color-text-soft)); }

/* Final CTA banner */
.landing-cta-banner {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgb(var(--color-primary-50)), rgb(var(--color-surface)) 60%);
    border: 1px solid rgb(var(--color-primary-500) / 0.3);
}
.landing-cta-banner::before {
    content: '';
    position: absolute;
    inset: auto auto -50% 50%;
    transform: translateX(-50%);
    width: 30rem;
    height: 20rem;
    background: radial-gradient(ellipse, rgb(var(--color-primary-500) / 0.18), transparent 70%);
    pointer-events: none;
}
.landing-cta-banner h2 { position: relative; margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: rgb(var(--color-text)); }
.landing-cta-banner p { position: relative; margin: 0.75rem auto 0; max-width: 32rem; color: rgb(var(--color-text-soft)); }
.landing-cta-banner .btn { position: relative; margin-top: 1.75rem; }

/* Card section title (h2 inside .card--pad). Keeps the browser's default top
   margin — collapses against the card padding exactly like the old inline style. */
.card-title { font-size: 13px; font-weight: 600; color: rgb(var(--color-text)); margin-bottom: 1rem; }

/* Responsive form grid (account page et al). --wide = the profile variant. */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.form-grid--wide { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* Submit row spanning the whole grid. */
.form-actions { grid-column: 1 / -1; padding-top: 0.25rem; }

/* Inline error message under a form control. */
.error-text { font-size: 12px; color: #ff5e5e; }

/* Highlighted amount box (addfunds modals: "amount to pay"). */
.amount-box {
    text-align: center;
    border-radius: var(--radius-control);
    background: rgb(var(--color-primary-50));
    border: 1px solid rgb(var(--color-primary-200));
    padding: 0.625rem 0.75rem;
    margin-bottom: 1rem;
}
.amount-box--copy { cursor: pointer; }
.amount-box-label {
    font-size: 11px;
    font-weight: 500;
    color: rgb(var(--color-primary-700));
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.125rem;
}
.amount-box-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgb(var(--color-primary-900));
    text-shadow: 0 0 8px rgb(var(--color-primary-500) / 0.5);
}

/* Tiny uppercase section label (Endpoint / Request / Response, modal kickers). */
.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgb(var(--color-text-soft));
}

/* Inline code chip (API docs). Pair with .mono. */
.code-chip {
    border-radius: var(--radius-control);
    background: rgb(var(--color-surface-muted));
    padding: 0.125rem 0.375rem;
    font-size: 13px;
    color: rgb(var(--color-text));
}

/* Code block (API docs request/response). --dark = the request variant. */
.code-block {
    background: rgb(var(--color-surface-muted));
    color: rgb(var(--color-text-soft));
    padding: 0.75rem 1rem;
    border-radius: var(--radius-control);
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    line-height: 1.625;
    box-shadow: 0 0 0 1px rgb(var(--color-border-soft));
}
.code-block--dark { background: #0f172a; color: #e2e8f0; box-shadow: none; }

/* Utilities */
.stack > * + * { margin-top: 1rem; }      /* column with uniform spacing */
.form-stack > * + * { margin-top: 1rem; } /* semantic alias for forms */
.stack-sm > * + * { margin-top: 0.5rem; }
.stack-lg > * + * { margin-top: 1.5rem; }
/* Label + link row (e.g. "Password" + "forgot my password"). */
.field-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.375rem; }
.row { display: flex; align-items: center; gap: 0.5rem; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.grow { flex: 1; }
.muted { color: rgb(var(--color-text-soft)); }
.strong { font-weight: 600; color: rgb(var(--color-text)); }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
/* THE id style: every entity/reference id in tables and lists renders the same
   way — small mono, tabular digits, no wrap. Pair with `muted` (plain id) or
   `link` (clickable id); color comes from that pairing. */
.cell-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.75rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
/* Dimmest text tier (placeholder dashes, de-emphasized hints). */
.dim { color: rgb(var(--color-text-muted)); }
.nowrap { white-space: nowrap; }
/* Type-size helpers (match the sizes the theme already uses everywhere). */
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 12px; }
.text-2xs { font-size: 11px; }
/* Flex row that wraps (button + input pairs, etc.). */
.row-wrap { display: flex; gap: 0.75rem; flex-wrap: wrap; }
