/* ============================================================================
   SITE -- the public landing page (index.php).

   LOAD ORDER:  demo.css -> site.css

   Modelled on gsmgpt.com: a utility strip over a sticky navigation bar, a
   centred hero over the live panel demo, glass cards with a coloured top edge,
   deep-navy dark theme and a soft blue-white light one.

   Every token here is --g-* so it can never collide with the demo's own tokens
   (demo.css scopes those to .hm-shot). Logical properties throughout, so the
   Persian page mirrors without a second stylesheet. No color-mix(): tints are
   rgb(var(--x-rgb) / a), which every Chromium the tool supports can draw.
   ========================================================================= */


/* ------------------------------------------------------------------ FONT -- */

@font-face { font-family: "Yekan Bakh"; src: url("../font/yekanbakh/YekanBakh-Regular.woff2") format("woff2");   font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../font/yekanbakh/YekanBakh-SemiBold.woff2") format("woff2");  font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../font/yekanbakh/YekanBakh-Bold.woff2") format("woff2");      font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../font/yekanbakh/YekanBakh-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../font/yekanbakh/YekanBakh-Black.woff2") format("woff2");     font-weight: 900; font-style: normal; font-display: swap; }
/* Latin digits from the system face, as the tool does (app.css) */
@font-face {
    font-family: "LatinNum";
    src: local("Segoe UI"), local("Roboto"), local("Helvetica Neue"), local("Arial"), local("Tahoma");
    unicode-range: U+0030-0039;
}


/* ---------------------------------------------------------------- TOKENS -- */

:root {
    --gx-dir: 1;

    --g-page:   #f4f7fc;     /* the hero and the "deep" bands      */
    --g-page-2: #ffffff;     /* the "deeper" bands                  */
    --g-band:   #eef3fa;
    --g-card:   #ffffff;
    --g-card-2: #f1f5f9;
    --g-top:    #edf2f9;     /* the utility strip                   */
    --g-nav:    rgb(244 247 252 / .86);
    --g-footer: #e8eef7;
    --g-line:   #e2e8f0;
    --g-ink:    #06172e;
    --g-ink-2:  #475569;     /* 7.5:1 on white */
    --g-muted:  #64748b;     /* 4.8:1 on white */

    --g-pri:     #2563eb;
    --g-pri-2:   #1a56db;
    --g-pri-rgb: 37 99 235;
    --g-pri-ink: #1d4ed8;
    --g-pri-soft: #eaf1ff;

    --g-ok:  #10b981;  --g-ok-rgb:  16 185 129;  --g-ok-ink:  #047857;
    --g-warn:#f59e0b;  --g-warn-rgb: 245 158 11; --g-warn-ink: #92400e;
    --g-bad: #ef4444;  --g-bad-rgb: 239 68 68;   --g-bad-ink: #b91c1c;

    --g-glass:      linear-gradient(160deg, rgb(255 255 255 / .96), rgb(255 255 255 / .78));
    --g-glass-line: #e2e8f0;
    --g-shadow:     0 1px 2px rgb(6 23 46 / .05), 0 22px 48px -30px rgb(6 23 46 / .32);
    --g-grid:       rgb(6 23 46 / .055);
    --g-dotc:       #cbd5e1;

    --g-r:    18px;
    --g-r-sm: 12px;
    --g-ease: cubic-bezier(.22, 1, .36, 1);
    --g-sans: "LatinNum", "Yekan Bakh", "Segoe UI", Tahoma, system-ui, sans-serif;
}

:root[data-theme="dark"] {
    --g-page:   #06162c;
    --g-page-2: #07162a;
    --g-band:   #0d1a2c;
    --g-card:   #0d1b2f;
    --g-card-2: #101e33;
    --g-top:    #040d1d;
    --g-nav:    rgb(6 12 29 / .82);
    --g-footer: #030a17;
    --g-line:   #1c2a42;
    --g-ink:    #e4e8ff;
    --g-ink-2:  #b4c2d9;
    --g-muted:  #8fa3bf;

    --g-pri:     #3b74f6;
    --g-pri-2:   #2563eb;
    --g-pri-rgb: 59 116 246;
    --g-pri-ink: #93b4ff;
    --g-pri-soft: rgb(59 116 246 / .14);

    --g-ok-ink:   #6ee7b7;
    --g-warn-ink: #fcd34d;
    --g-bad-ink:  #fca5a5;

    --g-glass:      linear-gradient(160deg, rgb(19 36 62 / .86), rgb(11 25 46 / .62));
    --g-glass-line: rgb(255 255 255 / .075);
    --g-shadow:     inset 0 1px 0 rgb(255 255 255 / .05), 0 24px 60px -34px rgb(0 0 0 / .9);
    --g-grid:       rgb(255 255 255 / .045);
    --g-dotc:       rgb(255 255 255 / .2);
}

[dir="rtl"] { --gx-dir: -1; }

/* one hue per card; --ci is the same hue dark enough to read as text */
.t-blue   { --c: 59 130 246;  --ci: #1d4ed8; }
.t-green  { --c: 16 185 129;  --ci: #047857; }
.t-orange { --c: 255 105 0;   --ci: #c2410c; }
.t-purple { --c: 139 92 246;  --ci: #6d28d9; }
.t-gold   { --c: 234 179 8;   --ci: #a16207; }
.t-red    { --c: 239 68 68;   --ci: #b91c1c; }
.t-sky    { --c: 14 165 233;  --ci: #0369a1; }
:root[data-theme="dark"] .t-blue   { --ci: #93c5fd; }
:root[data-theme="dark"] .t-green  { --ci: #6ee7b7; }
:root[data-theme="dark"] .t-orange { --ci: #fdba74; }
:root[data-theme="dark"] .t-purple { --ci: #c4b5fd; }
:root[data-theme="dark"] .t-gold   { --ci: #fde047; }
:root[data-theme="dark"] .t-red    { --ci: #fca5a5; }
:root[data-theme="dark"] .t-sky    { --ci: #7dd3fc; }


/* ----------------------------------------------------------------- RESET -- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body.gx {
    margin: 0; min-height: 100vh; overflow-x: hidden;
    background: var(--g-page); color: var(--g-ink);
    font-family: var(--g-sans); font-size: 15px; line-height: 1.75;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
.gx a { color: inherit; text-decoration: none; }
.gx img { max-width: 100%; }
.gx h1, .gx h2, .gx h3, .gx p, .gx figure, .gx blockquote { margin: 0; }
.gx button { font: inherit; color: inherit; }
.gx svg { flex: none; }
.gx :focus-visible { outline: 2px solid var(--g-pri); outline-offset: 2px; }

.gx-wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.gx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gx-skip {
    position: absolute; z-index: 100; inset-inline-start: 12px; top: -60px;
    padding: 10px 16px; border-radius: 10px; background: var(--g-pri); color: #fff; font-weight: 800;
}
.gx-skip:focus { top: 12px; }

/* an arrow drawn pointing right, turned round for Persian */
[dir="rtl"] .gx-flip { transform: scaleX(-1); }


/* ------------------------------------------------------------- TOP STRIP -- */

.gx-top { background: var(--g-top); border-block-end: 1px solid var(--g-line); color: var(--g-ink-2); font-size: 12.5px; }
/* Admin option (top_fixed): keep the strip pinned while the page scrolls. It sits
   above the sticky nav, which then parks just below it so the two never overlap. */
.gx-top-fixed { position: sticky; top: 0; z-index: 60; }
.gx-topfix .gx-nav { top: 44px; }
.gx-top-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.gx-top-g { display: flex; align-items: center; gap: 7px; min-width: 0; }

.gx-ib {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 30px; height: 30px; padding-inline: 7px;
    border-radius: 9px; border: 1px solid var(--g-line); background: var(--g-card);
    color: var(--g-ink-2); font-size: 12px; font-weight: 800; cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
}
.gx-ib:hover { color: var(--g-pri-ink); border-color: rgb(var(--g-pri-rgb) / .45); }
.gx-ib svg { width: 15px; height: 15px; }
.gx-ib .gx-moon { display: none; }
:root[data-theme="dark"] .gx-ib .gx-sun { display: none; }
:root[data-theme="dark"] .gx-ib .gx-moon { display: inline; }

.gx-pill {
    display: inline-flex; align-items: center; gap: 8px; height: 30px; padding-inline: 10px 12px;
    border-radius: 9px; border: 1px solid var(--g-line); background: var(--g-card);
    font-size: 11.5px; font-weight: 800; color: var(--g-ink); white-space: nowrap;
    transition: border-color .2s;
}
.gx-pill:hover { border-color: rgb(var(--g-pri-rgb) / .45); }
.gx-pill b { font-weight: 800; letter-spacing: .02em; direction: ltr; }
.gx-pill i { font-style: normal; font-weight: 700; color: var(--g-ok-ink); }
.gx-pill.warn i { color: var(--g-warn-ink); }
.gx-pill.bad i  { color: var(--g-bad-ink); }

.gx-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--g-ok); box-shadow: 0 0 0 3px rgb(var(--g-ok-rgb) / .2); }
.gx-dot.warn { background: var(--g-warn); box-shadow: 0 0 0 3px rgb(var(--g-warn-rgb) / .2); }
.gx-dot.bad  { background: var(--g-bad);  box-shadow: 0 0 0 3px rgb(var(--g-bad-rgb) / .2); }
@media (prefers-reduced-motion: no-preference) {
    .gx-dot.live { animation: gx-pulse 2.2s ease-out infinite; }
    @keyframes gx-pulse {
        0%   { box-shadow: 0 0 0 0 rgb(var(--g-ok-rgb) / .55); }
        70%  { box-shadow: 0 0 0 7px rgb(var(--g-ok-rgb) / 0); }
        100% { box-shadow: 0 0 0 0 rgb(var(--g-ok-rgb) / 0); }
    }
}


/* ------------------------------------------------------------ NAVIGATION -- */

.gx-nav {
    position: sticky; top: 0; z-index: 50;
    background: var(--g-nav); border-block-end: 1px solid var(--g-line);
    -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
}
.gx-nav-in { display: flex; align-items: center; gap: 18px; min-height: 74px; }

/* the brand gives way first when a language has longer button labels */
.gx-brand { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 0 1 auto; }
.gx-brand-logo {
    width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px;
    background: linear-gradient(140deg, #3b74f6, #1443b0); color: #fff;
    box-shadow: 0 10px 22px -10px rgb(37 99 235 / .8), inset 0 1px 0 rgb(255 255 255 / .25);
}
.gx-brand-logo img, .gx-brand-logo svg { width: 22px; height: 22px; }
.gx-brand-t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.gx-brand-t b { font-size: 15px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-brand-t small { font-size: 11px; color: var(--g-muted); font-weight: 700; white-space: nowrap; }

.gx-links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.gx-links a {
    padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 700; color: var(--g-ink-2);
    white-space: nowrap; transition: color .2s, background .2s;
}
.gx-links a:hover, .gx-links a.on { color: var(--g-ink); background: var(--g-pri-soft); }

.gx-acts { display: flex; align-items: center; gap: 8px; flex: none; margin-inline-start: auto; }
.gx-links + .gx-acts { margin-inline-start: 0; }

.gx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding-inline: 18px; border-radius: 12px; border: 1px solid transparent;
    font-size: 14px; font-weight: 800; line-height: 1; white-space: nowrap; cursor: pointer;
    transition: transform .2s var(--g-ease), box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.gx-btn svg { width: 17px; height: 17px; }
.gx-btn.pri {
    color: #fff; background: linear-gradient(135deg, #4f86ff, #1d4ed8);
    box-shadow: 0 12px 26px -12px rgb(37 99 235 / .85), inset 0 1px 0 rgb(255 255 255 / .25);
}
.gx-btn.pri:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -12px rgb(37 99 235 / .95), inset 0 1px 0 rgb(255 255 255 / .25); }
.gx-btn.out { color: var(--g-ink); background: transparent; border-color: rgb(var(--g-pri-rgb) / .5); }
.gx-btn.out:hover { background: var(--g-pri-soft); }
.gx-btn.ghost { color: var(--g-ink); background: var(--g-card); border-color: var(--g-line); }
.gx-btn.ghost:hover { border-color: rgb(var(--g-pri-rgb) / .45); color: var(--g-pri-ink); }
.gx-btn.lg { height: 56px; padding-inline: 28px; border-radius: 15px; font-size: 16px; }
.gx-btn.blk { width: 100%; }
.gx-btn[disabled] { opacity: .6; cursor: progress; }

.gx-burger {
    display: none; width: 44px; height: 44px; flex: none; place-items: center;
    border-radius: 12px; border: 1px solid var(--g-line); background: var(--g-card); color: var(--g-ink); cursor: pointer;
}
.gx-burger svg { width: 20px; height: 20px; }

@media (max-width: 1140px) {
    .gx-links { display: none; }
    .gx-burger { display: grid; }
}
@media (max-width: 720px) {
    .gx-acts .gx-btn.out { display: none; }
    .gx-nav-in { min-height: 64px; gap: 10px; }
    .gx-acts .gx-btn { height: 42px; padding-inline: 14px; }
}
@media (max-width: 440px) {
    .gx-nav .gx-brand-t small { display: none; }
    .gx-nav .gx-brand-t b { font-size: 14px; }
    .gx-nav .gx-brand-logo { width: 36px; height: 36px; border-radius: 11px; }
    .gx-acts .gx-btn .gx-long { display: none; }
}
/* the footer has the room: let a long site name wrap rather than cut */
.gx-foot .gx-brand-t b { white-space: normal; overflow: visible; }
@media (min-width: 441px) { .gx-acts .gx-btn .gx-short { display: none; } }
@media (max-width: 440px) { .gx-acts .gx-btn .gx-short { display: inline; } }


/* ---------------------------------------------------------- MOBILE MENU -- */

.gx-drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.gx-drawer.open { visibility: visible; }
.gx-drawer-bg { position: absolute; inset: 0; background: rgb(3 10 23 / .55); opacity: 0; transition: opacity .25s; }
.gx-drawer.open .gx-drawer-bg { opacity: 1; }
.gx-drawer-p {
    position: absolute; inset-block: 0; inset-inline-start: 0; width: min(340px, 88vw);
    display: flex; flex-direction: column; background: var(--g-page-2);
    border-inline-end: 1px solid var(--g-line); box-shadow: 0 0 60px rgb(0 0 0 / .35);
    transform: translateX(calc(-100% * var(--gx-dir))); transition: transform .3s var(--g-ease);
}
.gx-drawer.open .gx-drawer-p { transform: none; }
@media (prefers-reduced-motion: reduce) { .gx-drawer-p, .gx-drawer-bg { transition: none; } }
.gx-drawer .gx-burger { display: grid; }
.gx-drawer-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 72px; padding-inline: 18px; border-block-end: 1px solid var(--g-line); }
.gx-drawer nav { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.gx-drawer nav a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 13px 14px; border-radius: 12px; font-weight: 800; color: var(--g-ink);
}
.gx-drawer nav a:hover { background: var(--g-pri-soft); }
.gx-drawer nav a svg { width: 16px; height: 16px; color: var(--g-muted); }
.gx-drawer-f { display: grid; gap: 10px; padding: 16px; border-block-start: 1px solid var(--g-line); }


/* ------------------------------------------------------------------ HERO -- */

.gx-hero {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--g-page);
    padding-block: clamp(40px, 7vw, 80px) clamp(48px, 7vw, 92px);
}
/* a fine grid that fades out from the middle, as on gsmgpt.com */
.gx-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background-image:
        linear-gradient(to right, var(--g-grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--g-grid) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(80% 55% at 50% 28%, #000 30%, transparent 78%);
            mask-image: radial-gradient(80% 55% at 50% 28%, #000 30%, transparent 78%);
}
.gx-aura { position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(72px); }
.gx-aura.a { width: 640px; height: 420px; top: -190px; left: 50%; margin-left: -320px; background: rgb(59 116 246 / .36); }
.gx-aura.b { width: 420px; height: 420px; bottom: 6%; inset-inline-end: -150px; background: rgb(139 92 246 / .22); }
.gx-aura.c { width: 360px; height: 360px; bottom: 22%; inset-inline-start: -160px; background: rgb(14 165 233 / .16); }
:root[data-theme="dark"] .gx-aura.a { background: rgb(47 107 255 / .42); }
:root[data-theme="dark"] .gx-aura.b { background: rgb(124 77 255 / .26); }
/* follows the pointer (site.js sets --sx/--sy); invisible until hovered */
.gx-spot {
    position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
    background: radial-gradient(460px circle at var(--sx, 50%) var(--sy, -30%), rgb(74 127 255 / .13), transparent 70%);
}
[data-spot]:hover > .gx-spot { opacity: 1; }

.gx-hero-c { max-width: 980px; margin-inline: auto; text-align: center; }
.gx-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-block-end: 22px;
    padding: 6px 14px; border-radius: 999px; border: 1px solid var(--g-line);
    background: var(--g-card); box-shadow: var(--g-shadow);
    font-size: 12.5px; font-weight: 800; color: var(--g-ink-2);
}
.gx-h1 {
    font-size: clamp(28px, 4.5vw, 54px); font-weight: 900; line-height: 1.38;
    letter-spacing: -.005em; color: var(--g-ink); text-wrap: balance;
}
.gx-h1:lang(en) { line-height: 1.14; letter-spacing: -.022em; }
.gx-h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #3b74f6, #8b5cf6 70%, #c026d3);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* a gradient that fails to clip must never leave invisible text */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) { .gx-h1 em { color: var(--g-pri); } }
.gx-hero-p { max-width: 720px; margin: 18px auto 0; font-size: clamp(15px, 1.55vw, 17.5px); line-height: 1.95; color: var(--g-ink-2); }
.gx-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-block-start: 30px; }
.gx-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 13px; font-weight: 700; color: var(--g-ink-2); }
.gx-facts li { display: inline-flex; align-items: center; gap: 7px; }
.gx-facts svg { width: 16px; height: 16px; color: var(--g-ok); }

.gx-demo { margin-block-start: clamp(40px, 6vw, 68px); }
.gx-demo-cap { margin-block-start: 18px; text-align: center; font-size: 13px; color: var(--g-muted); }

/* On a phone the demo stacks into one column. Its readout stays two-up and
   the rail's command line and account card (static, never animated) step
   aside, which takes roughly half the height off the stack. */
@media (max-width: 620px) {
    .hm-shot .hm-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-shot .hm-cmd, .hm-shot .hm-user { display: none; }
}

/* the demo, re-toned to sit on this page's navy instead of its old slate */
:root[data-theme="dark"] .hm-shot {
    --card: #0d1b2f; --band: #0a1628; --field: #13233d; --inset: #040a14;
    --line: #1c2a42; --rule: #1f2e48; --edge: #2a3b58;
}


/* ---------------------------------------------------------------- BRANDS -- */

.gx-brands { background: var(--g-page-2); border-block: 1px solid var(--g-line); padding-block: 34px 38px; overflow: hidden; }
.gx-brands-t { text-align: center; font-size: 13px; font-weight: 800; color: var(--g-muted); margin-block-end: 20px; }
.gx-marq {
    position: relative; overflow: hidden; direction: ltr;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.gx-marq-track { display: flex; width: max-content; }
.gx-marq ul { display: flex; align-items: baseline; gap: 64px; margin: 0; padding: 0 64px 0 0; list-style: none; }
.gx-marq li {
    display: flex; align-items: baseline; gap: 8px; white-space: nowrap;
    font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; letter-spacing: .01em; color: var(--g-ink); opacity: .5;
    transition: opacity .2s;
}
.gx-marq li:hover { opacity: .9; }
.gx-marq li small { font-size: 12px; font-weight: 800; letter-spacing: .05em; color: var(--g-muted); }
@media (prefers-reduced-motion: no-preference) {
    .gx-marq-track { animation: gx-marq 36s linear infinite; }
    .gx-marq:hover .gx-marq-track { animation-play-state: paused; }
    @keyframes gx-marq { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
    .gx-marq { -webkit-mask-image: none; mask-image: none; }
    .gx-marq-track { width: 100%; }
    .gx-marq ul { flex-wrap: wrap; justify-content: center; gap: 18px 40px; padding: 0; width: 100%; }
    .gx-marq ul + ul { display: none; }
}


/* -------------------------------------------------------------- SECTIONS -- */

.gx-sec { position: relative; isolation: isolate; padding-block: clamp(64px, 9vw, 112px); }
.gx-sec.deep   { background: var(--g-page); }
.gx-sec.deeper { background: var(--g-page-2); }
.gx-sec.band   { background: var(--g-band); }
.gx-sec .gx-spot { background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, -30%), rgb(74 127 255 / .08), transparent 70%); }

.gx-head { max-width: 780px; margin: 0 auto clamp(34px, 5vw, 56px); text-align: center; }
.gx-head h2 { font-size: clamp(24px, 3.2vw, 38px); font-weight: 900; line-height: 1.4; color: var(--g-ink); text-wrap: balance; }
.gx-head h2:lang(en) { line-height: 1.2; letter-spacing: -.015em; }
.gx-head p { margin-block-start: 12px; font-size: clamp(14.5px, 1.5vw, 16.5px); line-height: 1.9; color: var(--g-ink-2); }
.gx-more {
    display: inline-block; margin-block-start: 18px; padding-block-end: 8px;
    border-block-end: 1.5px solid rgb(var(--g-pri-rgb) / .55);
    font-size: 14px; font-weight: 800; color: var(--g-pri-ink);
}
.gx-more:hover { border-block-end-color: var(--g-pri); }


/* ----------------------------------------------------------------- CARDS -- */

.gx-card {
    position: relative; isolation: isolate; overflow: hidden;
    border-radius: var(--g-r); border: 1px solid var(--g-glass-line);
    background: var(--g-glass); box-shadow: var(--g-shadow);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transition: translate .3s var(--g-ease), border-color .3s, box-shadow .3s;
}
/* the light that follows the pointer across a card (site.js sets --mx/--my) */
.gx-card::before {
    content: ""; position: absolute; inset: -1px; z-index: -1; pointer-events: none; opacity: 0;
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgb(var(--c, var(--g-pri-rgb)) / .16), transparent 65%);
    transition: opacity .3s;
}
.gx-card.lift:hover { translate: 0 -4px; border-color: rgb(var(--c, var(--g-pri-rgb)) / .38); }
.gx-card.lift:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .gx-card.lift:hover { translate: none; } }

/* the coloured top edge, fading out at both ends */
.gx-edge {
    position: absolute; inset-block-start: 0; inset-inline: 0; height: 2px; z-index: 1;
    background: linear-gradient(90deg, transparent, rgb(var(--c)) 18%, rgb(var(--c)) 82%, transparent);
}
.gx-edge.short { inset-inline: 16%; height: 3px; border-radius: 0 0 3px 3px; background: rgb(var(--c)); }

.gx-tag {
    display: inline-flex; align-items: center; height: 26px; padding-inline: 10px; flex: none;
    border-radius: 999px; border: 1px solid rgb(var(--c) / .35); background: rgb(var(--c) / .1);
    font-size: 11.5px; font-weight: 800; color: var(--ci); white-space: nowrap;
}


/* -------------------------------------------------------------- SERVICES -- */

.gx-svcs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gx-svc { display: flex; flex-direction: column; gap: 14px; padding: 24px 22px 22px; min-height: 250px; }
.gx-svc-ic {
    width: 42px; height: 42px; display: grid; place-items: center; align-self: flex-end;
    border-radius: 12px; border: 1px solid rgb(var(--c) / .32); background: rgb(var(--c) / .12); color: var(--ci);
}
.gx-svc-ic svg { width: 20px; height: 20px; }
.gx-svc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gx-svc-h h3 { font-size: 17px; font-weight: 900; line-height: 1.5; }
.gx-svc p { flex: 1; font-size: 14px; line-height: 1.95; color: var(--g-ink-2); }
.gx-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; color: var(--ci); }
.gx-go svg { width: 16px; height: 16px; transition: translate .2s; }
.gx-go:hover svg { translate: calc(3px * var(--gx-dir)) 0; }
.gx-go.off { color: var(--g-muted); }
@media (max-width: 1080px) { .gx-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .gx-svcs { grid-template-columns: minmax(0, 1fr); } .gx-svc { min-height: 0; } }

/* ---------------------------------------------------------------- PANELS -- */
/* One panel open at a time; the others fold into narrow tabs whose name runs
   down their length (site.js moves .is-open). The open panel always sits at the
   right end with the tabs on its left -- the user's layout, in every language.
   Phones stack them as bars, in page order. */
.gx-pnls { display: flex; align-items: stretch; gap: 16px; min-height: 480px; }
.gx-pnl {
    flex: 0 0 80px; min-width: 0; display: flex;
    transition: flex-grow .5s var(--g-ease), translate .3s var(--g-ease), border-color .3s, box-shadow .3s;
}
.gx-pnl.is-open, .gx-pnl.is-opening { flex-grow: 1; }
@media (min-width: 861px) {
    [dir="ltr"] .gx-pnls { flex-direction: row-reverse; }   /* RTL rows already start at the right */
    .gx-pnl.is-open, .gx-pnl.is-opening { order: -1; }
    /* a folded tab's name reads upwards, bottom to top (as the user asked): turned half
       round from vertical-rl. Read that way, English meets the name before its tag,
       Persian the other way round, so the tag moves above the name in LTR. */
    .gx-pnl-tab-t, .gx-pnl-tab .gx-tag { transform: rotate(180deg); }
    .gx-pnl-tab .gx-svc-ic { order: -2; }
    [dir="ltr"] .gx-pnl-tab .gx-tag { order: -1; }
}

.gx-pnl-tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 0 18px;
    border: 0; background: none; font: inherit; color: var(--g-ink); text-align: center; cursor: pointer;
}
.gx-pnl-tab .gx-svc-ic { align-self: center; }
.gx-pnl-tab-t { writing-mode: vertical-rl; font-size: 15.5px; font-weight: 900; line-height: 1.4; white-space: nowrap; }
.gx-pnl-tab .gx-tag { writing-mode: vertical-rl; width: 26px; height: auto; padding: 10px 0; }
.gx-pnl-tab-go {
    margin-top: auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
    border: 1px solid rgb(var(--c) / .32); background: rgb(var(--c) / .1); color: var(--ci);
    transition: background .2s, transform .2s;
}
.gx-pnl-tab-go svg { width: 15px; height: 15px; }
.gx-pnl-tab:hover .gx-pnl-tab-go { background: rgb(var(--c) / .2); transform: scale(1.08); }
.gx-pnl-tab:focus-visible { outline: 2px solid rgb(var(--c)); outline-offset: -5px; border-radius: inherit; }

.gx-pnl-body { display: none; flex: 1; min-width: 0; flex-direction: column; gap: 16px; padding: 24px 24px 22px; }
/* .is-opening: the card grows while still empty; .is-open: its content fades in */
.gx-pnl.is-open .gx-pnl-tab, .gx-pnl.is-opening .gx-pnl-tab { display: none; }
.gx-pnl.is-open .gx-pnl-body { display: flex; animation: gxPnlIn .3s var(--g-ease) both; }
@keyframes gxPnlIn { from { opacity: 0; } to { opacity: 1; } }
.gx-pnl-body > p { font-size: 14px; line-height: 1.95; color: var(--g-ink-2); max-width: 70ch; }

.gx-pnl-list, .gx-pnl-steps {
    list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; flex: 1;
    font-size: 13.5px; line-height: 1.75; color: var(--g-ink);
}
.gx-pnl-list li { display: flex; align-items: flex-start; gap: 9px; max-width: 560px; }
.gx-pnl-list li svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--ci); }
.gx-pnl-list li span { flex: 1; }
.gx-pnl-list li b { flex: none; font-weight: 800; color: var(--ci); white-space: nowrap; }
.gx-pnl-steps { counter-reset: gxs; }
.gx-pnl-steps li { counter-increment: gxs; display: flex; align-items: flex-start; gap: 10px; }
.gx-pnl-steps li::before {
    content: counter(gxs); flex: none; width: 22px; height: 22px; margin-top: 2px; display: grid; place-items: center;
    border-radius: 50%; border: 1px solid rgb(var(--c) / .3); background: rgb(var(--c) / .14);
    color: var(--ci); font-size: 12px; font-weight: 900; line-height: 1;
}
html:lang(fa) .gx-pnl-steps li::before { content: counter(gxs, persian); }

/* the customer panel's three services, each with its live price */
.gx-pnl-svcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; flex: 1; align-content: start; }
.gx-pnl-svc {
    display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px;
    border: 1px solid rgb(var(--c) / .25); background: rgb(var(--c) / .06);
}
.gx-pnl-svc-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gx-pnl-svc-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgb(var(--c) / .14); color: var(--ci); }
.gx-pnl-svc-ic svg { width: 17px; height: 17px; }
.gx-pnl-svc b { font-size: 14px; font-weight: 900; line-height: 1.5; color: var(--g-ink); }
.gx-pnl-svc small { font-size: 12.5px; line-height: 1.8; color: var(--g-ink-2); }

/* the tool owners' way into the API docs */
.gx-pnl-doc {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
    border: 1px solid rgb(var(--c) / .28); background: rgb(var(--c) / .07); color: var(--g-ink);
    transition: border-color .2s, background .2s;
}
.gx-pnl-doc:hover { border-color: rgb(var(--c) / .5); background: rgb(var(--c) / .12); }
.gx-pnl-doc-ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgb(var(--c) / .14); color: var(--ci); }
.gx-pnl-doc-ic svg, .gx-pnl-doc > svg { width: 18px; height: 18px; }
.gx-pnl-doc > svg { flex: none; color: var(--ci); }
.gx-pnl-doc-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.gx-pnl-doc-t b { font-size: 14px; font-weight: 900; }
.gx-pnl-doc-t small { font-size: 12.5px; line-height: 1.6; color: var(--g-ink-2); }

.gx-pnl-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gx-pnl-acts .gx-btn { flex: 1 1 auto; height: 42px; padding-inline: 16px; font-size: 13.5px; }
.gx-pnl-acts .gx-btn svg { width: 16px; height: 16px; }
.gx-pnl.is-open .gx-pnl-acts .gx-btn { flex: 0 1 auto; min-width: 150px; }
@media (prefers-reduced-motion: reduce) { .gx-pnl { transition: none; } .gx-pnl.is-open .gx-pnl-body { animation: none; } }

/* phones and narrow tablets: the panels stack, a folded one is a bar */
@media (max-width: 860px) {
    .gx-pnls { flex-direction: column; gap: 12px; min-height: 0; }
    .gx-pnl { flex: none; }
    .gx-pnl-tab { flex-direction: row; gap: 12px; padding: 14px 16px; text-align: start; }
    .gx-pnl-tab-t, .gx-pnl-tab .gx-tag { writing-mode: horizontal-tb; }
    .gx-pnl-tab .gx-tag { width: auto; height: 26px; padding: 0 10px; }
    .gx-pnl-tab-go { margin: 0; margin-inline-start: auto; }
    .gx-pnl-body { padding: 20px 18px; }
    .gx-pnl.is-open .gx-pnl-acts .gx-btn { flex: 1 1 auto; min-width: 0; }
    .gx-pnl-svcs { grid-template-columns: minmax(0, 1fr); }
}


/* ----------------------------------------------------------------- STATS -- */

.gx-stats-sec { padding-block: 0 clamp(64px, 9vw, 104px); background: var(--g-page-2); }
/* --n = how many counters are non-zero (index.php drops the zeros) */
.gx-stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.gx-stats li { padding: 26px 14px; text-align: center; }
.gx-stats li + li { border-inline-start: 1px solid var(--g-line); }
.gx-stats strong {
    display: block; font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; line-height: 1.25;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--g-ink), rgb(var(--g-pri-rgb)));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gx-stats span { display: block; margin-block-start: 4px; font-size: 13px; font-weight: 700; color: var(--g-ink-2); }
@media (max-width: 760px) {
    .gx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gx-stats li:nth-child(3) { border-inline-start: 0; }
    .gx-stats li:nth-child(n+3) { border-block-start: 1px solid var(--g-line); }
}


/* -------------------------------------------------------------- FEATURES -- */

.gx-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gx-feat { padding: 38px 26px 30px; text-align: center; }
.gx-orb {
    width: 54px; height: 54px; margin: 0 auto 18px; display: grid; place-items: center;
    border-radius: 50%; color: #fff; background: rgb(var(--c));
    box-shadow: 0 0 0 7px rgb(var(--c) / .12), 0 12px 28px -8px rgb(var(--c) / .75);
}
.gx-orb svg { width: 23px; height: 23px; }
.gx-feat h3 { font-size: 17px; font-weight: 900; margin-block-end: 10px; }
.gx-feat p { font-size: 14px; line-height: 1.95; color: var(--g-ink-2); }
@media (max-width: 980px) { .gx-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .gx-feats { grid-template-columns: minmax(0, 1fr); } }


/* ----------------------------------------------------------------- STEPS -- */

.gx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gx-step { display: flex; flex-direction: column; align-items: center; padding: 40px 24px 24px; text-align: center; }
.gx-step-n {
    position: absolute; inset-block-start: 14px; inset-inline-start: 14px;
    display: inline-flex; align-items: center; height: 22px; padding-inline: 9px;
    border-radius: 999px; background: rgb(var(--c)); color: #fff; font-size: 11px; font-weight: 900;
}
.gx-step h3 { font-size: 17px; font-weight: 900; margin-block-end: 10px; }
.gx-step p { font-size: 14px; line-height: 1.95; color: var(--g-ink-2); }
.gx-step-act { width: 100%; margin-block-start: auto; padding-block-start: 22px; }
.gx-step-act .gx-btn { width: 100%; height: 46px; font-size: 13.5px; }
@media (max-width: 900px) { .gx-steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } }


/* ---------------------------------------------------------------- STATUS -- */

.gx-ov {
    display: inline-flex; align-items: center; gap: 8px; margin-block-start: 16px;
    padding: 7px 15px; border-radius: 999px; border: 1px solid;
    font-size: 13px; font-weight: 800;
}
.gx-ov svg { width: 15px; height: 15px; }
.gx-ov.ok   { color: var(--g-ok-ink);   background: rgb(var(--g-ok-rgb) / .1);   border-color: rgb(var(--g-ok-rgb) / .35); }
.gx-ov.part { color: var(--g-warn-ink); background: rgb(var(--g-warn-rgb) / .12); border-color: rgb(var(--g-warn-rgb) / .35); }
.gx-ov.down { color: var(--g-bad-ink);  background: rgb(var(--g-bad-rgb) / .1);  border-color: rgb(var(--g-bad-rgb) / .35); }

.gx-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1000px; margin-inline: auto; }
.gx-board-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-block-end: 1px solid var(--g-line); font-weight: 800; font-size: 14.5px; }
.gx-board-h .from { margin-inline-start: auto; font-size: 12.5px; font-weight: 700; color: var(--g-ink-2); }
.gx-board-h .from b { color: var(--g-ink); }
.gx-srv { display: grid; grid-template-columns: 10px minmax(0, 1fr) minmax(104px, auto) minmax(84px, auto); align-items: center; gap: 12px; padding: 12px 18px; font-size: 13.5px; }
.gx-srv + .gx-srv { border-block-start: 1px solid var(--g-line); }
.gx-srv.head { padding-block: 10px; font-size: 11.5px; font-weight: 800; color: var(--g-muted); }
.gx-srv .nm { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-srv .crd { text-align: center; }      /* the Credits header and the price pill, centred in their column */
.gx-srv .v  { font-weight: 800; text-align: end; }
.gx-srv .v.on, .gx-srv .v.hi { color: var(--g-ok-ink); }
.gx-srv .v.off, .gx-srv .v.low { color: var(--g-bad-ink); }
.gx-srv .v.mid { color: var(--g-warn-ink); }
.gx-srv .crd b {
    display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800;
    color: var(--g-pri-ink); background: var(--g-pri-soft);
}
.gx-srv .crd b.free { color: var(--g-ok-ink); background: rgb(var(--g-ok-rgb) / .12); }
.gx-srv .sd { width: 9px; height: 9px; border-radius: 50%; background: var(--g-bad); }
.gx-srv .sd.on { background: var(--g-ok); box-shadow: 0 0 8px rgb(var(--g-ok-rgb) / .6); }
.gx-srv .sd.hide { visibility: hidden; }
.gx-srv.none { grid-template-columns: minmax(0, 1fr); color: var(--g-muted); text-align: center; }
.gx-status-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-start: 26px; }
@media (max-width: 760px) { .gx-boards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .gx-srv { grid-template-columns: 10px minmax(0, 1fr) auto; } .gx-srv .crd { display: none; } }


/* --------------------------------------- WHERE TO BUY (partners.php) -- */
/* Rendered by partners_section_html(), shared with landing.php, so its own
   class names are styled here rather than renamed. */

.gx #buy.lp-sec { position: relative; padding-block: clamp(64px, 9vw, 112px); background: var(--g-band); }
.gx #buy .lp-head { max-width: 780px; margin: 0 auto clamp(34px, 5vw, 56px); padding-inline: clamp(16px, 4vw, 32px); text-align: center; }
.gx #buy .lp-head h2 { margin: 0; font-size: clamp(24px, 3.2vw, 38px); font-weight: 900; line-height: 1.4; }
.gx #buy .lp-head p { margin: 12px 0 0; font-size: clamp(14.5px, 1.5vw, 16.5px); line-height: 1.9; color: var(--g-ink-2); }
.gx .lp-partners {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 330px)); justify-content: center; gap: 18px;
    max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px);
}
.gx .lp-partner {
    display: flex; align-items: flex-start; gap: 14px; padding: 18px;
    border-radius: var(--g-r); border: 1px solid var(--g-glass-line); background: var(--g-glass); box-shadow: var(--g-shadow);
}
.gx .lp-partner-pic { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; }
.gx .lp-partner-pic.ph { display: grid; place-items: center; background: linear-gradient(140deg, #3b74f6, #8b5cf6); color: #fff; font-size: 22px; font-weight: 900; }
.gx .lp-partner-b { min-width: 0; }
.gx .lp-partner-b h3 { margin: 0; font-size: 16px; font-weight: 900; }
.gx .lp-partner-m { margin: 2px 0 0; font-size: 12.5px; color: var(--g-muted); }
.gx .lp-partner-l { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 10px; }
.gx .lp-partner-l a {
    display: inline-flex; align-items: center; gap: 4px; height: 28px; padding-inline: 10px;
    border-radius: 999px; border: 1px solid var(--g-line); background: var(--g-card);
    font-size: 12px; font-weight: 800; color: var(--g-ink);
}
.gx .lp-partner-l a:hover { border-color: rgb(var(--g-pri-rgb) / .5); color: var(--g-pri-ink); }


/* --------------------------------------------------------------- REVIEWS -- */

.gx-rate { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 14px; padding: 5px 13px; border-radius: 999px; background: rgb(234 179 8 / .12); color: var(--g-ink); font-size: 13px; font-weight: 800; }
.gx-rate span { color: #eab308; }
.gx-revs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gx-rev { padding: 22px; }
.gx-stars { color: #eab308; font-size: 15px; letter-spacing: 2px; }
.gx-rev blockquote { margin-block: 10px 14px; font-size: 14.5px; line-height: 1.95; color: var(--g-ink); }
.gx-rev figcaption { font-size: 13px; font-weight: 800; color: var(--g-muted); }
.gx-empty { text-align: center; color: var(--g-muted); font-weight: 600; }
.gx-revbox { max-width: 720px; margin: 30px auto 0; text-align: center; }
.gx-revform { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 14px; margin-block-start: 16px; padding: 22px; text-align: start; }
.gx-revform[hidden] { display: none; }
.gx-field label { display: block; margin-block-end: 6px; font-size: 12.5px; font-weight: 800; color: var(--g-ink-2); }
.gx-field input, .gx-field select, .gx-field textarea {
    width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px;
    border: 1px solid var(--g-line); background: var(--g-card); color: var(--g-ink); font: inherit;
}
.gx-field textarea { resize: vertical; }
.gx-field input:focus, .gx-field select:focus, .gx-field textarea:focus { outline: none; border-color: var(--g-pri); box-shadow: 0 0 0 3px rgb(var(--g-pri-rgb) / .18); }
.gx-field.full { grid-column: 1 / -1; }
.gx-revform-f { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.gx-note { font-size: 12.5px; color: var(--g-muted); }
.gx-msg { margin-block-start: 14px; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700; }
.gx-msg.ok  { color: var(--g-ok-ink);  background: rgb(var(--g-ok-rgb) / .1); }
.gx-msg.err { color: var(--g-bad-ink); background: rgb(var(--g-bad-rgb) / .1); }
@media (max-width: 980px) { .gx-revs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .gx-revs { grid-template-columns: minmax(0, 1fr); } .gx-revform { grid-template-columns: minmax(0, 1fr); } }


/* ------------------------------------------------------------------ BLOG -- */

.gx-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gx-post { display: flex; flex-direction: column; }
.gx-post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.gx-post-b { padding: 18px 20px 20px; }
.gx-post h3 { font-size: 16px; font-weight: 900; line-height: 1.6; }
.gx-post p { margin-block-start: 8px; font-size: 13.5px; line-height: 1.9; color: var(--g-ink-2); }
@media (max-width: 980px) { .gx-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .gx-posts { grid-template-columns: minmax(0, 1fr); } }


/* ------------------------------------------------------------------- FAQ -- */

.gx-faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.gx-faq details { border-radius: 14px; border: 1px solid var(--g-line); background: var(--g-card); transition: border-color .2s; }
.gx-faq details[open] { border-color: rgb(var(--g-pri-rgb) / .4); }
.gx-faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 17px 20px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 800;
}
.gx-faq summary::-webkit-details-marker { display: none; }
.gx-faq .pl {
    width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 9px;
    background: var(--g-pri-soft); color: var(--g-pri-ink); transition: rotate .25s var(--g-ease);
}
.gx-faq .pl svg { width: 15px; height: 15px; }
.gx-faq details[open] .pl { rotate: 45deg; }
.gx-faq details p { padding: 0 20px 18px; font-size: 14.5px; line-height: 1.95; color: var(--g-ink-2); }


/* ------------------------------------------------------- SUPPORT / CTA -- */

.gx-cta { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 30px; padding: clamp(24px, 4vw, 46px); }
.gx-cta.gx-card { background: linear-gradient(135deg, rgb(59 116 246 / .13), rgb(139 92 246 / .10)), var(--g-glass); }
.gx-cta h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 900; line-height: 1.45; }
.gx-cta-p { margin-block-start: 10px; font-size: 15px; line-height: 1.9; color: var(--g-ink-2); }
/* the admin types this with line breaks (Settings > support text); keep them, as the old page did */
.gx-sup { margin-block-start: 16px; padding-block-start: 16px; border-block-start: 1px dashed var(--g-line); font-size: 14px; line-height: 2; color: var(--g-ink-2); white-space: pre-wrap; }
.gx-sup b, .gx-sup strong { color: var(--g-ink); }
.gx-sup a { color: var(--g-pri-ink); font-weight: 800; }
.gx-cta-acts { display: grid; gap: 10px; }
@media (max-width: 860px) { .gx-cta { grid-template-columns: minmax(0, 1fr); } }


/* ---------------------------------------------------------------- FOOTER -- */

.gx-foot { background: var(--g-footer); border-block-start: 1px solid var(--g-line); padding-block: 58px 26px; font-size: 14px; }
.gx-foot-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr)) minmax(0, 1fr); gap: 34px; }
.gx-foot h2 { margin-block-end: 14px; font-size: 15px; font-weight: 900; color: var(--g-ink); }
.gx-foot-about { margin-block: 14px 0; font-size: 13.5px; line-height: 1.95; color: var(--g-ink-2); }
.gx-foot-col a { display: block; padding-block: 6px; font-weight: 700; color: var(--g-ink-2); transition: color .2s; }
.gx-foot-col a:hover { color: var(--g-pri-ink); }
.gx-contact { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.gx-contact a { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 800; }
.gx-contact .ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgb(var(--c) / .3); background: rgb(var(--c) / .13); color: var(--ci); }
.gx-contact .ic svg { width: 16px; height: 16px; }
.gx-contact .v { color: var(--ci); direction: ltr; unicode-bidi: isolate; }
.gx-contact small { display: block; font-size: 11.5px; font-weight: 700; color: var(--g-muted); }
.gx-set + .gx-set { margin-block-start: 22px; }
.gx-set h2 { font-size: 13px; color: var(--g-muted); margin-block-end: 10px; }
.gx-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--g-line); background: var(--g-card); }
.gx-seg button, .gx-seg a {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 32px; padding-inline: 10px;
    border: 0; border-radius: 9px; background: transparent; color: var(--g-ink-2); font-size: 12.5px; font-weight: 800; cursor: pointer;
}
.gx-seg button svg { width: 15px; height: 15px; }
.gx-seg button[aria-pressed="true"], .gx-seg a[aria-current="true"] { background: var(--g-pri); color: #fff; }
.gx-foot-bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    margin-block-start: 42px; padding-block-start: 22px; border-block-start: 1px solid var(--g-line);
    font-size: 12.5px; color: var(--g-muted);
}
.gx-seo { margin-block-start: 30px; font-size: 11px; line-height: 1.9; color: var(--g-muted); opacity: .75; }
@media (max-width: 1080px) {
    .gx-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gx-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .gx-foot-grid { grid-template-columns: minmax(0, 1fr); } }


/* ------------------------------------------------------------- SIDE DOTS -- */

.gx-dots { position: fixed; z-index: 40; inset-inline-end: 22px; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; align-items: center; gap: 12px; }
@media (min-width: 1320px) { .gx-dots { display: flex; } }
.gx-dots button {
    position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px;
    background: var(--g-dotc); cursor: pointer; transition: height .25s var(--g-ease), background .25s;
}
.gx-dots button.on { height: 28px; background: var(--g-pri); }
.gx-dots button span {
    position: absolute; inset-inline-end: 22px; top: 50%; transform: translateY(-50%);
    padding: 4px 10px; border-radius: 8px; background: var(--g-ink); color: var(--g-page);
    font-size: 12px; font-weight: 800; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.gx-dots button:hover span, .gx-dots button:focus-visible span { opacity: 1; }


/* ---------------------------------------------------------------- MOTION -- */

@media (prefers-reduced-motion: no-preference) {
    .gx-rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--g-ease), transform .7s var(--g-ease); }
    .gx-rv.in { opacity: 1; transform: none; }
}
@media print {
    .gx-rv { opacity: 1 !important; transform: none !important; }
    .gx-nav, .gx-top, .gx-dots, .gx-drawer { display: none !important; }
}


/* ---------------------------------------------------------------- MOBILE -- */

@media (max-width: 760px) {
    .gx-top .gx-hide-m { display: none; }
}
@media (max-width: 420px) {
    .gx-pill .gx-pill-w { display: none; }
    .gx-hero-cta .gx-btn { width: 100%; }
}

/* NARROW PHONES. Spanish "Fuera de línea", French "Hors ligne" and the language's
   own name pushed the strip's last button off a 360px screen: the picker drops
   to its two-letter code, and the status pill keeps only its coloured dot (its
   full wording stays in the link's aria-label). */
@media (max-width: 420px) {
    .gx-top .xf-lang-cur { display: none; }
    .gx-top .xf-lang-code { display: inline; }
}
@media (max-width: 400px) {
    .gx-pill i { display: none; }
}

/* ---- the "★ Premium" badge after a server's name + its popup (same as app.php) ---- */
.gx-srv .nm { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; white-space: normal; }
.srv-prem { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; font-size: 9.5px; font-weight: 800;
    line-height: 1.35; padding: 1px 7px; border-radius: 999px; white-space: nowrap; cursor: pointer;
    color: #8a5a00; background: linear-gradient(135deg, #fff4cc, #ffd97a); border: 1px solid #e8b84a; }
.srv-prem:hover, .srv-prem:focus-visible { filter: brightness(1.04); box-shadow: 0 0 0 2px rgb(232 184 74 / .4); outline: none; }
.prem-card { position: fixed; z-index: 10001; width: 248px; max-width: calc(100vw - 16px); background: var(--g-card); color: var(--g-ink);
    border: 1px solid #e8b84a; border-radius: 12px; box-shadow: 0 14px 34px -10px rgb(0 0 0 / .35), 0 2px 6px rgb(0 0 0 / .08); padding: 0 0 11px; display: none; }
.prem-card.show { display: block; }
.prem-arrow { position: absolute; top: -7px; width: 12px; height: 12px; background: #fff4cc; border-left: 1px solid #e8b84a; border-top: 1px solid #e8b84a; transform: rotate(45deg); }
.prem-card.above .prem-arrow { top: auto; bottom: -7px; background: var(--g-card); border: 0; border-right: 1px solid #e8b84a; border-bottom: 1px solid #e8b84a; }
.prem-head { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 11px 11px 0 0; background: linear-gradient(135deg, #fff4cc, #ffe6a0); color: #7a4d00; }
.prem-star { font-size: 14px; color: #d18f00; }
.prem-name { font-weight: 800; }
.prem-srv { margin-inline-start: auto; font-size: 11.5px; font-weight: 700; opacity: .8; white-space: nowrap; }
.prem-text { font-size: 12px; color: var(--g-muted); line-height: 1.7; padding: 9px 12px 7px; }
.prem-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; }
.prem-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: var(--g-band); border: 1px solid var(--g-line); }
.prem-chip i { font-style: normal; color: var(--g-ok-ink); font-weight: 800; }
.prem-chip b { font-weight: 700; color: var(--g-ink); }
.prem-chip .prem-code { font-size: 11px; font-weight: 700; color: var(--g-muted); }

/* ---- #status boards: cap the server list so it scrolls INSIDE each board ---- */
.gx-srv-scroll { max-height: 384px; overflow-y: auto; overscroll-behavior: contain; }
.gx-srv-scroll::-webkit-scrollbar { width: 8px; }
.gx-srv-scroll::-webkit-scrollbar-thumb { background: rgb(var(--g-pri-rgb) / .22); border-radius: 8px; }
