/* ZapZap TV website. Mobile first; calm: no animations, only short
   hover/focus transitions (none with prefers-reduced-motion). */

/* Fonts, served from this site (SIL Open Font License): Poppins for
   everything (ExtraBold titles), Cairo for Arabic. */
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/assets/fonts/cairo-arabic-400-800.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EEFF; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/assets/fonts/cairo-latin-400-800.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/poppins-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/poppins-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/poppins-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/poppins-latin-800.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/poppins-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #ffffff;
  --bg-2: #f6f6f8;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --tint: #fff4f1;
  --line: rgba(20, 20, 30, 0.08);
  --line-2: rgba(20, 20, 30, 0.14);
  --text: #16161d;
  --muted: #555563;
  --faint: #7b7b88;
  --orange: #ff3b14;
  --amber: #d92d0d;
  --red: #c4000c;
  --violet: #8b5cf6;
  --magenta: #d946ef;
  --green: #16a34a;
  --ok: #15803d;
  --bad: #c81e1e;
  --wa: #25d366;
  --grad: linear-gradient(135deg, #ff7a1a 0%, #ff2a10 50%, #c4000c 100%);
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.04), 0 14px 34px -18px rgba(20, 20, 30, 0.18);
  --wrap: 1440px;
  --gutter: 20px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: var(--font);
  --font-ar: "Cairo", "SF Arabic", "Geeza Pro", Tahoma, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 150px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; text-wrap: balance; }
h1, h2 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.i { width: 20px; height: 20px; flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(clamp(var(--gutter), 4vw, 64px), env(safe-area-inset-left)); }
.narrow > * { max-width: 820px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px; border: 1px solid transparent;
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -12px rgba(255, 42, 16, 0.65); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(255, 42, 16, 0.8); }
.btn-ghost { background: rgba(20, 20, 30, 0.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(20, 20, 30, 0.08); border-color: rgba(20, 20, 30, 0.24); }
.btn-wa { background: var(--wa); color: #062b14; }
.btn-wa:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--amber); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link .i { width: 18px; height: 18px; }

/* ------------------------------------------------------------ header */
.lang-hint { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 14px; }
.lang-hint .wrap { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.lang-hint span { flex: 1; color: var(--muted); }
.lang-hint a { color: var(--amber); font-weight: 600; }
.hint-x { background: none; border: 0; color: var(--muted); padding: 8px; cursor: pointer; display: grid; place-items: center; }

.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(20, 20, 30, 0.25); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; }
.logo img { width: 28px; height: 28px; }
.k4 { background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; letter-spacing: 0.02em; }
.bar-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.lang a { min-width: 38px; min-height: 36px; display: grid; place-items: center; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--muted); padding: 0 8px; }
.top-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--text); border: 1px solid transparent; }
.top-link .i { width: 20px; height: 20px; color: var(--muted); }
.top-link:hover, .top-link[aria-current="page"] { background: var(--tint); color: var(--red); }
.top-link:hover .i, .top-link[aria-current="page"] .i { color: var(--orange); }
.top-res { border-color: var(--line-2); }

/* Second row: the menu. Phones: a bar of four tabs, icon above the word. */
.navrow { border-top: 1px solid var(--line); }
.nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; padding: 6px 2px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 12.5px; line-height: 1.15; text-align: center; position: relative; }
.nav a .i { width: 22px; height: 22px; }
.nav a .l { display: none; }
.nav a[aria-current="page"] { color: var(--red); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 22%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad); }
.nav .nav-cta { color: var(--orange); }
@media (min-width: 760px) {
  .bar { min-height: 76px; }
  .logo { font-size: 20px; }
  .logo img { width: 36px; height: 36px; }
  .navrow-in { display: flex; align-items: center; }
  .nav { display: flex; align-items: center; gap: 4px; width: 100%; }
  .nav a { flex-direction: row; gap: 10px; min-height: 54px; padding: 0 14px; font-size: 15.5px; color: var(--text); }
  .nav a .l { display: inline; }
  .nav a .s { display: none; }
  .nav a .i { width: 21px; height: 21px; color: var(--faint); }
  .nav a:hover { color: var(--red); }
  .nav a:hover .i, .nav a[aria-current="page"] .i { color: var(--orange); }
  .nav a[aria-current="page"]::after { inset-inline: 14px; }
  .nav .nav-cta { margin-inline-start: auto; min-height: 40px; padding: 0 18px; border-radius: 12px; background: var(--grad); color: #fff; box-shadow: 0 10px 24px -12px rgba(255, 42, 16, 0.7); }
  .nav .nav-cta .i, .nav .nav-cta:hover, .nav .nav-cta:hover .i { color: #fff; }
  .nav .nav-cta::after { display: none; }
}
@media (max-width: 759px) {
  .top-link { padding: 0; width: 40px; justify-content: center; border-color: var(--line-2); }
  .top-link span { display: none; }
  .bar .lang a { min-width: 32px; padding: 0 5px; font-size: 12px; }
  .bar-end { gap: 6px; }
}
@media (max-width: 359px) { .bar .lang { display: none; } }

/* ------------------------------------------------------------ type */
.kicker { color: var(--amber); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
h1 { font-size: clamp(34px, 8.6vw, 64px); }
h2 { font-size: clamp(28px, 6vw, 44px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
.h3 { font-size: 22px; margin-bottom: 18px; }
.lead { font-size: clamp(17px, 4.4vw, 20px); color: var(--muted); margin-top: 18px; max-width: 62ch; }
.sub { color: var(--muted); margin-top: 12px; font-size: 17px; max-width: 60ch; }
.note, .small { color: var(--faint); font-size: 14px; }
.note { margin-top: 18px; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; padding: 44px 0 28px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 30%; height: 620px; background: radial-gradient(closest-side, rgba(255, 42, 16, 0.10), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 10% 40% auto -20%; height: 520px; background: radial-gradient(closest-side, rgba(224, 30, 60, 0.10), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta .btn { flex: 1 1 220px; }
@media (min-width: 600px) { .cta .btn { flex: 0 0 auto; } }

.devices-fig { position: relative; padding: 0 0 34px; max-width: 640px; width: 100%; margin-inline: auto; }
.tv-screen { border-radius: 14px; padding: 8px; background: linear-gradient(180deg, #2a2f45, #141726); box-shadow: 0 30px 80px -30px rgba(20, 20, 30, 0.35), 0 0 0 1px rgba(20, 20, 30, 0.06) inset; }
.tv-screen img { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.tv-stand { width: 34%; height: 10px; margin: 0 auto; background: linear-gradient(180deg, #1c2033, #0e1120); border-radius: 0 0 10px 10px; }
/* The app is always sideways, so the phone is too. */
.phone { position: absolute; inset-inline-end: -4%; bottom: 0; width: 44%; min-width: 150px; border-radius: 16px; padding: 5px; background: linear-gradient(180deg, #2a2f45, #141726); box-shadow: 0 24px 60px -20px rgba(20, 20, 30, 0.35), 0 0 0 1px rgba(20, 20, 30, 0.07) inset; }
.phone img { border-radius: 11px; aspect-ratio: 1136 / 540; object-fit: cover; width: 100%; }

.compat { position: relative; z-index: 1; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.compat > span { display: block; color: var(--faint); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.compat ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.compat li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px; border-radius: 14px;
  background: rgba(20, 20, 30, 0.03); border: 1px solid var(--line); color: var(--text); font-weight: 500; font-size: 14px; line-height: 1.25; }
.compat li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dev-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--amber);
  background: linear-gradient(135deg, rgba(255, 106, 26, 0.16), rgba(224, 30, 60, 0.16)); border: 1px solid rgba(255, 42, 16, 0.32); }
.dev-ico .i { width: 21px; height: 21px; }
@media (min-width: 760px) {
  .compat ul { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .compat li:last-child:nth-child(odd) { grid-column: auto; }
}

@media (min-width: 960px) {
  .hero { padding: 72px 0 36px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; }
  .devices-fig { margin: 0; }
}

/* ------------------------------------------------------------ sections */
.section { padding: 64px 0; }
.section.tight { padding: 24px 0 48px; }
.section.alt { background: linear-gradient(180deg, transparent, rgba(20, 20, 30, 0.02) 15%, rgba(20, 20, 30, 0.02) 85%, transparent); }
.sec-head { max-width: 720px; margin-bottom: 36px; }
.more { margin-top: 28px; }
@media (min-width: 900px) { .section { padding: 96px 0; } }

.page-head { padding: 44px 0 20px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: -60% -20% auto 40%; height: 480px; background: radial-gradient(closest-side, rgba(255, 42, 16, 0.13), transparent 70%); pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head .notice { margin-top: 24px; }
@media (min-width: 900px) { .page-head { padding: 72px 0 28px; } }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

.card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.feat h3 { margin: 16px 0 8px; }
.feat p { color: var(--muted); font-size: 15.5px; }
.ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--amber);
  background: linear-gradient(135deg, rgba(255, 106, 26, 0.16), rgba(224, 30, 60, 0.16)); border: 1px solid rgba(255, 42, 16, 0.32); }
.ico .i { width: 22px; height: 22px; }

.checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.checks .i { color: var(--green); width: 20px; height: 20px; margin-top: 2px; }
.checks + .btn { margin-top: 26px; }

.split { display: grid; gap: 36px; align-items: center; }
.split-copy .btn { margin-top: 28px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; }
  .split.flip .split-copy { order: 2; }
}
.shot { border-radius: 14px; padding: 8px; background: linear-gradient(180deg, #2a2f45, #141726); box-shadow: 0 30px 70px -30px rgba(20, 20, 30, 0.35); }
.shot img { border-radius: 8px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.code-card { justify-self: center; width: min(100%, 380px); display: grid; gap: 6px; text-align: center; padding: 30px 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.code-card img { margin: 0 auto 10px; }
.code-card .lbl { color: var(--faint); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 10px; }
.code-card .val { font-size: 20px; color: var(--text); background: rgba(20, 20, 30, 0.04); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.code-card .val.big { font-size: 28px; letter-spacing: 0.12em; color: var(--amber); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.step .num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 700; margin-bottom: 16px; }
.step p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .steps.s4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .steps.s4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.prices { display: grid; gap: 16px; max-width: 860px; }
@media (min-width: 900px) { .prices { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.plans { list-style: none; margin: 4px 0 22px; padding: 0; display: grid; gap: 10px; }
.plans li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(20, 20, 30, 0.04); border: 1px solid var(--line); }
.plans b { font-size: 24px; font-weight: 800; color: var(--text); }
.price { position: relative; display: flex; flex-direction: column; padding: 28px; }
.price .btn { margin-top: auto; }
.price .checks { margin-bottom: 26px; }
.price.best { border-color: rgba(255, 42, 16, 0.45); background: linear-gradient(180deg, rgba(255, 42, 16, 0.1), var(--surface) 60%); }
.amount { font-family: var(--font-head); font-size: 42px; font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.amount small { font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.badge { position: absolute; top: 20px; inset-inline-end: 20px; font-size: 12px; font-weight: 700; color: #fff; background: var(--grad); padding: 4px 10px; border-radius: 999px; }

.notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; padding: 16px 18px; border-radius: var(--radius); background: rgba(20, 20, 30, 0.03); border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.notice .i { color: var(--amber); margin-top: 2px; }
.notice b { color: var(--text); }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex: 1; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translateX(-2px); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

.final { margin-top: 40px; text-align: center; padding: 44px 24px; border-radius: 28px; background: radial-gradient(120% 140% at 50% 0%, rgba(255, 42, 16, 0.16), transparent 60%), var(--surface); border: 1px solid var(--line); }
.final p { color: var(--muted); margin: 12px auto 26px; }

/* ------------------------------------------------------------ download */
.apk { display: grid; gap: 24px; align-items: center; }
.apk-id { display: flex; align-items: center; gap: 16px; }
.apk-id img { border-radius: 18px; width: 64px; height: 64px; }
.apk-id h2 { font-size: 22px; }
.apk-id p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.apk-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.apk-meta div { background: rgba(20, 20, 30, 0.03); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.apk-meta dt { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.apk-meta dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
@media (max-width: 480px) { .apk-meta { grid-template-columns: 1fr 1fr; } .apk-meta div:last-child { grid-column: 1 / -1; } }
.apk-cta p { color: var(--faint); font-size: 14px; margin-top: 10px; }
.apk-cta .btn { width: 100%; }
@media (min-width: 900px) {
  .apk { grid-template-columns: auto 1fr auto; gap: 32px; padding: 28px 32px; }
  .apk-cta .btn { width: auto; }
  .apk-cta p { max-width: 260px; }
}
.two { display: grid; gap: 16px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 20px; } }
.guide h2 { font-size: 22px; margin-top: 16px; }
.guide .btn { margin-top: 24px; }
.code-label { margin-top: 22px; color: var(--faint); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.keys { display: grid; grid-template-columns: repeat(7, minmax(0, 44px)); gap: 6px; margin-top: 8px; }
.keys span { height: 50px; display: grid; place-items: center; border-radius: 10px; background: var(--tint); border: 1px solid var(--line-2); font: 700 24px var(--mono); color: var(--amber); }
.list { margin: 22px 0 0; padding-inline-start: 22px; display: grid; gap: 10px; color: var(--muted); }
.list li::marker { color: var(--amber); font-weight: 700; }
.guide .small { margin-top: 18px; }
code { font-family: var(--mono); font-size: 0.92em; background: rgba(20, 20, 30, 0.06); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; color: var(--text); overflow-wrap: anywhere; }

/* ------------------------------------------------------------ forms */
.form { display: grid; gap: 18px; }
.form > h2 { font-size: 24px; }
.form .sub { margin-top: -8px; font-size: 15.5px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .seg legend { font-size: 14px; font-weight: 600; color: var(--text); }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #ffffff; color: var(--text);
  font: 400 16px/1.4 var(--font); transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input::placeholder, textarea::placeholder { color: #a0a0ad; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.18); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #f87171; }
.err { color: var(--bad); font-size: 14px; }
.row2 { display: grid; gap: 18px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.group { display: grid; gap: 18px; }

.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg legend { grid-column: 1 / -1; margin-bottom: 8px; padding: 0; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.seg span { display: grid; place-items: center; min-height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: #ffffff; font-weight: 600; color: var(--muted); transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.seg input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 3px; }

.status { min-height: 0; font-weight: 600; font-size: 15px; }
.status:empty { display: none; }
.status.ok { color: var(--ok); }
.status.err { color: var(--bad); }
.safe { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.safe .i { color: var(--green); margin-top: 1px; width: 18px; height: 18px; }

.act { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .act { grid-template-columns: 1.15fr 1fr; } }
.act-side .where { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.act-side h4 { font-size: 16px; }
.act-side .where p { color: var(--muted); margin-top: 6px; font-size: 15px; }

.support { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .support { grid-template-columns: 1.2fr 1fr; gap: 40px; } }

/* ------------------------------------------------------------ legal, 404 */
.legal { max-width: 72ch; }
.legal h1 { font-size: clamp(30px, 7vw, 44px); margin-bottom: 24px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-inline-start: 22px; display: grid; gap: 8px; margin: 12px 0; }
.nf { text-align: start; padding-bottom: 80px; }
.nf .btn { margin-top: 28px; }

/* ------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--bg-2); }
.foot-top { display: grid; gap: 36px; }
.foot-brand p { color: var(--muted); margin-top: 14px; max-width: 38ch; font-size: 15px; }
.foot-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.foot h2 { font-family: var(--font); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 12px; font-weight: 600; }
.foot-cols a { display: block; color: var(--muted); text-decoration: none; padding: 6px 0; font-size: 15px; }
.foot-cols a:hover { color: var(--text); }
.foot-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
@media (min-width: 760px) {
}

/* ------------------------------------------------------------ small screens */
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .logo span:first-of-type { font-size: 15px; }
  .k4 { font-size: 11px; padding: 2px 5px; }
  .bar { gap: 8px; }
  .logo { gap: 6px; }
  .bar-end { gap: 6px; }
  .lang a { min-width: 32px; min-height: 34px; padding: 0 4px; font-size: 12px; }
  .menu-btn { width: 40px; height: 40px; }
  .card, .price { padding: 20px; }
  .keys span { height: 46px; font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Arabic: right to left. Codes, IDs, links and addresses stay left to right. */
[dir="rtl"] { --font: var(--font-ar); --font-head: var(--font-ar); }
[dir="rtl"] h1, [dir="rtl"] h2 { font-weight: 800; line-height: 1.3; letter-spacing: 0; }
[dir="rtl"] .i-arrow { transform: scaleX(-1); }
[dir="rtl"] .mono, [dir="rtl"] code, .keys, .logo { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] input:not([name="name"]) { direction: ltr; text-align: right; }
[dir="rtl"] select { background-position: 20px 22px, 15px 22px; padding-right: 16px; padding-left: 40px; }
[dir="rtl"] .faq summary::after { transform: rotate(45deg) translateY(-3px); }

@media (max-width: 639px) {
  body { font-size: 15.5px; }
  h1 { font-size: clamp(28px, 8.2vw, 38px); }
  h2 { font-size: clamp(24px, 6.6vw, 30px); }
  h3 { font-size: 17.5px; }
  .lead { font-size: 16.5px; margin-top: 14px; }
  .sub { font-size: 15.5px; }
  .kicker { font-size: 12px; margin-bottom: 10px; }
  .hero { padding: 28px 0 20px; }
  .hero-grid { gap: 28px; }
  .section { padding: 48px 0; }
  .page-head { padding: 32px 0 14px; }
  .sec-head { margin-bottom: 24px; }
  .btn { min-height: 50px; font-size: 15.5px; }
  .compat { margin-top: 24px; gap: 10px 18px; }
  .compat li { font-size: 14px; }
  .card { padding: 20px; }
  .feat p, .step p { font-size: 15px; }
  .final { padding: 32px 20px; }
  .amount { font-size: 34px; }
  .logo { font-size: 16px; }
}

/* Home: the three steps under the buttons. */
.steps3 { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.steps3 li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 14px; background: rgba(20, 20, 30, 0.03); border: 1px solid var(--line); }
.steps3 .num { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--grad); color: #fff; font: 700 15px/1 var(--font-head); }
.steps3 b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--text); }
.steps3 small { display: block; font-size: 12.5px; color: var(--faint); margin-top: 2px; line-height: 1.3; }
@media (max-width: 639px) {
  .steps3 { grid-template-columns: 1fr; gap: 8px; margin-top: 20px; }
}

@media (min-width: 640px) { .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 64px; } }

.disclaimer { color: var(--faint); font-size: 13px; line-height: 1.6; margin-top: 40px; max-width: 120ch; }

/* Wide screens: the page is full width, but every block of content is
   centred with a comfortable width, so nothing sticks to the left. */
.narrow > * { margin-inline: auto; max-width: 860px; }
.page-head { text-align: center; }
.page-head .lead { margin-inline: auto; }
.page-head .notice { text-align: start; }
.sec-head { max-width: 780px; margin: 0 auto 40px; text-align: center; }
.sec-head .sub { margin-inline: auto; }
.more { text-align: center; }
.prices { max-width: 1140px; margin-inline: auto; }
.prices + .notice { max-width: 1140px; margin-inline: auto; }
.split { max-width: 1200px; margin-inline: auto; }
.act, .support, .two { max-width: 1200px; margin-inline: auto; }
.apk { max-width: 1200px; margin-inline: auto; }
.final { max-width: 1200px; margin-inline: auto; }
.wrap > .notice { max-width: 1200px; margin-inline: auto; }
.compat > span { text-align: center; }
.wrap > .card.guide { max-width: 1200px; margin-inline: auto; }
/* The three steps: right under the buttons on phones, a full row under the hero on big screens. */
.hero-grid > .steps3 { order: 2; margin-top: 0; }
.hero-grid > .devices-fig { order: 3; }
@media (min-width: 960px) {
  .hero-grid > .steps3 { order: 4; grid-column: 1 / -1; }
  .steps3 li { padding: 14px 18px; gap: 14px; }
  .steps3 .num { width: 34px; height: 34px; font-size: 17px; }
  .steps3 b { font-size: 16px; }
  .steps3 small { font-size: 14px; }
}

/* Account pages (/account, /panel): drawn by js/portal.js. */
.portal-page { padding-top: 28px; }
.portal { display: grid; gap: 20px; }
.portal .muted { color: var(--muted); }
.portal .small { font-size: 13.5px; }
.portal .big { font-size: 18px; font-weight: 700; }
.portal-card { max-width: 560px; margin-inline: auto; width: 100%; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.tab { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 600 14.5px/1.2 var(--font); cursor: pointer; padding: 6px; }
.tab.on { background: var(--grad); color: #fff; }
.rules { margin: -8px 0 0; padding-inline-start: 18px; color: var(--faint); font-size: 13.5px; display: grid; gap: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--orange); }
.check a { color: var(--amber); }
.link-btn { justify-self: center; background: none; border: 0; color: var(--amber); font: 600 14.5px var(--font); cursor: pointer; padding: 6px; }
.notice.small { margin-top: 0; font-size: 14px; }

.panel-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.panel-head-end { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.credits { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; }
.panel-sec { display: grid; gap: 16px; }
.panel-sec > form { display: grid; gap: 14px; }
.inline-form { display: grid; gap: 12px; }
.inline-form .btn { justify-self: start; }

.devices { display: grid; gap: 14px; }
@media (min-width: 900px) { .devices { grid-template-columns: 1fr 1fr; } }
.device { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line-2); background: #ffffff; }
.device-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.facts dt { color: var(--faint); }
.facts dd { margin: 0; }
.more-box { border-top: 1px solid var(--line); padding-top: 10px; }
.more-box summary { cursor: pointer; font-weight: 600; color: var(--amber); }
.more-box[open] summary { margin-bottom: 10px; }

.pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.pill.ok { background: rgba(34, 197, 94, .16); color: var(--ok); }
.pill.sys { background: rgba(59, 130, 246, .18); color: #1d4ed8; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.toolbar .seg { grid-template-columns: auto auto; }
.toolbar .seg span { min-height: 40px; padding: 0 14px; }
.search { flex: 1 1 220px; min-height: 44px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { color: var(--faint); font-weight: 600; font-size: 13px; background: #ffffff; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.off { opacity: .55; }
.tbl td input[type=checkbox] { width: 18px; height: 18px; min-height: 18px; accent-color: var(--orange); }
.tbl .actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.tbl .num { width: 84px; min-height: 38px; padding: 6px 10px; }
.tbl .plus { color: var(--ok); font-weight: 700; }
.tbl .minus { color: var(--bad); font-weight: 700; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(20, 20, 30, .04); color: var(--text); cursor: pointer; font-size: 16px; }
.icon-btn.danger { color: var(--bad); border-color: rgba(248, 113, 113, .4); }
.pager { display: flex; gap: 10px; align-items: center; }
.qr { background: #fff; border-radius: 12px; padding: 10px; width: 200px; height: 200px; }

/* Dashboard: section buttons that wrap (no sideways swipe on phones),
   cards, small windows, statistics. */
.panel-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.panel-nav button { min-height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: #ffffff; color: var(--text); font: 600 15px/1.2 var(--font); cursor: pointer; padding: 8px 10px; }
.panel-nav button[aria-current="true"] { background: var(--grad); border-color: transparent; color: #fff; }
.panel-body, .stack { display: grid; gap: 20px; }
.cards { display: grid; gap: 12px; }
@media (min-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
.device.off { opacity: .6; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card-actions .num { width: 90px; min-height: 40px; padding: 6px 10px; }
.btn.danger { color: var(--bad); border-color: rgba(248, 113, 113, .4); }
.pill.off { background: rgba(248, 113, 113, .16); color: var(--bad); }
.tbl .actions .btn { min-height: 34px; padding: 0 10px; font-size: 13px; }
.seg3 { grid-template-columns: repeat(3, auto) !important; }
.pw-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { display: grid; gap: 4px; padding: 16px; border-radius: var(--radius); background: #ffffff; border: 1px solid var(--line-2); }
.tile b { font-size: 30px; line-height: 1.1; font-weight: 800; }
.tile span { color: var(--muted); font-size: 14px; }
.tile.wide { grid-column: 1 / -1; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.log li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #ffffff; border: 1px solid var(--line); }
.log .plus { color: var(--ok); font-weight: 800; }
.log .minus { color: var(--bad); font-weight: 800; }
.dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface-2); color: var(--text); padding: 20px; }
.dlg::backdrop { background: rgba(0, 0, 0, .65); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
@media (max-width: 760px) {
  .toolbar .search { flex-basis: 100%; }
  .card-actions .btn { flex: 1 1 40%; }
}

/* ------------------------------------------------------------ light theme
   White pages; the logo's reds for buttons, prices and highlights. */
.top { box-shadow: 0 1px 0 var(--line); }
.section.alt { background: var(--bg-2); }
.card { background: var(--surface); }
.btn-ghost { background: #fff; border-color: var(--line-2); }
.btn-ghost:hover { background: var(--tint); border-color: rgba(255, 42, 16, 0.4); color: var(--red); }
.nav a:not(.btn):hover { color: var(--red); background: var(--tint); }
.nav a[aria-current="page"] { color: var(--red); }
.lang a[aria-current="true"] { background: var(--tint); color: var(--red); }
.ico, .dev-ico { background: var(--tint); border-color: rgba(255, 42, 16, 0.22); color: var(--orange); }
.checks .i { color: var(--orange); }
.price.best { background: linear-gradient(180deg, var(--tint), #fff 55%); border: 2px solid rgba(255, 42, 16, 0.55); box-shadow: 0 24px 50px -28px rgba(255, 42, 16, 0.45); }
.amount { color: var(--text); }
.price.best .amount { color: var(--red); }
.plans li { background: #fff; }
.plans b { color: var(--red); }
.final { background: var(--grad); border: 0; color: #fff; box-shadow: 0 30px 60px -30px rgba(196, 0, 12, 0.55); }
.final p { color: rgba(255, 255, 255, 0.88); }
.final .btn-primary { background: #fff; color: var(--red); box-shadow: none; }
.tv-screen, .phone, .shot { background: linear-gradient(180deg, #2b2b33, #121217); }
.tv-stand { background: linear-gradient(180deg, #2b2b33, #121217); }
.foot { background: var(--bg-2); border-top: 1px solid var(--line); }
.seg input:checked + span { box-shadow: 0 8px 20px -10px rgba(255, 42, 16, 0.6); }
.pill.ok { background: rgba(22, 163, 74, 0.12); }
.pill.off { background: rgba(200, 30, 30, 0.1); }
.pill.sys { background: rgba(29, 78, 216, 0.1); }
.dlg { background: #fff; }
.dlg::backdrop { background: rgba(20, 20, 30, 0.5); }

/* Activation: the plan choice above the Device ID. */
.plan-seg span { min-height: 56px; font-size: 15.5px; }

/* Home: resellers. */
.reseller { max-width: 1200px; margin-inline: auto; display: grid; gap: 28px; padding: 28px; border-radius: 28px;
  background: #111116; color: #f2f2f5; --text: #f2f2f5; --muted: #b4b4c0; --line: rgba(255, 255, 255, 0.1); --line-2: rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 70px -36px rgba(20, 20, 30, 0.6); position: relative; overflow: hidden; }
.reseller::before { content: ""; position: absolute; inset: -40% -10% auto 45%; height: 520px; background: radial-gradient(closest-side, rgba(255, 42, 16, 0.32), transparent 70%); pointer-events: none; }
.reseller > * { position: relative; }
.reseller .kicker { color: #ff7a52; }
.reseller .checks li { color: #e6e6ec; }
.reseller .checks .i { color: #ff6a3d; }
.res-side { display: grid; gap: 12px; align-content: start; }
.res-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
.res-tile { display: grid; gap: 2px; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.res-tile:last-child { background: var(--grad); border-color: transparent; }
.res-tile span { font-weight: 600; font-size: 15px; color: #fff; }
.res-tile b { font: 800 44px/1.1 var(--font-head); color: #fff; letter-spacing: -0.03em; }
.res-tile small { font-size: 13.5px; color: rgba(255, 255, 255, 0.8); }
.reseller .btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.reseller .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
@media (min-width: 900px) {
  .reseller { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; padding: 48px 52px; align-items: center; }
}

/* Reseller page. */
.rs-hero { position: relative; overflow: hidden; text-align: center; padding: 56px 0 40px; background: radial-gradient(60% 80% at 50% 0%, var(--tint), #fff 70%); }
.rs-hero .lead { margin-inline: auto; }
.rs-hero .cta { justify-content: center; }
.rs-stats { list-style: none; margin: 40px auto 0; padding: 0; max-width: 900px; display: grid; gap: 12px; }
.rs-stats li { display: grid; gap: 2px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.rs-stats b { font: 800 24px/1.2 var(--font-head); color: var(--red); }
.rs-stats span { color: var(--muted); font-size: 14px; }
@media (min-width: 700px) { .rs-stats { grid-template-columns: repeat(3, 1fr); } }
.rs-box { max-width: 1200px; margin-inline: auto; padding: 28px 18px; border-radius: 28px; background: var(--bg-2); border: 1px solid var(--line); }
@media (min-width: 900px) { .rs-box { padding: 56px; } }
.eqs { display: grid; gap: 14px; max-width: 760px; margin: 0 auto 36px; }
@media (min-width: 700px) { .eqs { grid-template-columns: 1fr 1fr; } }
.eq { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.eq span { display: grid; place-items: center; min-height: 52px; border-radius: 12px; font-weight: 800; font-size: 17px; padding: 0 8px; text-align: center; }
.eq-a { background: #16161d; color: #fff; }
.eq-is { color: var(--faint); min-height: 0 !important; }
.eq-b { background: var(--tint); color: var(--red); border: 1px solid rgba(255, 42, 16, 0.25); }
.eq-life .eq-b { background: var(--grad); color: #fff; border: 0; }
.eq small { grid-column: 1 / -1; text-align: center; color: var(--faint); font-size: 13px; }
.rs-prices { display: grid; gap: 20px; align-items: start; }
@media (min-width: 980px) { .rs-prices { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.rs-table, .calc { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.rs-table h3, .calc h3 { font-size: 20px; }
.rs-table .small { margin: 4px 0 16px; }
.tiers { width: 100%; border-collapse: collapse; font-size: 15px; }
.tiers th { text-align: start; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); font-weight: 600; padding: 12px 14px; background: var(--bg-2); }
.tiers td { padding: 13px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
.tiers tbody tr { cursor: pointer; transition: background-color .15s ease; }
.tiers tbody tr:hover { background: var(--bg-2); }
.tiers tr.on { background: var(--tint) !important; box-shadow: inset 3px 0 0 var(--orange); }
.tiers .qty { font-weight: 700; }
.tiers b { color: var(--red); font-size: 16px; }
.save { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ok); background: rgba(22, 163, 74, 0.1); }
.table-wrap .tiers { min-width: 520px; }
.calc { display: grid; gap: 16px; }
@media (min-width: 980px) { .calc { position: sticky; top: 160px; } }
.stepper { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; }
.stepper button { min-height: 50px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font: 700 22px var(--font); color: var(--text); cursor: pointer; }
.stepper button:hover { background: var(--tint); color: var(--red); }
.stepper input { text-align: center; font-weight: 700; font-size: 20px; }
.calc-out { margin: 0; display: grid; gap: 8px; }
.calc-out div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); }
.calc-out dt { color: var(--muted); font-size: 14.5px; }
.calc-out dd { margin: 0; font-weight: 700; font-size: 17px; }
.calc-out .calc-total { background: #16161d; color: #fff; }
.calc-out .calc-total dt { color: #c9c9d3; }
.calc-out .calc-total dd { font: 800 26px/1.1 var(--font-head); }

/* Panel: "Add a playlist" stands out among the row buttons. */
.btn.pl { background: var(--grad); color: #fff; border-color: transparent; }
.btn.pl:hover { color: #fff; background: var(--grad); }

/* ------------------------------------------------------------ dashboard
   Resellers and the owner: a side menu (behind a "Menu" button below
   1000 px), the credits on top, the customers as a table from 1200 px and
   as cards below. Colours of a customer's state: green active, violet
   lifetime, amber ending within 30 days, red expired, grey cancelled. */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dash { display: grid; gap: 18px; align-items: start; }
@media (min-width: 1000px) { .dash { grid-template-columns: 264px minmax(0, 1fr); gap: 24px; } }
.dash-side { display: grid; gap: 12px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.dash-user { display: flex; gap: 12px; align-items: center; min-width: 0; }
.dash-user > div { display: grid; min-width: 0; }
.dash-user b { font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-user small { color: var(--faint); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-user .role { justify-self: start; margin-top: 4px; padding: 1px 8px; border-radius: 6px; background: var(--tint); color: var(--amber); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.avatar { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 16px; }
.dash-nav { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.dash-nav hr { width: 100%; margin: 8px 0; border: 0; border-top: 1px solid var(--line); }
.dash-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: 500 15px/1.25 var(--font); text-align: start; text-decoration: none; cursor: pointer; }
.dash-link:hover { background: var(--bg-2); }
.dash-link .ic { width: 22px; height: 22px; color: var(--muted); }
.dash-link[aria-current="page"] { background: var(--tint); color: var(--amber); font-weight: 600; box-shadow: inset 3px 0 0 var(--amber); }
[dir="rtl"] .dash-link[aria-current="page"] { box-shadow: inset -3px 0 0 var(--amber); }
.dash-link[aria-current="page"] .ic { color: var(--amber); }
.dash-link.out, .dash-link.out .ic { color: var(--muted); }
.dash-link.danger, .dash-link.danger .ic { color: var(--bad); }
.dash-menu { display: none; }
@media (max-width: 999px) {
  .dash-side { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .dash-menu { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--text); font: 600 15px var(--font); cursor: pointer; }
  .dash-nav { display: none; grid-column: 1 / -1; }
  .dash-side.open .dash-nav { display: grid; }
}
.dash-main, .dash-body { display: grid; gap: 18px; min-width: 0; }
.dash-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.dash-title { font-size: clamp(24px, 3vw, 30px); }
.dash-credits { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.dash-credits .ic { color: var(--amber); }
.dash-credits b { min-width: 46px; padding: 6px 12px; border-radius: 10px; background: var(--grad); color: #fff; font-size: 18px; letter-spacing: 0; text-align: center; }
.btn .ic { width: 18px; height: 18px; }
.btn-dark { background: #16161d; border-color: #16161d; color: #fff; }
.btn-dark:hover { background: #2a2a35; color: #fff; }
.btn .count { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }

/* Customers */
.cl { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.cl-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.cl-search { display: flex; gap: 8px; flex: 1 1 300px; max-width: 480px; }
.cl-search input { flex: 1; min-width: 0; min-height: 42px; }
.cl-search .btn { min-height: 42px; padding: 0 14px; }
.cl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--text); font: 500 14px var(--font); cursor: pointer; }
.chip:hover { border-color: rgba(20, 20, 30, .28); }
.chip[aria-pressed="true"] { border-color: var(--amber); background: var(--tint); color: var(--amber); font-weight: 600; }
.chip .count { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--bg-2); color: var(--text); font-size: 12.5px; font-weight: 700; text-align: center; }
.dot { width: 10px; height: 10px; flex: none; border-radius: 3px; background: #16a34a; }
.dot.soon { background: #f59e0b; } .dot.exp { background: #ef4444; } .dot.cancel { background: #9ca3af; }
.cl > .status { margin: 10px 14px 0; }
.cl-table { overflow-x: auto; }
.ct { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ct th { padding: 12px 10px; border-bottom: 1px solid var(--line); background: #fff; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .05em; line-height: 1.3; text-align: start; text-transform: uppercase; }
.ct th.end { text-align: end; }
.ct td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.ct tbody tr:hover { background: #fafafb; }
.ct tr.row-soon { background: #fffaeb; } .ct tr.row-exp { background: #fff3f3; }
.ct input[type=checkbox], .cc input[type=checkbox] { width: 18px; height: 18px; min-height: 18px; accent-color: var(--orange); }
.strong { font-weight: 700; }
.note-cell { display: inline-flex; align-items: center; gap: 4px; max-width: 170px; }
.sys-ver { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
/* Reseller list: the customer's country, flag then name. */
.country { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; max-width: 12em; }
.country .flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex: none; }
.country .flag-code { font: 700 11px/16px ui-monospace, monospace; padding: 0 4px; border-radius: 3px; background: rgba(0, 0, 0, .06); }
.country .cname { overflow: hidden; text-overflow: ellipsis; }
.sys-ver small { color: var(--faint); font-size: 12px; line-height: 1.2; }
.note-cell > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acts { display: flex; gap: 6px; justify-content: flex-end; }
.ib { width: 38px; height: 38px; flex: none; display: inline-grid; place-items: center; padding: 0; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--text); cursor: pointer; }
.ib:hover { border-color: rgba(20, 20, 30, .3); }
.ib.accent { background: var(--grad); border-color: transparent; color: #fff; }
.ib.dark { background: #16161d; border-color: #16161d; color: #fff; }
.ib.ghost { width: 30px; height: 30px; border: 0; background: transparent; color: var(--faint); }
.ib.ghost:hover { background: var(--bg-2); color: var(--amber); }
.ib.ghost .ic { width: 17px; height: 17px; }
.ib[disabled] { opacity: .35; cursor: default; }
.st { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.st.ok { background: #dcfce7; color: #166534; } .st.life { background: #ede9fe; color: #5b21b6; }
.st.soon { background: #fef3c7; color: #92400e; } .st.exp { background: #fee2e2; color: #991b1b; }
.st.cancel { background: #f3f4f6; color: #4b5563; }
.sys { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 8px; background: #e0ecff; color: #1d4ed8; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sys-android_tv { background: #dcfce7; color: #166534; } .sys-android { background: #ecfccb; color: #3f6212; }
.sys-windows { background: #e0f2fe; color: #075985; } .sys-ios { background: #f3f4f6; color: #374151; }
.cl-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; }
.pg { display: flex; gap: 6px; align-items: center; }
.pg .ib { width: 36px; height: 36px; }
[dir="rtl"] .pg .ic { transform: scaleX(-1); }
.cl-empty { padding: 40px 14px; color: var(--muted); text-align: center; }
.cl-cards { display: grid; gap: 10px; padding: 12px; }
@media (min-width: 700px) { .cl-cards { grid-template-columns: 1fr 1fr; } }
.cc { display: grid; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; min-width: 0; }
.cc.row-soon { background: #fffaeb; border-color: #fcd34d; } .cc.row-exp { background: #fff3f3; border-color: #fca5a5; }
.cc-top { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.cc-id { align-items: center; color: var(--text); font-size: 15px; font-weight: 700; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.cc .facts dd { min-width: 0; }
.cc .note-cell { display: flex; max-width: 100%; }
.note-cell > span { min-width: 0; }
.cc-acts .btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-acts { display: flex; gap: 8px; }
.cc-acts .btn { flex: 1; min-width: 0; padding: 0 10px; }
.sheet { display: grid; gap: 2px; }
.panel-sec .tiles, .dash-body > .tiles { margin: 0; }
@media (max-width: 560px) {
  .cl-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .cl-actions .btn { padding: 0 8px; font-size: 14px; }
  .cl-actions .btn:first-child { grid-column: 1 / -1; }
  .chips { display: grid; grid-template-columns: 1fr 1fr; }
  .chip { justify-content: center; padding: 0 8px; font-size: 13.5px; }
  .cl-search { max-width: none; }
  .dash-credits { padding-inline-start: 10px; }
}
/* The dashboard uses the whole width of big screens. */
.wrap.wrap-wide { max-width: 1760px; padding-inline: max(clamp(var(--gutter), 2vw, 32px), env(safe-area-inset-left)); }
/* Actions window: one framed button per action. Warning before a DNS change. */
.sheet { gap: 8px; }
.sheet .dash-link { min-height: 50px; border: 1px solid var(--line-2); background: #fff; }
.sheet .dash-link:hover { border-color: var(--amber); background: var(--tint); }
.sheet .dash-link.danger { border-color: rgba(200, 30, 30, .35); }
.warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid #fcd34d; background: #fffbeb; color: #92400e; font-size: 14px; line-height: 1.5; }
.warn .ic { width: 22px; height: 22px; margin-top: 1px; }
.ct .seller { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; color: var(--faint); font-size: 12px; }
.dlg .row2 { grid-template-columns: 1fr; }
/* The device's playlists window: one row per playlist (type, link or
   server, name, remove), stacked on phones. */
.dlg.wide { width: min(1100px, calc(100vw - 24px)); }
.plrows { display: grid; gap: 8px; }
.plr { display: grid; grid-template-columns: 150px minmax(0, 1fr) 180px auto; gap: 10px; align-items: end; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); }
.plr .field label { font-size: 12.5px; }
.plr input, .plr select { min-height: 44px; }
.plfs, .plf { min-width: 0; }
.plf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.plf .field:first-child:nth-last-child(2) { grid-column: span 2; }
.plr .ib.del { width: 44px; height: 44px; color: var(--bad); }
.pl-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
@media (max-width: 760px) {
  .plr { grid-template-columns: minmax(0, 1fr) auto; }
  .plr > .field:first-child, .plfs { grid-column: 1 / -1; }
  .plf { grid-template-columns: 1fr; }
  .plf .field:first-child:nth-last-child(2) { grid-column: auto; }
  .pl-foot .btn { flex: 1 1 100%; }
}

/* Reseller panel: expired customers can be removed from the list */
.ib.danger { color: var(--bad); border-color: rgba(248, 113, 113, .45); }
.ib.danger:hover { background: rgba(248, 113, 113, .1); }
.exp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin: 4px 0 12px; padding: 10px 14px; border: 1px dashed rgba(248, 113, 113, .4); border-radius: 12px; }
.exp-bar p { margin: 0; flex: 1 1 260px; }
.exp-bar[hidden] { display: none; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.tcode { display: block; font-size: 30px; letter-spacing: .14em; padding: 14px 16px; text-align: center;
  border: 1px dashed var(--line-2); border-radius: 12px; background: var(--bg-2); user-select: all; }
