/* ORO PLAYER design system (admin, reseller and customer panels; public website). One set of tokens, dark + gold. */
:root {
  --bg: #08080a; --bg2: #0f0f12; --card: #121215; --card2: #17171b; --line: #26262c; --line-gold: rgba(232, 185, 78, .32);
  --gold: #e8b94e; --gold-hi: #f6d47a; --gold-deep: #b8892a; --champagne: #d9c39a;
  --text: #f5f2ea; --mute: #9b9aa2; --mute2: #6f6e76;
  --green: #3ddc84; --amber: #f5b13d; --red: #ff4d5e; --blue: #5aa7ff;
  --radius: 12px; --side: 248px;
  --focus: 0 0 0 3px rgba(246, 212, 122, .55);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- panel layout */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, #0c0c0e, #08080a); border-inline-end: 1px solid transparent; border-image: linear-gradient(180deg, transparent, var(--gold-deep) 40%, var(--gold) 70%, transparent) 1; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px; }
.side { scrollbar-width: thin; scrollbar-color: #2a2a30 transparent; }
.side::-webkit-scrollbar { width: 6px; }
.side::-webkit-scrollbar-thumb { background: #2a2a30; border-radius: 3px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0 22px; }
.brand img { width: 86px; height: auto; }
.brand b { font: 800 22px/1 "Segoe UI", system-ui; letter-spacing: .5px; background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { color: var(--mute); font-size: 13px; }
.nav a { display: flex; align-items: center; gap: 14px; color: #d7d4cc; padding: 11px 16px; border-radius: 10px; margin: 2px 0; font-size: 15px; }
.nav a svg { width: 21px; height: 21px; flex: none; color: #cfcac0; }
.nav a:hover { background: #16161a; color: var(--text); }
.nav a.on { background: linear-gradient(90deg, rgba(232, 185, 78, .28), rgba(232, 185, 78, .06)); color: var(--gold-hi); box-shadow: inset 3px 0 0 var(--gold); }
[dir=rtl] .nav a.on { box-shadow: inset -3px 0 0 var(--gold); }
.nav a.on svg { color: var(--gold-hi); }
.main { min-width: 0; display: flex; flex-direction: column; overflow-x: hidden; }
.top { display: flex; align-items: center; gap: 18px; padding: 16px 28px 14px; border-bottom: 1px solid #1a1a1f; background: radial-gradient(120% 140% at 85% -40%, rgba(232, 185, 78, .14), transparent 55%); }
.crumbs { color: var(--mute); font-size: 13px; }
.title { font: 800 30px/1.15 "Segoe UI", system-ui; margin: 2px 0 0; letter-spacing: -.3px; }
.title em { font-style: normal; color: var(--gold); }
.subtitle { color: var(--mute); margin: 4px 0 0; font-size: 14px; }
.top .grow { flex: 1; }
.search { display: flex; align-items: center; gap: 10px; background: #0d0d10; border: 1px solid #2a2a30; border-radius: 10px; padding: 9px 14px; width: 340px; color: var(--mute); }
.search input { background: none; border: 0; color: var(--text); width: 100%; font: inherit; outline: none; }
.iconbtn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #d7d4cc; background: none; border: 0; cursor: pointer; }
.iconbtn .dot { position: absolute; top: 7px; inset-inline-end: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid var(--bg); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 10px; border: 1px solid rgba(61, 220, 132, .35); background: rgba(61, 220, 132, .07); color: #9af0bd; font-size: 13px; white-space: nowrap; }
.status-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.status-pill.warn { border-color: rgba(245, 177, 61, .4); background: rgba(245, 177, 61, .08); color: #ffd58f; }
.status-pill.warn i { background: var(--amber); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--gold-hi); border: 2px solid var(--gold); background: #141416; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu .menu { position: absolute; inset-inline-end: 0; top: 52px; min-width: 220px; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; z-index: 20; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.usermenu .menu a, .usermenu .menu button { display: block; width: 100%; text-align: start; padding: 9px 12px; border-radius: 8px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.usermenu .menu a:hover, .usermenu .menu button:hover { background: #222228; }
.usermenu .menu .who { padding: 8px 12px 10px; color: var(--mute); font-size: 13px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.langs { display: flex; gap: 6px; padding: 6px 12px; }
.langs form { display: inline; }
.langs button { width: auto; padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.langs button.on { border-color: var(--gold); color: var(--gold); }
.content { padding: 22px 28px 40px; }

/* ---------- cards */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat { display: flex; gap: 16px; align-items: center; background: linear-gradient(180deg, #141417, #0f0f12); border: 1px solid var(--line-gold); border-radius: var(--radius); padding: 18px; }
.tile { width: 58px; height: 58px; flex: none; border-radius: 12px; border: 1.5px solid var(--gold); display: grid; place-items: center; color: var(--gold-hi); background: radial-gradient(circle at 30% 20%, rgba(232, 185, 78, .25), rgba(232, 185, 78, .05)); }
.tile svg { width: 28px; height: 28px; }
.tile.red { border-color: var(--red); color: var(--red); background: rgba(255, 77, 94, .08); }
.stat small { display: block; color: #e5e0d4; font-size: 14px; }
.stat b { display: block; font: 800 30px/1.1 "Segoe UI", system-ui; }
.stat .trend { font-size: 13px; color: var(--mute); }
.stat .trend.up { color: var(--green); }
.card { background: linear-gradient(180deg, #131316, #0e0e11); border: 1px solid var(--line-gold); border-radius: var(--radius); padding: 18px 20px; }
.card h2 { display: flex; align-items: center; gap: 10px; font: 700 20px/1.2 "Segoe UI", system-ui; margin: 0 0 14px; }
.card h2 svg { width: 22px; height: 22px; color: var(--gold); }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.grid-2 + .grid-2, .stats + .grid-2 { margin-top: 0; }
.stack { display: grid; gap: 16px; }

/* ---------- tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: start; color: var(--mute); font-weight: 600; font-size: 12.5px; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 11px 10px; border-bottom: 1px solid #1c1c21; vertical-align: middle; }
.t tr:hover td { background: #15151a; }
.mono { font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--mute2); }
.badge.ok i { background: var(--green); } .badge.ok { color: #9af0bd; }
.badge.bad i { background: var(--red); } .badge.bad { color: #ff9aa5; }
.badge.warn i { background: var(--amber); } .badge.warn { color: #ffd58f; }

/* ---------- forms and buttons */
.field { margin-bottom: 16px; }
.field label { display: block; color: #d9d5cb; font-size: 14px; margin-bottom: 7px; }
.input, .field input, .field select, .field textarea { width: 100%; background: #0c0c0f; border: 1px solid #2e2e35; color: var(--text); border-radius: 10px; padding: 12px 14px; font: inherit; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--gold); box-shadow: var(--focus); outline: none; }
.check { display: flex; align-items: center; gap: 10px; color: #d9d5cb; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 20px; border-radius: 10px; font: 600 15px "Segoe UI", system-ui; cursor: pointer; border: 1px solid transparent; }
.btn svg { width: 20px; height: 20px; }
.btn.gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #17130a; box-shadow: 0 6px 24px rgba(232, 185, 78, .25); }
.btn.gold:hover { filter: brightness(1.06); color: #17130a; }
.btn.line { background: transparent; border-color: var(--gold); color: var(--text); }
.btn.dark { background: #19191e; border-color: #303037; color: var(--text); }
.btn.red { background: rgba(255, 77, 94, .1); border-color: var(--red); color: #ff9aa5; }
.btn.block { width: 100%; }
.errors { color: #ff9aa5; font-size: 14px; margin: 6px 0 0; }
.flash { padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(61, 220, 132, .35); background: rgba(61, 220, 132, .07); color: #b8f5d1; margin-bottom: 16px; }
.pager { display: flex; gap: 6px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; height: 36px; display: grid; place-items: center; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); font-size: 14px; }
.pager .on { border-color: var(--gold); color: var(--gold); }
.filters { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.filters .input { max-width: 280px; }

/* ---------- empty / info states */
.empty { text-align: center; padding: 34px 20px; color: var(--mute); }
.empty .tile { margin: 0 auto 14px; }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
.attention a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid rgba(255, 77, 94, .35); border-radius: 10px; color: var(--text); margin-bottom: 10px; background: rgba(255, 77, 94, .05); }
.attention a.warn { border-color: rgba(232, 185, 78, .45); background: rgba(232, 185, 78, .05); }
.attention a span { flex: 1; }
.attention a b { color: var(--gold); }

/* ---------- auth pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; background: radial-gradient(60% 50% at 80% 10%, rgba(232, 185, 78, .14), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(232, 185, 78, .10), transparent 70%), var(--bg); }
.auth .box { width: 100%; max-width: 440px; background: linear-gradient(180deg, #141417, #0d0d10); border: 1px solid var(--line-gold); border-radius: 18px; padding: 34px 32px 28px; }
.auth .brand { padding-top: 0; }
.auth h1 { font: 800 26px/1.2 "Segoe UI", system-ui; text-align: center; margin: 4px 0 6px; }
.auth h1 em { font-style: normal; color: var(--gold); }
.auth p.lead { color: var(--mute); text-align: center; margin: 0 0 24px; }
.auth .row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 18px; font-size: 14px; }
.auth .foot { text-align: center; color: var(--mute2); font-size: 12px; margin-top: 18px; }
.code-input { text-align: center; font-size: 26px !important; letter-spacing: 10px; font-family: Consolas, ui-monospace, monospace; }

/* ---------- Phase 2 pages: detail lists, actions, toggles, health */
.muted { color: var(--mute); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.mac { font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; color: var(--gold-hi); letter-spacing: .4px; white-space: nowrap; }
.head-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.head-row h2 { margin: 0; }
.head-row .grow { flex: 1; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.stack-sm { display: grid; gap: 10px; }
.mt { margin-top: 16px; }
.kv { display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 9px 18px; margin: 0; font-size: 14px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.hero-dev { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hero-dev .mac { font-size: 26px; font-weight: 700; }
.hero-dev .grow { flex: 1; }
.badge.info i { background: var(--blue); } .badge.info { color: #a9d0ff; }
.badge.gold i { background: var(--gold); } .badge.gold { color: var(--gold-hi); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: #d7d4cc; white-space: nowrap; }
.pill.gold { border-color: var(--line-gold); color: var(--gold-hi); }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: 13.5px; border-radius: 8px; gap: 6px; }
.btn.sm svg { width: 16px; height: 16px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-actions form { display: inline; margin: 0; }
/* an action that needs input (reason, days ...) opens in place, no script needed */
details.act { position: relative; display: inline-block; }
details.act > summary { list-style: none; }
details.act > summary::-webkit-details-marker { display: none; }
details.act[open] > summary { box-shadow: var(--focus); }
details.act .pop { position: absolute; z-index: 15; inset-inline-end: 0; top: calc(100% + 8px); width: min(340px, 86vw); background: var(--card2); border: 1px solid var(--line-gold); border-radius: 12px; padding: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); text-align: start; }
details.act .pop.left { inset-inline-end: auto; inset-inline-start: 0; }
details.act .pop p { margin: 0 0 10px; color: var(--mute); font-size: 13px; white-space: normal; }
details.act .pop .field { margin-bottom: 10px; }
details.act .pop .field input, details.act .pop .field select, details.act .pop .field textarea { padding: 9px 11px; }
details.edit > summary { list-style: none; cursor: pointer; }
details.edit > summary::-webkit-details-marker { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.field .hint { display: block; color: var(--mute2); font-size: 12.5px; margin-top: 5px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid #1c1c21; cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch span b { display: block; font-weight: 600; font-size: 14.5px; }
.switch span small { color: var(--mute); font-size: 12.5px; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 26px; border-radius: 13px; background: #2a2a30; position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #d7d4cc; transition: inset-inline-start .15s; }
.switch input:checked { background: var(--gold); }
.switch input:checked::after { inset-inline-start: 23px; background: #17130a; }
.switch input:focus-visible { box-shadow: var(--focus); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid #2e2e35; border-radius: 999px; font-size: 13.5px; cursor: pointer; color: #d7d4cc; }
.chips input { accent-color: var(--gold); width: 15px; height: 15px; margin: 0; }
.chips label:has(input:checked) { border-color: var(--gold); color: var(--gold-hi); background: rgba(232, 185, 78, .08); }
.health { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; white-space: nowrap; }
.health i { width: 10px; height: 10px; border-radius: 50%; background: var(--mute2); }
.health.healthy i { background: var(--green); box-shadow: 0 0 0 3px rgba(61, 220, 132, .15); } .health.healthy { color: #9af0bd; }
.health.degraded i { background: var(--amber); } .health.degraded { color: #ffd58f; }
.health.down i { background: var(--red); } .health.down { color: #ff9aa5; }
.order { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-gold); color: var(--gold-hi); font-weight: 700; font-size: 13px; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chain .node { padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; background: #0f0f12; }
.chain .node.first { border-color: var(--gold); color: var(--gold-hi); }
.chain .node.off { opacity: .45; text-decoration: line-through; }
.chain .arrow { color: var(--mute2); }
[dir=rtl] .chain .arrow { transform: scaleX(-1); }
pre.json { background: #0b0b0d; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 0; max-height: 360px; overflow: auto; font: 12.5px/1.55 Consolas, "Cascadia Mono", ui-monospace, monospace; color: #e6e1d6; white-space: pre; direction: ltr; text-align: left; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(232, 185, 78, .45); background: rgba(232, 185, 78, .06); color: #eadbb8; font-size: 14px; margin-bottom: 14px; }
.notice svg { width: 20px; height: 20px; flex: none; color: var(--gold); margin-top: 1px; }
.notice .grow { flex: 1; }
.notice.red { border-color: rgba(255, 77, 94, .45); background: rgba(255, 77, 94, .06); color: #ffc2c9; }
.notice.red svg { color: var(--red); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid #1c1c21; font-size: 14px; }
.timeline li:last-child { border-bottom: 0; }
.timeline li i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-top: 6px; }
.timeline li i.bad { background: var(--red); } .timeline li i.ok { background: var(--green); } .timeline li i.info { background: var(--blue); }
.timeline li small { color: var(--mute); display: block; overflow-wrap: anywhere; }
.timeline time { color: var(--mute); font-size: 12.5px; white-space: nowrap; }
.errors-box { padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(255, 77, 94, .45); background: rgba(255, 77, 94, .07); color: #ffc2c9; margin-bottom: 16px; }
.errors-box ul { margin: 0; padding-inline-start: 18px; }
.meter { height: 8px; border-radius: 4px; background: #222228; overflow: hidden; margin-top: 8px; }
.meter b { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi)); }
.w-0 { width: 0; } .w-10 { width: 10%; } .w-20 { width: 20%; } .w-30 { width: 30%; } .w-40 { width: 40%; } .w-50 { width: 50%; }
.w-60 { width: 60%; } .w-70 { width: 70%; } .w-80 { width: 80%; } .w-90 { width: 90%; } .w-100 { width: 100%; }
.sticky-save { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 0 4px; background: linear-gradient(180deg, transparent, var(--bg) 40%); z-index: 5; }
.t td.actions { text-align: end; }
.t tr.off td { opacity: .55; }
.t tr.off td.actions { opacity: 1; }
.edit-row td { background: #0f0f12; }
.edit-row:hover td { background: #0f0f12 !important; }

.mt-xs { margin-top: 8px; }
.card h2.mt { margin-top: 24px; }
.grid-2.settings-grid { grid-template-columns: 1fr 1fr; align-items: start; }
.filters select.input { width: auto; min-width: 160px; }
.head-row .filters { margin-bottom: 0; flex-wrap: nowrap; }
.head-row .filters .input { max-width: 200px; min-width: 0; }
@media (max-width: 860px) { .head-row .filters { flex-wrap: wrap; } }

/* ---------- Phase 3: resellers, credits, reseller portal */
.plus { color: var(--green); } .minus { color: #ff9aa5; }
.plus, .minus, .credit-pill b { direction: ltr; unicode-bidi: isolate; }
[dir=rtl] td.nowrap, [dir=rtl] .timeline time { unicode-bidi: plaintext; text-align: right; }
.big-num { font: 800 22px/1 "Segoe UI", system-ui; color: var(--gold-hi); }
.small-num { font-size: 20px !important; }
.page-actions { justify-content: flex-end; margin: -4px 0 14px; }
.credit-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-gold); background: rgba(232, 185, 78, .08); color: var(--gold-hi); white-space: nowrap; font-size: 14px; }
.credit-pill b { font-size: 16px; }
.credit-pill:hover { background: rgba(232, 185, 78, .16); color: var(--gold-hi); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg a { padding: 7px 14px; color: #d7d4cc; font-size: 13.5px; border-inline-start: 1px solid var(--line); }
.seg a:first-child { border-inline-start: 0; }
.seg a.on { background: rgba(232, 185, 78, .14); color: var(--gold-hi); }
.inline-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.inline-form .field { margin-bottom: 0; min-width: 140px; }
details.more { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; margin-top: 6px; }
details.more > summary { cursor: pointer; color: var(--gold); font-size: 14px; }
.notice.ok { border-color: rgba(61, 220, 132, .4); background: rgba(61, 220, 132, .06); color: #b8f5d1; }
.notice.ok svg { color: var(--green); }

/* tree */
.tree-wrap { overflow-x: auto; padding-bottom: 4px; }
.tree { list-style: none; margin: 0; padding: 0; }
.tree .tree { padding-inline-start: 34px; position: relative; }
.tree .tree::before { content: ""; position: absolute; inset-inline-start: 17px; top: 0; bottom: 18px; border-inline-start: 1px dashed rgba(232, 185, 78, .35); }
.tree li { position: relative; margin: 6px 0; }
.tree .tree > li::before { content: ""; position: absolute; inset-inline-start: -17px; top: 26px; width: 15px; border-top: 1px dashed rgba(232, 185, 78, .35); }
.tree details > summary { list-style: none; cursor: pointer; }
.tree details > summary::-webkit-details-marker { display: none; }
.node-card { display: inline-flex; align-items: center; gap: 14px; min-width: 420px; max-width: 100%; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #151518, #101013); }
.tree details > summary .node-card { box-shadow: inset 3px 0 0 var(--gold-deep); }
[dir=rtl] .tree details > summary .node-card { box-shadow: inset -3px 0 0 var(--gold-deep); }
.tree details:not([open]) > summary .node-card { border-color: var(--line-gold); }
.node-card.suspended { border-color: rgba(245, 177, 61, .45); }
.node-card.archived { opacity: .55; }
.node-avatar { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #17130a; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.node-avatar.d2 { background: linear-gradient(180deg, #e9d3a6, #c9a96b); }
.node-avatar.d3 { background: linear-gradient(180deg, #cfd6e2, #9aa6b8); }
.node-avatar.d4 { background: linear-gradient(180deg, #b9e6d0, #7cc4a2); }
.node-avatar.d5 { background: linear-gradient(180deg, #e5c3d6, #b98aa6); }
.node-avatar.big { width: 64px; height: 64px; border-radius: 16px; font-size: 22px; }
.node-main { flex: 1; min-width: 0; }
.node-main a { color: var(--text); font-weight: 650; }
.node-main a:hover { color: var(--gold-hi); }
.node-main small { display: block; color: var(--mute); font-size: 12.5px; }
.node-figs { text-align: end; min-width: 64px; }
.node-figs b { display: block; font-size: 16px; color: var(--gold-hi); }
.node-figs small { color: var(--mute); font-size: 11.5px; }
.chainline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--mute); font-size: 13.5px; }
.chainline .arrow { color: var(--mute2); }
[dir=rtl] .chainline .arrow { transform: scaleX(-1); }
.balance-box { text-align: end; padding: 10px 18px; border: 1px solid var(--line-gold); border-radius: 14px; background: radial-gradient(circle at 80% 0, rgba(232, 185, 78, .18), transparent 70%); }
.balance-box small { display: block; color: var(--mute); font-size: 12.5px; }
.balance-box b { font: 800 34px/1.1 "Segoe UI", system-ui; color: var(--gold-hi); }
.balance-box span { display: block; color: var(--champagne); font-size: 13px; }

/* portal */
.balance-hero { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; background: radial-gradient(120% 120% at 100% 0, rgba(232, 185, 78, .20), transparent 60%), linear-gradient(180deg, #151517, #0e0e11); }
.balance-hero small { color: var(--mute); }
.balance-hero .big b { font: 800 56px/1 "Segoe UI", system-ui; background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.balance-hero .big span { color: var(--champagne); font-size: 18px; }
svg.bars { width: 100%; height: auto; display: block; }
svg.bars rect { fill: rgba(232, 185, 78, .35); }
svg.bars rect.now { fill: var(--gold); }
svg.bars text { fill: var(--mute); font-size: 15px; font-family: "Segoe UI", system-ui, sans-serif; }
svg.bars text.v { fill: var(--text); font-weight: 700; }
.stepper { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0 0 16px; flex-wrap: wrap; }
.stepper li { flex: 1; min-width: 140px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--mute); font-size: 14px; background: #0f0f12; }
.stepper li span { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--mute2); font-weight: 700; font-size: 13px; }
.stepper li.on { border-color: var(--line-gold); color: var(--text); }
.stepper li.on span { border-color: var(--gold); color: var(--gold-hi); }
.stepper li.done { color: #9af0bd; }
.stepper li.done span { background: var(--green); border-color: var(--green); color: #08110b; }
.code-wide { font-size: 20px !important; letter-spacing: 2px; }
.howto { margin: 0 0 14px; padding-inline-start: 20px; color: #d9d5cb; line-height: 1.7; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.plan-card { position: relative; cursor: pointer; }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card .pc-body { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #0f0f12; height: 100%; }
.plan-card .pc-body b { font-size: 17px; }
.plan-card .pc-cost { font: 800 30px/1.1 "Segoe UI", system-ui; color: var(--gold-hi); }
.plan-card .pc-cost small { font-size: 14px; color: var(--champagne); font-weight: 600; }
.plan-card small { color: var(--mute); }
.plan-card .pc-after { margin-top: 6px; color: var(--champagne); }
.plan-card input:checked + .pc-body { border-color: var(--gold); background: radial-gradient(circle at 90% 0, rgba(232, 185, 78, .2), transparent 70%), #121215; box-shadow: 0 0 0 3px rgba(232, 185, 78, .18); }
.plan-card input:focus-visible + .pc-body { box-shadow: var(--focus); }
.plan-card input:disabled + .pc-body { opacity: .4; cursor: not-allowed; }
.confirm-card { border-color: var(--gold); }
.success-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border-color: rgba(61, 220, 132, .5); background: radial-gradient(120% 140% at 0 0, rgba(61, 220, 132, .12), transparent 60%), #101013; }
.success-card .tile { border-color: var(--green); color: var(--green); background: rgba(61, 220, 132, .08); }
.success-card b { font-size: 19px; }
.success-card p { margin: 4px 0 0; }
.success-card .grow { flex: 1; }
@media (max-width: 860px) {
  .node-card { min-width: 0; width: 100%; }
  .hide-sm { display: none; }
  .tree .tree { padding-inline-start: 18px; }
  .tree .tree::before { inset-inline-start: 8px; }
  .tree .tree > li::before { inset-inline-start: -10px; width: 8px; }
  .credit-pill { order: 3; }
  .balance-hero .big b { font-size: 44px; }
}

/* ---------- Phase 4: public website, prices, orders */
body.site { background: radial-gradient(80% 60% at 85% -10%, rgba(232, 185, 78, .16), transparent 60%), radial-gradient(60% 50% at -10% 110%, rgba(232, 185, 78, .10), transparent 60%), var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.site-top { display: flex; align-items: center; gap: 22px; padding: 16px clamp(16px, 4vw, 48px); border-bottom: 1px solid #1a1a1f; position: sticky; top: 0; z-index: 20; background: rgba(8, 8, 10, .86); backdrop-filter: blur(10px); }
.site-top .grow { flex: 1; }
.site-brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.site-brand img { width: 38px; height: 38px; }
.site-brand b { font: 800 19px/1 "Segoe UI", system-ui; letter-spacing: .5px; background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { color: #d7d4cc; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.site-nav a:hover, .site-nav a.on { color: var(--gold-hi); background: rgba(232, 185, 78, .08); }
.site-langs { display: flex; gap: 4px; }
.site-langs form { display: inline; }
.site-langs button { background: none; border: 1px solid var(--line); color: var(--mute); border-radius: 6px; padding: 4px 8px; font: 600 12px "Segoe UI", system-ui; cursor: pointer; }
.site-langs button.on { color: var(--gold); border-color: var(--gold); }
.site-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 48px; }
.site-foot { border-top: 1px solid #1a1a1f; padding: 26px clamp(16px, 4vw, 48px); text-align: center; color: var(--mute2); font-size: 13px; }
.site-foot .disclaimer { color: var(--mute); max-width: 720px; margin: 0 auto 12px; }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.site-foot nav a { color: #d7d4cc; }
.site-head { text-align: center; margin: 6px 0 22px; }
.site-head h1 { font: 800 clamp(28px, 4vw, 42px)/1.15 "Segoe UI", system-ui; margin: 0 0 10px; letter-spacing: -.5px; }
.site-head h1 em { font-style: normal; color: var(--gold); }
.site-head .pill { font-size: 13px; padding: 4px 12px; }
.site-steps { max-width: 900px; margin: 0 auto 22px; }
.site-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; align-items: start; }
.site-narrow { max-width: 560px; margin: 0 auto; }
.site-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; padding: 30px 0 40px; }
.site-hero .eyebrow { color: var(--gold); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 12.5px; }
.site-hero h1 { font: 800 clamp(34px, 5vw, 58px)/1.05 "Segoe UI", system-ui; margin: 12px 0 14px; letter-spacing: -1px; }
.site-hero h1 em { font-style: normal; background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-hero p { color: #cfcac0; font-size: 17px; max-width: 520px; margin: 0 0 22px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { display: flex; align-items: center; gap: 10px; color: #d9d5cb; }
.ticks li svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.ticks.small li { font-size: 13.5px; color: var(--mute); }
.ticks.small li svg { color: var(--gold); }
.hero-art { display: grid; place-items: center; }
.tv-frame { width: min(420px, 100%); aspect-ratio: 16 / 10; border-radius: 18px; border: 2px solid #2a2a30; background: radial-gradient(70% 70% at 50% 30%, rgba(232, 185, 78, .18), transparent 70%), #0c0c0f; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 10px #111114; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.tv-frame img { width: 74px; }
.tv-frame b { font: 800 22px "Segoe UI", system-ui; color: var(--gold-hi); letter-spacing: 1px; }
.tv-frame .mac { font-size: 18px; }
.tv-key { font: 700 26px Consolas, monospace; letter-spacing: 6px; color: var(--text); border: 1px dashed var(--line-gold); padding: 4px 14px; border-radius: 10px; }
.site-how { text-align: center; }
.site-how h2 { font: 800 26px "Segoe UI", system-ui; margin: 0 0 18px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: start; }
.how-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-hi); font-weight: 800; margin-bottom: 10px; }
.how-grid b { display: block; font-size: 17px; margin-bottom: 4px; }
.how-grid p { color: var(--mute); margin: 0; }
.verified-card { border-color: rgba(61, 220, 132, .45); }
.verified-card h2 svg { color: var(--green); }
.site-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.site-plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 18px 18px; border: 1.5px solid var(--line); border-radius: 16px; background: #0f0f12; }
.site-plan.popular { border-color: var(--gold); background: radial-gradient(circle at 90% 0, rgba(232, 185, 78, .18), transparent 70%), #121215; }
.site-plan .ribbon { position: absolute; top: -11px; inset-inline-end: 16px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #17130a; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.sp-name { font-size: 19px; }
.sp-term { color: var(--mute); font-size: 13.5px; }
.sp-price { font: 800 34px/1.1 "Segoe UI", system-ui; color: var(--gold-hi); margin-top: 6px; direction: ltr; unicode-bidi: isolate; }
.sp-was { color: var(--mute2); font-size: 14px; }
.sp-tax { color: var(--mute); font-size: 12.5px; }
.sp-list { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 6px; flex: 1; }
.sp-list li { display: flex; gap: 8px; align-items: center; font-size: 14px; color: #d9d5cb; }
.sp-list li svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.order-card { border-color: var(--line-gold); }
.order-card .ticks { margin: 4px 0 18px; }
.sum-lines { column-gap: 0; }
.sum-lines dd { padding-inline-start: 16px; }
.sum-lines { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0 0 14px; font-size: 15px; }
.sum-lines dt { color: var(--mute); }
.sum-lines dd { margin: 0; text-align: end; direction: ltr; unicode-bidi: isolate; }
[dir=rtl] .sum-lines dd { text-align: left; }
.sum-lines .total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 800; font-size: 19px; color: var(--text); }
.sum-lines dd.total { color: var(--gold-hi); }
.status-card { text-align: center; padding: 34px 26px; }
.status-card .kv { text-align: start; max-width: 380px; margin: 16px auto 0; }
.status-card h2 { justify-content: center; font-size: 24px; }
.big-tile { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; }
.big-tile svg { width: 36px; height: 36px; }
.big-tile.ok { border-color: var(--green); color: var(--green); background: rgba(61, 220, 132, .1); }
.status-card.success { border-color: rgba(61, 220, 132, .5); }
.spin svg { animation: oro-spin 1.4s linear infinite; }
@keyframes oro-spin { to { transform: rotate(360deg); } }
.sandbox-banner { border-style: dashed; }
.prose h2 { font: 700 20px "Segoe UI", system-ui; margin: 24px 0 8px; color: var(--gold-hi); }
.prose p { color: #d9d5cb; line-height: 1.7; }
@media (max-width: 960px) {
  .site-split, .site-hero, .how-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .hero-art { order: -1; }
}

/* ---------- Phase 5: payment result pages, App Versions, Security & Audit, Support Center */
/* gold waves behind the public website (decorative only) */
body.site { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23e8b94e' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23f6d47a' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='%23b8892a' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M-50 820 C 300 640 520 980 900 760 S 1450 520 1700 640' fill='none' stroke='url(%23g)' stroke-width='3'/%3E%3Cpath d='M-50 860 C 340 700 560 1000 940 800 S 1480 580 1700 700' fill='none' stroke='url(%23g)' stroke-width='1.5' opacity='.6'/%3E%3Cpath d='M1250 -40 C 1380 160 1300 360 1650 420' fill='none' stroke='url(%23g)' stroke-width='3'/%3E%3Cpath d='M1200 -40 C 1340 190 1260 400 1650 470' fill='none' stroke='url(%23g)' stroke-width='1.2' opacity='.5'/%3E%3Cpath d='M-60 120 C 120 40 160 260 60 420' fill='none' stroke='url(%23g)' stroke-width='2' opacity='.6'/%3E%3C/svg%3E"), radial-gradient(80% 60% at 85% -10%, rgba(232, 185, 78, .16), transparent 60%), radial-gradient(60% 50% at -10% 110%, rgba(232, 185, 78, .10), transparent 60%); background-size: 100% 100%, auto, auto; background-attachment: fixed; }

/* progress: circles joined by a line */
.flow { list-style: none; display: flex; padding: 0; margin: 4px auto 26px; max-width: 980px; }
.flow li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--mute); font-size: 14.5px; }
.flow li::before { content: ""; position: absolute; top: 17px; inset-inline-start: calc(-50% + 22px); inset-inline-end: calc(50% + 22px); height: 2px; background: #2c2c33; }
.flow li:first-child::before { display: none; }
.flow li.done::before, .flow li.on::before, .flow li.failed::before, .flow li.cancelled::before { background: linear-gradient(90deg, var(--green), var(--green)); }
.flow li.failed::before { background: linear-gradient(90deg, var(--green), var(--red)); }
.flow li.cancelled::before, .flow li.on::before { background: linear-gradient(90deg, var(--green), var(--gold)); }
[dir=rtl] .flow li.failed::before { background: linear-gradient(270deg, var(--green), var(--red)); }
[dir=rtl] .flow li.cancelled::before, [dir=rtl] .flow li.on::before { background: linear-gradient(270deg, var(--green), var(--gold)); }
.flow .dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #3a3a42; background: #0c0c0f; font-weight: 800; color: var(--mute); }
.flow .dot svg { width: 18px; height: 18px; stroke-width: 2.4; }
.flow b { font-weight: 600; color: #d9d5cb; }
.flow small { color: var(--gold); font-size: 12.5px; margin-top: -4px; }
.flow li.done .dot { border-color: var(--green); color: var(--green); background: rgba(61, 220, 132, .1); }
.flow li.done b { color: var(--text); }
.flow li.on .dot, .flow li.cancelled .dot { border-color: var(--gold); background: var(--gold); color: #17130a; box-shadow: 0 0 0 5px rgba(232, 185, 78, .15); }
.flow li.on b, .flow li.cancelled b { color: var(--gold-hi); }
.flow li.failed .dot { border-color: var(--red); color: var(--red); background: rgba(255, 77, 94, .1); box-shadow: 0 0 0 5px rgba(255, 77, 94, .12); }
.flow li.failed b { color: #ff8a96; }
.flow li.failed small { color: #ff8a96; }

.pay-hero { display: flex; align-items: center; justify-content: center; gap: 26px; margin: 4px 0 20px; text-align: start; flex-wrap: wrap; }
.pay-hero h1 { font: 800 clamp(30px, 4.4vw, 52px)/1.05 "Segoe UI", system-ui; margin: 0 0 6px; letter-spacing: -.6px; }
.pay-hero h1 em { font-style: normal; background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pay-hero p { margin: 0; color: #d9d5cb; font-size: 18px; }
.hero-icon { width: 104px; height: 104px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--gold); color: var(--gold-hi); background: radial-gradient(circle, rgba(232, 185, 78, .18), rgba(232, 185, 78, .02)); box-shadow: 0 0 40px rgba(232, 185, 78, .25); }
.hero-icon svg { width: 48px; height: 48px; stroke-width: 2.2; }
.hero-icon.bad { border-color: var(--red); color: #ff6b79; background: radial-gradient(circle, rgba(255, 77, 94, .18), rgba(255, 77, 94, .02)); box-shadow: 0 0 40px rgba(255, 77, 94, .3); }
.hero-icon.ok { border-color: var(--green); color: var(--green); background: radial-gradient(circle, rgba(61, 220, 132, .18), rgba(61, 220, 132, .02)); box-shadow: 0 0 40px rgba(61, 220, 132, .25); }
.hero-icon.spin svg { animation: oro-spin 1.4s linear infinite; }
.pay-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: start; }
.pay-main { padding: 24px 26px; }
.pay-main.failed { border-color: rgba(255, 77, 94, .35); }
.state-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: 17px; color: var(--text); }
.state-pill svg { width: 22px; height: 22px; }
.state-pill.bad { border-color: var(--red); background: rgba(255, 77, 94, .12); color: #ffb3bb; }
.state-pill.bad svg { color: #ff6b79; }
.state-pill.gold { border-color: var(--gold); background: rgba(232, 185, 78, .1); color: var(--gold-hi); }
.state-pill.ok { border-color: var(--green); background: rgba(61, 220, 132, .1); color: #9af0bd; }
.pay-title { display: block !important; font: 800 clamp(26px, 3.2vw, 40px)/1.15 "Segoe UI", system-ui !important; margin: 14px 0 12px !important; }
.pay-title em { font-style: normal; color: var(--gold); }
.decline-box { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(255, 77, 94, .45); background: linear-gradient(90deg, rgba(255, 77, 94, .14), rgba(255, 77, 94, .04)); margin-bottom: 16px; }
.decline-box svg { width: 40px; height: 40px; flex: none; color: #ff6b79; }
.decline-box b { display: block; font-size: 18px; }
.decline-box span { color: #e6c9cd; }
.device-strip { display: grid; grid-template-columns: auto 1.2fr 1.2fr 1fr; gap: 16px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #0f0f12; margin: 14px 0 16px; }
.ds-icon { width: 52px; height: 52px; border-radius: 10px; border: 1px solid #34343c; display: grid; place-items: center; color: #cfcac0; }
.ds-icon svg { width: 30px; height: 30px; }
.ds-name b, .ds-mac b { display: block; font-size: 17px; }
.ds-name small, .ds-mac small, .ds-status small { color: var(--mute); font-size: 13px; display: block; }
.ds-mac, .ds-status { border-inline-start: 1px solid var(--line); padding-inline-start: 16px; }
.ds-mac b { font-size: 18px; letter-spacing: .5px; }
.ds-status { display: flex; align-items: center; gap: 10px; }
.ds-status svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.ds-status b { color: var(--gold-hi); }
.ds-status.ok svg, .ds-status.ok b { color: var(--green); }
.pay-actions { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; margin-top: 4px; }
.pay-actions .btn { min-height: 56px; font-size: 18px; border-radius: 12px; }
.pay-actions .btn.line { border-width: 1.5px; color: var(--gold-hi); }
.center { text-align: center; }
.ulink { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.reserve-box { display: flex; gap: 18px; align-items: center; padding: 16px 22px; border: 1px solid var(--line-gold); border-radius: 12px; background: rgba(232, 185, 78, .06); margin-top: 16px; }
.reserve-box svg { width: 40px; height: 40px; color: var(--gold); flex: none; }
.reserve-box b { display: block; font-size: 18px; }
.reserve-box span { color: #cfcac0; }
.help-strip { display: grid; grid-template-columns: auto 1.4fr auto auto auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #0f0f12; margin-top: 18px; }
.help-strip > svg { width: 40px; height: 40px; color: var(--gold); }
.hs-text b { display: block; font-size: 17px; }
.hs-text span { color: var(--mute); font-size: 14px; }
.hs-code small { display: block; color: var(--mute); font-size: 13px; }
.code-chip { display: inline-block; padding: 7px 14px; border: 1px solid #34343c; border-radius: 8px; font: 700 16px Consolas, monospace; letter-spacing: 1px; background: #0b0b0d; direction: ltr; }
.pay-status { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pay-status li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; }
.pay-status li:first-child { justify-content: flex-start; font-weight: 700; }
.pay-status li svg { width: 22px; height: 22px; }
.pay-status li.bad { color: #ff6b79; } .pay-status li.ok { color: var(--green); } .pay-status li.gold { color: var(--gold-hi); }
.pay-status li span { color: inherit; }
.pay-status li b { font-weight: 500; color: #d9d5cb; }
.reserve-line { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; margin: 14px 0 0; }
.reserve-line svg { width: 18px; height: 18px; }
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps-list li { display: flex; gap: 14px; }
.steps-list li > span { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-hi); display: grid; place-items: center; font-weight: 700; }
.steps-list b { display: block; }
.steps-list small { color: var(--mute); }
.nothing-card .head-row { align-items: flex-start; }
.nothing-card .head-row > svg { width: 44px; height: 44px; color: var(--gold); flex: none; }
.nothing-card h2 { margin: 0 0 4px !important; }
.nothing-card .ticks li svg { color: var(--gold); }
.trust-bar { display: flex; gap: 0; border-top: 1px solid #1a1a1f; margin-top: 26px; padding-top: 18px; }
.trust-bar > div { flex: 1; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 0 18px; border-inline-start: 1px solid #26262c; }
.trust-bar > div:first-child { border-inline-start: 0; }
.trust-bar svg { width: 32px; height: 32px; color: var(--gold); grid-row: span 2; }
.trust-bar b { font-size: 15px; }
.trust-bar small { color: var(--mute); }
@media (max-width: 960px) {
  .pay-grid { grid-template-columns: 1fr; }
  .device-strip { grid-template-columns: auto 1fr; }
  .ds-mac, .ds-status { border-inline-start: 0; padding-inline-start: 0; grid-column: span 2; }
  .help-strip { grid-template-columns: auto 1fr; }
  .help-strip .hs-code, .help-strip .btn { grid-column: span 2; }
  .pay-actions { grid-template-columns: 1fr; }
  .trust-bar { flex-direction: column; gap: 14px; }
  .trust-bar > div { border: 0; }
  .flow b { font-size: 12.5px; }
  .pay-hero { text-align: center; flex-direction: column; gap: 14px; }
}

/* admin: shared bits */
.stats-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat b .of { font-size: 20px; color: #d9d5cb; }
.stat b.red-num { color: #ff6b79; } .stat b.green-num { color: var(--green); }
.stat .trend.bad { color: #ff9aa5; }
.gold-word { color: var(--gold); font-size: 18px; font-weight: 700; }
.count-chip { display: inline-grid; place-items: center; min-width: 32px; height: 26px; padding: 0 8px; border-radius: 8px; background: rgba(232, 185, 78, .14); border: 1px solid var(--line-gold); color: var(--gold-hi); font-weight: 700; font-size: 13px; }
.seg.full { display: flex; }
.seg.full a { flex: 1; text-align: center; }
.kv.tight { gap: 7px 14px; font-size: 13.5px; }
.iconbtn.sm { width: 34px; height: 34px; border: 1px solid #2e2e35; border-radius: 8px; }
.iconbtn.sm svg { width: 17px; height: 17px; }
.grow-btn { flex: 1; }
.chev-link { display: inline-grid; place-items: center; width: 30px; height: 30px; color: #d7d4cc; border-radius: 8px; }
.chev-link:hover { background: #1c1c21; color: var(--gold-hi); }
.chev-link svg { width: 18px; height: 18px; }
[dir=rtl] .chev-link svg { transform: scaleX(-1); }
.meter-sm { display: inline-block; width: 78px; height: 8px; border-radius: 4px; background: #26262c; overflow: hidden; vertical-align: middle; margin-inline-start: 6px; }
.meter-sm b { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.meter-sm.low b { background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
.st-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 8px; border: 1px solid #2e2e35; font-size: 13px; white-space: nowrap; color: #cfcac0; background: #121215; }
.st-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--mute2); }
.st-pill.ok { border-color: rgba(61, 220, 132, .45); color: #9af0bd; background: rgba(61, 220, 132, .08); } .st-pill.ok i { background: var(--green); }
.st-pill.bad { border-color: rgba(255, 77, 94, .5); color: #ff9aa5; background: rgba(255, 77, 94, .1); } .st-pill.bad i { background: var(--red); }
.st-pill.warn { border-color: rgba(245, 177, 61, .5); color: #ffd58f; background: rgba(245, 177, 61, .08); } .st-pill.warn i { background: var(--amber); }
.tabbar { display: flex; gap: 6px; border-bottom: 1px solid #26262c; margin: 4px 0 16px; overflow-x: auto; }
.tabbar a { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; color: #d7d4cc; border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; white-space: nowrap; }
.tabbar a svg { width: 19px; height: 19px; }
.tabbar a.on { color: var(--gold-hi); border-color: var(--gold); background: linear-gradient(180deg, rgba(232, 185, 78, .16), rgba(232, 185, 78, .02)); font-weight: 700; }

/* App Versions */
.ver-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.ver-bottom { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.rel-table tr.sel td { background: rgba(232, 185, 78, .06); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.rel-table tr.sel td:first-child { border-inline-start: 1px solid var(--gold); border-radius: 10px 0 0 10px; }
.rel-table tr.sel td:last-child { border-inline-end: 1px solid var(--gold); border-radius: 0 10px 10px 0; }
.pf-cell { display: flex; align-items: center; gap: 12px; color: var(--text); }
.pf-cell b { display: block; font-weight: 600; }
.pf-cell small { display: block; color: var(--mute); font-size: 12px; }
.pf-mark { display: inline-grid; place-items: center; min-width: 30px; height: 30px; flex: none; }
.pf-mark svg { width: 26px; height: 26px; }
.pf-mark.android svg { color: #3ddc84; } .pf-mark.apple svg { color: #f5f2ea; } .pf-mark.windows svg { color: #4aa3ff; fill: rgba(74, 163, 255, .9); stroke: none; }
.pf-mark b { font: 800 13px/1 "Segoe UI", system-ui; letter-spacing: .5px; }
.pf-mark.tizen b { color: #f5f2ea; letter-spacing: 1.5px; font-size: 12px; }
.pf-mark.webos b { color: #d7d4cc; font-weight: 600; font-size: 14px; } .pf-mark.webos i { color: #ff3b5c; font-style: normal; }
.pf-mark.roku b { color: #8c3dd9; font-size: 16px; font-weight: 900; }
h2 .pf-mark { margin-inline-end: 4px; }
.pol { display: inline-block; padding: 4px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; border: 1px solid; white-space: nowrap; }
.pol-rec { color: var(--gold-hi); border-color: var(--gold-deep); background: rgba(232, 185, 78, .14); }
.pol-opt { color: #cfcac0; border-color: #3a3a42; background: #18181c; }
.pol-man { color: #ff8a96; border-color: rgba(255, 77, 94, .6); background: rgba(255, 77, 94, .12); }
.pol-off { color: #9b9aa2; border-color: #2e2e35; background: #141417; }
.pol-select.pol-man { border-color: var(--red) !important; color: #ff8a96; background: rgba(255, 77, 94, .1) !important; }
.ver-num { color: var(--text); font-weight: 800; margin-inline-start: 6px; }
.rel-panel { border-color: var(--line-gold); }
.form-kv { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 10px 14px; align-items: center; margin: 0 0 14px; }
.form-kv dt { color: #d9d5cb; font-size: 14px; }
.form-kv dd { margin: 0; min-width: 0; }
.form-kv input, .form-kv select { width: 100%; background: #0c0c0f; border: 1px solid #2e2e35; color: var(--text); border-radius: 8px; padding: 8px 11px; font: inherit; }
.form-kv input:focus, .form-kv select:focus { border-color: var(--gold); outline: none; box-shadow: var(--focus); }
.copy-field { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-field input { flex: 1; }
.rollout { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.stages { list-style: none; display: flex; padding: 0; margin: 0; }
.stages li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.stages li::before { content: ""; position: absolute; top: 15px; inset-inline-end: 50%; width: 100%; height: 4px; background: #2c2c33; }
.stages li:first-child::before { display: none; }
.stages li.done::before { background: var(--gold); }
.stages .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #3a3a42; background: #0c0c0f; }
.stages li.done .dot { background: var(--gold); border-color: var(--gold-hi); color: #17130a; }
.stages .dot svg { width: 18px; height: 18px; stroke-width: 2.6; }
.stages b { font-size: 20px; }
.stages small { color: #cfcac0; font-size: 12.5px; }
.rollout-now { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; display: grid; gap: 6px; min-width: 160px; }
.rollout-now > b { font: 800 34px/1 "Segoe UI", system-ui; }
.rollout-now small { color: var(--mute); font-size: 12.5px; }
.action-list { display: grid; gap: 10px; }
.action-list form, .action-list details { display: block; }
.action-list details.act > summary { width: 100%; justify-content: flex-start; min-height: 44px; font-size: 15px; }
.action-list .btn { justify-content: flex-start; }

/* Security & Audit */
.sec-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.legend { display: flex; gap: 18px; font-size: 13.5px; color: #d9d5cb; margin: -4px 0 6px; }
.legend .lg i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-inline-end: 7px; vertical-align: -1px; }
.legend .red i { background: var(--red); } .legend .green i { background: var(--green); }
svg.threat { width: 100%; height: auto; display: block; }
svg.threat .grid { stroke: #222228; stroke-width: 1; }
svg.threat .ax { fill: var(--mute); font-size: 12px; font-family: "Segoe UI", system-ui, sans-serif; }
svg.threat .ln { fill: none; stroke-width: 2.2; }
svg.threat .ln.red { stroke: #ff4d5e; } svg.threat .ln.green { stroke: #3ddc84; }
svg.threat .pt.red { fill: #ff4d5e; } svg.threat .pt.green { fill: #3ddc84; }
.sev { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid #3a3a42; font-size: 12.5px; white-space: nowrap; }
.sev svg { width: 14px; height: 14px; }
.sev.high { border-color: rgba(255, 77, 94, .6); color: #ff9aa5; background: rgba(255, 77, 94, .1); }
.sev.medium { border-color: rgba(245, 177, 61, .6); color: #ffd58f; background: rgba(245, 177, 61, .08); }
.sev.info, .sev.low { color: #cfcac0; }
.res { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; white-space: nowrap; }
.res i { width: 9px; height: 9px; border-radius: 50%; background: var(--mute2); }
.res.bad { color: #ff9aa5; } .res.bad i { background: var(--red); }
.res.warn { color: #ffd58f; } .res.warn i { background: var(--amber); }
.res.ok { color: #9af0bd; } .res.ok i { background: var(--green); }
.t.feed tr.sel td { background: rgba(232, 185, 78, .06); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.alert-card { border-color: var(--line-gold); }
.alert-title { font: 700 19px "Segoe UI", system-ui; margin: 0 0 12px; }
.tl-title { margin: 16px 0 8px; font-size: 15px; }
.mini-tl { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mini-tl li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; color: #d9d5cb; position: relative; }
.mini-tl li i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.mini-tl li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 14px; bottom: -10px; width: 2px; background: rgba(232, 185, 78, .3); }
.mini-tl li:last-child::before { display: none; }
.mini-tl time { color: var(--mute); font-size: 12.5px; }
.controls { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.controls li { display: grid; grid-template-columns: 22px 1fr 44px 90px auto; gap: 10px; align-items: center; font-size: 14px; }
.controls li svg { width: 19px; height: 19px; color: #cfcac0; }
.controls em { font-style: normal; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; white-space: nowrap; }
.controls em i { width: 9px; height: 9px; border-radius: 50%; }
.controls em.ok { color: #9af0bd; } .controls em.ok i { background: var(--green); }
.controls em.warn { color: #ffd58f; } .controls em.warn i { background: var(--amber); }
.controls em.bad { color: #ff9aa5; } .controls em.bad i { background: var(--red); }
.retention { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line-gold); border-radius: 12px; color: #d9d5cb; font-size: 14px; }
.retention svg { width: 18px; height: 18px; color: var(--gold); }

/* Support Center */
.sup-grid { display: grid; grid-template-columns: minmax(260px, .95fr) minmax(0, 1.5fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.sup-inbox { display: grid; gap: 12px; }
.sup-inbox h2 { margin: 0 !important; }
.sup-search { display: flex; align-items: center; gap: 10px; background: #0c0c0f; border: 1px solid #2e2e35; border-radius: 10px; padding: 9px 12px; color: var(--mute); }
.sup-search input { background: none; border: 0; color: var(--text); width: 100%; font: inherit; outline: none; }
.ticket-list { display: grid; gap: 8px; max-height: 720px; overflow-y: auto; padding-inline-end: 2px; }
.ticket-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #0f0f12; color: var(--text); }
.ticket-item:hover { border-color: #3a3a42; color: var(--text); }
.ticket-item.on { border-color: var(--gold); background: radial-gradient(circle at 100% 0, rgba(232, 185, 78, .14), transparent 70%), #121215; }
.ti-top { grid-column: 1; display: flex; gap: 10px; min-width: 0; }
.ti-top b { color: var(--text); }
.ti-subject { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-meta { grid-column: 1; color: var(--mute); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.ti-side { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 10px; }
.ti-side small { color: var(--mute); font-size: 12.5px; white-space: nowrap; }
.prio { display: inline-block; padding: 3px 10px; border-radius: 7px; font-size: 12.5px; font-weight: 600; border: 1px solid #3a3a42; color: #cfcac0; white-space: nowrap; }
.prio.bad { border-color: rgba(255, 77, 94, .6); color: #ff9aa5; background: rgba(255, 77, 94, .1); }
.prio.warn { border-color: rgba(245, 177, 61, .6); color: #ffd58f; background: rgba(245, 177, 61, .08); }
.th-head h2 { display: flex !important; gap: 12px; margin-bottom: 6px !important; }
.th-head h3 { font: 800 22px/1.2 "Segoe UI", system-ui; margin: 0 0 6px; }
.th-head p { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.thread { display: grid; gap: 14px; margin: 16px 0; max-height: 560px; overflow-y: auto; padding-inline-end: 4px; }
.msg { display: flex; gap: 12px; align-items: flex-start; }
.msg .avatar.sm { width: 40px; height: 40px; font-size: 14px; flex: none; }
.msg.staff { flex-direction: row-reverse; }
.bubble { flex: 1; max-width: 88%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #17171b; }
.msg.staff .bubble { border-color: var(--line-gold); background: linear-gradient(180deg, rgba(232, 185, 78, .1), rgba(232, 185, 78, .03)); }
.b-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.b-head time { color: var(--mute); font-size: 12px; }
.bubble p, .msg.note p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.msg.system { display: block; padding: 12px 16px; border: 1px solid rgba(61, 220, 132, .45); border-radius: 12px; background: rgba(61, 220, 132, .05); }
.sys-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sys-head svg { width: 20px; height: 20px; color: var(--green); }
.sys-head time { margin-inline-start: auto; color: var(--mute); font-size: 12px; }
.msg.system ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 13.5px; }
.msg.system li { display: flex; align-items: center; gap: 8px; }
.msg.system li svg { width: 16px; height: 16px; }
.msg.system li.ok svg { color: var(--green); } .msg.system li.bad { color: #ffb3bb; } .msg.system li.bad svg { color: var(--red); }
.msg.note { display: block; padding: 10px 14px; border: 1px solid rgba(232, 185, 78, .4); border-radius: 12px; background: rgba(232, 185, 78, .07); }
.note-head { display: flex; align-items: center; gap: 8px; color: var(--gold); font-size: 13px; margin-bottom: 4px; }
.note-head svg { width: 15px; height: 15px; }
.note-head time { margin-inline-start: auto; color: var(--mute); font-size: 12px; }
.th-tools { margin-bottom: 10px; }
.composer { border: 1px solid var(--line-gold); border-radius: 12px; padding: 10px; background: #0f0f12; }
.composer textarea { width: 100%; background: transparent; border: 0; color: var(--text); font: inherit; resize: vertical; outline: none; }
.composer-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 8px; }
.sm-select { width: auto !important; max-width: 170px; padding: 7px 10px !important; font-size: 13px; }
.ent-box { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; margin-top: 12px; border: 1px solid rgba(61, 220, 132, .5); background: rgba(61, 220, 132, .07); }
.ent-box svg { width: 34px; height: 34px; color: var(--green); flex: none; }
.ent-box b { display: block; color: #9af0bd; }
.ent-box small { color: #cfcac0; }
.ent-box.bad { border-color: rgba(255, 77, 94, .5); background: rgba(255, 77, 94, .07); }
.ent-box.bad svg { color: var(--red); } .ent-box.bad b { color: #ff9aa5; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-grid .btn, .quick-grid details.act > summary { width: 100%; justify-content: flex-start; }
.quick-grid details.act { display: block; }
.rating { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 1280px) {
  .sup-grid { grid-template-columns: 1fr 1.4fr; }
  .sup-side { grid-column: span 2; }
  .stats-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .ver-grid, .sec-grid, .ver-bottom, .sup-grid { grid-template-columns: 1fr; }
  .sup-side { grid-column: auto; }
  .rollout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) { .stats-5 { grid-template-columns: 1fr 1fr; } .controls li { grid-template-columns: 22px 1fr auto; } .controls li .meter-sm, .controls li b { display: none; } }

@media (max-width: 1100px) { .grid-2, .split, .grid-3 { grid-template-columns: 1fr; } .search { width: 220px; } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; display: none; }
  .side.open { display: block; }
  .menu-toggle { display: grid !important; }
  .search, .status-pill { display: none; }
  .top { flex-wrap: wrap; gap: 10px; }
  .content, .top { padding-left: 16px; padding-right: 16px; }
  .title { font-size: 24px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  .hero-dev .mac { font-size: 21px; }
  details.act .pop { position: fixed; inset-inline: 12px; top: auto; bottom: 12px; width: auto; }
}
.menu-toggle { display: none; }
