/* D'ZIRE MOVIES portal - the owner's look: dashboard base colours, the chosen theme (/theme.css:
   --accent, --accent-2, --font-brand) and a second tint per service (HD = theme, DJ = violet). */
:root {
  --bg: #0b0f15; --bg-2: #0f141c; --panel: #121925; --panel-2: #172031; --line: rgba(148, 163, 184, 0.16); --line-2: rgba(148, 163, 184, 0.28);
  --text: #f1f5f9; --muted: #94a3b8; --faint: #64748b;
  --accent: #10b981; --accent-2: #34d399; --accent-rgb: 16, 185, 129; --accent-2-rgb: 52, 211, 153; --on-accent: #04130d;
  --blue: #60a5fa; --violet: #a78bfa; --pink: #f472b6; --orange: #fbbf24; --ok: #34d399; --warn: #fbbf24; --err: #fb7185;
  --silver: #cbd5e1; --gold: #fbbf24; --platinum: #7dd3fc; --diamond: #c4b5fd;
  --svc: var(--accent); --svc-rgb: var(--accent-rgb); --svc-2: var(--accent-2);
  --radius: 16px; --radius-sm: 11px; --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", Inter, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-brand: Georgia, "Times New Roman", serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", ui-monospace, monospace;
  color-scheme: dark;
}
body[data-svc="dj"] { --svc: var(--violet); --svc-rgb: 167, 139, 250; --svc-2: var(--pink); }
:root[data-theme="light"] {
  --bg: #f4f7f6; --bg-2: #ffffff; --panel: #ffffff; --panel-2: #eef3f1; --line: rgba(15, 23, 42, 0.09); --line-2: rgba(15, 23, 42, 0.16);
  --text: #0f172a; --muted: #475569; --faint: #94a3b8; --silver: #64748b; --gold: #b45309; --platinum: #0369a1; --diamond: #6d28d9;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.1); color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); min-height: 100vh; transition: background-color 0.3s; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--svc); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.brandfont, h1, h2, .brand-name, .price, .stat b, .plan .dur { font-family: var(--font-brand); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px) saturate(140%); background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 0 18px rgba(var(--accent-rgb), 0.25); }
.brand-name { font-weight: 700; font-size: 1.12rem; letter-spacing: 0.02em; }
.brand-name b { color: var(--accent); }
.svc-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); }
.svc-switch button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.04em; transition: background-color 0.2s, color 0.2s; }
.svc-switch button[aria-pressed="true"][data-switch="hd"] { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.35); }
.svc-switch button[aria-pressed="true"][data-switch="dj"] { background: var(--violet); color: #160c2e; box-shadow: 0 6px 18px rgba(167, 139, 250, 0.35); }
.svc-switch .lock { width: 0.9em; height: 0.9em; opacity: 0.8; }
.nav { display: flex; gap: 2px; margin-left: 6px; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.top-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-weight: 700; font-size: 0.82rem; }
.chip-btn:hover { border-color: rgba(var(--svc-rgb), 0.55); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(var(--accent-rgb), 0.16); color: var(--accent); font-weight: 800; font-size: 0.8rem; text-decoration: none; border: 1px solid rgba(var(--accent-rgb), 0.4); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; text-decoration: none; transition: transform 0.12s, filter 0.15s, background-color 0.15s, border-color 0.15s; white-space: nowrap; }
.btn:active { transform: scale(0.98); }
.btn-pri { background: linear-gradient(180deg, color-mix(in srgb, var(--svc) 80%, #fff), var(--svc)); color: var(--on-accent); box-shadow: 0 10px 24px rgba(var(--svc-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
body[data-svc="dj"] .btn-pri { color: #160c2e; }
.btn-pri:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { border-color: rgba(var(--svc-rgb), 0.6); }
.btn-lock { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.45); color: var(--orange); }
.btn-lock:hover { background: rgba(251, 191, 36, 0.18); }
.btn-wa { background: #25d366; color: #062b14; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 0.84rem; border-radius: 10px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Banners */
.banner { border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 9px 0; }
.banner.preview { background: linear-gradient(90deg, rgba(96, 165, 250, 0.16), rgba(167, 139, 250, 0.12)); }
.banner.locked { background: linear-gradient(90deg, rgba(251, 191, 36, 0.13), rgba(var(--svc-rgb), 0.08)); }
.banner b { color: var(--text); }
.banner .grow { flex: 1; min-width: 200px; color: var(--muted); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 60px 0 36px; border-bottom: 1px solid var(--line);
  background: radial-gradient(800px 360px at 88% -20%, rgba(var(--svc-rgb), 0.22), transparent 60%), radial-gradient(640px 300px at -10% 120%, rgba(var(--accent-2-rgb), 0.12), transparent 60%); }
.hero .kicker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(var(--svc-rgb), 0.12); border: 1px solid rgba(var(--svc-rgb), 0.35); color: var(--svc); font-weight: 800; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 4.8vw, 3.4rem); line-height: 1.05; letter-spacing: -0.01em; max-width: 17ch; font-weight: 700; }
.hero h1 em { font-style: italic; background: linear-gradient(90deg, var(--svc), var(--svc-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 0 0 24px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.12rem); max-width: 58ch; }
.big-search { display: flex; align-items: center; gap: 10px; max-width: 680px; padding: 6px 6px 6px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.big-search:focus-within { border-color: rgba(var(--svc-rgb), 0.6); }
.big-search input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; font-size: 1.02rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.stat { padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--svc-rgb), 0.18), transparent 70%); }
.stat b { display: block; font-size: 1.55rem; font-weight: 700; }
.stat span { color: var(--muted); font-size: 0.8rem; }

/* Sections */
section.block { padding: 44px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.sec-head h2 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 1.85rem); font-weight: 700; }
.sec-head h2 small { display: block; font-family: var(--font); font-size: 0.86rem; font-weight: 500; color: var(--muted); margin-top: 4px; }
.pill-new { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: linear-gradient(90deg, var(--svc), var(--svc-2)); color: #06120c; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
body[data-svc="dj"] .pill-new { color: #160c2e; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step { padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.step .n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(var(--svc-rgb), 0.14); color: var(--svc); font-weight: 800; margin-bottom: 12px; font-family: var(--font-brand); font-size: 1.1rem; }
.step h3 { margin: 0 0 4px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: transform 0.15s, border-color 0.15s; }
.plan:hover { transform: translateY(-2px); border-color: rgba(var(--svc-rgb), 0.45); }
.plan.best { border-color: rgba(var(--svc-rgb), 0.7); box-shadow: 0 0 0 1px rgba(var(--svc-rgb), 0.3), var(--shadow); }
.plan .best-tag { position: absolute; top: -11px; right: 16px; padding: 2px 10px; border-radius: 999px; background: var(--svc); color: var(--on-accent); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.05em; }
body[data-svc="dj"] .plan .best-tag { color: #160c2e; }
.grade { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.74rem; }
.grade::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.g-silver { color: var(--silver); } .g-gold { color: var(--gold); } .g-platinum { color: var(--platinum); } .g-diamond { color: var(--diamond); }
.plan .dur { font-size: 1.15rem; font-weight: 700; }
.plan .price { font-size: 1.9rem; font-weight: 700; }
.plan .price small { font-family: var(--font); font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.plan ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.87rem; display: grid; gap: 5px; }
.plan ul li::before { content: "✓ "; color: var(--svc); font-weight: 900; }
.plan .btn { margin-top: auto; }
.nets { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; color: var(--muted); font-size: 0.85rem; }
.nets img { height: 30px; width: auto; border-radius: 8px; background: #fff; }

/* FAQ */
.faq { display: grid; gap: 8px; max-width: 820px; }
.faq details { border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--line); }
.faq summary { padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; color: var(--svc); font-weight: 900; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 16px 14px; color: var(--muted); }

/* Library */
.lib-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 22px 0 12px; }
.lib-head h1 { margin: 0 auto 0 0; font-size: 1.7rem; font-weight: 700; }
.lib-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.lib-bar .search { flex: 1 1 320px; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 46px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-2); }
.lib-bar .search:focus-within { border-color: rgba(var(--svc-rgb), 0.6); }
.lib-bar .search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.seg button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; font-size: 0.84rem; }
.seg button[aria-pressed="true"] { background: var(--svc); color: var(--on-accent); }
body[data-svc="dj"] .seg button[aria-pressed="true"] { color: #160c2e; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 12px; font-size: 0.88rem; color: var(--muted); }
.crumbs button { border: 0; background: none; color: var(--svc); padding: 4px 6px; border-radius: 6px; font-weight: 700; }
.crumbs button:hover { background: var(--panel-2); }
.hint { color: var(--muted); font-size: 0.9rem; margin: 6px 0 14px; }
.items.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.items.list { display: flex; flex-direction: column; gap: 6px; }
.item { position: relative; display: flex; gap: 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color 0.15s, transform 0.15s; }
.item:hover { border-color: rgba(var(--svc-rgb), 0.5); transform: translateY(-1px); }
.items.grid .item { flex-direction: column; overflow: hidden; }
.items.list .item { align-items: center; padding: 10px 12px; }
.thumb { position: relative; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(var(--svc-rgb), 0.12), transparent 60%), linear-gradient(160deg, var(--panel-2), var(--bg-2)); color: var(--faint); }
.items.grid .thumb { aspect-ratio: 2 / 3; max-height: 200px; width: 100%; border-bottom: 1px solid var(--line); }
.items.grid .thumb .ico { width: 44px; height: 44px; }
.items.list .thumb { width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0; }
.thumb.k-series { color: var(--violet); } .thumb.k-folder { color: var(--orange); } .thumb.k-movie { color: var(--blue); }
.thumb .badge-new { position: absolute; top: 8px; left: 8px; }
.items .thumb .lockmark .ico, .thumb .lockmark .ico { width: 14px; height: 14px; }
.thumb .lockmark { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: var(--orange); }
.items.list .thumb .lockmark, .items.list .thumb .badge-new { display: none; }
.item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.items.grid .item-body { padding: 12px; }
.item-name { font-weight: 700; font-size: 0.92rem; line-height: 1.3; overflow-wrap: anywhere; }
.items.grid .item-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 0.78rem; }
.pill { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.7rem; font-weight: 800; }
.item-acts { display: flex; gap: 6px; flex-shrink: 0; }
.items.grid .item-acts { padding: 0 12px 12px; }
.items.grid .item-acts .btn { flex: 1; padding: 0 8px; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* Skeleton (left-to-right shimmer) */
.sk { border-radius: 8px; background: linear-gradient(90deg, rgba(148, 163, 184, 0.07) 40%, rgba(148, 163, 184, 0.2) 50%, rgba(148, 163, 184, 0.07) 60%); background-size: 300% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sk-line { height: 12px; }

/* Account / admin */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.card { padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.card h3 { margin: 0 0 12px; font-size: 1.02rem; display: flex; align-items: center; gap: 8px; font-family: var(--font-brand); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 0.9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 0.85rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.s-active { color: var(--ok); } .s-expired, .s-none { color: var(--muted); } .s-pending_payment { color: var(--warn); } .s-owner { color: var(--accent); }
.meter { height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--svc), var(--svc-2)); border-radius: inherit; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--panel-2); }
.form-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.form-row .field { flex: 1 1 180px; margin: 0; }

/* Dialogs */
.dlg-back { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(2, 6, 12, 0.66); backdrop-filter: blur(6px); }
.dlg { width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border-radius: 22px; position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 45%, rgba(255, 255, 255, 0.04)), var(--bg-2);
  border: 1px solid var(--line-2); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08); animation: pop 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dlg.wide { width: min(620px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.dlg h2 { margin: 0 0 4px; font-size: 1.4rem; font-weight: 700; }
.dlg h2 em { font-style: italic; color: var(--svc); }
.dlg .sub { margin: 0 0 16px; color: var(--muted); font-size: 0.9rem; }
.dlg-x { position: absolute; top: 14px; right: 14px; border: 0; background: none; color: var(--muted); font-size: 1.4rem; line-height: 1; padding: 4px 8px; border-radius: 8px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; font-size: 0.84rem; color: var(--muted); font-weight: 600; }
.field input, .field select { height: 46px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 1rem; }
.field input:focus { border-color: var(--svc); outline: 0; }
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.channels label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line-2); cursor: pointer; font-weight: 700; font-size: 0.86rem; }
.channels input { accent-color: var(--accent); }
.channels label:has(input:checked) { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.1); }
.channels label:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.form-err { color: var(--err); font-size: 0.88rem; margin: 0 0 10px; min-height: 0; }
.linkish { border: 0; background: none; color: var(--svc); font-weight: 700; padding: 0; }
.linkish[disabled] { color: var(--faint); cursor: default; }
.lock-dlg .big-lock { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; background: rgba(251, 191, 36, 0.12); color: var(--orange); border: 1px solid rgba(251, 191, 36, 0.4); box-shadow: 0 0 30px rgba(251, 191, 36, 0.25); }
.lock-dlg .big-lock .ico { width: 30px; height: 30px; }
.lock-dlg { text-align: center; }

/* Pay */
.mini-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.mini-plan { display: grid; gap: 2px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); text-align: left; }
.mini-plan[aria-pressed="true"] { border-color: var(--svc); background: rgba(var(--svc-rgb), 0.1); box-shadow: 0 0 0 1px rgba(var(--svc-rgb), 0.35); }
.mini-plan b { font-family: var(--font-brand); font-size: 1.1rem; }
.mini-plan span { color: var(--muted); font-size: 0.78rem; }
.mini-plan span.grade { font-size: 0.72rem; }
.mini-plan .g-silver { color: var(--silver); } .mini-plan .g-gold { color: var(--gold); } .mini-plan .g-platinum { color: var(--platinum); } .mini-plan .g-diamond { color: var(--diamond); }
.netpick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.netpick button { display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.netpick img { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; background: #fff; }
.netpick button[aria-pressed="true"] { border-color: var(--svc); color: var(--text); background: rgba(var(--svc-rgb), 0.1); box-shadow: 0 0 0 1px rgba(var(--svc-rgb), 0.35); }
.sum { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); margin-bottom: 14px; }
.sum b { font-family: var(--font-brand); font-size: 1.5rem; }
.waiting { text-align: center; padding: 8px 0; }
.phone-pulse { position: relative; width: 92px; height: 92px; margin: 10px auto 16px; display: grid; place-items: center; border-radius: 50%; color: var(--svc); background: rgba(var(--svc-rgb), 0.12); border: 2px solid rgba(var(--svc-rgb), 0.5); }
.phone-pulse .ico { width: 38px; height: 38px; }
.phone-pulse::before, .phone-pulse::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(var(--svc-rgb), 0.5); animation: ripple 2s ease-out infinite; }
.phone-pulse::after { animation-delay: 1s; }
@keyframes ripple { to { transform: scale(1.7); opacity: 0; } }
.result-ok { width: 92px; height: 92px; margin: 10px auto 14px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #22c55e; background: radial-gradient(circle, rgba(34, 197, 94, 0.28), rgba(34, 197, 94, 0.06) 70%); box-shadow: 0 0 44px rgba(34, 197, 94, 0.5); animation: spring 0.65s cubic-bezier(0.34, 1.56, 0.64, 1); color: #4ade80; }
.result-ok .ico { width: 44px; height: 44px; }
.result-bad { width: 70px; height: 70px; margin: 10px auto 14px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--err); background: rgba(244, 63, 94, 0.12); color: var(--err); animation: spring 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes spring { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } }

/* OTP - the same orbital motion as the dashboard PIN page */
.otp-stage { position: relative; height: 196px; margin: 6px 0 4px; }
.orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
/* Square code boxes (owner's screenshot, 25 Nov 2026): a dark glass box, a thin outline in the theme colour and a glowing
   bar that hugs the bottom-right corner (a conic gradient on the border, brightest from the right side round to the bottom). */
.cell { position: absolute; left: 0; top: 0; padding: 0; margin: 0; border-radius: 13px; border: solid transparent; border-width: 1.5px 3px 3px 1.5px; /* thin outline, thick bar side */
  --cell-bg: linear-gradient(180deg, #16191f, #0a0c0f);
  background: var(--cell-bg) padding-box, conic-gradient(rgba(var(--accent-rgb), 0.16) 0deg 92deg, rgba(var(--accent-rgb), 0.55) 120deg 196deg, rgba(var(--accent-rgb), 0.16) 222deg 360deg) border-box;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.55);
  color: var(--text); font: 700 1.45rem/1 var(--mono); text-align: center; outline: none; caret-color: transparent;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.4s, box-shadow 0.2s, color 0.2s; }
:root[data-theme="light"] .cell { --cell-bg: linear-gradient(180deg, #ffffff, #eef2f6); box-shadow: inset 0 2px 5px rgba(15, 23, 42, 0.1); }
.cell.filled, .verifying .cell { background: var(--cell-bg) padding-box, conic-gradient(rgba(var(--accent-rgb), 0.3) 0deg 90deg, var(--accent) 118deg 198deg, rgba(var(--accent-rgb), 0.3) 224deg 360deg) border-box;
  box-shadow: 5px 6px 16px -8px rgba(var(--accent-rgb), 0.95), inset 0 3px 8px rgba(0, 0, 0, 0.45); }
:root[data-theme="light"] .cell.filled, :root[data-theme="light"] .verifying .cell { box-shadow: 5px 6px 14px -8px rgba(var(--accent-rgb), 0.8), inset 0 2px 5px rgba(15, 23, 42, 0.08); }
.otp-fail .cell { --accent: #f43f5e; --accent-rgb: 244, 63, 94; color: #fecdd3; }
:root[data-theme="light"] .otp-fail .cell { color: #be123c; }
/* the orbit's dashed track: shows while the boxes circle (it turns with them) */
.track { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; opacity: 0; transform: scale(0.6); border: 1.5px dashed rgba(var(--accent-rgb), 0.6);
  box-shadow: inset 0 0 26px rgba(var(--accent-rgb), 0.12), 0 0 18px rgba(var(--accent-rgb), 0.1); transition: opacity 0.35s, transform 0.55s cubic-bezier(0.65, 0, 0.35, 1); }
.verifying .track { opacity: 1; transform: none; }
/* Border separation (owner's screenshots, 25 Nov 2026): a code window's top-left and bottom-right corners are cut on the
   diagonal (the border runs along the cut) and a separate rounded glass triangle sits in each cut, a dark gap between.
   shortcut: corner-shape is Chrome / Edge / Android only; other browsers keep the round window without the triangles.
   The window does not scroll then (its corners would clip the triangles), so only where it fits: min-height 560px. */
.glass-corner { display: none; }
@supports (corner-shape: bevel) { @media (min-height: 560px) {
  .dlg:has(.glass-corner) { overflow: visible; corner-shape: bevel round bevel round; border-radius: 58px 22px 58px 22px; padding-top: 46px; padding-bottom: 40px; border-color: rgba(255, 255, 255, 0.18); }
  .glass-corner { display: block; position: absolute; width: 44px; height: 44px; pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.22); background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02) 70%), var(--bg-2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px rgba(0, 0, 0, 0.35); }
  .glass-corner.tl { top: -1px; left: -1px; border-radius: 12px 7px 100% 7px; corner-shape: round round bevel round; }
  .glass-corner.br { bottom: -1px; right: -1px; border-radius: 100% 7px 12px 7px; corner-shape: bevel round round round; }
  :root[data-theme="light"] .glass-corner { border-color: var(--line-2); background: linear-gradient(135deg, #ffffff, #f1f5f9); }
} }
.ring { position: absolute; left: 0; top: 0; border-radius: 15px; pointer-events: none; border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14), 0 0 24px rgba(var(--accent-rgb), 0.5); transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s; }
.otp-stage.shake .orbit { animation: shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes shake { 15% { translate: -10px 0; } 35% { translate: 9px 0; } 55% { translate: -7px 0; } 75% { translate: 4px 0; } 90% { translate: -2px 0; } }
.badge { position: absolute; left: 50%; top: 50%; border-radius: 50%; display: grid; place-items: center; scale: 0; opacity: 0; pointer-events: none; }
.badge.ok { width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 26px; background: radial-gradient(circle, rgba(34, 197, 94, 0.28), rgba(34, 197, 94, 0.06) 70%); border: 2px solid #22c55e; box-shadow: 0 0 44px rgba(34, 197, 94, 0.55); }
.badge.ok svg { width: 44px; height: 44px; }
.badge.ok path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.badge.ok.show { animation: spring2 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.badge.ok.show path { animation: draw 0.45s 0.22s ease forwards; }
.badge.bad { top: 6px; width: 38px; height: 38px; margin: 0 0 0 -19px; background: rgba(244, 63, 94, 0.16); border: 1.5px solid #f43f5e; box-shadow: 0 0 24px rgba(244, 63, 94, 0.5); }
.badge.bad svg { width: 18px; height: 18px; }
.badge.bad.show { animation: pulsex 1.1s ease forwards; }
@keyframes spring2 { 0% { scale: 0; opacity: 0; } 60% { scale: 1.15; opacity: 1; } 100% { scale: 1; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulsex { 0% { scale: 0; opacity: 0; } 25% { scale: 1.18; opacity: 1; } 45% { scale: 1; } 80% { scale: 1; opacity: 1; } 100% { scale: 0.85; opacity: 0; } }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: currentColor; border-radius: 50%; animation: turn 0.7s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

/* Toast */
.toasts { position: fixed; z-index: 60; right: 16px; bottom: 16px; display: grid; gap: 8px; max-width: min(380px, calc(100% - 32px)); }
.toast { padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 0.9rem; animation: pop 0.16s ease-out; }
.toast.ok { border-color: rgba(52, 211, 153, 0.55); } .toast.err { border-color: rgba(251, 113, 133, 0.6); }

footer { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }

.mobile-nav { display: none; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; justify-content: space-around; padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.mobile-nav a { display: grid; justify-items: center; gap: 2px; padding: 6px 10px; text-decoration: none; color: var(--muted); font-size: 0.7rem; font-weight: 700; }
.mobile-nav a[aria-current="page"] { color: var(--svc); }

@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nav { display: none; } }
@media (max-width: 640px) {
  .top .wrap { gap: 8px; height: 58px; }
  .brand-name { display: none; }
  .svc-switch button { padding: 0 11px; }
  .hero { padding: 36px 0 26px; }
  .steps, .plans { grid-template-columns: 1fr; }
  .big-search { flex-wrap: wrap; padding: 8px; }
  .big-search > .ico { display: none; }
  .big-search input { flex-basis: 100%; }
  .big-search .btn { flex: 1; }
  .items.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .items.grid .thumb { max-height: 140px; }
  .items.grid .item-acts { flex-direction: column; }
  .items.list .item { flex-wrap: wrap; }
  .items.list .item-acts { width: 100%; }
  .items.list .item-acts .btn { flex: 1; }
  .netpick img { width: 44px; height: 44px; }
  .mobile-nav { display: flex; }
  body { padding-bottom: 70px; }
  .toasts { bottom: 84px; }
  .dlg { padding: 20px 16px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { .sk, .phone-pulse::before, .phone-pulse::after, .otp-stage.shake .orbit { animation: none !important; } .cell, .ring, .track { transition-duration: 0.01s !important; } }
.files-head { margin: 22px 0 10px; font-family: var(--font-brand); font-size: 1.05rem; color: var(--muted); }
.crumbs .ico { width: 1em; height: 1em; }
/* Organising folders of the master link: compact tiles (going inside is free) */
.items.grid.folders { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.items.grid .item.is-folder { flex-direction: row; align-items: center; gap: 12px; padding: 12px; overflow: visible; cursor: pointer; }
.items.grid .item.is-folder .thumb { aspect-ratio: auto; width: 58px; height: 58px; max-height: none; border-radius: 14px; border: 1px solid rgba(251, 191, 36, 0.28); background: rgba(251, 191, 36, 0.08); flex-shrink: 0; }
.items.grid .item.is-folder .thumb .ico { width: 28px; height: 28px; }
.items.grid .item.is-folder .thumb .badge-new { top: -8px; left: -6px; }
.items.grid .item.is-folder .item-body { padding: 0; }
.items.grid .item.is-folder .item-name { -webkit-line-clamp: 2; font-size: 0.95rem; }
.items.grid .item.is-folder .item-acts { padding: 0; flex-direction: column; flex: 0 0 auto; }
.items.grid .item.is-folder .item-acts .btn { flex: 0 0 auto; }
.items.list .item.is-folder { cursor: pointer; }
@media (max-width: 640px) { .items.grid.folders { grid-template-columns: 1fr; } .items.grid .item.is-folder .item-acts { flex-direction: row; } }

/* ── v2.16: three areas. Shared bits ── */
.muted { color: var(--muted); }
.otp-foot { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0 0; font-size: 0.86rem; }
.wrap-c { width: min(1180px, 100% - 32px); margin: 0 auto; }
.page-head { padding: 24px 0 14px; }
.page-head h1 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 700; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.sub-h { margin: 22px 0 10px; font-family: var(--font-brand); font-size: 1.12rem; }
.svc-pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font: 800 0.72rem/1.6 var(--font); letter-spacing: 0.08em; background: rgba(var(--svc-rgb), 0.16); color: var(--svc); border: 1px solid rgba(var(--svc-rgb), 0.45); }
.svc-pill.svc-hd { --svc: var(--accent); --svc-rgb: var(--accent-rgb); }
.svc-pill.svc-dj { --svc: var(--violet); --svc-rgb: 167, 139, 250; }
.s-owner { color: var(--accent); }

/* Landing */
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 1rem; border-radius: 14px; }
.hero-art { position: relative; height: 280px; }
.hero-art .poster { position: absolute; display: grid; place-items: center; width: 150px; aspect-ratio: 2 / 3; border-radius: 18px; border: 1px solid var(--line-2); box-shadow: var(--shadow);
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 60%), var(--panel-2); }
.hero-art .poster .ico { width: 54px; height: 54px; }
.hero-art .p1 { left: 8%; top: 20px; transform: rotate(-8deg); color: var(--accent); }
.hero-art .p2 { left: 36%; top: 0; z-index: 1; color: var(--violet); }
.hero-art .p3 { left: 62%; top: 34px; transform: rotate(8deg); color: var(--orange); }
.svc-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.svc-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.svc-card h3 { margin: 0; font-size: 1.1rem; font-family: var(--font-brand); }
.svc-card p { margin: 0; color: var(--muted); }
.svc-card .btn, .svc-card > .pill { align-self: flex-start; margin-top: auto; }
.svc-card .svc-tag { align-self: flex-start; padding: 3px 12px; border-radius: 10px; font-weight: 900; letter-spacing: 0.1em; }
.svc-card.svc-hd .svc-tag { background: var(--accent); color: var(--on-accent); }
.svc-card.svc-dj .svc-tag { background: var(--violet); color: #160c2e; }
.svc-card.svc-hd { border-top: 3px solid var(--accent); } .svc-card.svc-dj { border-top: 3px solid var(--violet); }
.svc-card.is-on { box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.4); }
.svc-card.svc-dj.is-on { box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.5); }
.plans-dj { --svc: var(--violet); --svc-rgb: 167, 139, 250; --on-accent: #160c2e; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px; border-radius: 22px;
  background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.18), rgba(167, 139, 250, 0.14)); border: 1px solid var(--line-2); }
.cta-band h2 { margin: 0; font-size: 1.6rem; } .cta-band p { margin: 4px 0 0; color: var(--muted); }

/* Client + admin shell: sidebar on wide screens, top bar + bottom tabs on phones */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 16px; padding: 20px 14px; border-right: 1px solid var(--line); background: var(--bg-2); }
.side .brand { padding: 0 6px; }
.svc-badge { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--svc-rgb), 0.12); border: 1px solid rgba(var(--svc-rgb), 0.4); color: var(--svc); }
.svc-badge span { color: var(--muted); font-size: 0.8rem; }
.svc-badge b { font-size: 1.05rem; letter-spacing: 0.08em; }
.svc-badge a { margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--svc); }
.svc-badge a:hover { background: rgba(var(--svc-rgb), 0.18); }
.svc-badge .lock { width: 0.95em; height: 0.95em; color: var(--orange); }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 11px; text-decoration: none; color: var(--muted); font-weight: 600; }
.side-nav a:hover { background: var(--panel-2); color: var(--text); }
.side-nav a[aria-current="page"] { background: rgba(var(--svc-rgb), 0.14); color: var(--text); box-shadow: inset 3px 0 0 var(--svc); }
.side-nav a[aria-current="page"] .ico { color: var(--svc); }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.side-user > span:last-child { display: grid; min-width: 0; }
.side-user b { font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user small { color: var(--muted); font-size: 0.76rem; }
.ctop { display: none; }
.content { min-width: 0; padding-bottom: 40px; }
.content .banner .wrap-c { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 9px 0; }
.banner.owner { background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.04)); }
.set-block { padding: 6px 0 14px; border-bottom: 1px solid var(--line); }
.set-block:last-child { border-bottom: 0; }
.big-lock.warn { color: var(--orange); background: rgba(251, 191, 36, 0.12); }
.lock-dlg .form-row { justify-content: center; margin-top: 6px; }

/* Admin */
.admin-badge { --svc: var(--accent); --svc-rgb: var(--accent-rgb); }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.admin-login .dlg { width: min(440px, 100%); }
.link-box { flex: 1 1 260px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); overflow-wrap: anywhere; font-size: 0.85rem; }
.field select { height: 46px; }
main.wrap-c .stats { margin-top: 0; margin-bottom: 12px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .ctop { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); }
  .ctop .brand img { width: 32px; height: 32px; }
  .ctop-title { flex: 1; font-family: var(--font-brand); font-weight: 700; font-size: 1.05rem; }
  .shell ~ .mobile-nav, body.client .mobile-nav { display: flex; }
  body.client, body.admin { padding-bottom: 70px; }
  .hero-grid { grid-template-columns: 1fr; } .hero-art { display: none; }
}
@media (max-width: 640px) {
  .svc-cards { grid-template-columns: 1fr; }
  .landing .nav { display: none; }
  .mobile-nav a { padding: 6px 4px; font-size: 0.68rem; }
}
.btn.chev { min-width: 36px; padding: 0; font-size: 1.3rem; }

/* ── v2.16: download sheet (⬇ on a video) ── */
.dl-list { display: grid; gap: 8px; }
.dl-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--text); text-align: left; text-decoration: none; font: inherit; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.1s; }
.dl-row:hover, .dl-row:focus-visible { border-color: rgba(var(--svc-rgb), 0.6); background: rgba(var(--svc-rgb), 0.06); outline: none; }
.dl-row:active { transform: scale(0.99); }
.dl-row.is-main { border-color: rgba(var(--svc-rgb), 0.55); background: rgba(var(--svc-rgb), 0.1); }
.dl-ico { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: rgba(var(--svc-rgb), 0.14); color: var(--svc); }
.dl-q { font: 800 0.78rem/1 var(--mono); color: #fbbf24; }
.dl-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dl-txt b { font-size: 0.94rem; }
.dl-txt small { color: var(--muted); font-size: 0.78rem; }
.dl-go { flex-shrink: 0; color: var(--muted); font-size: 1.3rem; }
.dl-row:hover .dl-go { color: var(--svc); }

/* Video cards: Play takes the room, ⬇ / Drive stay square */
.item-acts .btn-pri { flex: 1 1 auto; }
.items.grid .item-acts .btn:not(.btn-pri):not(.btn-lock) { flex: 0 0 40px; padding: 0; }
.items.list .item-acts .btn:not(.btn-pri):not(.btn-lock) { width: 40px; padding: 0; }
.pl-back { z-index: 70; } /* above the portal's dialogs and tabs */

/* ── Tablets: a slimmer sidebar, then top bar + bottom tabs ── */
@media (min-width: 901px) and (max-width: 1200px) {
  .shell { grid-template-columns: 216px minmax(0, 1fr); }
  .side { padding: 16px 10px; }
  .items.grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .items.grid.folders { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 641px) and (max-width: 900px) {
  .items.grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .items.grid.folders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-nav a { padding: 6px 14px; }
}
@media (max-width: 640px) {
  .items.grid .item-acts { flex-direction: row; }
  .items.grid .item-acts .btn-pri { font-size: 0.8rem; padding: 0 6px; }
  .page-head { padding: 16px 0 10px; }
  .cards { grid-template-columns: 1fr; }
  .stats { gap: 8px; }
  .stat b { font-size: 1.25rem; }
  .dlg.dl-dlg { align-self: end; width: 100%; border-radius: 20px 20px 0 0; max-height: 85dvh; } /* a bottom sheet on phones */
  .table-wrap { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
}

/* ── v2.19.0 client app (24 Nov 2026, dziremovies.app plan) ─────────────────────────────────────── */
/* [31] HD | DJ switch, always at hand: sidebar (full width) and the phone's top bar (compact) */
.svc-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); }
.svc-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 800; letter-spacing: 0.04em; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.svc-switch button .ico { width: 13px; height: 13px; opacity: 0.7; }
.svc-switch button:hover { color: var(--text); }
.svc-switch button.svc-hd[aria-pressed="true"] { background: rgba(52, 211, 153, 0.16); color: #34d399; box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.45); }
.svc-switch button.svc-dj[aria-pressed="true"] { background: rgba(167, 139, 250, 0.16); color: #a78bfa; box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.45); }
.svc-switch-side { margin: 14px 0 4px; }
.svc-switch-top { margin-left: auto; padding: 3px; border-radius: 11px; }
.svc-switch-top button { min-height: 32px; min-width: 46px; padding: 0 8px; font-size: 0.8rem; }
.svc-desc { margin: 0 0 14px; padding: 0 4px; color: var(--muted); font-size: 0.76rem; line-height: 1.35; }
.big-lock.svc-hd { color: #34d399; background: rgba(52, 211, 153, 0.12); }
.big-lock.svc-dj { color: #a78bfa; background: rgba(167, 139, 250, 0.12); }

/* [3] New: HD / DJ tabs, the weekly reminder, a new folder and a new file look different */
.new-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.new-tabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; }
.new-tabs button b { font-size: 1.05rem; letter-spacing: 0.04em; }
.new-tabs button small { color: var(--muted); font-size: 0.76rem; }
.new-tabs button.svc-hd[aria-selected="true"] { border-color: rgba(52, 211, 153, 0.6); background: rgba(52, 211, 153, 0.08); }
.new-tabs button.svc-dj[aria-selected="true"] { border-color: rgba(167, 139, 250, 0.6); background: rgba(167, 139, 250, 0.08); }
.week-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(251, 191, 36, 0.35); background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.03)); }
.week-note > .ico { flex-shrink: 0; width: 22px; height: 22px; color: #fbbf24; margin-top: 2px; }
.week-note b { display: block; font-size: 0.9rem; }
.week-note p { margin: 3px 0 0; color: var(--muted); font-size: 0.85rem; line-height: 1.45; }
.week-note p b { display: inline; color: #fbbf24; }
.badge-new { display: inline-flex; align-items: center; gap: 4px; }
.badge-new .ico { width: 11px; height: 11px; }
.badge-new.is-folder-new { background: linear-gradient(90deg, #fbbf24, #f59e0b); color: #241500; }
.badge-new.is-file-new { background: linear-gradient(90deg, #34d399, #10b981); color: #03140c; }

/* [9] [27] The library's size at a glance, counting up */
.lib-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.lstat { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.lstat b { display: block; font-size: 1.35rem; line-height: 1.2; }
.lib-stats.svc-hd .lstat b { color: #34d399; }
.lib-stats.svc-dj .lstat b { color: #a78bfa; }
.lstat span { color: var(--muted); font-size: 0.78rem; }

/* [24] List view = columns, like the D'zire Ops search tables (wide screens) */
.list-head, .item-cols { display: none; }
@media (min-width: 900px) {
  .items.list .list-head { display: grid; grid-template-columns: 46px minmax(0, 1fr) 110px 100px 120px 150px; gap: 12px; padding: 2px 12px 6px; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
  .items.list .item { display: grid; grid-template-columns: 46px minmax(0, 1fr) 110px 100px 120px 150px; gap: 12px; }
  .items.list .item .item-cols { display: contents; }
  .items.list .item .item-cols span { color: var(--muted); font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .items.list .item .item-meta { display: none; }
  .items.list .item .item-acts { justify-content: flex-end; }
}

/* [28] Folder tiles never get squeezed (the phone screenshot: four columns of "D…"); phones get one per row */
.items.grid:has(.item.is-folder) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.items.grid .item.is-folder .item-body { flex: 1; min-width: 0; }
.items.grid .item.is-folder .item-meta { flex-wrap: wrap; }
@media (max-width: 640px) {
  .items.grid.folders, .items.grid:has(.item.is-folder) { grid-template-columns: 1fr; }
  .lib-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lstat b { font-size: 1.15rem; }
  .ctop { gap: 8px; }
}

/* [15] Dropdowns and choices in the app's own colours, not the browser's grey */
select { appearance: none; -webkit-appearance: none; min-height: 42px; padding: 0 38px 0 12px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--text); font: inherit;
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

/* [21] [23] Breathing room: headings never touch the boxes under them; buttons a little smaller and apart */
.page-head { margin-bottom: 18px; }
.page-head h1 { line-height: 1.25; }
.sub-h { margin: 26px 0 12px; }
.item-acts { gap: 8px; }
.form-row { gap: 10px; }
.btn-sm { border-radius: 10px; }

/* [10] The official address under the name */
.brand-name small.brand-domain { display: block; margin-top: 1px; color: var(--muted); font-family: var(--font); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; }

/* ── v2.20.0 Downloads (plan [2]) ── */
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--svc); color: #06120c; font-style: normal; font-size: 0.72rem; font-weight: 800; display: inline-grid; place-items: center; }
.nav-count[hidden] { display: none; }
.mobile-nav a { position: relative; }
.mobile-nav .nav-count { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 16px; height: 16px; font-size: 0.62rem; }
.crumb-dl { margin-left: auto; }
.dl-dir { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); }
.dl-dir > .ico { width: 22px; height: 22px; color: #fbbf24; flex-shrink: 0; }
.dl-dir .grow { flex: 1; min-width: 0; }
.dl-dir small { display: block; color: var(--muted); font-size: 0.74rem; }
.dl-dir b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-hint { margin: 8px 2px 0; font-size: 0.82rem; }
.dl-opts { margin: 14px 0; color: var(--muted); }
.dl-opts summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 0.86rem; font-weight: 700; list-style: none; }
.dl-opts summary::-webkit-details-marker { display: none; }
.dl-opts summary .ico { width: 15px; height: 15px; }
.dl-opts[open] summary { color: var(--text); margin-bottom: 8px; }
.dl-limit { border-radius: 12px; margin-bottom: 12px; }
.dl-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.dl-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.dl-main { flex: 1; min-width: 0; }
.dl-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.92rem; }
.dl-main small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.dl-bar { height: 6px; margin-top: 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.dl-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--svc), var(--svc-2)); transition: width 0.4s ease; }
.dl-item.s-done .dl-bar i { background: #22c55e; }
.dl-item.s-failed { border-color: rgba(248, 113, 113, 0.45); }
.dl-item.s-failed small { color: #f87171; }
.dl-item.s-failed.e-limit { border-color: rgba(251, 191, 36, 0.45); }
.dl-item.s-failed.e-limit small { color: #fbbf24; }
.dl-acts { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 640px) { .dl-item { flex-wrap: wrap; } .dl-acts { width: 100%; } .dl-acts .btn { flex: 1; } .crumb-dl { margin-left: 0; width: 100%; } .mobile-nav a { font-size: 0.66rem; } }

/* ── v2.21.0 My account (plan [5] [7] [16]) ── */
.acc-profile { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.acc-profile .grow { flex: 1; min-width: 0; }
.acc-profile b { display: block; font-size: 1.05rem; }
.acc-profile small { color: var(--muted); }
.acc-avatar { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; border: 2px solid rgba(var(--svc-rgb), 0.55); background: var(--bg-2); color: var(--text); font: inherit; font-weight: 800; font-size: 1.2rem; overflow: hidden; display: grid; place-items: center; cursor: pointer; padding: 0; }
.acc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acc-note { margin: 0 0 14px; }
.acc-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.acc-group h2 { margin: 0 0 8px; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.acc-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 10px 8px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; border-radius: 0; }
.acc-row:first-of-type { border-top: 0; }
.acc-row:hover, .acc-row:focus-visible { background: rgba(var(--svc-rgb), 0.07); outline: none; border-radius: 10px; }
.acc-row > .ico { width: 18px; height: 18px; color: var(--svc); flex-shrink: 0; }
.acc-row .grow { flex: 1; min-width: 0; font-weight: 600; font-size: 0.92rem; }
.acc-row small { display: block; color: var(--muted); font-weight: 500; font-size: 0.76rem; margin-top: 2px; line-height: 1.4; }
.acc-row .chev { color: var(--muted); font-size: 1.2rem; }
.acc-cap { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--muted); }
.acc-cap .meter { grid-column: 1 / -1; }
.acc-hist > div { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.88rem; }
.acc-hist small { grid-column: 1 / -1; color: var(--muted); }
.acc-mail { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.acc-mail .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.acc-mail input { width: 100%; margin-top: 4px; }
.acc-req { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.88rem; }
.acc-req .grow { flex: 1; }
.link-box { display: block; width: 100%; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); font-size: 0.8rem; word-break: break-all; }
.crop-wrap { display: grid; place-items: center; margin: 6px 0 12px; }
.crop { width: 180px; height: 180px; border-radius: 50%; overflow: hidden; background: var(--bg-2); border: 2px solid rgba(var(--svc-rgb), 0.55); display: grid; place-items: center; touch-action: none; cursor: grab; font-size: 2.4rem; font-weight: 800; }
.crop img { width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }
.btn-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
/* Payments: how to pay (mobile money · card · from abroad) */
.pay-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; margin-bottom: 14px; }
.pay-how button { min-height: 42px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); color: var(--muted); font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.pay-how button[aria-selected="true"] { border-color: var(--svc); color: var(--text); background: rgba(var(--svc-rgb), 0.12); }
.pay-note { font-size: 0.85rem; line-height: 1.5; }
.abroad-steps { margin: 0 0 12px; padding-left: 20px; color: var(--muted); font-size: 0.86rem; line-height: 1.6; }
.abroad-way { margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); }
.abroad-way b { display: block; font-size: 0.84rem; margin-bottom: 4px; }
.abroad-way pre { margin: 0; white-space: pre-wrap; font: inherit; font-size: 0.84rem; color: var(--text); }

/* [23] The code ring never covers the title (it sticks out of the stage while verifying) */
.otp-stage { transition: margin 0.45s cubic-bezier(0.65, 0, 0.35, 1); }
.verifying .otp-stage, .otp-stage.verifying { margin: 34px 0 30px; }

/* ── v2.22.0 admin console (plan [4] [16] [26] [27]) ── */
.side-sec { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.side-sec small { padding: 0 12px 4px; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.side-sec a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.side-sec a:hover { background: var(--panel-2); color: var(--text); }
.side-sec a .ico { width: 17px; height: 17px; }
.side-user[data-act] { cursor: pointer; border-radius: 12px; }
.side-user[data-act]:hover { background: var(--panel-2); }
.side-user .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.admin-mnav { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
.admin-mnav a { flex: 0 0 auto; min-width: 72px; }
.rc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.rc { display: flex; gap: 14px; }
.rc-imgs { display: grid; grid-template-columns: repeat(2, 64px); gap: 6px; align-content: start; }
.rc-imgs img { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); }
.rc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rc-body small { color: var(--muted); }
.rc-body .form-row { margin-top: 8px; flex-wrap: wrap; }
.rq-acts { white-space: nowrap; }
.rq-acts .btn + .btn { margin-left: 6px; }
.plans-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.plans-2 .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tut-row { margin-bottom: 8px; }
.tut-row input { flex: 1; min-width: 0; }
.pw-eye { position: relative; display: block; }
.pw-eye input { width: 100%; padding-right: 42px; }
.eye-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.eye-btn .ico { width: 17px; height: 17px; }
label.check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 0.9rem; }

/* ── v2.23.0 – v2.26.0 phase 2 (24 Nov 2026) ─────────────────────────────────────────────── */
/* [23] Light theme: a soft off-white (#F4F6F8), never pure white, crisp text */
:root[data-theme="light"] { --bg: #f4f6f8; --bg-2: #f9fafb; --panel: #fbfcfd; --panel-2: #eceff3; --line: rgba(15, 23, 42, 0.1); --line-2: rgba(15, 23, 42, 0.18); --text: #0f172a; --muted: #4b5563; }

/* [4] Every input, textarea and file picker in the app's own look (the admin's "Client content" boxes were browser grey) */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):not([type="color"]):not(.cell):not([type="search"]), textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg-2); color: var(--text);
  font: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
textarea { min-height: 76px; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(.cell):focus, textarea:focus { outline: none; border-color: var(--svc); box-shadow: 0 0 0 3px rgba(var(--svc-rgb), 0.22); }
.lib-bar .search input, .lib-bar .search input:focus { border: 0; box-shadow: none; background: transparent; min-height: 0; padding: 0; }
input[type="file"] { width: 100%; padding: 6px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--bg-2); color: var(--muted); font: inherit; font-size: 0.86rem; cursor: pointer; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1px solid rgba(var(--svc-rgb), 0.5); border-radius: 9px; background: rgba(var(--svc-rgb), 0.12); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
input[type="file"]:hover { border-color: rgba(var(--svc-rgb), 0.6); }
.tut-row input { width: auto; }
/* [21] live check of the three names: red while wrong, green once right */
input.is-bad, input.is-bad:focus { border-color: #f43f5e !important; box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.18) !important; }
input.is-ok, input.is-ok:focus { border-color: #22c55e !important; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18) !important; }
.field-help { color: #fb7185; font-size: 0.76rem; font-weight: 600; }

/* [19] Windows over the page: the page stays softly visible behind (translucent + 6 px blur) */
.dlg-back { background: rgba(2, 6, 12, 0.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
:root[data-theme="light"] .dlg-back { background: rgba(244, 246, 248, 0.5); }

/* [6] [10] Cards: compact Play, the download button appears on hover at its left; balanced type; like / save / comment on the artwork */
.items .item-acts .btn-play { flex: 0 1 auto; min-height: 32px; padding: 0 12px; font-size: 0.8rem; border-radius: 9px; }
.items.grid .item-acts { justify-content: flex-end; align-items: center; }
.items.grid .item-acts .btn-play { flex: 1 1 auto; max-width: 124px; }
.hov-dl { opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease; }
.item:hover .hov-dl, .item:focus-within .hov-dl { opacity: 1; transform: none; pointer-events: auto; }
.items .item-acts .hov-dl { flex: 0 0 32px; width: 32px; min-height: 32px; padding: 0; }
.items.grid .thumb { aspect-ratio: 16 / 10; max-height: 150px; }
.items.grid .item-name { font-size: 0.9rem; font-weight: 650; line-height: 1.32; -webkit-line-clamp: 2; letter-spacing: 0.005em; }
.items.grid .item-body { gap: 6px; padding: 12px 12px 8px; }
.item-meta { align-items: center; }
.eng { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; opacity: 0; transform: translateY(-4px); transition: opacity 0.18s, transform 0.18s; }
.item:hover .eng, .item:focus-within .eng, .eng:has(.on) { opacity: 1; transform: none; }
.eng-b { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 50%; background: rgba(8, 12, 18, 0.55); color: #e2e8f0; backdrop-filter: blur(6px); cursor: pointer; }
.eng-b .ico { width: 15px; height: 15px; }
.eng-b:hover { border-color: rgba(var(--svc-rgb), 0.7); }
.eng-b[data-like].on { color: #fb7185; } .eng-b[data-like].on svg { fill: currentColor; }
.eng-b[data-save].on { color: #fbbf24; } .eng-b[data-save].on svg { fill: currentColor; }
.items.list .thumb .eng { display: none; }
@media (hover: none) { .hov-dl, .eng { opacity: 1; transform: none; pointer-events: auto; } }
/* [11] NEW: a small chip in the corner, never over the middle of the artwork */
.badge-new2 { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 2px 7px; border-radius: 6px; background: rgba(251, 191, 36, 0.95); color: #1c1300;
  font: 800 0.6rem/1.5 var(--font); letter-spacing: 0.09em; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }
.items.grid .item.is-folder .thumb .badge-new2 { top: -7px; left: -7px; }
.items.list .thumb .badge-new2 { display: none; }

/* [1] [7] Selecting: a tick on each card, the chosen ones lit, a bar at the bottom */
.sel-toggle[aria-pressed="true"] { border-color: var(--svc); background: rgba(var(--svc-rgb), 0.14); color: var(--text); }
.items.selecting .item { cursor: pointer; user-select: none; }
.items.selecting .eng, .items.selecting .item-acts { visibility: hidden; }
.sel-box { position: absolute; z-index: 2; top: 8px; left: 8px; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--line-2); border-radius: 7px; background: var(--bg-2); color: var(--on-accent); }
.sel-box .ico { width: 14px; height: 14px; stroke-width: 3; }
.item.is-sel { border-color: var(--svc); background: rgba(var(--svc-rgb), 0.07); box-shadow: 0 0 0 1px rgba(var(--svc-rgb), 0.45); }
.item.is-sel .sel-box, .dl-item.is-sel .sel-box { background: var(--svc); border-color: var(--svc); }
.items.list .sel-box { position: static; flex-shrink: 0; }
.items.selecting .badge-new2 { left: 36px; }
.selbar { position: fixed; z-index: 40; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 16px;
  border: 1px solid var(--line-2); border-radius: 16px; background: color-mix(in srgb, var(--bg-2) 82%, transparent); backdrop-filter: blur(14px); box-shadow: var(--shadow); animation: pop 0.2s ease; max-width: calc(100% - 24px); }
.selbar b { margin-right: 6px; white-space: nowrap; font-size: 0.9rem; }
@media (max-width: 900px) { .selbar { bottom: 80px; } }
@media (max-width: 480px) { .selbar { flex-wrap: wrap; justify-content: center; } .selbar b { width: 100%; text-align: center; } }

/* [8] [9] Downloads: select, then delete; where it is saved; Options that stay open */
.dl-selbar { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; }
.dl-selbar .grow { flex: 1; }
.dl-list.selecting .dl-item { cursor: pointer; }
.dl-item { position: relative; }
.dl-item .sel-box { position: static; flex-shrink: 0; }
.dl-item.is-sel { border-color: var(--svc); background: rgba(var(--svc-rgb), 0.07); }
.dl-path { display: flex !important; align-items: center; gap: 5px; color: var(--muted); }
.dl-path .ico { width: 12px; height: 12px; color: #fbbf24; }
.dl-opts-in { display: grid; gap: 4px; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.dl-opts-in .field { margin: 6px 0 4px; }
.dl-opts-in .seg { flex-wrap: wrap; justify-self: start; }

/* [19] Sign-up: choose HD or DJ */
.tier-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.tier { position: relative; display: grid; gap: 3px; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.tier input { position: absolute; opacity: 0; pointer-events: none; }
.tier b { font-size: 0.84rem; color: var(--text); }
.tier small { color: var(--muted); font-size: 0.74rem; font-weight: 500; line-height: 1.35; }
.tier.svc-hd:has(input:checked) { border-color: #34d399; background: rgba(52, 211, 153, 0.1); }
.tier.svc-dj:has(input:checked) { border-color: #a78bfa; background: rgba(167, 139, 250, 0.1); }
.tier:has(input:focus-visible) { outline: 2px solid var(--svc); outline-offset: 2px; }

/* [22] Devices */
.dev-list { display: grid; gap: 6px; margin: 8px 0 4px; text-align: left; }
.dev-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.dev-row > .ico { width: 20px; height: 20px; color: var(--svc); flex-shrink: 0; }
.dev-row .grow { flex: 1; min-width: 0; }
.dev-row b { display: block; font-size: 0.9rem; }
.dev-row small { color: var(--muted); font-size: 0.76rem; }

/* [18] Comments */
.cm-likes { display: flex; align-items: center; gap: 6px; } .cm-likes .ico { color: #fb7185; }
.cm-form { display: flex; gap: 8px; align-items: flex-end; margin: 4px 0 8px; }
.cm-form textarea { min-height: 44px; }
.cm-list { display: grid; gap: 2px; max-height: 50vh; overflow-y: auto; }
.cm { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.cm .grow { flex: 1; min-width: 0; }
.cm small { color: var(--muted); font-size: 0.74rem; }
.cm p { margin: 3px 0 0; font-size: 0.9rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.avatar.sm { width: 30px; height: 30px; font-size: 0.72rem; flex-shrink: 0; }

/* [16] Choosing a plan, then the payment guide, slide in */
.mini-plan { transition: border-color 0.18s, background 0.18s, transform 0.18s; }
.dlg-in[data-fresh="plan"] .mini-plan[aria-pressed="true"] { animation: chosen 0.42s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes chosen { 40% { transform: scale(1.04); } }
.pay-guide { margin: 0 0 14px; padding: 12px 14px; border: 1px solid rgba(var(--svc-rgb), 0.4); border-radius: 12px; background: rgba(var(--svc-rgb), 0.07); }
.dlg-in[data-fresh="net"] .pay-guide { animation: reveal 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
.pay-guide b { font-size: 0.86rem; }
.pay-guide ol { margin: 6px 0 4px; padding-left: 20px; color: var(--muted); font-size: 0.84rem; line-height: 1.6; }
.pay-guide small { color: var(--muted); font-size: 0.76rem; }
.pay-how button { transition: border-color 0.15s, background 0.15s, color 0.15s; font-weight: 700; }
.pay-how button:hover { border-color: rgba(var(--svc-rgb), 0.55); color: var(--text); }
.stop-kv { display: grid; gap: 6px; }
.stop-kv > div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); font-size: 0.86rem; }
.stop-kv span { color: var(--muted); } .stop-kv b { font-weight: 600; overflow-wrap: anywhere; }

/* [14] The guided tour */
.tour-ring { position: fixed; z-index: 79; border: 2px solid var(--svc); border-radius: 14px; box-shadow: 0 0 0 9999px rgba(2, 6, 12, 0.5), 0 0 24px rgba(var(--svc-rgb), 0.6); pointer-events: none; transition: all 0.25s ease; }
.tour-tip { position: fixed; z-index: 80; padding: 14px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-2); box-shadow: var(--shadow); animation: pop 0.2s ease; }
.tour-tip small { color: var(--muted); font-size: 0.72rem; } .tour-tip b { display: block; margin: 2px 0 4px; font-family: var(--font-brand); font-size: 1.05rem; }
.tour-tip p { margin: 0 0 10px; color: var(--muted); font-size: 0.88rem; } .tour-tip .grow { flex: 1; }

/* [20] Landing: a light hero animation (transform / opacity only), still for "reduce motion" */
.hero-landing .kicker, .hero-landing h1, .hero-landing .lead, .hero-landing .hero-cta { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-landing h1 { animation-delay: 0.08s; } .hero-landing .lead { animation-delay: 0.16s; } .hero-landing .hero-cta { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero-anim .poster { animation: float 7s ease-in-out infinite; will-change: transform; }
.hero-anim .poster i { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.35); font: 800 0.66rem/1.6 var(--font); letter-spacing: 0.1em; font-style: normal; color: #fff; }
.hero-anim .p1 { --r: -8deg; animation-delay: -1s; } .hero-anim .p2 { --r: 0deg; animation-delay: -3s; } .hero-anim .p3 { --r: 8deg; animation-delay: -5s; }
.hero-anim .p4, .hero-anim .p5 { width: 64px; border-radius: 16px; }
.hero-anim .p4 { --r: -12deg; left: 2%; top: 190px; color: #34d399; animation-duration: 6s; } .hero-anim .p5 { --r: 10deg; left: 84%; top: 170px; color: #fbbf24; animation-duration: 8s; }
.hero-anim .p4 .ico, .hero-anim .p5 .ico { width: 26px; height: 26px; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(calc(var(--r, 0deg) * -0.4)); } }
.orbit-glow { position: absolute; inset: 10% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--svc-rgb), 0.28), transparent 65%); filter: blur(10px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.55; transform: scale(0.92); } }

/* [10] Admin plan cards: one clear block per plan */
.pcard { display: grid; gap: 6px; padding: 16px; }
.pcard .pc-dur { font-weight: 700; font-size: 0.95rem; }
.pcard .pc-price { font-size: 1.45rem; line-height: 1.1; } .pcard .pc-price small { margin-left: 5px; font: 700 0.72rem var(--font); color: var(--muted); }
.pcard .pc-mail { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.78rem; }
.pcard .pc-mail .ico { width: 14px; height: 14px; }

/* [12] My account without a plan: rows wait behind the subscription */
.acc-row.is-locked { opacity: 0.62; } .acc-row.is-locked:hover { opacity: 0.85; }
.ico.lockmini { width: 15px; height: 15px; color: var(--orange); }
.acc-mails { display: flex !important; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.acc-mails .ico { width: 13px; height: 13px; }

@media (prefers-reduced-motion: reduce) {
  .hero-anim .poster, .orbit-glow, .hero-landing .kicker, .hero-landing h1, .hero-landing .lead, .hero-landing .hero-cta, .pay-guide, .mini-plan, .selbar, .tour-tip { animation: none !important; }
  .hov-dl, .eng { transition: none; }
}

/* ── Fix 1 (25 Nov 2026, D'zire Ops hotfix & refinement) ──────────────────────────────────────── */
/* [4.10] Font size (Settings): the site is in rem, so the root size scales every text */
html[data-font="sm"] { font-size: 87.5%; } html[data-font="lg"] { font-size: 112.5%; } html[data-font="xl"] { font-size: 125%; }
body { font-size: 0.9375rem; } /* 15 px at the normal size, and it follows the setting */
.font-seg { flex-wrap: wrap; }
.font-seg button { display: inline-flex; align-items: baseline; gap: 6px; }
.font-seg span { font-family: var(--font-brand); font-weight: 700; line-height: 1; }
.fs-sm { font-size: 0.78rem; } .fs-md { font-size: 0.92rem; } .fs-lg { font-size: 1.08rem; } .fs-xl { font-size: 1.24rem; }

/* [4.2] Cards: like / watchlist / comment in one small pill at the top right. The thumb's 44 px icon rule made
   their icons huge and on top of each other (Screenshot 083610, phone 07.33.21 (3)). */
.items .thumb .eng .ico { width: 15px; height: 15px; }
.eng { top: 8px; right: 8px; z-index: 2; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(8, 12, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.eng-b { width: 28px; height: 28px; border: 0; background: transparent; backdrop-filter: none; transition: background-color 0.15s, color 0.15s; }
.eng-b:hover, .eng-b:focus-visible { background: rgba(255, 255, 255, 0.14); outline: none; }
.items.grid .item { transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.items.grid .item:hover { border-color: rgba(var(--svc-rgb), 0.45); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22); }
.items.grid .item-acts { margin-top: auto; } /* buttons line up along a row of cards */
.items.grid .item-meta { gap: 6px; flex-wrap: wrap; }
.thumb .lockmark { z-index: 1; }
.items.grid .item.is-folder:hover .thumb { border-color: rgba(251, 191, 36, 0.55); }
.items.grid .item.is-folder .item-acts { margin-top: 0; }
@media (max-width: 640px) {
  .eng-b { width: 26px; height: 26px; }
  .items .thumb .eng .ico { width: 14px; height: 14px; }
  .eng { top: 6px; right: 6px; }
  .badge-new2 { top: 6px; left: 6px; }
}

/* [4.6] Sidebar groups that open and close; the open page's group stays open */
.side { overflow: hidden; }
.side-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start; gap: 4px; scrollbar-width: thin; }
.nav-group { display: grid; }
.nav-group-h { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 11px; background: none;
  color: var(--muted); font: inherit; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; cursor: pointer; }
.nav-group-h:hover { background: var(--panel-2); color: var(--text); }
.nav-group-h > span { flex: 1; min-width: 0; }
.nav-group.has-cur > .nav-group-h { color: var(--text); }
.nav-group-h .nav-count { margin-left: 0; }
.nav-group.open .nav-group-h .nav-count { display: none; }
.nav-caret { width: 14px; height: 14px; transition: transform 0.2s ease; }
.nav-group.open .nav-caret { transform: rotate(180deg); }
.nav-group-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.22s ease; }
.nav-group.open .nav-group-b { grid-template-rows: 1fr; }
.nav-group-b > div { display: grid; gap: 2px; min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s 0.22s; }
.nav-group.open .nav-group-b > div { visibility: visible; transition: none; }
.nav-group-b a { min-height: 40px; margin-left: 10px; padding-left: 14px; }
.side-out { width: 100%; }
.side-out:hover { border-color: rgba(251, 113, 133, 0.6); color: #fb7185; }
/* Phones: five tabs; the rest in a small sheet */
.mobile-nav a, .mobile-nav button { position: relative; flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 0; background: none;
  color: var(--muted); font: inherit; font-size: 0.68rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.mobile-nav a > span, .mobile-nav button > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-nav button[aria-current="page"] { color: var(--svc); }
.mobile-nav .ico { width: 20px; height: 20px; }
.admin-mnav { overflow: visible; justify-content: space-around; }
.admin-mnav a, .admin-mnav button { min-width: 0; }
.dlg.sheet { width: min(380px, 100%); }
.dlg.sheet h2 { margin: 0 0 12px; font-size: 1.15rem; }
.sheet-nav { display: grid; gap: 6px; }
.sheet-nav a, .sheet-nav button { position: relative; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--panel); color: var(--text); font: inherit; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.sheet-nav a:hover, .sheet-nav button:hover { border-color: rgba(var(--svc-rgb), 0.55); }
.sheet-nav [aria-current="page"] { border-color: var(--svc); background: rgba(var(--svc-rgb), 0.12); }
.sheet-nav .ico { width: 19px; height: 19px; color: var(--svc); }
.sheet-nav .nav-count { margin-left: auto; }
.sheet-nav .sheet-out, .sheet-nav .sheet-out .ico { color: #fb7185; }
.sheet-sec { margin: 4px 2px 0; color: var(--muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.sheet-user { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding-right: 30px; }
.sheet-user > span:last-child { display: grid; min-width: 0; }
.sheet-user small { color: var(--muted); }
@media (max-width: 640px) {
  .dlg-back:has(.dlg.sheet) { place-items: end stretch; padding: 0; }
  .dlg.sheet { width: 100%; border-radius: 22px 22px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); animation: sheet-up 0.22s ease-out; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }

/* [4.1] Dropdowns: the app's own list instead of the phone's grey radio list (07.33.21 (1)) */
.dz-select { position: relative; }
.dz-sel-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 11px;
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 0.95rem; font-weight: 600; text-align: left; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.dz-sel-btn:hover { border-color: rgba(var(--svc-rgb), 0.55); }
.dz-select.open .dz-sel-btn, .dz-sel-btn:focus-visible { outline: none; border-color: var(--svc); box-shadow: 0 0 0 3px rgba(var(--svc-rgb), 0.22); }
.dz-sel-btn .grow, .dz-opt .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-caret { width: 16px; height: 16px; color: var(--svc); transition: transform 0.18s; }
.dz-select.open .dz-caret { transform: rotate(180deg); }
.dz-sel-list { position: absolute; z-index: 90; left: 0; right: 0; top: calc(100% + 6px); max-height: 264px; overflow-y: auto; padding: 6px; border: 1px solid var(--line-2);
  border-radius: 14px; background: var(--bg-2); box-shadow: var(--shadow); animation: pop 0.14s ease-out; }
.dz-select.up .dz-sel-list { top: auto; bottom: calc(100% + 6px); }
.dz-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--text); font-size: 0.92rem; font-weight: 600; cursor: pointer; }
.dz-opt + .dz-opt { margin-top: 2px; }
.dz-opt:hover, .dz-opt:focus { outline: none; background: rgba(var(--svc-rgb), 0.1); }
.dz-opt[aria-selected="true"] { background: rgba(var(--svc-rgb), 0.16); }
.dz-opt .ico { width: 16px; height: 16px; color: var(--svc); }
.dz-opt[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.g-ico { width: 22px; height: 22px; flex-shrink: 0; background: center / contain no-repeat; }
.g-ico.g-silver { background-image: url("/img/grade-silver.png"); } .g-ico.g-gold { background-image: url("/img/grade-gold.png"); }
.g-ico.g-platinum { background-image: url("/img/grade-platinum.png"); } .g-ico.g-diamond { background-image: url("/img/grade-diamond.png"); }

/* [4.5] File pickers: one tidy box (icon or photo preview, name, size, button) instead of "Choose File | No file chosen" */
.dz-file { position: relative; display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 10px 12px; border: 1.5px dashed var(--line-2); border-radius: 14px;
  background: var(--bg-2); color: var(--text); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.dz-file:hover, .dz-file:focus-visible { outline: none; border-color: rgba(var(--svc-rgb), 0.65); background: rgba(var(--svc-rgb), 0.05); }
.dz-file.has-file { border-style: solid; border-color: rgba(var(--svc-rgb), 0.5); }
.dz-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dz-file-ico { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: rgba(var(--svc-rgb), 0.14); color: var(--svc); }
.dz-file-ico .ico { width: 20px; height: 20px; }
.dz-file-thumb { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; object-fit: cover; border: 1px solid var(--line-2); }
.dz-file-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dz-file-txt b { font-size: 0.9rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-file-txt small { color: var(--muted); font-size: 0.76rem; font-weight: 500; }
.dz-file-btn { flex-shrink: 0; padding: 8px 14px; border: 1px solid rgba(var(--svc-rgb), 0.5); border-radius: 10px; background: rgba(var(--svc-rgb), 0.1); font-size: 0.8rem; font-weight: 700; }
@media (max-width: 400px) { .dz-file-btn { display: none; } }
/* a window's main button sits apart from the field above it */
.dlg-in .field + .form-err[hidden] + .btn, .dlg-in .field + .btn, .dlg-in form > .btn-pri:last-child, .dlg-in > .btn-pri:last-child { margin-top: 6px; }
.dlg-in .btn-pri { box-shadow: 0 8px 20px rgba(var(--svc-rgb), 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

/* [8] The save folder: a warning look until one is chosen; Settings blinks when the warning sends you there */
.dl-dir.is-unset { border-color: rgba(251, 191, 36, 0.55); background: rgba(251, 191, 36, 0.06); }
.dl-dir-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.dl-dir small.dl-wait { color: #fbbf24; }
.set-block.flash { animation: flash 1.6s ease; border-radius: 14px; }
@keyframes flash { 30% { background: rgba(var(--svc-rgb), 0.12); box-shadow: 0 0 0 6px rgba(var(--svc-rgb), 0.12); } }
@media (max-width: 640px) { .dl-dir { flex-wrap: wrap; } .dl-dir-acts { width: 100%; justify-content: stretch; } .dl-dir-acts .btn { flex: 1; } }

/* [12] Plan tiers: the Silver / Gold / Platinum / Diamond icons instead of a glowing dot; each card in its tier's colour */
:root { --platinum: #93c5fd; --diamond: #67e8f9; }
:root[data-theme="light"] { --platinum: #1d4ed8; --diamond: #0e7490; }
.grade::before { width: 20px; height: 20px; border-radius: 0; background: center / contain no-repeat; background-color: transparent; box-shadow: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)); }
.grade.g-silver::before { background-image: url("/img/grade-silver.png"); } .grade.g-gold::before { background-image: url("/img/grade-gold.png"); }
.grade.g-platinum::before { background-image: url("/img/grade-platinum.png"); } .grade.g-diamond::before { background-image: url("/img/grade-diamond.png"); }
.plan .grade::before, .pcard .grade::before { width: 26px; height: 26px; }
:is(.plan, .pcard, .mini-plan):has(.g-silver) { --tier: var(--silver); } :is(.plan, .pcard, .mini-plan):has(.g-gold) { --tier: var(--gold); }
:is(.plan, .pcard, .mini-plan):has(.g-platinum) { --tier: var(--platinum); } :is(.plan, .pcard, .mini-plan):has(.g-diamond) { --tier: var(--diamond); }
:is(.plan, .pcard):has(.grade) { border-color: color-mix(in srgb, var(--tier) 38%, transparent); background: linear-gradient(165deg, color-mix(in srgb, var(--tier) 10%, var(--panel)), var(--panel) 62%); }
.plan:has(.grade):hover { border-color: color-mix(in srgb, var(--tier) 70%, transparent); }
.plan.best:has(.grade) { border-color: var(--tier); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tier) 45%, transparent), var(--shadow); }
.plan:has(.grade) ul li::before { color: var(--tier); }
.mini-plan:has(.grade) { border-color: color-mix(in srgb, var(--tier) 30%, var(--line-2)); }
.mini-plan:has(.grade)[aria-pressed="true"] { border-color: var(--tier); background: color-mix(in srgb, var(--tier) 12%, var(--panel)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tier) 55%, transparent); }
/* Narrow cards (2 per row on phones, touch tablets): the main button gets its own row and the small ones share
   the row under it, so nothing is cut off at the card's edge. Wider cards keep one row. */
.items.grid .item:not(.is-folder) { container-type: inline-size; }
@container (max-width: 196px) {
  .items.grid .item-acts { flex-wrap: wrap; justify-content: stretch; gap: 6px; }
  .items.grid .item-acts .btn-play, .items.grid .item-acts .btn-lock { order: -1; flex: 1 1 100%; max-width: none; }
  .items.grid .item-acts .btn:not(.btn-pri):not(.btn-lock) { flex: 1 1 0; width: auto; }
  .items.grid .item-acts .hov-dl { opacity: 1; transform: none; pointer-events: auto; }
}
