/* Gecolux VPN - website design system (2026). Same palette and contrast rules as the apps:
   every text/background pair >= 4.5:1. Light by default, dark with the system or the theme switch. */
:root {
  --bg: #F5F5F7; --surface: #FFFFFF; --surface-2: #EDEDF0; --text: #1D1D1F; --muted: #5E5E66; --line: #E2E2E7;
  --accent: #106880; --on-accent: #FFFFFF; --accent-soft: #E3F1F4;
  --green: #187A34; --yellow: #8A5A00; --red: #C4262E;
  --ring-pink: #C84070; --ring-teal: #106880; --ring-yellow: #F0B848; --ring-navy: #104070;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 30px rgba(0,0,0,.06);
  --radius: 18px; --radius-sm: 12px; --max: 1120px;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #161618; --surface: #242427; --surface-2: #2E2E32; --text: #F5F5F7; --muted: #A9A9B2; --line: #38383D;
  --accent: #5BBCD0; --on-accent: #0B1F26; --accent-soft: #17323A;
  --green: #4CD964; --yellow: #F0B848; --red: #FF6B6B;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161618; --surface: #242427; --surface-2: #2E2E32; --text: #F5F5F7; --muted: #A9A9B2; --line: #38383D;
    --accent: #5BBCD0; --on-accent: #0B1F26; --accent-soft: #17323A;
    --green: #4CD964; --yellow: #F0B848; --red: #FF6B6B;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}

/* Two languages in the page; only the chosen one is shown (no JavaScript needed for the default). */
html[data-lang="it"] :is(span, p)[lang="en"], html[data-lang="en"] :is(span, p)[lang="it"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--font); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--on-accent); padding: 10px 16px; z-index: 100; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.eyebrow { font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .6em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.gecko { display: inline-block; width: 28px; height: 27px; background: currentColor;
  -webkit-mask: url(../img/gecolux/gecko.png) center / contain no-repeat; mask: url(../img/gecolux/gecko.png) center / contain no-repeat; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface-2); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--on-accent); background: var(--accent); }
.nav .btn { margin-left: 6px; }
.tools { display: flex; gap: 6px; margin-left: 8px; }
.chip { font: inherit; font-size: .85rem; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; min-height: 36px; cursor: pointer; }
.chip:hover { background: var(--surface-2); }
.menu-toggle { display: none; margin-left: auto; }
@media (max-width: 900px) {
  /* Without JavaScript the menu is simply shown under the header (nothing unreachable); with it, it opens on tap. */
  .site-header .wrap { flex-wrap: wrap; }
  .nav { flex-direction: column; align-items: stretch; width: 100%; padding: 0 0 12px; }
  .js .menu-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; width: auto;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; box-shadow: var(--shadow); }
  .js .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 1.05rem; }
  .nav .btn { margin: 6px 0 0; text-align: center; }
  .tools { margin: 10px 0 0; justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; text-decoration: none;
  border-radius: 12px; padding: 12px 20px; min-height: 46px; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, opacity .12s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { opacity: .9; text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-2); text-decoration: none; }
.btn-small { min-height: 38px; padding: 8px 14px; font-size: .92rem; }

/* Sections */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-tight { padding: 40px 0; }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.icon-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.icon-badge svg { width: 22px; height: 22px; }

/* Hero with the logo ring (same as the app's big button) */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 16px; font-size: .92rem; color: var(--muted); }
.ring { position: relative; width: min(360px, 78vw); aspect-ratio: 1; margin: 0 auto; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring .disc { position: absolute; inset: 19%; border-radius: 50%; background: var(--surface); box-shadow: 0 10px 40px rgba(0,0,0,.12); display: grid; place-items: center; }
.ring .disc .gecko { width: 46%; height: 46%; color: var(--text); }
.ring .glow { position: absolute; inset: -3%; border-radius: 50%; background: color-mix(in srgb, #2BB24C 12%, transparent); }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--green); margin-top: 18px; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #2BB24C; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } .hero .actions { justify-content: center; } .hero .lead { margin: 0 auto; } }

/* Pricing - prices are copied from the original pages, never invented */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: stretch; }
.plan { background: var(--surface); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 2px solid transparent; }
.plan.best { border-color: var(--accent); }
.plan .tag { align-self: flex-start; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.plan .price { font-size: 2.4rem; font-weight: 750; letter-spacing: -0.03em; margin: 14px 0 0; }
.plan .per { color: var(--muted); margin: 0 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }

/* App downloads */
.stores { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.store { display: flex; align-items: center; gap: 16px; background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  color: var(--text); text-decoration: none; border: 1px solid var(--line); transition: transform .15s ease; min-height: 92px; }
.store:hover { transform: translateY(-2px); text-decoration: none; }
.store svg { width: 40px; height: 40px; flex: none; }
.store strong { display: block; font-size: 1.08rem; }
.store span { color: var(--muted); font-size: .92rem; }
.store[aria-disabled="true"] { pointer-events: none; border-style: dashed; box-shadow: none; background: transparent; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 28px 14px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.4rem; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); }

/* Long documents (privacy, EULA, logs policy): text unchanged, only typography */
.doc { max-width: 780px; margin: 0 auto; background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow); }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.doc h2, .doc h3, .doc h4 { margin-top: 1.6em; font-size: 1.25rem; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }

/* Forms */
.form { display: grid; gap: 14px; max-width: 440px; margin: 0 auto; }
.form label { font-weight: 650; font-size: .92rem; }
.form input, .form textarea, .form select { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid #8E8E96; border-radius: 12px; padding: 12px 14px; min-height: 48px; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.notice { border-radius: 12px; padding: 12px 16px; background: #FDECEC; color: var(--red); }
:root[data-theme="dark"] .notice { background: #3A2224; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notice { background: #3A2224; } }
.panel { max-width: 480px; margin: 0 auto; background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 5vw, 40px); box-shadow: var(--shadow); }
.panel .ring { width: 120px; margin-bottom: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 32px; color: var(--muted); font-size: .92rem; background: var(--bg); }
.site-footer .wrap { display: grid; gap: 22px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.site-footer h4 { color: var(--text); font-size: .9rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }

/* Download page: one card per system; .mine = the visitor's system (set by gecolux-site.js), shown first. */
.downloads { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: start; }
.dl { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 2px solid transparent; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.dl.mine { order: -1; border-color: var(--accent); }
.dl .mine-badge { display: none; position: absolute; top: -13px; left: 20px; margin: 0; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .8rem; font-weight: 700; }
.dl.mine .mine-badge { display: block; }
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-head h2 { font-size: 1.3rem; margin: 0; letter-spacing: -0.01em; }
.dl-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.os-logo { width: 44px; height: 44px; flex: none; color: var(--text); }
.btn-ico { width: 20px; height: 20px; flex: none; }
.dl .btn { width: 100%; }
.btn.is-off { cursor: default; border-style: dashed; color: var(--muted); }
.btn.is-off:hover { background: var(--surface); }
.dl-help { margin: 0; color: var(--muted); font-size: .92rem; }
.dl-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .88rem; }
.dl-meta .wide { grid-column: 1 / -1; }
.dl-meta dt { color: var(--muted); }
.dl-meta dd { margin: 0; font-weight: 600; }
.dl-meta code { display: block; font: 600 .78rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-all; background: var(--surface-2); padding: 8px 10px; border-radius: 8px; user-select: all; }
.dl.soon { background: transparent; box-shadow: none; border: 2px dashed var(--line); }
.dl.soon .os-logo { color: #8E8E96; }
.dl.soon.mine { border-style: solid; border-color: var(--accent); }
/* Home: "Scarica Gecolux VPN" banner */
.get-app { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; border: 2px solid var(--accent); }
.os-row { display: flex; gap: 18px; margin: 16px 0 0; }
.os-row .os-logo { width: 30px; height: 30px; color: var(--muted); }
/* Wide screens: the visitor's card takes the whole first row; details sit on the right. */
@media (min-width: 760px) {
  .dl.mine { grid-column: 1 / -1; padding: 30px; }
  .dl.mine .btn { width: auto; align-self: flex-start; justify-self: start; min-width: 280px; }
  .dl.mine:has(.dl-meta) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; row-gap: 14px; align-content: start; }
  .dl.mine:has(.dl-meta) > * { grid-column: 1; }
  .dl.mine:has(.dl-meta) .dl-meta { grid-column: 2; grid-row: 1 / span 3; align-self: start; border-top: 0; padding: 0 0 0 40px; border-left: 1px solid var(--line); }
}

/* ===== Customer area (home, settings, renewals, password pages) =====
   Same tokens as the rest of the site. Class names printed by the PHP code of the original pages
   (expiry-badge green/orange/red, status-dot, expiration-date, credits-num, server-option ...) are styled here, never renamed. */
.area-main { padding: clamp(28px, 5vw, 48px) 0 clamp(48px, 8vw, 88px); }
.area-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 24px; }
.area-head h1 { font-size: clamp(1.8rem, 4.2vw, 2.5rem); margin: 0; }
.area-head p { margin: 6px 0 0; color: var(--muted); }
.area-narrow { max-width: 560px; margin: 0 auto; }
.area-narrow .panel { max-width: none; }

/* Header: brand + who is signed in, expiry badge, one "Menu" button that opens a panel (links, logout, language, theme) */
.app-header .wrap { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "brand who badge menu";
  align-items: center; column-gap: 16px; row-gap: 4px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.app-header .brand { grid-area: brand; white-space: nowrap; }
.app-header .menu-toggle, .app-header .nav-menu { justify-self: end; }
.app-header .who { grid-area: who; margin: 0; font-size: .9rem; line-height: 1.35; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.app-header .who .user { color: var(--text); font-weight: 650; }
.app-header .who .credits { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: .82rem; }
.app-header .expiry-badge { grid-area: badge; justify-self: end; }
.app-header .menu-toggle { display: none; grid-area: menu; margin: 0; min-height: 44px; }
.js .app-header .menu-toggle { display: inline-flex; align-items: center; }
.app-header .nav { grid-column: 1 / -1; flex-wrap: wrap; margin: 0; padding: 0; }
.nav-panel { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
.js .app-header .nav, .app-header .nav-dropdown-menu { display: none; position: absolute; top: calc(100% - 4px); right: 20px; left: auto; z-index: 60;
  width: min(320px, calc(100vw - 32px)); flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.js .app-header .nav.open, .app-header .nav-dropdown-menu.open { display: flex; }
.nav-panel a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 1rem; }
.nav-panel a:hover { background: var(--surface-2); }
.nav-panel a.logout { color: var(--red); margin-top: 6px; }
.nav-panel .tools { margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--line); justify-content: flex-start; }
.app-header .chip { min-height: 44px; padding: 8px 14px; }
/* home.php keeps its own menu buttons (toggleDropdown / toggleNav in its script); the theme switch of the site replaces its old one */
.app-header .nav-menu { grid-area: menu; }
.app-header .hamburger, .app-header .theme-toggle { display: none; }
@media (max-width: 720px) {
  .app-header .wrap { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand menu" "who badge"; padding-bottom: 10px; }
  .js .app-header .nav, .app-header .nav-dropdown-menu { right: 16px; top: 56px; }
}

/* Expiry badge (colour class printed by PHP) */
.expiry-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 650; padding: 6px 12px; border-radius: 999px;
  white-space: nowrap; background: var(--surface-2); color: var(--text); }
.expiry-badge.green { color: var(--green); background: color-mix(in srgb, var(--green) 8%, var(--surface)); }
.expiry-badge.orange, .expiry-badge.yellow { color: var(--yellow); background: color-mix(in srgb, var(--yellow) 10%, var(--surface)); }
.expiry-badge.red { color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--surface)); }

/* Stat tiles */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 22px; }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.stat { background: var(--surface); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow); border-top: 3px solid var(--accent); min-width: 0; }
.stat.blue { border-top-color: var(--ring-navy); }
.stat.cyan { border-top-color: var(--accent); }
.stat.amber { border-top-color: var(--ring-yellow); }
.stat.red { border-top-color: var(--red); }
.stat.green { border-top-color: var(--green); }
.stat .label { font-size: .76rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat .value { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1.25; margin: 6px 0 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat .value.small { font-size: 1.15rem; }
.stat .value.bad { color: var(--red); }
.stat .value.warn { color: var(--yellow); }
.stat .value.ok { color: var(--green); }
.stat .hint { font-size: .85rem; color: var(--muted); }

/* Search + sub-account table (rows are printed by PHP with these classes) */
.search-bar-wrap { margin-bottom: 14px; }
.search-bar-wrap input { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid #8E8E96; border-radius: 12px; padding: 12px 14px; min-height: 48px; }
.search-bar-wrap input:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.area-main:not(:has(.table-outer)) .search-bar-wrap { display: none; }
.table-outer { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 8px; }
.table-outer table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: .94rem; }
.table-outer th { text-align: left; font-size: .74rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); padding: 12px; white-space: nowrap; }
.table-outer td { padding: 6px 12px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table-outer tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.table-outer td a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 12px; }
.table-outer td a:hover { background: var(--surface-2); }
.table-outer .icon img { width: 26px; height: 26px; }
.table-hint { display: none; margin: 0 0 22px; font-size: .85rem; color: var(--muted); }
@media (max-width: 960px) { .table-hint { display: block; } }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; background: #8E8E96; }
.status-dot.online { background: #2BB24C; box-shadow: 0 0 0 4px color-mix(in srgb, #2BB24C 22%, transparent); }
.user-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-size: .76rem; font-weight: 700; margin-right: 10px; vertical-align: middle; }
.outlined-label { font-weight: 650; }
.expiration-date { font-weight: 650; font-variant-numeric: tabular-nums; }
.expiration-date.green { color: var(--green); }
.expiration-date.yellow { color: var(--yellow); }
.expiration-date.red { color: var(--red); }
.traffic-up, .traffic-down { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); }
.credits-num { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.credits-num.low { color: var(--yellow); }
.credits-num.zero { color: var(--red); }

/* Info cards under the table */
.info-bar { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
@media (max-width: 760px) { .info-bar { grid-template-columns: 1fr; } }
.info-card { background: var(--surface); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow); }
.info-card h2 { font-size: .8rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.sec-bar { margin-bottom: 10px; }
.sec-bar-label { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; margin-bottom: 4px; }
.sec-bar-val { font-weight: 650; }
.bar-track { background: var(--surface-2); border-radius: 4px; height: 4px; }
.bar-fill { height: 4px; border-radius: 4px; background: var(--accent); }
.bar-fill.ok { background: var(--green); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .9rem; color: var(--muted); }
.legend img { width: 20px; height: 20px; vertical-align: middle; margin-right: 6px; }

/* Quick links (every customer) */
.quick { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 22px; }
.quick a { display: block; background: var(--surface); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow); color: var(--text); text-decoration: none; border: 1px solid var(--line); }
.quick a:hover { border-color: var(--accent); }
.quick strong { display: block; font-size: 1.05rem; }
.quick .muted { font-size: .92rem; }

/* Flexible renewal dialog (opened by home.php's script with style.display = 'flex') */
#flexRenewalModal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.5); }
.flex-modal-box { width: 100%; max-width: 420px; background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35); text-align: center; }
.flex-modal-box h2 { font-size: 1.4rem; margin: 0 0 6px; }
.flex-modal-sub { color: var(--muted); margin: 0 0 16px; }
.flex-modal-sub strong { color: var(--text); }
.flex-credits-box, .flex-cost-box { background: var(--surface-2); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
#flexModalCredits, #flexCreditCost { font-weight: 700; color: var(--accent); }
.flex-months-label { display: block; margin-bottom: 4px; }
.flex-months-label strong { font-size: 1.5rem; color: var(--accent); }
#flexMonthsRange { width: 100%; min-height: 44px; accent-color: var(--accent); }
.flex-range-hints { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
#flexModalError { display: none; margin-bottom: 12px; text-align: left; }
.flex-btns { display: flex; gap: 10px; }
.flex-btns .btn { flex: 1; }

/* Settings: server choice and download */
.section-block { background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 4vw, 30px); box-shadow: var(--shadow); margin-bottom: 22px; }
.section-head { margin-bottom: 16px; }
.section-head h2 { font-size: 1.3rem; margin: 0 0 4px; }
.section-head p { margin: 0; color: var(--muted); }
.conn-ok, .conn-warning { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.conn-ok { background: color-mix(in srgb, var(--green) 8%, var(--surface)); color: var(--green); }
.conn-warning { background: color-mix(in srgb, var(--red) 8%, var(--surface)); color: var(--red); }
.server-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); margin-bottom: 18px; }
.server-option { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); cursor: pointer; background: var(--surface); }
.server-option:hover { border-color: #8E8E96; }
.server-option.selected { border-color: var(--accent); background: var(--accent-soft); }
.server-option input[type="radio"] { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.server-option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.server-status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #8E8E96; }
.server-status-dot.on { background: #2BB24C; }
.server-info { min-width: 0; flex: 1; }
.server-name { font-weight: 650; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; overflow-wrap: anywhere; }
.server-endpoint { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.server-ep-text { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.conn-now-badge { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--green) 10%, var(--surface)); color: var(--green); }
.server-radio-dot { display: none; }
.download-btn[disabled] { background: var(--surface); color: var(--muted); border: 1px dashed var(--line); cursor: not-allowed; opacity: 1; }
.download-hint { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.guide-card { background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 4vw, 30px); box-shadow: var(--shadow); }
.guide-card h2 { font-size: 1.3rem; }
.guide-steps { display: grid; gap: 12px; }
.guide-step { display: flex; gap: 12px; align-items: flex-start; }
.step-num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; }

/* Renewal plans (PayPal forms) and result messages */
.plan form { margin-top: auto; }
.plan form .btn { width: 100%; }
.pay-note { margin-top: 22px; text-align: center; color: var(--muted); font-size: .92rem; }
.notice.ok { background: color-mix(in srgb, var(--green) 8%, var(--surface)); color: var(--green); }
/* Windows/Mac buttons: "Disponibile a breve" until the file is on the server (switched on by gecolux-site.js). */
.file-dl .when-on { display: none; }
.file-dl.on .when-on { display: inline; }
.file-dl.on .when-off { display: none; }
.btn-primary.is-off { background: var(--surface); color: var(--muted); border: 1px dashed var(--line); pointer-events: none; }
.dl-meta dd:empty::after { content: "\2014"; color: var(--muted); font-weight: 400; }

/* Theme switch: always in the header next to "Menu" (works only with JavaScript, so hidden without it). */
.theme-btn { display: none; align-items: center; gap: 8px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; min-height: 44px; min-width: 44px; padding: 0 14px; cursor: pointer; }
.js .theme-btn { display: inline-flex; justify-content: center; }
.theme-btn:hover { background: var(--surface-2); }
.theme-btn .ico { width: 20px; height: 20px; flex: none; display: none; }
.theme-btn[data-mode="auto"] .ico-auto, .theme-btn[data-mode="light"] .ico-light, .theme-btn[data-mode="dark"] .ico-dark { display: block; }
.site-header .brand { order: 0; }
.site-header .nav { order: 1; }
.site-header .theme-btn { order: 2; }
.site-header .menu-toggle { order: 3; }
.app-header .theme-btn { grid-area: theme; }
.app-header .wrap { grid-template-columns: auto minmax(0, 1fr) auto auto auto; grid-template-areas: "brand who badge theme menu"; }
@media (max-width: 900px) {
  .site-header .theme-btn { margin-left: auto; padding: 0; width: 44px; }
  .site-header .theme-btn .theme-name { display: none; }
  .js .site-header .menu-toggle { margin-left: 0; min-height: 44px; }
}
@media (max-width: 720px) {
  .app-header .wrap { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "brand theme menu" "who badge badge"; }
  .app-header .theme-btn { margin-left: 0; }
}
/* Mac card: the two macOS paths to allow the network extension */
.dl-steps { margin: -6px 0 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.dl-steps li { margin: 4px 0; }
.dl-steps strong { color: var(--text); }
