/*
 * Nexora IPTV Player — shared stylesheet for the customer-facing pages (landing/purchase + portal).
 * Dark theme, brand gradient #7C4DFF → #00D2FF. No external resources.
 */

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  --bg: #0A0C16;
  --bg-2: #0D1020;
  --surface: #12162E;
  --surface-2: #181D3B;
  --surface-3: #20264B;
  --border: rgba(165, 175, 255, 0.12);
  --border-strong: rgba(165, 175, 255, 0.24);
  --text: #ECEEFB;
  --text-muted: #AEB4D4;
  --text-dim: #8C92B6;

  --violet: #7C4DFF;
  --violet-soft: #A88BFF;
  --indigo: #3D5AFE;
  --cyan: #00D2FF;
  --grad: linear-gradient(135deg, #7C4DFF 0%, #00D2FF 100%);
  --grad-90: linear-gradient(90deg, #7C4DFF 0%, #00D2FF 100%);
  --grad-btn: linear-gradient(135deg, #7C4DFF 0%, #3D5AFE 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 77, 255, 0.18) 0%, rgba(0, 210, 255, 0.10) 100%);

  --success: #3BE29A;
  --success-bg: rgba(59, 226, 154, 0.12);
  --warning: #FFBE5C;
  --warning-bg: rgba(255, 190, 92, 0.12);
  --danger: #FF7A93;
  --danger-solid: #E5395B;
  --danger-bg: rgba(255, 122, 147, 0.12);
  --info: #5FDDFF;
  --info-bg: rgba(0, 210, 255, 0.10);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 60px -25px rgba(0, 0, 0, 0.8);
  --glow: 0 12px 36px -12px rgba(124, 77, 255, 0.6);

  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --header-h: 68px;
  --gutter: 16px;
  --container: 1180px;

  color-scheme: dark;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

/* ── 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);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 8% -8%, rgba(124, 77, 255, 0.20), transparent 60%),
    radial-gradient(900px 520px at 100% 2%, rgba(0, 210, 255, 0.11), transparent 62%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: rgba(124, 77, 255, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--text);
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container-narrow { width: min(100% - 2 * var(--gutter), 860px); }

.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.grad-text {
  background: var(--grad-90);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.fine-print { color: var(--text-dim); font-size: 0.85rem; line-height: 1.55; }
.label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Brand ────────────────────────────────────────────────────────────────── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.brand:hover { text-decoration: none; }
/* Approved wordmark "NEXORA — IPTV PLAYER" (logo-wide.png, 1200×300, transparent; white letters on the dark header). */
.brand-logo { display: block; width: auto; height: 44px; max-width: none; }
@media (max-width: 560px) { .brand-logo { height: 36px; } }
@media (max-width: 380px) { .brand-logo { height: 32px; } }
.wordmark {
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: 0.16em;
  background: var(--grad-90);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.brand-tag {
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  --btn-h: 44px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-h);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(124, 77, 255, 0.9);
}
.btn-primary:hover { box-shadow: 0 10px 30px -8px rgba(0, 210, 255, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) inset; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border-strong); }

.btn-outline {
  background: transparent;
  border-color: rgba(124, 77, 255, 0.55);
  color: var(--text);
}
.btn-outline:hover { background: rgba(124, 77, 255, 0.12); border-color: var(--violet-soft); }

.btn-danger { background: var(--danger-solid); color: #fff; }
.btn-danger:hover { background: #F04468; }

.btn-sm { --btn-h: 36px; padding: 0 12px; font-size: 0.875rem; border-radius: 10px; }
.btn-sm .icon { width: 17px; height: 17px; }
.btn-lg { --btn-h: 52px; padding: 0 24px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }

.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-icon:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.btn-icon.danger:hover { background: var(--danger-bg); color: var(--danger); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 22, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(10, 12, 22, 0.88); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.site-nav a:not(.btn) {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color .2s, background-color .2s;
}
.site-nav a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.nav-cta { margin-inline-start: 8px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: 12px;
}
.page-portal .header-actions { margin-inline-start: auto; }

/* Language selector (i18n.js fills [data-lang-select]): a globe + language code chip with the native <select> laid
   over it, so the platform's own list (native language names) opens on click / tap / Enter / Space / arrow keys. */
.lang-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding-inline: 10px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background-color .2s, color .2s, border-color .2s;
}
.lang-select:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255, 255, 255, 0.08); }
.lang-select:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; color: var(--text); }
.lang-select .icon { width: 17px; height: 17px; }
.lang-select .lang-select-chevron { width: 14px; height: 14px; stroke-width: 2.2; }
.lang-select-code { min-width: 2ch; text-align: center; direction: ltr; }
.lang-select-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font: inherit;
  font-size: 16px; /* no zoom-on-focus on iOS */
  color: #111;
  background: #fff;
  border: 0;
  appearance: none;
}
.lang-select-input option { color: #111; background: #fff; }
.lang-select-input:focus { outline: none; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  margin-left: -10px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bar::before { transform: translateY(-6px); }
.nav-toggle-bar::after { transform: translateY(6px); }
.is-open .nav-toggle-bar { background: transparent; }
.is-open .nav-toggle-bar::before { transform: rotate(45deg); background: var(--text); }
.is-open .nav-toggle-bar::after { transform: rotate(-45deg); background: var(--text); }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-block; }
  .header-actions { margin-inline-start: auto; }
  .site-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px var(--gutter) 20px;
    background: rgba(10, 12, 22, 0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 14px; font-size: 1rem; }
  .nav-cta { margin: 10px 0 0; min-height: 46px; }
}

@media (max-width: 380px) {
  .lang-select { padding-inline: 8px 6px; gap: 4px; }
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-tight { padding: 40px 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(18, 22, 46, 0.55), rgba(18, 22, 46, 0.25));
  border-block: 1px solid var(--border);
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad-90);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.section-title { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; }
.section-lead { margin-top: 14px; color: var(--text-muted); font-size: 1.06rem; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: linear-gradient(180deg, rgba(24, 29, 59, 0.85), rgba(18, 22, 46, 0.85));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
@media (min-width: 640px) { .card { padding: 28px; } }
.card-title { font-size: 1.25rem; font-weight: 700; }

.card-gradient {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  border: 1px solid transparent;
  overflow: hidden;
}

/* ── Google Play visitors (?src=play → html.src-play, common.js initPlaySource) ── */
/* purchase / price / WhatsApp / download elements; links to "/" get [hidden] from common.js */
html.src-play [data-play-hide] { display: none !important; }
.brand--static { cursor: default; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { padding: 56px 0 72px; }
@media (min-width: 961px) { .hero { padding: 80px 0 96px; } }

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 961px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
  padding-inline: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(124, 77, 255, 0.10);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(59, 226, 154, 0.18);
}

.hero-title {
  margin-top: 20px;
  font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.hero-title .grad-text { display: inline; }
.hero-lead {
  margin-top: 20px;
  max-width: 580px;
  color: var(--text-muted);
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
@media (max-width: 480px) {
  .hero-ctas .btn { flex: 1 1 100%; }
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  list-style: none;
}
.platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  font-weight: 600;
}
.platform .icon { width: 18px; height: 18px; color: var(--text-muted); }
.platform-state {
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.platform.is-ready .platform-state { background: var(--success-bg); color: var(--success); }
.platform.is-ready .icon { color: var(--success); }
.platform.is-soon { color: var(--text-muted); }
.platform.is-soon .platform-state { background: rgba(255, 255, 255, 0.06); color: var(--text-dim); }

.hero-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 22px;
  max-width: 580px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--info-bg);
  border: 1px solid rgba(0, 210, 255, 0.22);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hero-note .icon { color: var(--info); margin-top: 2px; }
.hero-note strong { color: var(--text); font-weight: 600; }

/* Hero device mockup (pure CSS, decorative) */
.hero-visual { position: relative; min-width: 0; }
.mock {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  padding-block: 0 9%;
  padding-inline: 0 4%;
}
.mock::before {
  content: "";
  position: absolute;
  inset: 8% 6% 14% 6%;
  background: var(--grad);
  filter: blur(60px);
  opacity: .35;
  border-radius: 40%;
  z-index: 0;
}
.mock-tv {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 10;
  padding: 2.2%;
  border-radius: 18px;
  background: linear-gradient(160deg, #262C55, #10132A);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.mock-screen {
  display: grid;
  grid-template-columns: 36% 1fr;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #070912;
}
.mock-list {
  display: flex;
  flex-direction: column;
  gap: 4%;
  padding: 5% 5%;
  background: #0C0F21;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 0;
}
.mock-cat {
  font-size: clamp(7px, 1.3vw, 11px);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--violet-soft);
}
.mock-ch {
  display: flex;
  align-items: center;
  gap: 7%;
  padding: 5% 6%;
  border-radius: 8px;
  min-width: 0;
}
.mock-ch.is-active { background: rgba(124, 77, 255, 0.22); box-shadow: inset 2px 0 0 var(--cyan); }
.mock-logo { flex: none; width: 18%; aspect-ratio: 1; border-radius: 6px; }
.ml-1 { background: linear-gradient(135deg, #7C4DFF, #00D2FF); }
.ml-2 { background: linear-gradient(135deg, #FF6B6B, #FFB547); }
.ml-3 { background: linear-gradient(135deg, #00C9A7, #0094FF); }
.ml-4 { background: linear-gradient(135deg, #8BC34A, #2EAD5B); }
.ml-5 { background: linear-gradient(135deg, #FF7AD9, #A35BFF); }
.mock-ch-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.mock-ch-text b {
  font-size: clamp(7px, 1.25vw, 11px);
  font-weight: 600;
  color: #DDE1F7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-bar { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); position: relative; overflow: hidden; }
.mock-bar::after { content: ""; position: absolute; inset-block: 0; inset-inline: 0 auto; border-radius: 3px; background: var(--grad-90); }
.mb-1::after { width: 64%; }
.mb-2::after { width: 30%; }
.mb-3::after { width: 82%; }
.mb-4::after { width: 45%; }
.mb-5::after { width: 15%; }

.mock-player { position: relative; overflow: hidden; }
.mock-video {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 30% 35%, rgba(0, 210, 255, 0.55), transparent 70%),
    radial-gradient(55% 60% at 75% 65%, rgba(124, 77, 255, 0.65), transparent 70%),
    linear-gradient(160deg, #1A1446, #071A2E);
}
.mock-video::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30%;
  background: linear-gradient(transparent, rgba(5, 8, 20, 0.95));
}
.mock-live {
  position: absolute;
  top: 6%;
  inset-inline-start: 5%;
  padding: 2px 8px;
  border-radius: 6px;
  background: #E5395B;
  color: #fff;
  font-size: clamp(7px, 1.1vw, 10px);
  font-weight: 800;
  letter-spacing: .08em;
}
.mock-info {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 7%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mock-info b { font-size: clamp(9px, 1.7vw, 15px); color: #fff; }
.mock-info small { font-size: clamp(7px, 1.1vw, 10px); color: #B8BEDD; }
.mock-progress { display: block; height: 3px; margin-top: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.mock-progress span { display: block; width: 58%; height: 100%; background: var(--grad-90); }

.mock-stand {
  position: relative;
  z-index: 1;
  width: 26%;
  height: 10px;
  margin: 0 auto;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #1E2347, #12152C);
}
.mock-phone {
  position: absolute;
  z-index: 2;
  inset-inline-end: 0;
  bottom: 0;
  width: 24%;
  aspect-ratio: 9 / 19;
  padding: 2.4% 1.6%;
  border-radius: 18px;
  background: linear-gradient(160deg, #2A3060, #10132A);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.mock-phone-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 6%;
  height: 100%;
  padding: 10% 8%;
  border-radius: 12px;
  background: #080A16;
}
.mock-poster { aspect-ratio: 2 / 3; border-radius: 5px; }
.mp-1 { background: linear-gradient(160deg, #7C4DFF, #2B1A6E); }
.mp-2 { background: linear-gradient(160deg, #00D2FF, #0B4A6E); }
.mp-3 { background: linear-gradient(160deg, #FF8A65, #6E2A1A); }
.mp-4 { background: linear-gradient(160deg, #4DD0A1, #145A44); }
.mp-5 { background: linear-gradient(160deg, #F06292, #5E1A3A); }
.mp-6 { background: linear-gradient(160deg, #9FA8DA, #2A3060); }

.mock-float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(18, 22, 46, 0.92);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  font-size: clamp(10px, 1.4vw, 13px);
  font-weight: 600;
  white-space: nowrap;
}
.mock-float .icon { width: 16px; height: 16px; color: var(--cyan); }
.mock-float--bg { inset-inline-start: -2%; bottom: 2%; }
.mock-float--trial { inset-inline-end: 18%; top: -5%; }
.mock-float--trial .icon { color: var(--violet-soft); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { display: block; width: 3px; border-radius: 2px; background: var(--cyan); height: 40%; }
.eq i:nth-child(2) { height: 100%; }
.eq i:nth-child(3) { height: 65%; }
@media (prefers-reduced-motion: no-preference) {
  .eq i { animation: eq 1s ease-in-out infinite; }
  .eq i:nth-child(2) { animation-delay: -.3s; }
  .eq i:nth-child(3) { animation-delay: -.6s; }
  .mock-float--trial { animation: float 5s ease-in-out infinite; }
}
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (max-width: 480px) {
  .mock-float--bg { inset-inline-start: 0; }
  .mock-float--trial { inset-inline-end: 22%; top: -7%; }
}

/* ── Download (/download/windows | /download/android, shown when the server offers a file) ── */
.download-section { padding-top: 0; }
.download-band {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius-xl);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  border: 1px solid transparent;
}
@media (min-width: 961px) {
  .download-band { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 40px; }
  .download-band:has(.download-grid.is-single) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
.download-copy .section-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
.download-copy .section-lead { margin-top: 10px; }
.download-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.download-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(10, 12, 22, 0.55);
}
.download-ico {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid rgba(124, 77, 255, 0.35);
  color: var(--cyan);
}
.download-ico .icon { width: 22px; height: 22px; }
.download-body { display: grid; gap: 6px; flex: 1; align-content: start; }
.download-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1.12rem; font-weight: 750; }
.download-free {
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.download-body p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.55; }
.download-body .download-meta { color: var(--text-dim); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.download-btn { width: 100%; justify-content: center; }

/* ── Features ─────────────────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}
.feature {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(18, 22, 46, 0.6);
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.feature:hover { transform: translateY(-2px); border-color: rgba(124, 77, 255, 0.45); background: rgba(24, 29, 59, 0.8); }
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid rgba(124, 77, 255, 0.35);
  color: var(--cyan);
}
.feature-icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 1.04rem; font-weight: 700; }
.feature p { margin-top: 8px; color: var(--text-muted); font-size: 0.93rem; line-height: 1.55; }

/* ── Trial ────────────────────────────────────────────────────────────────── */
.trial-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 961px) { .trial-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.trial-sub {
  margin-top: 10px;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 700;
  color: var(--text);
}
.check-grid {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  list-style: none;
}
@media (min-width: 640px) { .check-grid { grid-template-columns: 1fr 1fr; } }
.check-grid li { display: flex; gap: 12px; align-items: flex-start; }
.check-grid strong { display: block; font-weight: 700; }
.check-grid p { margin-top: 4px; color: var(--text-muted); font-size: 0.92rem; }
.check-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
}
.check-ico .icon { width: 16px; height: 16px; stroke-width: 2.4; }

.timeline-card { display: flex; flex-direction: column; gap: 26px; }
.timeline { list-style: none; display: grid; gap: 0; }
.tl-item {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 26px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  inset-inline-start: 11px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(124, 77, 255, 0.7), rgba(0, 210, 255, 0.5));
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--violet);
}
.tl-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--violet); }
.tl-mid .tl-dot { border-color: var(--warning); }
.tl-mid .tl-dot::after { background: var(--warning); }
.tl-end .tl-dot { border-color: var(--cyan); }
.tl-end .tl-dot::after { background: var(--cyan); }
.tl-label { font-weight: 800; font-size: 1.05rem; }
.tl-item p { color: var(--text-muted); font-size: 0.95rem; margin-top: 2px; }

/* ── MAC guide + app mock-up ──────────────────────────────────────────────── */
.guide-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 961px) { .guide-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; } }
.guide-steps { display: grid; gap: 14px; margin-top: 30px; list-style: none; }
.guide-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(18, 22, 46, 0.6);
}
.guide-step .step-num { margin: 0; }
.guide-step h3 { font-size: 1.02rem; }
.guide-step p { margin-top: 4px; color: var(--text-muted); font-size: 0.93rem; }
.guide-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.guide-note .icon { color: var(--success); margin-top: 2px; }

.step-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 6px 18px -6px rgba(124, 77, 255, 0.9);
}

.app-mock-wrap { position: relative; display: grid; place-items: center; min-width: 0; }
.app-mock-wrap::before {
  content: "";
  position: absolute;
  inset: 10% 8%;
  background: var(--grad);
  filter: blur(70px);
  opacity: .28;
  border-radius: 40%;
}
.app-mock {
  position: relative;
  width: min(100%, 440px);
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(170deg, #161A38, #0B0E1F);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.app-mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.app-mock-brand {
  font-weight: 800;
  letter-spacing: .16em;
  font-size: 0.9rem;
  background: var(--grad-90);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.app-mock-title { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }
.app-mock .badge { margin-bottom: 14px; }
.app-mock-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.app-mock-mac {
  margin: 4px 0 16px;
  font-family: var(--mono);
  font-size: clamp(1.3rem, 1rem + 1.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
  overflow-wrap: anywhere;
}
.app-mock-pin {
  margin: 4px 0 12px;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--text);
}
.app-mock .is-highlight {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  background: rgba(124, 77, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(124, 77, 255, 0.55);
}
.app-mock-row { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.app-mock-info { min-width: 0; }
.app-mock-steps {
  display: grid;
  gap: 4px;
  padding-inline-start: 18px;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.app-mock-qr { flex: none; width: 104px; height: 104px; border-radius: 12px; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06); }
.app-mock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  min-height: 44px;
  border-radius: 12px;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.app-mock-btn .icon { width: 18px; height: 18px; }
@media (max-width: 420px) {
  .app-mock-row { flex-direction: column; }
  .app-mock-qr { align-self: center; }
}

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 18px;
  align-items: stretch;
}
.plans.is-few { max-width: 860px; margin-inline: auto; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(24, 29, 59, 0.9), rgba(16, 20, 42, 0.9));
  box-shadow: var(--shadow);
  min-width: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.plan--best {
  background: linear-gradient(180deg, #1B2048, #121633) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--glow);
}
.plan.is-selected:not(.plan--best) { border-color: var(--violet-soft); box-shadow: 0 0 0 1px var(--violet-soft), var(--shadow); }
@media (min-width: 961px) { .plan--best { transform: translateY(-8px); } }
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--grad-btn);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(124, 77, 255, 0.9);
}
.plan-name { font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.plan-duration {
  align-self: flex-start;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(124, 77, 255, 0.14);
  color: var(--violet-soft);
  font-size: 0.8rem;
  font-weight: 700;
}
.plan-price {
  margin-top: 18px;
  font-size: clamp(1.9rem, 1.6rem + 1vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.plan-price.is-text { font-size: 1.15rem; font-weight: 700; color: var(--text-muted); }
.plan-sub { margin-top: 6px; min-height: 1.4em; color: var(--text-dim); font-size: 0.88rem; }
.plan-features {
  display: grid;
  gap: 10px;
  margin: 22px 0 24px;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.93rem;
}
.plan-features li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.plan-features .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--success); stroke-width: 2.4; }
.plan .btn { margin-top: auto; }

.plan--skeleton { gap: 14px; min-height: 380px; }
.sk {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
}
@media (prefers-reduced-motion: no-preference) { .sk { animation: shimmer 1.4s linear infinite; } }
.sk-title { width: 50%; height: 20px; }
.sk-price { width: 65%; height: 38px; margin-top: 10px; }
.sk-line { width: 90%; height: 12px; }
.sk-line.short { width: 55%; }
.sk-btn { width: 100%; height: 44px; margin-top: auto; border-radius: 12px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.state-box {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  text-align: center;
  color: var(--text-muted);
}
.state-box > .icon { width: 32px; height: 32px; color: var(--text-dim); }
.state-title { color: var(--text); font-weight: 700; }
.pricing-note { margin-top: 28px; text-align: center; }

/* ── Purchase wizard ──────────────────────────────────────────────────────── */
.buy-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}
@media (min-width: 1025px) { .buy-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; } }

.wizard { padding: 0; overflow: hidden; }
.wizard-form { display: block; }
.wiz-step {
  margin: 0;
  padding: 24px;
  border: 0;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
@media (min-width: 640px) { .wiz-step { padding: 28px 32px; } }
.wiz-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding: 0;
  font-size: 1.12rem;
  font-weight: 700;
}
.wiz-head .opt { color: var(--text-dim); font-weight: 500; font-size: 0.9rem; }
.wiz-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(124, 77, 255, 0.6);
  color: var(--violet-soft);
  font-size: 0.95rem;
  font-weight: 800;
  transition: background-color .2s, color .2s, border-color .2s;
}
.wiz-step.is-done .wiz-num {
  background: var(--grad-btn);
  border-color: transparent;
  color: transparent;
  position: relative;
}
.wiz-step.is-done .wiz-num::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 6px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: translateY(-2px) rotate(-45deg);
}
.wiz-intro { margin: -8px 0 16px; }

.wiz-submit { padding: 24px; display: grid; gap: 16px; background: rgba(7, 9, 18, 0.28); }
@media (min-width: 640px) { .wiz-submit { padding: 28px 32px 32px; } }
.orders-off { padding: 24px; display: grid; gap: 16px; }
@media (min-width: 640px) { .orders-off { padding: 28px 32px 32px; } }

.inline-loading { display: flex; align-items: center; gap: 10px; }
.spinner {
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--cyan);
  animation: spin .7s linear infinite;
}

/* MAC live check */
.mac-result:empty { display: none; }
.mac-result { margin-top: 16px; }
.mac-status {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 9, 18, 0.45);
  font-size: 0.94rem;
}
.mac-status p { color: var(--text-muted); margin-top: 4px; }
.mac-status .help { margin-top: 6px; }
.mac-status strong { color: var(--text); }
.mac-status.is-checking { align-items: center; color: var(--text-muted); }
.mac-status-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.mac-status-ico .icon { width: 19px; height: 19px; }
.mac-status-body { min-width: 0; flex: 1; }
.mac-status-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mac-status-mac { font-weight: 700; letter-spacing: .04em; }
.mac-status-actions { margin-top: 10px; }
.mac-status.is-ok { border-color: rgba(59, 226, 154, 0.3); }
.mac-status.is-ok .mac-status-ico { background: var(--success-bg); color: var(--success); }
.mac-status.is-warning { border-color: rgba(255, 190, 92, 0.35); background: rgba(255, 190, 92, 0.06); }
.mac-status.is-warning .mac-status-ico { background: var(--warning-bg); color: var(--warning); }
.mac-status.is-error { border-color: rgba(255, 122, 147, 0.35); background: rgba(255, 122, 147, 0.06); }
.mac-status.is-error .mac-status-ico { background: var(--danger-bg); color: var(--danger); }

/* Plan radio cards */
.plan-opt-list { display: grid; gap: 10px; }
@media (min-width: 640px) { .plan-opt-list { grid-template-columns: 1fr 1fr; } }
.plan-opt { position: relative; display: block; cursor: pointer; min-width: 0; }
.plan-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.plan-opt-body {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(7, 9, 18, 0.45);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.plan-opt:hover .plan-opt-body { border-color: rgba(165, 175, 255, 0.4); background: rgba(255, 255, 255, 0.04); }
.plan-opt-radio {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-dim);
  transition: border-color .2s, box-shadow .2s;
}
.plan-opt-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.plan-opt-name { font-weight: 700; overflow-wrap: anywhere; }
.plan-opt-dur { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text-dim); font-size: 0.85rem; }
.plan-opt-best {
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 210, 255, 0.12);
  color: var(--info);
  font-size: 0.72rem;
  font-weight: 700;
}
.plan-opt-price { font-weight: 800; font-size: 1.05rem; text-align: end; white-space: nowrap; }
.plan-opt input:checked + .plan-opt-body {
  border-color: transparent;
  background: linear-gradient(#171C3D, #141834) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 10px 28px -16px rgba(124, 77, 255, 0.9);
}
.plan-opt input:checked + .plan-opt-body .plan-opt-radio { border-color: var(--cyan); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 10px var(--cyan); }
.plan-opt input:focus-visible + .plan-opt-body { outline: 2px solid var(--cyan); outline-offset: 2px; }
.plan-options .field-error { margin-top: 10px; }

/* Summary list (dl) */
.summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 9, 18, 0.45);
  font-size: 0.94rem;
}
.summary dt { color: var(--text-muted); }
.summary dd { margin: 0; text-align: end; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.summary dd.mono { font-family: var(--mono); letter-spacing: .03em; }
.summary .remain { display: block; color: var(--text-dim); font-size: 0.85rem; font-weight: 500; }
.summary--compact { margin-top: 16px; padding: 14px 16px; font-size: 0.92rem; }

/* Success */
.order-success { padding: 28px 24px 32px; display: grid; gap: 20px; }
.order-success:focus { outline: none; }
@media (min-width: 640px) { .order-success { padding: 36px 32px 36px; } }
.success-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.success-ico {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  box-shadow: var(--glow);
}
.success-ico .icon { width: 32px; height: 32px; stroke-width: 2.6; }
.success-title { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem); font-weight: 800; }
.success-title:focus { outline: none; }
.order-no-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  text-align: center;
}
.order-no-row { display: flex; align-items: center; gap: 6px; }
.order-no {
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: .08em;
  background: var(--grad-90);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  overflow-wrap: anywhere;
}
.box-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.box-title .icon { color: var(--cyan); }
.pay-box, .send-box {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(7, 9, 18, 0.4);
}
.pay-text {
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: var(--text);
  line-height: 1.65;
}
.send-box .contact-list { margin-top: 14px; }
.send-box .msg-preview { margin-top: 14px; }
.success-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 480px) { .success-actions .btn { flex: 1 1 100%; } }
.success-ico.is-busy { background: var(--surface-3); color: var(--cyan); box-shadow: none; }
.success-ico.is-muted { background: rgba(255, 255, 255, 0.07); color: var(--text-muted); box-shadow: none; }
.success-ico.is-warning { background: var(--warning-bg); color: var(--warning); box-shadow: none; }
.spinner--lg { width: 30px; height: 30px; border-width: 3px; }

/* Card payment (hosted provider page — the site never handles card data) */
.pay-opt-list { display: grid; gap: 10px; }
.pay-opt .plan-opt-body { align-items: flex-start; min-height: 0; padding: 16px; }
.pay-opt .plan-opt-radio { margin-top: 2px; }
.pay-opt-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.pay-opt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pay-opt-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.pay-opt-via { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--success); font-size: 0.82rem; font-weight: 600; }
.pay-opt-via .icon { width: 14px; height: 14px; }
.pay-opt-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad-soft);
  color: var(--cyan);
}
.pay-opt-ico .icon { width: 21px; height: 21px; }
@media (max-width: 400px) { .pay-opt-ico { display: none; } }
.req { color: var(--warning); font-weight: 500; font-size: 0.85rem; }

.trust-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59, 226, 154, 0.25);
  background: var(--success-bg);
  color: #CFF7E4;
  font-size: 0.9rem;
  line-height: 1.5;
}
.trust-note > .icon { flex: none; margin-top: 1px; width: 18px; height: 18px; color: var(--success); }
.pay-note { text-align: center; }

.pay-head { display: flex; gap: 14px; align-items: flex-start; }
.pay-head-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--success-bg);
  color: var(--success);
}
.pay-head-ico .icon { width: 22px; height: 22px; }
.pay-head-text { min-width: 0; }
.pay-title { font-size: 1.3rem; font-weight: 800; }
.pay-title:focus { outline: none; }
.pay-head-text .muted { margin-top: 4px; }
.pay-order-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pay-order-no { font-weight: 700; letter-spacing: .06em; }
.pay-frame-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #fff;
}
.pay-frame { display: block; width: 100%; height: 700px; border: 0; background: #fff; }
@media (max-width: 480px) { .pay-frame { height: 820px; } }
.pay-status { display: grid; gap: 12px; }
.pay-status:empty { display: none; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.live-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.92rem; }
.live-line .spinner { width: 16px; height: 16px; border-width: 2px; }
.result-card .live-line { margin-top: 12px; }
.badge--pay-paid { background: var(--success-bg); color: var(--success); }
.badge--pay-unpaid { background: var(--warning-bg); color: var(--warning); }
.badge--pay-failed { background: var(--danger-bg); color: var(--danger); }
.badge--pay-refunded { background: rgba(255, 255, 255, 0.07); color: var(--text-muted); }

/* Aside */
.buy-aside { display: grid; gap: 16px; }
.aside-card { padding: 22px; }
.aside-card .card-title { font-size: 1.08rem; margin-bottom: 12px; }
.mini-steps { display: grid; gap: 12px; list-style: none; }
.mini-steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); font-size: 0.93rem; }
.mini-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(124, 77, 255, 0.16);
  color: var(--violet-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.msg-preview {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 9, 18, 0.55);
  overflow: hidden;
}
.msg-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 8px;
  padding-inline: 14px 8px;
  border-bottom: 1px solid var(--border);
}
.msg-text {
  margin: 0;
  padding: 14px;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Contact buttons */
.contact-list { display: grid; gap: 10px; }
.contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  min-width: 0;
  transition: border-color .2s, background-color .2s, transform .15s;
}
.contact-btn:hover { text-decoration: none; border-color: var(--border-strong); background: rgba(255, 255, 255, 0.06); transform: translateY(-1px); }
.contact-btn .contact-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #fff;
}
.contact-btn .contact-ico .icon { width: 20px; height: 20px; }
.contact-btn .contact-text { display: flex; flex-direction: column; min-width: 0; }
.contact-btn .contact-text small { color: var(--text-dim); font-weight: 500; font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-btn .arrow { margin-inline-start: auto; color: var(--text-dim); width: 18px; height: 18px; }
.contact-btn.is-primary { background: var(--grad-soft); border-color: rgba(124, 77, 255, 0.5); }
.contact-list--compact .contact-btn { min-height: 50px; padding: 8px 12px; }
.contact-list--compact .contact-ico { width: 34px; height: 34px; }
.ci-site { background: var(--grad-btn); }
.ci-whatsapp { background: #168A46; }
.ci-telegram { background: #1C86BA; }
.ci-email { background: #4F5869; }
.ci-website { background: #3D4A7A; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field + .field { margin-top: 16px; }
.field label, .field legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding: 0;
}
.field legend { margin-bottom: 7px; }
.opt { color: var(--text-dim); font-weight: 500; }
.help { color: var(--text-dim); font-size: 0.84rem; line-height: 1.45; }
.field-error { color: var(--danger); font-size: 0.86rem; font-weight: 500; }

.form-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field-wide { grid-column: 1 / -1; }
}
.form-grid .field + .field { margin-top: 0; }
.form-grid--tight { margin-top: 16px; }

.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(7, 9, 18, 0.6);
  color: var(--text);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
textarea.input { min-height: 90px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: #737A9E; opacity: 1; }
.input:hover { border-color: rgba(165, 175, 255, 0.36); }
.input:focus { outline: none; border-color: var(--violet-soft); box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.28); background: rgba(7, 9, 18, 0.85); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 122, 147, 0.18); }
.input-mono { font-family: var(--mono); letter-spacing: 0.04em; }
.input-lg { min-height: 52px; font-size: 1.05rem; }

.input-row { display: flex; gap: 10px; }
.input-row .input { flex: 1; min-width: 0; }
@media (max-width: 480px) {
  .input-row { flex-direction: column; }
}

.input-affix { position: relative; }
.input-affix .input { padding-inline-end: 52px; }
.affix-btn {
  position: absolute;
  top: 50%;
  inset-inline-end: 6px;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-dim);
}
.affix-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.affix-btn .icon-eye-off { display: none; }
.affix-btn[aria-pressed="true"] .icon-eye { display: none; }
.affix-btn[aria-pressed="true"] .icon-eye-off { display: block; }

/* ── Lookups (order status / license status) ─────────────────────────────── */
.lookup-grid {
  display: grid;
  gap: 20px;
  align-items: start;
}
@media (min-width: 900px) { .lookup-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.lookup-card .card-title { margin-bottom: 6px; }
.lookup-form { display: grid; gap: 14px; margin-top: 20px; }
.lookup-form .field + .field { margin-top: 0; }
.lookup-result:empty { display: none; }
.lookup-result { margin-top: 20px; }

.result-card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(7, 9, 18, 0.45);
}
.result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.result-id { font-family: var(--mono); font-size: 1.02rem; font-weight: 700; letter-spacing: .04em; overflow-wrap: anywhere; }
.result-title { margin-top: 14px; font-size: 1.02rem; }
.result-msg { margin-top: 12px; color: var(--text-muted); }
.result-msg:empty { display: none; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.result-card .contact-list { margin-top: 16px; }
.result-ico {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--grad-soft);
  color: var(--cyan);
}
.result-ico .icon { width: 28px; height: 28px; }
.result-ico--sm { width: 36px; height: 36px; border-radius: 10px; }
.result-ico--sm .icon { width: 19px; height: 19px; }
.result-card.is-error { border-color: rgba(255, 122, 147, 0.35); }
.result-card.is-error .result-ico { background: var(--danger-bg); color: var(--danger); }
.result-card--approved { border-color: rgba(59, 226, 154, 0.3); }
.result-card--pending { border-color: rgba(255, 190, 92, 0.3); }

/* ── Cards with icon titles ──────────────────────────────────────────────── */
.card-title { display: flex; align-items: center; gap: 10px; }
.card-title > .icon { color: var(--cyan); }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--trial { background: var(--info-bg); color: var(--info); }
.badge--active, .badge--approved { background: var(--success-bg); color: var(--success); }
.badge--expired, .badge--pending { background: var(--warning-bg); color: var(--warning); }
.badge--banned, .badge--rejected { background: var(--danger-bg); color: var(--danger); }
.badge--cancelled { background: rgba(255, 255, 255, 0.07); color: var(--text-muted); }
/* the app is free on this device ("Platform politikaları" on the server) */
.badge--free { background: rgba(168, 139, 255, 0.16); color: var(--violet-soft); }

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.93rem;
}
.alert > .icon { margin-top: 2px; }
.alert p + p { margin-top: 4px; }
.alert-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.alert--error { background: var(--danger-bg); border-color: rgba(255, 122, 147, 0.35); color: #FFD3DC; }
.alert--error > .icon { color: var(--danger); }
.alert--info { background: var(--info-bg); border-color: rgba(0, 210, 255, 0.25); color: var(--text-muted); }
.alert--info > .icon { color: var(--info); }
.alert--success { background: var(--success-bg); border-color: rgba(59, 226, 154, 0.3); color: #CFF7E4; }
.alert--success > .icon { color: var(--success); }
.alert--warning { background: var(--warning-bg); border-color: rgba(255, 190, 92, 0.35); color: #FFE6C2; }
.alert--warning > .icon { color: var(--warning); }
.alert strong { color: var(--text); }

/* ── Promo ────────────────────────────────────────────────────────────────── */
.promo {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 32px 24px;
}
.promo::before {
  content: "";
  position: absolute;
  inset-inline-end: -10%;
  top: -40%;
  width: 60%;
  height: 160%;
  background: radial-gradient(closest-side, rgba(0, 210, 255, 0.16), transparent);
  pointer-events: none;
}
@media (min-width: 640px) { .promo { padding: 44px; } }
@media (min-width: 961px) { .promo { grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 56px; } }
.promo-copy { position: relative; }
.promo .btn { margin-top: 28px; }
.bullet-list { display: grid; gap: 10px; margin-top: 22px; list-style: none; }
.bullet-list li { position: relative; padding-inline-start: 28px; color: var(--text-muted); }
.bullet-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad);
  -webkit-mask: radial-gradient(circle, transparent 3px, #000 3.5px);
  mask: radial-gradient(circle, transparent 3px, #000 3.5px);
}
.promo-visual {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(7, 9, 18, 0.55);
  border: 1px solid var(--border);
}
.promo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.promo-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
}
.pb-m3u { background: linear-gradient(135deg, #7C4DFF, #5A35D0); }
.pb-xc { background: linear-gradient(135deg, #0A93C2, #0A6F99); }
.pb-st { background: linear-gradient(135deg, #E0603F, #C2413D); }
.promo-lines { display: grid; gap: 8px; flex: 1; }
.promo-lines i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.promo-lines i.short { width: 55%; background: rgba(255, 255, 255, 0.07); }
.promo-sync {
  position: absolute;
  inset-inline-end: -14px;
  bottom: -14px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  box-shadow: var(--glow);
}
.promo-sync .icon { width: 24px; height: 24px; }
@media (prefers-reduced-motion: no-preference) {
  .promo-sync .icon { animation: spin 6s linear infinite; }
}
@media (max-width: 480px) { .promo-sync { inset-inline-end: 8px; } }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(18, 22, 46, 0.6);
  transition: border-color .2s, background-color .2s;
}
.faq-item[open] { border-color: rgba(124, 77, 255, 0.45); background: rgba(24, 29, 59, 0.8); }
.faq-item summary {
  position: relative;
  padding-block: 18px;
  padding-inline: 20px 56px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform .2s ease, margin-top .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item p { padding: 0 20px 20px; color: var(--text-muted); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 40px;
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  background: rgba(7, 9, 18, 0.5);
}
.footer-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .muted { margin-top: 14px; max-width: 360px; font-size: 0.93rem; }
.footer-title {
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-col ul { display: grid; gap: 8px; list-style: none; }
.footer-col a { color: var(--text-muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: grid;
  gap: 10px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── Toasts ───────────────────────────────────────────────────────────────── */
.toast-region {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: grid;
  gap: 10px;
  width: min(100% - 32px, 420px);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(24, 29, 59, 0.97);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-weight: 500;
  font-size: 0.93rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: none; }
.toast--success .icon { color: var(--success); }
.toast--error .icon { color: var(--danger); }
.toast--info .icon { color: var(--info); }

/* ── Dialogs ──────────────────────────────────────────────────────────────── */
.modal {
  width: min(100% - 24px, 560px);
  max-height: min(100% - 24px, 860px);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-sm { width: min(100% - 24px, 420px); }
.modal::backdrop { background: rgba(4, 5, 12, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { display: flex; flex-direction: column; }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: modal-in .22s ease; }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-form { display: flex; flex-direction: column; min-height: 0; max-height: inherit; }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px 14px;
  padding-inline: 24px 18px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-body { padding: 20px 24px; overflow-y: auto; min-height: 0; }
.modal-body > .alert { margin-bottom: 16px; }
.modal-body--center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 28px; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 20px;
  border-top: 1px solid var(--border);
  background: rgba(7, 9, 18, 0.3);
}
@media (max-width: 480px) {
  .modal-head { padding-inline-start: 18px; }
  .modal-body { padding: 18px; }
  .modal-foot { padding: 14px 18px 18px; }
  .modal-foot .btn { flex: 1; }
}
.danger-ico {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--danger-bg);
  color: var(--danger);
}
.danger-ico .icon { width: 26px; height: 26px; }

/* ── Segmented control (radio group styled as tabs) ───────────────────────── */
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(7, 9, 18, 0.6);
  border: 1px solid var(--border-strong);
}
.seg-item { position: relative; display: block; min-width: 0; }
.seg-item input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.seg-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  transition: background-color .2s, color .2s;
}
.seg-item:hover span { color: var(--text); }
.seg-item input:checked + span { background: var(--grad-btn); color: #fff; box-shadow: 0 6px 16px -8px rgba(124, 77, 255, 0.9); }
.seg-item input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.type-panel { margin-top: 16px; }
.type-panel + .type-panel { margin-top: 16px; }
.type-panel ~ .field { margin-top: 16px; }

/* ── Utilities ────────────────────────────────────────────────────────────── */
@media (max-width: 480px) { .hide-xs { display: none; } }

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .spinner, .btn.is-loading::after { animation-duration: .7s !important; animation-iteration-count: infinite !important; }
}

/* ── Right-to-left (ar, fa: <html dir="rtl">) ─────────────────────────────── */
/* Layout uses logical properties (margin-inline, padding-inline, inset-inline, text-align: start/end). On top:
   directional icons (class icon-dir) point the other way, and machine-readable values (MAC addresses, order numbers,
   URLs, e-mail addresses, phone numbers) keep their left-to-right order. */
[dir="rtl"] .icon-dir { transform: scaleX(-1); }
[dir="rtl"] .mono,
[dir="rtl"] .input-mono,
[dir="rtl"] input[type="url"],
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="tel"] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] input.input-mono,
[dir="rtl"] input[type="url"],
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="tel"] { text-align: right; }
