/* =====================================================================
   TRATOK CORPORATES · design system (October 2026)

   One stylesheet for the public site and the sign-in pages; the app adds its own layer on top.
   It follows tratok.net: Inter for text, Space Grotesk for display, a midnight ground with gold,
   coral and teal. Gold marks action and brand; colour elsewhere always carries a meaning.

   Themes: dark is the brand default and what first-time visitors see (the head snippet in
   app_includes/corp_head.php stamps html[data-theme="dark"] before first paint). Light is an explicit
   choice; "Auto" removes the stamp so the media query below follows the device.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------------- */
:root {
    color-scheme: dark;

    --c-bg:        #0a101b;
    --c-bg-2:      #0d1421;
    --c-surface:   #111a2b;
    --c-surface-2: #16213a;
    --c-surface-3: #1d2a45;
    --c-line:      rgba(160, 178, 214, 0.12);
    --c-line-2:    rgba(160, 178, 214, 0.22);
    --c-input:     #0d1524;

    --c-text:   #eef2f8;
    --c-text-2: #b8c2d6;
    --c-text-3: #8b98b1;

    --c-gold:      #e8bd5c;
    --c-gold-fill: #e3b552;
    --c-gold-ink:  #1a1206;
    --c-gold-soft: rgba(232, 189, 92, 0.12);
    --c-gold-line: rgba(232, 189, 92, 0.32);
    --c-coral:     #f07558;
    --c-teal:      #45c4b5;
    --c-violet:    #a193ff;
    --c-sky:       #67aef6;

    --c-ok:   #45c4b5; --c-ok-soft:   rgba(69, 196, 181, 0.14);
    --c-warn: #f2ae45; --c-warn-soft: rgba(242, 174, 69, 0.14);
    --c-bad:  #f2695d; --c-bad-soft:  rgba(242, 105, 93, 0.14);
    --c-info: #67aef6; --c-info-soft: rgba(103, 174, 246, 0.14);

    --glow-gold:   rgba(232, 189, 92, 0.16);
    --glow-coral:  rgba(240, 117, 88, 0.12);
    --glow-violet: rgba(161, 147, 255, 0.10);
    --grad-accent: linear-gradient(100deg, #f4cf74 0%, #f09a5a 52%, #f07558 100%);
    --grid-line:   rgba(160, 178, 214, 0.05);

    --sh-1: 0 1px 2px rgba(0, 0, 0, 0.30);
    --sh-2: 0 14px 34px -16px rgba(0, 0, 0, 0.60);
    --sh-3: 0 36px 90px -30px rgba(0, 0, 0, 0.75);

    --f-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --f-text:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
    --f-mono:    ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Menlo, Consolas, monospace;

    --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 68px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Light, chosen by the device (no explicit dark pick) */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        color-scheme: light;
        --c-bg: #f4f6f9; --c-bg-2: #eceff5; --c-surface: #ffffff; --c-surface-2: #f6f8fb; --c-surface-3: #edf1f7;
        --c-line: rgba(14, 25, 48, 0.10); --c-line-2: rgba(14, 25, 48, 0.18); --c-input: #ffffff;
        --c-text: #0c1424; --c-text-2: #39455e; --c-text-3: #5b6781;
        --c-gold: #8a6210; --c-gold-fill: #e0b04c; --c-gold-ink: #1a1206;
        --c-gold-soft: rgba(196, 146, 40, 0.12); --c-gold-line: rgba(160, 116, 22, 0.34);
        --c-coral: #c24a2e; --c-teal: #0d8578; --c-violet: #5f4ed6; --c-sky: #2a72c8;
        --c-ok: #0d8578; --c-ok-soft: rgba(13, 133, 120, 0.10);
        --c-warn: #9a5c06; --c-warn-soft: rgba(214, 140, 20, 0.13);
        --c-bad: #c2372b; --c-bad-soft: rgba(194, 55, 43, 0.09);
        --c-info: #2a72c8; --c-info-soft: rgba(42, 114, 200, 0.10);
        --glow-gold: rgba(224, 176, 76, 0.22); --glow-coral: rgba(240, 117, 88, 0.12); --glow-violet: rgba(120, 104, 230, 0.10);
        --grad-accent: linear-gradient(100deg, #a8720f 0%, #c75f27 55%, #c24a2e 100%);
        --grid-line: rgba(14, 25, 48, 0.045);
        --sh-1: 0 1px 2px rgba(14, 25, 48, 0.08);
        --sh-2: 0 14px 34px -18px rgba(14, 25, 48, 0.22);
        --sh-3: 0 36px 80px -32px rgba(14, 25, 48, 0.30);
    }
}
/* Light, chosen by the visitor */
:root[data-theme="light"] {
    color-scheme: light;
    --c-bg: #f4f6f9; --c-bg-2: #eceff5; --c-surface: #ffffff; --c-surface-2: #f6f8fb; --c-surface-3: #edf1f7;
    --c-line: rgba(14, 25, 48, 0.10); --c-line-2: rgba(14, 25, 48, 0.18); --c-input: #ffffff;
    --c-text: #0c1424; --c-text-2: #39455e; --c-text-3: #5b6781;
    --c-gold: #8a6210; --c-gold-fill: #e0b04c; --c-gold-ink: #1a1206;
    --c-gold-soft: rgba(196, 146, 40, 0.12); --c-gold-line: rgba(160, 116, 22, 0.34);
    --c-coral: #c24a2e; --c-teal: #0d8578; --c-violet: #5f4ed6; --c-sky: #2a72c8;
    --c-ok: #0d8578; --c-ok-soft: rgba(13, 133, 120, 0.10);
    --c-warn: #9a5c06; --c-warn-soft: rgba(214, 140, 20, 0.13);
    --c-bad: #c2372b; --c-bad-soft: rgba(194, 55, 43, 0.09);
    --c-info: #2a72c8; --c-info-soft: rgba(42, 114, 200, 0.10);
    --glow-gold: rgba(224, 176, 76, 0.22); --glow-coral: rgba(240, 117, 88, 0.12); --glow-violet: rgba(120, 104, 230, 0.10);
    --grad-accent: linear-gradient(100deg, #a8720f 0%, #c75f27 55%, #c24a2e 100%);
    --grid-line: rgba(14, 25, 48, 0.045);
    --sh-1: 0 1px 2px rgba(14, 25, 48, 0.08);
    --sh-2: 0 14px 34px -18px rgba(14, 25, 48, 0.22);
    --sh-3: 0 36px 80px -32px rgba(14, 25, 48, 0.30);
}
/* Dark, chosen by the visitor (same values as the default, restated so the pick wins over a light device) */
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------------------------------------------------------------------
   2. Base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--f-text);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
html[dir="rtl"] body { font-family: 'Segoe UI', Tahoma, 'Noto Sans Arabic', var(--f-text); }
body.menu-locked, body.sheet-open { overflow: hidden; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--c-text); text-wrap: balance; }
p { margin: 0; }
a { color: var(--c-gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; }
::selection { background: var(--c-gold-soft); color: var(--c-text); }
:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; border-radius: 6px; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.i18n-br { display: inline; }
@media (max-width: 720px) { .i18n-br { display: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------------
   3. Layout helpers
   --------------------------------------------------------------------- */
.cx-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.cx-section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.cx-section--band { background: var(--c-bg-2); border-block: 1px solid var(--c-line); }
.cx-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.cx-head--center { margin-inline: auto; text-align: center; }
.cx-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--c-gold); margin-bottom: 14px;
}
.cx-eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.8; }
.cx-head--center .cx-eyebrow::before { display: none; }
.cx-h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; }
.cx-lede { margin-top: 14px; font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--c-text-2); max-width: 62ch; }
.cx-head--center .cx-lede { margin-inline: auto; }
.cx-grad { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------------------------------------------------------------------
   4. Buttons (new .cx-btn family; legacy .btn names kept for the sign-in pages)
   --------------------------------------------------------------------- */
.cx-btn, .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; padding: 10px 20px;
    border-radius: var(--r-pill); border: 1px solid transparent;
    font-family: var(--f-text); font-size: 0.95rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.005em;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.cx-btn:hover, .btn:hover { text-decoration: none; }
.cx-btn:active, .btn:active { transform: translateY(1px); }
.cx-btn--lg, .btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.cx-btn--sm, .btn-sm { min-height: 36px; padding: 7px 14px; font-size: 0.85rem; }
.btn-full, .cx-btn--full { width: 100%; }
.cx-btn--gold, .btn-gold, .btn-primary {
    background: var(--c-gold-fill); color: var(--c-gold-ink);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset, 0 10px 24px -12px var(--glow-gold);
}
.cx-btn--gold:hover, .btn-gold:hover, .btn-primary:hover { filter: brightness(1.05); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 14px 30px -12px var(--glow-gold); }
.cx-btn--gold i, .btn-gold i, .btn-gold span, .btn-primary i, .btn-primary span { color: var(--c-gold-ink); }
.cx-btn--ghost, .btn-outline, .btn-ghost, .btn-secondary {
    background: transparent; color: var(--c-text); border-color: var(--c-line-2);
}
.cx-btn--ghost:hover, .btn-outline:hover, .btn-ghost:hover, .btn-secondary:hover { border-color: var(--c-text-3); background: var(--c-surface-2); }
.btn-ghost { border-color: transparent; color: var(--c-text-2); }
.cx-btn i, .btn i { font-size: 0.95em; }

/* ---------------------------------------------------------------------
   5. Header
   --------------------------------------------------------------------- */
.cx-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), backdrop-filter 0.25s var(--ease);
}
.cx-header.scrolled {
    background: color-mix(in srgb, var(--c-bg) 82%, transparent);
    border-bottom-color: var(--c-line);
    -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
}
.cx-header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.cx-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--c-text); text-decoration: none; flex-shrink: 0; }
.cx-brand:hover { text-decoration: none; }
.cx-brand img { width: 34px; height: 34px; border-radius: 50%; }
.cx-brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.cx-brand-name strong { font-family: var(--f-display); font-size: 1.06rem; font-weight: 700; letter-spacing: -0.02em; }
.cx-brand-name span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-gold); }
.cx-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 18px; }
.cx-nav a {
    padding: 8px 12px; border-radius: var(--r-pill);
    font-size: 0.92rem; font-weight: 500; color: var(--c-text-2); text-decoration: none;
    transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.cx-nav a:hover { color: var(--c-text); background: var(--c-surface-2); }
.cx-header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.cx-signin { font-size: 0.92rem; font-weight: 600; color: var(--c-text); padding: 8px 10px; }
.cx-icon-btn {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--c-line-2); background: transparent; color: var(--c-text-2);
    cursor: pointer; transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.cx-icon-btn:hover { color: var(--c-text); border-color: var(--c-text-3); background: var(--c-surface-2); }
.cx-theme-btn .fa-sun { display: none; }
:root[data-theme="light"] .cx-theme-btn .fa-sun { display: inline-block; }
:root[data-theme="light"] .cx-theme-btn .fa-moon { display: none; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .cx-theme-btn .fa-sun { display: inline-block; }
    :root:not([data-theme="dark"]) .cx-theme-btn .fa-moon { display: none; }
}
.cx-menu-btn { display: none; }
.cx-menu-btn .bars, .lp-nav-mobile-toggle .bars { width: 18px; height: 14px; position: relative; display: block; }
.cx-menu-btn .bars::before, .cx-menu-btn .bars::after, .cx-menu-btn .bars span {
    content: ''; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.cx-menu-btn .bars::before { top: 0; }
.cx-menu-btn .bars span { top: 6px; display: block; }
.cx-menu-btn .bars::after { bottom: 0; }
.cx-menu-btn.open .bars::before { transform: translateY(6px) rotate(45deg); }
.cx-menu-btn.open .bars::after { transform: translateY(-6px) rotate(-45deg); }
.cx-menu-btn.open .bars span { opacity: 0; }

@media (max-width: 1040px) {
    .cx-nav { display: none; }
}
@media (max-width: 760px) {
    .cx-header-actions .cx-signin, .cx-header-actions .cx-btn--gold, .cx-header-actions .lang-switcher { display: none; }
    .cx-menu-btn { display: inline-flex; }
}

/* ---------------------------------------------------------------------
   6. Language switcher (markup from js/i18n.js) and its phone sheet
   --------------------------------------------------------------------- */
.lang-switcher { position: relative; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px;
    border-radius: var(--r-pill); border: 1px solid var(--c-line-2); background: transparent;
    color: var(--c-text-2); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em; cursor: pointer;
    transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.lang-btn:hover { color: var(--c-text); border-color: var(--c-text-3); background: var(--c-surface-2); }
.lang-btn svg { opacity: 0.7; }
.lang-menu {
    position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 300;
    min-width: 220px; max-height: min(420px, 70vh); overflow-y: auto; padding: 6px;
    background: var(--c-surface); border: 1px solid var(--c-line-2); border-radius: var(--r-lg); box-shadow: var(--sh-3);
    display: none;
}
/* Closed menus take no space: an invisible but present 420px box used to extend the page below the footer. */
.lang-menu.open { display: block; animation: cxMenuIn 0.16s var(--ease); }
@keyframes cxMenuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lang-menu.up { top: auto; bottom: calc(100% + 8px); }
.lang-menu.flush-left { inset-inline-end: auto; inset-inline-start: 0; }
.lang-menu.flush-right { inset-inline-end: 0; inset-inline-start: auto; }
.lang-option, .lang-sheet-option {
    width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px;
    border: 0; border-radius: var(--r-sm); background: transparent; color: var(--c-text-2);
    font-size: 0.92rem; text-align: start; cursor: pointer;
}
.lang-option:hover, .lang-sheet-option:hover { background: var(--c-surface-2); color: var(--c-text); }
.lang-option.active, .lang-sheet-option.active { background: var(--c-gold-soft); color: var(--c-text); }
.lang-code { min-width: 28px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--c-text-3); }
.lang-option.active .lang-code, .lang-sheet-option.active .lang-code { color: var(--c-gold); }
.lang-sheet-option .check { margin-inline-start: auto; color: var(--c-gold); opacity: 0; }
.lang-sheet-option.active .check { opacity: 1; }
.lang-sheet-backdrop { position: fixed; inset: 0; z-index: 1100; background: rgba(5, 9, 16, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease); }
.lang-sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.lang-sheet {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 1101; max-height: 82vh; display: flex; flex-direction: column;
    background: var(--c-surface); border-top: 1px solid var(--c-line-2); border-radius: 22px 22px 0 0;
    transform: translateY(100%); transition: transform 0.32s var(--ease);
    padding-bottom: env(safe-area-inset-bottom);
}
.lang-sheet.open { transform: none; }
.lang-sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: var(--c-line-2); margin: 10px auto 4px; }
.lang-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 10px; }
.lang-sheet-head h3 { font-size: 1.05rem; }
.lang-sheet-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--c-line-2); background: transparent; color: var(--c-text-2); cursor: pointer; }
.lang-sheet-body { overflow-y: auto; padding: 4px 10px 16px; }

/* ---------------------------------------------------------------------
   7. Drawer (phones and small tablets), shared with the sign-in pages
   --------------------------------------------------------------------- */
.lp-mobile-backdrop { position: fixed; inset: 0; z-index: 999; background: rgba(5, 9, 16, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.28s var(--ease); }
.lp-mobile-backdrop.open { opacity: 1; pointer-events: auto; }
.lp-mobile-drawer {
    position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 1000;
    width: min(400px, 100vw); height: 100dvh; display: flex; flex-direction: column;
    background: var(--c-surface); border-inline-start: 1px solid var(--c-line-2);
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.36s var(--ease), visibility 0s linear 0.36s;
    padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
}
html[dir="rtl"] .lp-mobile-drawer { transform: translateX(-100%); }
.lp-mobile-drawer.open { transform: none; visibility: visible; transition: transform 0.36s var(--ease), visibility 0s; box-shadow: var(--sh-3); }
.lp-mobile-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--c-line); }
.lp-mobile-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-line-2); background: transparent; color: var(--c-text-2); cursor: pointer; }
.lp-mobile-body { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.lp-mobile-link { display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: var(--r-md); color: var(--c-text); font-weight: 500; text-decoration: none; }
.lp-mobile-link:hover { background: var(--c-surface-2); text-decoration: none; }
.lp-mobile-link i { width: 20px; text-align: center; color: var(--c-text-3); }
.lp-mobile-cta { padding: 12px 18px; display: grid; gap: 10px; }
.lp-mobile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--c-line); color: var(--c-text-3); font-size: 0.8rem; }

/* ---------------------------------------------------------------------
   8. Hero
   --------------------------------------------------------------------- */
.cx-hero { position: relative; isolation: isolate; padding-block: clamp(40px, 6vw, 84px) clamp(56px, 8vw, 104px); overflow: hidden; }
.cx-hero::before {
    content: ''; position: absolute; inset: -20% -10% 0; z-index: -2;
    background:
        radial-gradient(40% 46% at 18% 18%, var(--glow-gold), transparent 70%),
        radial-gradient(36% 40% at 86% 30%, var(--glow-coral), transparent 70%),
        radial-gradient(40% 44% at 70% 92%, var(--glow-violet), transparent 72%);
}
.cx-hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.cx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cx-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px;
    border-radius: var(--r-pill); border: 1px solid var(--c-line-2); background: color-mix(in srgb, var(--c-surface) 70%, transparent);
    font-size: 0.82rem; font-weight: 600; color: var(--c-text-2);
}
.cx-pill-dot { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--c-gold-soft); color: var(--c-gold); font-size: 0.7rem; }
.cx-hero h1 { margin-top: 20px; font-size: clamp(2.5rem, 5.6vw, 4.35rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; }
.cx-hero h1 .cx-grad { display: inline; }
.cx-hero-sub { margin-top: 22px; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--c-text-2); max-width: 54ch; }
.cx-hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.cx-hero-notes { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; color: var(--c-text-3); font-size: 0.88rem; }
.cx-hero-notes li { display: inline-flex; align-items: center; gap: 8px; }
.cx-hero-notes i { color: var(--c-ok); font-size: 0.8rem; }

/* Example dashboard (an illustration of the product, labelled as an example) */
.cx-preview-wrap { position: relative; }
.cx-preview {
    position: relative; margin: 0;
    background: var(--c-surface); border: 1px solid var(--c-line-2); border-radius: var(--r-xl);
    box-shadow: var(--sh-3); overflow: hidden;
}
.cx-preview::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--c-gold-line), transparent); }
.cx-pv-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--c-line); }
.cx-pv-co { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--c-gold-soft); color: var(--c-gold); font-family: var(--f-display); font-weight: 700; font-size: 0.82rem; }
.cx-pv-name { font-weight: 600; font-size: 0.95rem; }
.cx-pv-tag { margin-inline-start: auto; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-3); border: 1px dashed var(--c-line-2); border-radius: var(--r-pill); padding: 4px 10px; }
.cx-pv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--c-line); }
.cx-pv-stat { padding: 14px 18px; }
.cx-pv-stat + .cx-pv-stat { border-inline-start: 1px solid var(--c-line); }
.cx-pv-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-3); }
.cx-pv-value { margin-top: 4px; font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cx-pv-block { padding: 14px 18px 6px; }
.cx-pv-block + .cx-pv-block { border-top: 1px solid var(--c-line); }
.cx-pv-h { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--c-text-2); margin-bottom: 8px; }
.cx-pv-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--c-warn-soft); color: var(--c-warn); font-size: 0.72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.cx-pv-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; }
.cx-pv-row + .cx-pv-row { border-top: 1px dashed var(--c-line); }
.cx-av { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.cx-av--a { background: linear-gradient(135deg, #7d6cf0, #5b8def); }
.cx-av--b { background: linear-gradient(135deg, #2bb3a3, #3b8fd0); }
.cx-av--c { background: linear-gradient(135deg, #f0965a, #e2623f); }
.cx-pv-who { min-width: 0; }
.cx-pv-who > strong { display: block; font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-pv-who > span { display: block; font-size: 0.8rem; color: var(--c-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-pv-amt { text-align: end; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.cx-pv-amt b { font-family: var(--f-display); font-size: 0.98rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.cx-chip--ok { background: var(--c-ok-soft); color: var(--c-ok); }
.cx-chip--warn { background: var(--c-warn-soft); color: var(--c-warn); }
.cx-chip--info { background: var(--c-info-soft); color: var(--c-info); }
.cx-chip--muted { background: var(--c-surface-3); color: var(--c-text-2); }
.cx-chip--gold { background: var(--c-gold-soft); color: var(--c-gold); }
.cx-pv-actions { display: flex; gap: 6px; margin-top: 2px; }
.cx-mini-btn { padding: 4px 10px; border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 700; border: 1px solid var(--c-line-2); color: var(--c-text-2); background: transparent; }
.cx-mini-btn--gold { background: var(--c-gold-fill); border-color: transparent; color: var(--c-gold-ink); }
.cx-pv-next { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 0 12px; }
.cx-preview-wrap--toast .cx-pv-block:last-child { padding-bottom: 34px; }
.cx-pv-plane { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--c-info-soft); color: var(--c-info); }
.cx-toast {
    position: absolute; inset-inline-start: -28px; bottom: -22px; z-index: 2;
    display: flex; align-items: center; gap: 12px; max-width: 300px; padding: 12px 16px 12px 12px;
    background: var(--c-surface-2); border: 1px solid var(--c-line-2); border-radius: var(--r-lg); box-shadow: var(--sh-2);
}
.cx-toast-icon { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--c-gold-soft); color: var(--c-gold); }
.cx-toast-text strong { display: block; font-size: 0.86rem; font-weight: 600; }
.cx-toast-text span { display: block; font-size: 0.78rem; color: var(--c-text-3); }

@media (max-width: 1040px) {
    .cx-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .cx-hero-copy { max-width: 680px; }
    .cx-preview-wrap { max-width: 620px; }
}
@media (max-width: 560px) {
    .cx-hero-cta .cx-btn { width: 100%; }
    .cx-pv-stat { padding: 12px 12px; }
    .cx-pv-value { font-size: 1.15rem; }
    .cx-pv-block { padding-inline: 14px; }
    .cx-pv-top { padding-inline: 14px; }
    .cx-toast { position: relative; inset: auto; margin: 14px 0 0; max-width: none; }
    .cx-pv-amt .cx-chip { display: none; }
}

/* ---------------------------------------------------------------------
   9. Proof strip (live figures from the Tratok network)
   --------------------------------------------------------------------- */
.cx-proof { border-block: 1px solid var(--c-line); background: var(--c-bg-2); }
.cx-proof-inner { display: grid; grid-template-columns: auto repeat(4, minmax(0, 1fr)); align-items: center; gap: 12px 32px; padding-block: 22px; }
.cx-proof-label { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 600; color: var(--c-text-3); max-width: 180px; line-height: 1.35; }
.cx-live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--c-ok); flex-shrink: 0; }
.cx-live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--c-ok); opacity: 0.5; animation: cxPulse 2.4s var(--ease) infinite; }
@keyframes cxPulse { from { transform: scale(0.6); opacity: 0.7; } to { transform: scale(1.7); opacity: 0; } }
.cx-proof-item { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.cx-proof-item b { font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cx-proof-item span { color: var(--c-text-2); font-size: 0.9rem; }
@media (max-width: 900px) {
    .cx-proof-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cx-proof-label { grid-column: 1 / -1; max-width: none; }
}

/* ---------------------------------------------------------------------
   10. How it works (a real sequence, so it is numbered)
   --------------------------------------------------------------------- */
.cx-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.cx-step { position: relative; padding: 24px 22px 26px; border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); counter-increment: step; }
.cx-step::before {
    content: counter(step, decimal-leading-zero);
    display: block; margin-bottom: 18px;
    font-family: var(--f-display); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; color: var(--c-gold);
}
.cx-step::after { content: ''; position: absolute; top: 34px; inset-inline-start: 56px; inset-inline-end: 22px; height: 1px; background: linear-gradient(90deg, var(--c-gold-line), transparent); }
html[dir="rtl"] .cx-step::after { background: linear-gradient(270deg, var(--c-gold-line), transparent); }
.cx-step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.cx-step p { color: var(--c-text-2); font-size: 0.94rem; }
@media (max-width: 960px) { .cx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cx-steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------------
   11. Product bento
   --------------------------------------------------------------------- */
.cx-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cx-tile {
    position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
    padding: 26px; border-radius: var(--r-xl); background: var(--c-surface); border: 1px solid var(--c-line);
    overflow: hidden;
}
.cx-tile--wide { grid-column: span 2; }
.cx-tile--full { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 24px; }
.cx-tile-icon { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.cx-tile-icon--gold { background: var(--c-gold-soft); color: var(--c-gold); }
.cx-tile-icon--teal { background: var(--c-ok-soft); color: var(--c-teal); }
.cx-tile-icon--sky { background: var(--c-info-soft); color: var(--c-sky); }
.cx-tile-icon--coral { background: var(--glow-coral); color: var(--c-coral); }
.cx-tile-icon--violet { background: var(--glow-violet); color: var(--c-violet); }
.cx-tile h3 { font-size: 1.22rem; }
.cx-tile p { color: var(--c-text-2); font-size: 0.95rem; }
.cx-tile-visual { margin-top: auto; padding-top: 8px; }

.cx-rule { border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-surface-2); padding: 14px 16px; }
.cx-rule-top { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--c-text-3); margin-bottom: 10px; }
.cx-rule-top b { color: var(--c-text); font-family: var(--f-display); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.cx-rule-bar { position: relative; height: 6px; border-radius: 6px; background: var(--c-surface-3); }
.cx-rule-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 62%; border-radius: 6px; background: linear-gradient(90deg, var(--c-ok), var(--c-gold-fill)); }
.cx-rule-bar em { position: absolute; top: -5px; inset-inline-start: 62%; width: 2px; height: 16px; border-radius: 2px; background: var(--c-text); }
.cx-rule-rows { margin-top: 12px; display: grid; gap: 8px; }
.cx-rule-row { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; }
.cx-rule-row span:first-child { color: var(--c-text-2); }
.cx-rule-row b { margin-inline-start: auto; font-variant-numeric: tabular-nums; font-weight: 600; }

.cx-chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-chipset .cx-chip { padding: 7px 12px; font-size: 0.8rem; background: var(--c-surface-2); border: 1px solid var(--c-line); color: var(--c-text-2); }
.cx-chipset .cx-chip i { color: var(--c-gold); }
.cx-soon { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--c-text-3); }

.cx-receipt { border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-surface-2); padding: 12px 14px; display: grid; gap: 8px; }
.cx-receipt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.88rem; }
.cx-receipt-row b { font-variant-numeric: tabular-nums; }
.cx-hash { font-family: var(--f-mono); font-size: 0.74rem; color: var(--c-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cx-bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 8px; height: 92px; padding: 0 2px; }
.cx-bars span { display: block; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--c-teal), color-mix(in srgb, var(--c-teal) 35%, transparent)); }

.cx-purse { border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-surface-2); padding: 14px 16px; }
.cx-purse-bal { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cx-purse-bal small { font-size: 0.8rem; color: var(--c-gold); font-weight: 700; margin-inline-start: 6px; letter-spacing: 0.04em; }
.cx-meter { margin-top: 10px; height: 6px; border-radius: 6px; background: var(--c-surface-3); overflow: hidden; }
.cx-meter i { display: block; height: 100%; width: 38%; border-radius: 6px; background: var(--c-gold-fill); }

.cx-files { display: flex; flex-wrap: wrap; gap: 10px; }
.cx-file { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-md); background: var(--c-surface-2); border: 1px solid var(--c-line); font-family: var(--f-mono); font-size: 0.8rem; color: var(--c-text-2); }
.cx-file i { color: var(--c-teal); font-size: 0.9rem; }

@media (max-width: 960px) {
    .cx-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cx-tile--wide, .cx-tile--full { grid-column: 1 / -1; }
    .cx-tile--full { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
    .cx-bento { grid-template-columns: minmax(0, 1fr); }
    .cx-tile { padding: 22px; }
}

/* ---------------------------------------------------------------------
   12. Perks
   --------------------------------------------------------------------- */
.cx-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cx-perk { padding: 28px 26px; border-radius: var(--r-xl); background: var(--c-surface); border: 1px solid var(--c-line); position: relative; overflow: hidden; }
.cx-perk::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad-accent); opacity: 0.75; }
.cx-perk-icon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--c-gold-soft); color: var(--c-gold); font-size: 1.1rem; margin-bottom: 18px; }
.cx-perk h3 { font-size: 1.18rem; margin-bottom: 8px; }
.cx-perk p { color: var(--c-text-2); font-size: 0.95rem; }
@media (max-width: 900px) { .cx-perks { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------------
   13. Pricing
   --------------------------------------------------------------------- */
.cx-price { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: center;
    padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--c-surface); border: 1px solid var(--c-line-2); box-shadow: var(--sh-2); position: relative; overflow: hidden; }
.cx-price::before { content: ''; position: absolute; inset: auto -20% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-gold), transparent); pointer-events: none; }
.cx-price-amount { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.cx-price-amount b { font-family: var(--f-display); font-size: clamp(3.2rem, 7vw, 4.6rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.cx-price-amount span { color: var(--c-text-3); font-size: 0.95rem; }
.cx-price-copy .cx-lede { max-width: 48ch; }
.cx-price-copy .cx-btn { margin-top: 26px; }
.cx-price-note { margin-top: 16px; color: var(--c-text-3); font-size: 0.88rem; }
.cx-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.cx-checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.98rem; color: var(--c-text); }
.cx-checks i { margin-top: 3px; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--c-ok-soft); color: var(--c-ok); font-size: 0.7rem; }
@media (max-width: 860px) { .cx-price { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------------
   14. FAQ (each item also feeds the FAQPage structured data)
   --------------------------------------------------------------------- */
.cx-faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.cx-faq details { border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); transition: border-color 0.2s var(--ease); }
.cx-faq details[open] { border-color: var(--c-line-2); }
.cx-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: var(--r-lg); }
.cx-faq summary::-webkit-details-marker { display: none; }
.cx-faq summary h3 { font-family: var(--f-text); font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.45; }
.cx-faq-chev { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--c-line-2); display: inline-flex; align-items: center; justify-content: center; color: var(--c-text-2); transition: transform 0.25s var(--ease), background-color 0.2s var(--ease); }
.cx-faq details[open] .cx-faq-chev { transform: rotate(45deg); background: var(--c-gold-soft); color: var(--c-gold); border-color: transparent; }
.cx-faq details p { padding: 0 22px 20px; color: var(--c-text-2); font-size: 0.96rem; max-width: 70ch; }
.cx-faq details p a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .cx-faq summary { padding: 16px; } .cx-faq details p { padding: 0 16px 18px; } }

/* ---------------------------------------------------------------------
   15. Closing call to action
   --------------------------------------------------------------------- */
.cx-cta {
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(36px, 6vw, 64px); border-radius: 30px; text-align: center;
    background: linear-gradient(180deg, var(--c-surface-2), var(--c-surface));
    border: 1px solid var(--c-line-2);
}
.cx-cta::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(50% 80% at 50% 0%, var(--glow-gold), transparent 70%), radial-gradient(40% 60% at 90% 100%, var(--glow-coral), transparent 70%);
}
.cx-cta .cx-h2 { max-width: 20ch; margin-inline: auto; }
.cx-cta .cx-lede { margin-inline: auto; }
.cx-cta-actions { margin-top: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.cx-cta-contact { margin-top: 18px; color: var(--c-text-3); font-size: 0.9rem; }

/* ---------------------------------------------------------------------
   16. Footer
   --------------------------------------------------------------------- */
.cx-footer { border-top: 1px solid var(--c-line); background: var(--c-bg-2); padding-block: 56px 28px; color: var(--c-text-2); font-size: 0.92rem; }
.cx-footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.cx-footer-brand p { margin-top: 16px; max-width: 38ch; color: var(--c-text-3); }
.cx-footer h4 { font-family: var(--f-text); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-3); margin-bottom: 14px; }
.cx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cx-footer a { color: var(--c-text-2); }
.cx-footer a:hover { color: var(--c-text); }
.cx-footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--c-text-3); font-size: 0.85rem; }
.cx-footer-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.cx-seg { display: inline-flex; padding: 3px; border-radius: var(--r-pill); border: 1px solid var(--c-line-2); background: var(--c-surface); }
.cx-seg button { border: 0; background: transparent; color: var(--c-text-3); font-size: 0.8rem; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); cursor: pointer; }
.cx-seg button[aria-pressed="true"] { background: var(--c-surface-3); color: var(--c-text); }
@media (max-width: 860px) { .cx-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cx-footer-brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------------
   17. Forms (sign-in pages; the app reuses these)
   --------------------------------------------------------------------- */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-group label { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 0.86rem; font-weight: 600; color: var(--c-text-2); }
.form-group label i { color: var(--c-text-3); font-size: 0.8rem; width: 14px; text-align: center; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; min-height: 48px; padding: 12px 14px;
    border-radius: var(--r-md); border: 1px solid var(--c-line-2); background: var(--c-input); color: var(--c-text);
    font-family: var(--f-text); font-size: 1rem; line-height: 1.4;
    transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b98b1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; }
html[dir="rtl"] .form-group select { background-position: left 14px center; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--c-text-3); opacity: 0.8; }
.form-group input:hover, .form-group select:hover, .form-group textarea:hover { border-color: var(--c-text-3); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--c-gold); box-shadow: 0 0 0 4px var(--c-gold-soft); }
.form-error { min-height: 0; margin-top: 6px; font-size: 0.8rem; color: var(--c-bad); }
.form-error:empty { display: none; }
.form-hint { margin-top: 6px; font-size: 0.8rem; color: var(--c-text-3); }

.password-wrapper { position: relative; }
.password-wrapper input { padding-inline-end: 48px; }
.password-toggle { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--c-text-3); cursor: pointer; }
.password-toggle:hover { color: var(--c-text); background: var(--c-surface-2); }
.password-strength { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.strength-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--c-surface-3); overflow: hidden; }
.strength-fill { height: 100%; width: 0; border-radius: 4px; transition: width 0.3s var(--ease), background-color 0.3s var(--ease); }
.strength-text { min-width: 64px; font-size: 0.76rem; font-weight: 600; }

.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.9rem; color: var(--c-text-2); line-height: 1.5; }
.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checkbox-custom { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--c-line-2); background: var(--c-input); position: relative; transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease); }
.checkbox-label input:focus-visible + .checkbox-custom { outline: 2px solid var(--c-gold); outline-offset: 2px; }
.checkbox-label input:checked + .checkbox-custom { background: var(--c-gold-fill); border-color: var(--c-gold-fill); }
.checkbox-label input:checked + .checkbox-custom::after { content: ''; position: absolute; top: 3px; left: 6px; width: 5px; height: 10px; border: solid var(--c-gold-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.terms-check { margin-bottom: 14px; }
.terms-check a { text-decoration: underline; text-underline-offset: 2px; }

/* Messages */
.flash-message { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; margin-bottom: 18px; border-radius: var(--r-md); border: 1px solid; font-size: 0.92rem; line-height: 1.5; }
.flash-message i { margin-top: 3px; }
.flash-error, .flash-danger { background: var(--c-bad-soft); border-color: color-mix(in srgb, var(--c-bad) 35%, transparent); color: var(--c-text); }
.flash-error i, .flash-danger i { color: var(--c-bad); }
.flash-success { background: var(--c-ok-soft); border-color: color-mix(in srgb, var(--c-ok) 35%, transparent); color: var(--c-text); }
.flash-success i { color: var(--c-ok); }
.flash-info, .flash-warning { background: var(--c-info-soft); border-color: color-mix(in srgb, var(--c-info) 35%, transparent); color: var(--c-text); }
.flash-info i { color: var(--c-info); }
.flash-warning { background: var(--c-warn-soft); border-color: color-mix(in srgb, var(--c-warn) 35%, transparent); }
.flash-warning i { color: var(--c-warn); }

/* ---------------------------------------------------------------------
   18. Sign-in pages (login, register, forgot, reset, verify, accept invitation)
   --------------------------------------------------------------------- */
.auth-body { min-height: 100vh; }
.auth-wrapper { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }

/* Brand side: always dark, the one brand moment of the sign-in flow, so its colours are fixed. */
.auth-brand-panel {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; align-items: center; justify-content: center; padding: 56px clamp(32px, 5vw, 72px);
    background: #0a101b; color: #eef2f8;
}
.auth-brand-panel::before {
    content: ''; position: absolute; inset: -10%; z-index: -2;
    background: radial-gradient(45% 45% at 20% 20%, rgba(232, 189, 92, 0.22), transparent 70%),
                radial-gradient(40% 40% at 85% 75%, rgba(240, 117, 88, 0.16), transparent 70%),
                radial-gradient(40% 40% at 60% 110%, rgba(161, 147, 255, 0.14), transparent 70%);
}
.auth-brand-panel::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background-image: linear-gradient(rgba(160, 178, 214, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(160, 178, 214, 0.06) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(70% 70% at 40% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 70% at 40% 40%, #000 20%, transparent 75%);
}
.auth-brand-decoration { display: none; }
.auth-brand-content { position: relative; max-width: 470px; width: 100%; }
.auth-brand-logo { display: inline-flex; }
.auth-brand-logo img { width: 46px; height: 46px; border-radius: 50%; margin-bottom: 40px; }
.auth-brand-title { font-family: var(--f-display); font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.06; color: #f4f6fa; margin-bottom: 16px; }
.auth-brand-subtitle { font-size: 1.04rem; color: rgba(238, 242, 248, 0.74); line-height: 1.65; margin-bottom: 36px; }
.auth-brand-features { display: grid; gap: 14px; }
.auth-brand-feature { display: flex; align-items: center; gap: 14px; font-size: 0.96rem; color: rgba(238, 242, 248, 0.86); }
.auth-brand-feature i { width: 38px; height: 38px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: rgba(232, 189, 92, 0.12); border: 1px solid rgba(232, 189, 92, 0.22); color: #e8bd5c; font-size: 0.86rem; }

.auth-form-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 56px clamp(24px, 4vw, 56px); background: var(--c-bg); overflow-y: auto; }
.auth-form-panel-top { align-items: flex-start; padding-top: 72px; }
.auth-form-container { width: 100%; max-width: 460px; }
.auth-form-header { margin-bottom: 28px; }
.auth-form-header h2 { font-family: var(--f-display); font-size: clamp(1.7rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; }
.auth-form-header p { font-size: 0.96rem; color: var(--c-text-2); }
.auth-form-header a { font-weight: 600; }
.auth-lang-corner { position: absolute; top: 20px; inset-inline-end: 24px; z-index: 5; display: flex; align-items: center; gap: 8px; }

.signup-progress { margin-bottom: 30px; }
.progress-track { height: 4px; border-radius: 4px; background: var(--c-surface-3); margin-bottom: 14px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 4px; background: var(--c-gold-fill); transition: width 0.45s var(--ease); }
.progress-steps { display: flex; justify-content: space-between; }
.progress-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.progress-step-circle { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--c-surface); border: 1.5px solid var(--c-line-2); transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease); }
.progress-step-circle span { font-size: 0.78rem; font-weight: 700; color: var(--c-text-3); }
.progress-step.active .progress-step-circle { border-color: var(--c-gold); background: var(--c-gold-soft); }
.progress-step.active .progress-step-circle span { color: var(--c-gold); }
.progress-step.completed .progress-step-circle { background: var(--c-gold-fill); border-color: var(--c-gold-fill); }
.progress-step.completed .progress-step-circle span { color: var(--c-gold-ink); }
.progress-step-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-3); }
.progress-step.active .progress-step-label { color: var(--c-gold); }
.progress-step.completed .progress-step-label { color: var(--c-text-2); }

.form-step { display: none; }
.form-step.active { display: block; animation: cxStepIn 0.3s var(--ease); }
@keyframes cxStepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step-title { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--c-line); }
.step-title > i { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--c-gold-soft); color: var(--c-gold); }
.step-title h3 { font-size: 1.12rem; margin-bottom: 2px; }
.step-title p { font-size: 0.88rem; color: var(--c-text-3); }
.form-actions-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.form-actions-row .btn-ghost { padding-inline: 8px; }

.review-card { border-radius: var(--r-lg); border: 1px solid var(--c-line); background: var(--c-surface); padding: 4px 0; margin-bottom: 20px; }
.review-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 18px; }
.review-row + .review-row { border-top: 1px solid var(--c-line); }
.review-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-3); flex-shrink: 0; }
.review-value { font-size: 0.94rem; font-weight: 500; text-align: end; word-break: break-word; }

.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--c-text-3); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--c-line); }
.forgot-link { display: block; width: fit-content; margin: -6px 0 20px auto; font-size: 0.86rem; font-weight: 600; }
html[dir="rtl"] .forgot-link { margin: -6px auto 20px 0; }

/* "Sign in with Tratok": the Tratok ID button keeps tratok.net's ember so people recognise it */
.tid-signin {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px 18px;
    border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, #e8613f, #c43d1e); color: #fff; font-weight: 700; font-size: 0.95rem; text-decoration: none;
    box-shadow: 0 10px 24px -12px rgba(232, 93, 58, 0.6);
}
.tid-signin:hover { filter: brightness(1.06); text-decoration: none; }
.tid-signin img { width: 22px; height: 22px; border-radius: 6px; background: #fff; padding: 2px; }

.status-icon-wrap { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.status-icon-wrap i { font-size: 1.6rem; }
.status-icon-success { background: var(--c-ok-soft); color: var(--c-ok); }
.status-icon-info { background: var(--c-info-soft); color: var(--c-info); }
.status-icon-error { background: var(--c-bad-soft); color: var(--c-bad); }
.status-page-title { font-family: var(--f-display); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; text-align: center; margin-bottom: 12px; }
.status-page-text { color: var(--c-text-2); text-align: center; margin-bottom: 26px; font-size: 0.98rem; }

/* Phone header for the sign-in pages */
.auth-mobile-head { display: none; position: sticky; top: 0; z-index: 50; align-items: center; justify-content: space-between; padding: 12px 16px; background: color-mix(in srgb, var(--c-bg) 90%, transparent); border-bottom: 1px solid var(--c-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.auth-mobile-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--c-text); text-decoration: none; }
.auth-mobile-logo img { width: 30px; height: 30px; border-radius: 50%; }
.auth-mobile-logo span { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.01em; }
.auth-mobile-toggle { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--c-line-2); background: transparent; color: var(--c-text); cursor: pointer; padding: 0; }
.auth-mobile-toggle .bars { width: 18px; height: 14px; position: relative; display: block; }
.auth-mobile-toggle .bars::before, .auth-mobile-toggle .bars::after, .auth-mobile-toggle .bars span { content: ''; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.auth-mobile-toggle .bars::before { top: 0; }
.auth-mobile-toggle .bars span { top: 6px; display: block; }
.auth-mobile-toggle .bars::after { bottom: 0; }
.auth-mobile-toggle.open .bars::before { transform: translateY(6px) rotate(45deg); }
.auth-mobile-toggle.open .bars::after { transform: translateY(-6px) rotate(-45deg); }
.auth-mobile-toggle.open .bars span { opacity: 0; }

@media (max-width: 960px) {
    .auth-wrapper { grid-template-columns: minmax(0, 1fr); }
    .auth-brand-panel { display: none; }
    .auth-mobile-head { display: flex; }
    .auth-lang-corner { display: none; }
    .auth-form-panel, .auth-form-panel-top { align-items: flex-start; padding: 28px 18px 48px; }
}
@media (max-width: 520px) {
    .form-row { grid-template-columns: minmax(0, 1fr); }
    .progress-step-label { font-size: 0.62rem; letter-spacing: 0.04em; }
}

/* ---------------------------------------------------------------------
   19. Right-to-left (Arabic)
   --------------------------------------------------------------------- */
html[dir="rtl"] .cx-btn .fa-arrow-right, html[dir="rtl"] .btn .fa-arrow-right { transform: scaleX(-1); }
.cx-pv-value, .cx-pv-amt b, .cx-proof-item b, .cx-price-amount b, .cx-purse-bal, .cx-rule-top b, .cx-rule-row b, .cx-receipt-row b { unicode-bidi: isolate; direction: ltr; }
