/* app.css - Strong IPTV 8K additions on top of styles.css: brand badge,
   4-plan grid, checkout steps, payment, line page and admin. */

/* Brand */
.brand-badge { margin-left: 2px; padding: 3px 6px 2px; border-radius: 6px; background: linear-gradient(130deg, #9e6bff, #6b3dc2); color: #fff; font: 700 11px/1 var(--display); letter-spacing: .02em; box-shadow: 0 0 14px rgba(155,105,255,.45); }
.brand-footer .brand-badge { font-size: 10px; }
.dash-brand span { color: var(--violet-bright); }

/* Home: 4 plans */
.pricing-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pricing-grid-4 .price strong { font-size: clamp(30px, 2.6vw, 38px); }
.pricing-grid-4 .plan-features li { font-size: 11px; }
.pricing-aside { max-width: 340px; margin: 0; color: #a79db3; font-size: 12px; line-height: 1.6; }
.recover-cta { flex: none; }
@media (max-width: 1100px) { .pricing-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .pricing-grid-4 { grid-template-columns: 1fr; } .pricing-heading { flex-direction: column; align-items: flex-start; } .newsletter-inner { flex-direction: column; align-items: flex-start; } }

/* Server-rendered page shell */
.page-frame { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(82,43,139,.32), transparent 75%), radial-gradient(ellipse 40% 50% at 100% 60%, rgba(69,35,108,.22), transparent 75%), var(--bg); }
.page-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .4; background-image: radial-gradient(circle at 12% 26%, rgba(224,209,255,.6) 0 1px, transparent 1.5px), radial-gradient(circle at 87% 33%, rgba(219,189,255,.5) 0 1px, transparent 1.5px), radial-gradient(circle at 64% 12%, rgba(219,189,255,.45) 0 1px, transparent 1.5px), radial-gradient(circle at 30% 80%, rgba(219,189,255,.35) 0 1px, transparent 1.5px); }
.page-links { display: flex; gap: 28px; margin-left: auto; margin-right: 26px; }
.page-links a { color: rgba(239,232,255,.68); font-size: 12px; font-weight: 500; }
.page-links a:hover, .page-links a:focus-visible { color: #fff; }
.page-main { flex: 1; display: grid; gap: 20px; align-content: start; padding: 48px 0 80px; }
.page-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 0; border-top: 1px solid rgba(195,168,238,.12); color: #7e7589; font-size: 11px; letter-spacing: .04em; }
.page-footer a { color: #ae9abc; }

.panel { position: relative; padding: 38px; border-radius: 20px; background: radial-gradient(ellipse at 96% 0%, rgba(121,62,211,.22), transparent 45%), linear-gradient(145deg, rgba(31,24,42,.86), rgba(11,9,16,.98) 72%); box-shadow: 0 22px 60px rgba(0,0,0,.3), inset 0 0 0 1px rgba(195,171,255,.1); }
.panel.narrow { width: 100%; max-width: 680px; margin: 0 auto; }
.panel.center { text-align: center; }
.panel .eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 10px; }
.panel h1 { margin: 12px 0 10px; color: #fbf9ff; font: 600 clamp(30px, 4.4vw, 46px)/1.06 var(--display); letter-spacing: -.055em; }
.panel h2 { margin: 12px 0 8px; color: #fbf9ff; font: 600 clamp(22px, 2.6vw, 30px)/1.1 var(--display); letter-spacing: -.045em; }
.panel h1 span, .panel h2 span { color: #bb96ff; }
.lede { margin: 0 0 22px; max-width: 640px; color: #b9b0c6; font-size: 14px; line-height: 1.7; }
.panel.center .lede { margin-inline: auto; }
.lede strong { color: #fff; }
.sub-title { font-size: 20px !important; margin-top: 30px !important; }
.fine-print { margin: 0; color: #8e8799; font-size: 12px; line-height: 1.7; }
.text-link { font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.panel .button { font-size: 12px; }
.button[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
button.button { cursor: pointer; }

/* Steps */
.steps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.steps li { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 7px; border-radius: 999px; background: rgba(255,255,255,.035); color: #8f86a0; font-size: 12px; font-weight: 600; }
.steps li span { width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.06); font-size: 11px; }
.steps li.done { color: #cdb7f5; }
.steps li.done span { background: rgba(155,105,255,.25); color: #e2d2ff; }
.steps li.current { color: #fff; background: rgba(155,105,255,.16); box-shadow: inset 0 0 0 1px rgba(187,145,255,.4); }
.steps li.current span { background: linear-gradient(130deg, #9e6bff, #6b3dc2); color: #fff; }

/* Forms */
.flow-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field[hidden] { display: none; }
.field > label, .field > legend { padding: 0; color: #e6dff0; font-size: 12px; font-weight: 600; }
.hint { color: #948ca2; font-size: 11px; font-weight: 400; }
.flow-form input:not([type=radio]):not([type=checkbox]), .flow-form select { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(238,229,255,.16); background: #0b0913; color: #f7f4ff; font: inherit; font-size: 14px; }
.flow-form select { appearance: auto; }
.flow-form input:focus-visible, .flow-form select:focus-visible { outline: 2px solid #bb91ff; outline-offset: 2px; border-color: #bb91ff; }
.flow-form > .button { width: 100%; min-height: 50px; justify-content: space-between; padding-inline: 20px; border-radius: 999px; }
.check { display: flex; align-items: flex-start; gap: 10px; color: #c9c1d4; font-size: 13px; line-height: 1.5; }
.check input { margin-top: 3px; accent-color: #9b69ff; }

.tiles { display: grid; gap: 10px; }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile strong em { margin-left: 4px; color: #a69db2; font: 500 12px var(--sans); font-style: normal; }
@media (max-width: 720px) { .tiles-3 { grid-template-columns: 1fr; } }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tile > span { display: grid; gap: 4px; height: 100%; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(238,229,255,.12); transition: background .2s ease, box-shadow .2s ease; }
.tile b { color: #fff; font: 600 15px var(--display); letter-spacing: -.02em; }
.tile small { color: #a69db2; font-size: 12px; line-height: 1.5; }
.tile strong { margin-top: 6px; color: #d9c4ff; font: 600 18px var(--display); }
.tile:hover > span { background: rgba(155,105,255,.08); }
.tile input:checked + span { background: rgba(155,105,255,.16); box-shadow: inset 0 0 0 2px #9b69ff, 0 0 26px rgba(155,105,255,.18); }
.tile input:focus-visible + span { outline: 2px solid #d7c4ff; outline-offset: 3px; }

.notice { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.6; }
.notice-error { background: rgba(255,69,58,.1); box-shadow: inset 0 0 0 1px rgba(255,105,97,.4); color: #ffb4ae; }
.notice-ok { background: rgba(48,209,88,.09); box-shadow: inset 0 0 0 1px rgba(48,209,88,.38); color: #9cf0b3; margin-bottom: 16px; }

/* Payment */
.pay-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.summary { display: grid; gap: 0; margin: 0; padding: 8px 20px; border-radius: 16px; background: rgba(5,4,10,.6); box-shadow: inset 0 0 0 1px rgba(238,229,255,.09); }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(238,229,255,.07); font-size: 13px; }
.summary dt { color: #948ca2; }
.summary dd { margin: 0; color: #efe9f7; text-align: right; word-break: break-word; }
.summary .summary-total { border-bottom: 0; font-size: 16px; }
.summary .summary-total dd { color: #fff; font: 600 22px var(--display); }
.pay-methods { display: grid; gap: 12px; }
.pay-option { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(238,229,255,.1); }
.pay-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(155,105,255,.18); color: #e2d2ff; font-size: 20px; }
.pay-copy { display: grid; gap: 3px; }
.pay-copy b { color: #fff; font: 600 16px var(--display); }
.pay-copy small { color: #a69db2; font-size: 12px; line-height: 1.5; }
.pay-option .button { grid-column: 1 / -1; width: 100%; justify-content: space-between; border-radius: 999px; }

/* Order status */
.spinner { width: 46px; height: 46px; margin: 0 auto 20px; border-radius: 50%; border: 3px solid rgba(193,158,255,.2); border-top-color: #bb91ff; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Line page */
.line-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 8px; }
.line-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: #b9b0c6; font-size: 13px; }
.line-status b { color: #fff; }
.pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.pill-live { background: rgba(48,209,88,.16); color: #6ee494; }
.pill-dead { background: rgba(255,69,58,.16); color: #ff8a82; }
.pill-ready { background: rgba(155,105,255,.2); color: #cdb2ff; }
.creds { display: grid; gap: 10px; margin: 0; }
.creds div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(5,4,10,.6); box-shadow: inset 0 0 0 1px rgba(155,105,255,.22); }
.creds dt { color: #a69db2; font-size: 12px; font-weight: 600; }
.creds dd { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; }
.creds code { flex: 1; min-width: 0; overflow-wrap: anywhere; color: #e5d6ff; font: 500 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; user-select: all; -webkit-user-select: all; }
.copy-btn { flex: none; min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(155,105,255,.2); color: #efe5ff; font-size: 11px; font-weight: 700; cursor: pointer; }
.copy-btn:hover { background: rgba(155,105,255,.34); }
.copy-btn:focus-visible { outline: 2px solid #d7c4ff; outline-offset: 2px; }
.howto { margin: 6px 0 0; padding-left: 20px; color: #b9b0c6; font-size: 14px; line-height: 1.9; }
.howto strong { color: #fff; }
.line-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.line-list { display: grid; gap: 10px; }
.line-card { display: grid; grid-template-columns: auto auto 1fr auto auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(238,229,255,.1); color: #c9c1d4; font-size: 13px; }
.line-card b { color: #fff; }
.line-card:hover { background: rgba(155,105,255,.1); }

/* Admin */
.admin { display: grid; gap: 20px; }
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.admin-bar h1 { margin: 0; font: 600 28px var(--display); letter-spacing: -.04em; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-tabs a { padding: 8px 14px; border-radius: 999px; color: #c4bdce; font-size: 12px; }
.admin-tabs a[aria-current=page] { background: rgba(155,105,255,.2); color: #fff; box-shadow: inset 0 0 0 1px rgba(193,158,255,.4); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { display: grid; gap: 4px; padding: 18px; border-radius: 14px; background: #110d1b; box-shadow: inset 0 0 0 1px var(--line); }
.stat span { color: #948ca2; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.stat strong { font: 600 24px var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.stat small { color: #aaa3b8; font-size: 11px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-card { min-width: 0; padding: 20px; border-radius: 14px; background: #110d1b; box-shadow: inset 0 0 0 1px var(--line); }
.admin-card h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.admin-card .fine-print { margin-bottom: 10px; }
.admin-form { display: grid; gap: 10px; }
.admin-form label { display: grid; gap: 5px; color: #c4bdce; font-size: 12px; }
.admin-form input, .admin-form select, .admin-search input, .mini-input { min-height: 36px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(238,229,255,.18); background: #0b0913; color: #f7f4ff; font: inherit; font-size: 13px; }
.admin-search { display: flex; gap: 8px; max-width: 560px; }
.admin-search input { flex: 1; }
.checks { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13px; }
.table-wrap { overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th { padding: 10px; border-bottom: 1px solid var(--line); background: #110d1b; color: #948ca2; font-size: 10px; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin-table td { padding: 9px 10px; border-bottom: 1px solid rgba(238,229,255,.06); color: #d2cddd; vertical-align: middle; white-space: nowrap; }
.admin-table td.wrap { min-width: 220px; max-width: 520px; white-space: normal; word-break: break-word; }
code.mini { font: 11px ui-monospace, Menlo, Consolas, monospace; color: #d3baff; user-select: all; -webkit-user-select: all; }
.err { color: #ff8a82; white-space: normal; }
.actions-cell { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inline-form { display: inline-flex; gap: 4px; align-items: center; margin: 0; }
.mini-btn { min-height: 30px; padding: 0 10px; border: 1px solid rgba(193,158,255,.4); border-radius: 8px; background: rgba(149,95,255,.12); color: #efe5ff; font-size: 11px; font-weight: 600; cursor: pointer; }
.mini-btn:hover { background: rgba(149,95,255,.25); }
.mini-btn.danger { border-color: rgba(255,105,97,.5); background: rgba(255,69,58,.1); color: #ffb4ae; }
.mini-btn:focus-visible, .admin-tabs a:focus-visible { outline: 2px solid #d7c4ff; outline-offset: 2px; }
.mini-input { min-height: 30px; max-width: 160px; padding: 2px 6px; font-size: 11px; }
.mini-link { color: #c9adff; font-size: 11px; text-decoration: underline; }

@media (max-width: 900px) {
  .pay-layout, .line-actions, .admin-grid { grid-template-columns: 1fr; }
  .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .page-links { display: none; }
  .panel { padding: 24px 18px; border-radius: 16px; }
  .page-main { padding: 28px 0 56px; }
  .tiles-2 { grid-template-columns: 1fr; }
  .creds div { grid-template-columns: 1fr; gap: 6px; }
  .line-card { grid-template-columns: auto 1fr; }
  .steps li { font-size: 0; padding: 5px; }
  .steps li span { font-size: 11px; }
  .stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* Checkout: the plan picked on the home page */
.chosen-plan { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px 24px; padding: 18px 20px; border-radius: 16px; background: radial-gradient(ellipse at 0% 0%, rgba(155,105,255,.22), transparent 60%), rgba(155,105,255,.08); box-shadow: inset 0 0 0 1px rgba(187,145,255,.35); }
.chosen-plan-main { display: grid; gap: 3px; min-width: 0; }
.chosen-plan-label { color: #bb91ff; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.chosen-plan-main strong { color: #fff; font: 600 20px var(--display); letter-spacing: -.03em; }
.chosen-plan-main small, .chosen-plan-price small { color: #a69db2; font-size: 12px; }
.chosen-plan-price { display: grid; gap: 2px; text-align: right; }
.chosen-plan-price strong { color: #fff; font: 600 24px var(--display); letter-spacing: -.03em; }
.chosen-plan-change { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); color: #e2d2ff; font-size: 12px; font-weight: 600; }
.chosen-plan-change:hover, .chosen-plan-change:focus-visible { background: rgba(155,105,255,.22); color: #fff; }
@media (max-width: 600px) { .chosen-plan { grid-template-columns: 1fr auto; } .chosen-plan-price { text-align: left; } .chosen-plan-change { grid-column: 1 / -1; justify-self: start; } }


/* MARK: Theme toggle (header, all pages) */
.page-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .theme-toggle { margin-right: -6px; }
.theme-toggle { width: 38px; height: 38px; display: inline-grid; place-items: center; flex: none; padding: 0; border: 1px solid rgba(214,197,255,.25); border-radius: 50%; background: rgba(255,255,255,.04); color: #efe6fc; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.theme-toggle:hover { background: rgba(155,105,255,.18); border-color: rgba(214,197,255,.45); transform: rotate(-12deg); }
.theme-toggle:focus-visible { outline: 2px solid #c8a4ff; outline-offset: 3px; }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (max-width: 720px) { .theme-toggle { width: 34px; height: 34px; } .page-actions { gap: 8px; } }

/* MARK: Light theme for checkout / pay / line / account / admin (default) */
:root:not([data-theme="dark"]):has(body:not(.home-light)), :root:not([data-theme="dark"]) body:not(.home-light) { background: #f6f2fd; }
:root:not([data-theme="dark"]) .page-frame { color: #160f24; background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(155,105,255,.22), transparent 75%), radial-gradient(ellipse 40% 50% at 100% 60%, rgba(155,105,255,.08), transparent 75%), #f6f2fd; }
:root:not([data-theme="dark"]) .page-frame .page-glow { display: none; }
:root:not([data-theme="dark"]) .page-frame .site-nav { border-bottom-color: rgba(124,77,219,.14); }
:root:not([data-theme="dark"]) .page-frame .brand { color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .brand-mark { color: #7c4ddb; filter: none; }
:root:not([data-theme="dark"]) .page-frame .brand-mark svg path:nth-child(2) { fill: #f6f2fd; }
:root:not([data-theme="dark"]) .page-frame .brand-dot { color: #7c4ddb; }
:root:not([data-theme="dark"]) .page-frame .page-links a { color: #5b5170; }
:root:not([data-theme="dark"]) .page-frame .page-links a:hover, :root:not([data-theme="dark"]) .page-frame .page-links a:focus-visible { color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .theme-toggle { border-color: rgba(124,77,219,.25); background: #fff; color: #4b2a92; box-shadow: 0 4px 14px rgba(76,40,140,.08); }
:root:not([data-theme="dark"]) .page-frame .theme-toggle:hover { background: #f1eaff; }
:root:not([data-theme="dark"]) .page-frame .page-footer { border-top-color: rgba(124,77,219,.14); color: #7d7490; }
:root:not([data-theme="dark"]) .page-frame .page-footer a { color: #7c4ddb; }

:root:not([data-theme="dark"]) .page-frame .panel { background: radial-gradient(ellipse at 96% 0%, rgba(155,105,255,.12), transparent 45%), #fff; box-shadow: 0 24px 60px rgba(76,40,140,.10), inset 0 0 0 1px rgba(124,77,219,.12); }
:root:not([data-theme="dark"]) .page-frame .panel h1, :root:not([data-theme="dark"]) .page-frame .panel h2 { color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .panel h1 span, :root:not([data-theme="dark"]) .page-frame .panel h2 span { color: transparent; background: linear-gradient(100deg, #6b3dc2, #9b69ff 60%, #b98cff); -webkit-background-clip: text; background-clip: text; }
:root:not([data-theme="dark"]) .page-frame .panel .eyebrow { color: #7c4ddb; font-weight: 700; }
:root:not([data-theme="dark"]) .page-frame .eyebrow-line { background: linear-gradient(90deg, #9b69ff, rgba(155,105,255,.2)); }
:root:not([data-theme="dark"]) .page-frame .lede, :root:not([data-theme="dark"]) .page-frame .howto { color: #4f4662; }
:root:not([data-theme="dark"]) .page-frame .lede strong, :root:not([data-theme="dark"]) .page-frame .howto strong { color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .fine-print { color: #7d7490; }
:root:not([data-theme="dark"]) .page-frame .text-link { color: #7c4ddb; }
:root:not([data-theme="dark"]) .page-frame .button-quiet { border-color: rgba(124,77,219,.3); background: #fff; color: #4b2a92; }
:root:not([data-theme="dark"]) .page-frame .button-quiet:hover { background: #f1eaff; border-color: rgba(124,77,219,.5); }

:root:not([data-theme="dark"]) .page-frame .steps li { background: #fff; color: #7d7490; box-shadow: inset 0 0 0 1px rgba(124,77,219,.12); }
:root:not([data-theme="dark"]) .page-frame .steps li span { background: #f1eaff; color: #7c4ddb; }
:root:not([data-theme="dark"]) .page-frame .steps li.done { color: #4b2a92; }
:root:not([data-theme="dark"]) .page-frame .steps li.done span { background: rgba(155,105,255,.22); color: #4b2a92; }
:root:not([data-theme="dark"]) .page-frame .steps li.current { color: #160f24; background: #fff; box-shadow: inset 0 0 0 1.5px #9b69ff, 0 6px 18px rgba(124,77,219,.15); }

:root:not([data-theme="dark"]) .page-frame .field > label, :root:not([data-theme="dark"]) .page-frame .field > legend { color: #2a2238; }
:root:not([data-theme="dark"]) .page-frame .hint { color: #7d7490; }
:root:not([data-theme="dark"]) .page-frame .flow-form input:not([type=radio]):not([type=checkbox]), :root:not([data-theme="dark"]) .page-frame .flow-form select { border-color: rgba(124,77,219,.2); background: #fff; color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .flow-form input::placeholder { color: #a39bb3; }
:root:not([data-theme="dark"]) .page-frame .flow-form input:focus-visible, :root:not([data-theme="dark"]) .page-frame .flow-form select:focus-visible { outline-color: #7c4ddb; border-color: #7c4ddb; }
:root:not([data-theme="dark"]) .page-frame .check { color: #4f4662; }
:root:not([data-theme="dark"]) .page-frame .tile > span { background: #fff; box-shadow: inset 0 0 0 1px rgba(124,77,219,.16); }
:root:not([data-theme="dark"]) .page-frame .tile b { color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .tile small { color: #6f6681; }
:root:not([data-theme="dark"]) .page-frame .tile strong { color: #6b3dc2; }
:root:not([data-theme="dark"]) .page-frame .tile strong em { color: #7d7490; }
:root:not([data-theme="dark"]) .page-frame .tile:hover > span { background: #faf7ff; }
:root:not([data-theme="dark"]) .page-frame .tile input:checked + span { background: #f6f0ff; box-shadow: inset 0 0 0 2px #9b69ff, 0 10px 26px rgba(124,77,219,.14); }
:root:not([data-theme="dark"]) .page-frame .notice-error { background: #fff1f0; box-shadow: inset 0 0 0 1px rgba(220,60,50,.3); color: #b4231a; }
:root:not([data-theme="dark"]) .page-frame .notice-ok { background: #effbf2; box-shadow: inset 0 0 0 1px rgba(30,150,70,.3); color: #17703a; }

:root:not([data-theme="dark"]) .page-frame .chosen-plan { background: radial-gradient(ellipse at 0% 0%, rgba(155,105,255,.18), transparent 60%), #f8f4ff; box-shadow: inset 0 0 0 1px rgba(124,77,219,.25); }
:root:not([data-theme="dark"]) .page-frame .chosen-plan-label { color: #7c4ddb; }
:root:not([data-theme="dark"]) .page-frame .chosen-plan-main strong, :root:not([data-theme="dark"]) .page-frame .chosen-plan-price strong { color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .chosen-plan-main small, :root:not([data-theme="dark"]) .page-frame .chosen-plan-price small { color: #6f6681; }
:root:not([data-theme="dark"]) .page-frame .chosen-plan-change { background: #fff; color: #4b2a92; box-shadow: inset 0 0 0 1px rgba(124,77,219,.25); }
:root:not([data-theme="dark"]) .page-frame .chosen-plan-change:hover { background: #f1eaff; color: #160f24; }

:root:not([data-theme="dark"]) .page-frame .summary { background: #faf7ff; box-shadow: inset 0 0 0 1px rgba(124,77,219,.14); }
:root:not([data-theme="dark"]) .page-frame .summary div { border-bottom-color: rgba(124,77,219,.1); }
:root:not([data-theme="dark"]) .page-frame .summary dt { color: #7d7490; }
:root:not([data-theme="dark"]) .page-frame .summary dd { color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .summary .summary-total dd { color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .pay-option { background: #fff; box-shadow: inset 0 0 0 1px rgba(124,77,219,.16), 0 10px 30px rgba(76,40,140,.06); }
:root:not([data-theme="dark"]) .page-frame .pay-icon { background: #f1eaff; color: #6b3dc2; }
:root:not([data-theme="dark"]) .page-frame .pay-copy b { color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .pay-copy small { color: #6f6681; }
:root:not([data-theme="dark"]) .page-frame .spinner { border-color: rgba(124,77,219,.18); border-top-color: #7c4ddb; }

:root:not([data-theme="dark"]) .page-frame .line-status { color: #4f4662; }
:root:not([data-theme="dark"]) .page-frame .line-status b { color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .pill-live { background: #e5f8ea; color: #17703a; }
:root:not([data-theme="dark"]) .page-frame .pill-dead { background: #ffecea; color: #b4231a; }
:root:not([data-theme="dark"]) .page-frame .pill-ready { background: #f1eaff; color: #6b3dc2; }
:root:not([data-theme="dark"]) .page-frame .creds div { background: #faf7ff; box-shadow: inset 0 0 0 1px rgba(124,77,219,.18); }
:root:not([data-theme="dark"]) .page-frame .creds dt { color: #6f6681; }
:root:not([data-theme="dark"]) .page-frame .creds code { color: #3b2275; }
:root:not([data-theme="dark"]) .page-frame .copy-btn { background: #fff; color: #4b2a92; box-shadow: inset 0 0 0 1px rgba(124,77,219,.3); }
:root:not([data-theme="dark"]) .page-frame .copy-btn:hover { background: #f1eaff; }
:root:not([data-theme="dark"]) .page-frame .line-card { background: #fff; box-shadow: inset 0 0 0 1px rgba(124,77,219,.14); color: #4f4662; }
:root:not([data-theme="dark"]) .page-frame .line-card b { color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .line-card:hover { background: #faf7ff; }

:root:not([data-theme="dark"]) .page-frame .admin-bar h1 { color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .admin-tabs a { color: #5b5170; }
:root:not([data-theme="dark"]) .page-frame .admin-tabs a[aria-current=page] { background: #f1eaff; color: #160f24; box-shadow: inset 0 0 0 1px rgba(124,77,219,.35); }
:root:not([data-theme="dark"]) .page-frame .stat, :root:not([data-theme="dark"]) .page-frame .admin-card { background: #fff; box-shadow: inset 0 0 0 1px rgba(124,77,219,.14), 0 8px 24px rgba(76,40,140,.05); }
:root:not([data-theme="dark"]) .page-frame .stat span, :root:not([data-theme="dark"]) .page-frame .stat small { color: #7d7490; }
:root:not([data-theme="dark"]) .page-frame .stat strong, :root:not([data-theme="dark"]) .page-frame .admin-card h2 { color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .admin-form label, :root:not([data-theme="dark"]) .page-frame .checks { color: #4f4662; }
:root:not([data-theme="dark"]) .page-frame .admin-form input, :root:not([data-theme="dark"]) .page-frame .admin-form select, :root:not([data-theme="dark"]) .page-frame .admin-search input, :root:not([data-theme="dark"]) .page-frame .mini-input { border-color: rgba(124,77,219,.22); background: #fff; color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .table-wrap { background: #fff; box-shadow: inset 0 0 0 1px rgba(124,77,219,.14); }
:root:not([data-theme="dark"]) .page-frame .admin-table th { background: #faf7ff; color: #7d7490; border-bottom-color: rgba(124,77,219,.14); }
:root:not([data-theme="dark"]) .page-frame .admin-table td { color: #2a2238; border-bottom-color: rgba(124,77,219,.08); }
:root:not([data-theme="dark"]) .page-frame .admin-table tr:hover td { background: #fbf9ff; }
:root:not([data-theme="dark"]) .page-frame code.mini { color: #6b3dc2; }
:root:not([data-theme="dark"]) .page-frame .mini-btn { border-color: rgba(124,77,219,.35); background: #f6f0ff; color: #4b2a92; }
:root:not([data-theme="dark"]) .page-frame .mini-btn:hover { background: #ebe0ff; }
:root:not([data-theme="dark"]) .page-frame .mini-btn.danger { border-color: rgba(220,60,50,.4); background: #fff1f0; color: #b4231a; }
:root:not([data-theme="dark"]) .page-frame .mini-link { color: #7c4ddb; }

/* MARK: Header buttons - one consistent pill style on every page */
.site-nav .button-nav {
  min-height: 40px; gap: 8px; padding: 0 18px; border: 0; border-radius: 999px;
  background: linear-gradient(130deg, #a274ff, #6b3dc2); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: 0;
  box-shadow: 0 8px 22px rgba(118,60,206,.32), inset 0 1px rgba(255,255,255,.25);
}
.site-nav .button-nav:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(118,60,206,.42), inset 0 1px rgba(255,255,255,.3); }
.site-nav .button-nav span { font-size: 14px; }
.site-nav .nav-actions { gap: 14px; }
.site-nav .nav-login { font-size: 13px; font-weight: 500; }
.nav-actions .theme-toggle { margin-right: 0; }
.theme-toggle { width: 40px; height: 40px; }
.theme-toggle:hover { transform: none; }
.theme-toggle:hover svg { transform: rotate(-15deg); }
.theme-toggle svg { transition: transform .25s ease; }
.page-actions { gap: 14px; }
@media (max-width: 720px) {
  .site-nav .button-nav { min-height: 36px; padding: 0 14px; font-size: 12px; }
  .theme-toggle { width: 36px; height: 36px; }
  .site-nav .nav-actions { gap: 10px; }
}

/* MARK: Payment page */
.pay-side { display: grid; gap: 14px; align-content: start; }
.summary .summary-head { padding: 4px 0 12px; }
.summary .summary-head dt { color: #bb91ff; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.back-btn { width: 100%; min-height: 46px; gap: 10px; justify-content: center; border-radius: 999px; font-size: 13px !important; }
.back-btn span { font-size: 15px; }
.back-btn:hover span { transform: translateX(-3px); }
.pay-secure { display: flex; align-items: flex-start; gap: 10px; margin: 2px 4px 0; color: #948ca2; font-size: 12px; line-height: 1.55; }
.pay-secure svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: #bb91ff; }
.pay-icon svg { width: 22px; height: 22px; }
.pay-option { transition: box-shadow .2s ease, transform .2s ease; }
.pay-option:hover { transform: translateY(-2px); }
:root:not([data-theme="dark"]) .page-frame .summary .summary-head dt { color: #7c4ddb; }
:root:not([data-theme="dark"]) .page-frame .pay-secure { color: #7d7490; }
:root:not([data-theme="dark"]) .page-frame .pay-secure svg { color: #7c4ddb; }
:root:not([data-theme="dark"]) .page-frame .pay-option:hover { box-shadow: inset 0 0 0 1px rgba(124,77,219,.3), 0 16px 36px rgba(76,40,140,.1); }
.site-nav .nav-links a { font-size: 13px; }
@media (max-width: 720px) { .site-nav .nav-links a { font-size: 14px; } }

/* MARK: Line page - device tabs (dark base) */
.device-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 6px; border-radius: 18px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(195,171,255,.12); scrollbar-width: thin; }
.device-tab { position: relative; display: inline-flex; align-items: center; gap: 10px; flex: none; min-width: 150px; padding: 10px 16px 10px 12px; border-radius: 13px; color: #b9b0c6; transition: background .2s, color .2s, box-shadow .2s; }
.device-tab:hover { background: rgba(155,105,255,.1); color: #fff; }
.device-tab.is-active { background: linear-gradient(130deg, rgba(158,107,255,.95), rgba(107,61,194,.95)); color: #fff; box-shadow: 0 10px 26px rgba(118,60,206,.35); }
.device-tab-copy { display: grid; gap: 1px; }
.device-tab-copy b { font: 600 14px var(--display); letter-spacing: -.01em; }
.device-tab-copy small { font-size: 11px; opacity: .8; }
.device-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; }
.dot-live { background: #34d36a; box-shadow: 0 0 0 3px rgba(52,211,106,.18); }
.dot-dead { background: #ff6b5e; box-shadow: 0 0 0 3px rgba(255,107,94,.18); }
.dot-ready { background: #bb91ff; }
.device-tab.is-active .device-dot { box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.device-tab-add { min-width: 0; border: 1px dashed rgba(187,145,255,.45); color: #d7c4ff; }
.device-tab-add > span[aria-hidden] { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(155,105,255,.2); font-size: 17px; line-height: 1; }
.device-tab:focus-visible { outline: 2px solid #c8a4ff; outline-offset: 2px; }

/* Add more devices card */
.add-device-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 22px; padding: 24px 28px; border-radius: 20px; border: 1.5px dashed rgba(187,145,255,.4); background: radial-gradient(ellipse at 0% 50%, rgba(155,105,255,.18), transparent 60%), rgba(255,255,255,.02); }
.add-device-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(155,105,255,.2); color: #e2d2ff; }
.add-device-icon svg { width: 26px; height: 26px; }
.add-device-copy h2 { margin: 0 0 4px; color: #fff; font: 600 20px var(--display); letter-spacing: -.03em; }
.add-device-copy p { margin: 0; color: #b9b0c6; font-size: 14px; line-height: 1.6; }
.add-device-card .button { min-height: 46px; padding: 0 22px; border-radius: 999px; font-size: 13px; white-space: nowrap; }

/* Add-device pricing page */
.back-link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; color: #d7c4ff; font-size: 13px; font-weight: 600; }
.back-link span { transition: transform .2s; }
.back-link:hover span { transform: translateX(-3px); }
.home-light.pricing-page .pricing-section.add-pricing { padding: 10px 0 0; background: transparent; overflow: visible; }
.pricing-page .add-pricing .pricing-heading { margin-bottom: 36px; }
.add-pricing-lede { max-width: 460px; margin: 14px 0 0; color: var(--l-text); font-size: 15px; line-height: 1.65; }
.pricing-page .section-heading h2 { margin-top: 12px; }

/* Light theme versions */
:root:not([data-theme="dark"]) .page-frame .device-tabs { background: #fff; box-shadow: inset 0 0 0 1px rgba(124,77,219,.14), 0 10px 30px rgba(76,40,140,.06); }
:root:not([data-theme="dark"]) .page-frame .device-tab { color: #5b5170; }
:root:not([data-theme="dark"]) .page-frame .device-tab:hover { background: #f6f0ff; color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .device-tab.is-active { color: #fff; }
:root:not([data-theme="dark"]) .page-frame .device-tab-add { border-color: rgba(124,77,219,.4); color: #6b3dc2; }
:root:not([data-theme="dark"]) .page-frame .device-tab-add > span[aria-hidden] { background: #f1eaff; }
:root:not([data-theme="dark"]) .page-frame .add-device-card { border-color: rgba(124,77,219,.35); background: radial-gradient(ellipse at 0% 50%, rgba(155,105,255,.14), transparent 60%), #fff; }
:root:not([data-theme="dark"]) .page-frame .add-device-icon { background: #f1eaff; color: #6b3dc2; }
:root:not([data-theme="dark"]) .page-frame .add-device-copy h2 { color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .add-device-copy p { color: #4f4662; }
:root:not([data-theme="dark"]) .page-frame .back-link { color: #6b3dc2; }

@media (max-width: 720px) {
  .add-device-card { grid-template-columns: auto 1fr; padding: 20px; }
  .add-device-card .button { grid-column: 1 / -1; width: 100%; justify-content: space-between; }
  .device-tab { min-width: 128px; }
}

/* MARK: Admin - customers */
.admin-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.admin-form textarea { min-height: 54px; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(238,229,255,.18); background: #0b0913; color: #f7f4ff; font: 13px ui-monospace, Menlo, Consolas, monospace; resize: vertical; }
.customer-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.customer-head h2 { margin: 0 0 4px; font-size: 20px; }
.group-card { display: grid; gap: 14px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.group-head h2 { margin: 0; }
.group-head h2 small { margin-left: 8px; color: #948ca2; font-size: 12px; font-weight: 500; }
.admin-add summary { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: rgba(155,105,255,.14); color: #e2d2ff; font-size: 12px; font-weight: 600; cursor: pointer; list-style: none; }
.admin-add summary::-webkit-details-marker { display: none; }
.admin-add[open] summary { margin-bottom: 14px; }
.admin-add .admin-form { padding: 16px; border-radius: 12px; background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px rgba(195,171,255,.12); }
.mini-check { display: inline-flex; align-items: center; gap: 4px; color: #948ca2; font-size: 11px; }
a.mini-btn { display: inline-flex; align-items: center; text-decoration: none; }
:root:not([data-theme="dark"]) .page-frame .admin-form textarea { border-color: rgba(124,77,219,.22); background: #fff; color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .admin-add summary { background: #f1eaff; color: #4b2a92; }
:root:not([data-theme="dark"]) .page-frame .admin-add .admin-form { background: #faf7ff; box-shadow: inset 0 0 0 1px rgba(124,77,219,.14); }
:root:not([data-theme="dark"]) .page-frame .group-head h2 small, :root:not([data-theme="dark"]) .page-frame .mini-check { color: #7d7490; }

/* MARK: Checkout - one MAC per device */
.field-label { color: #e6dff0; font-size: 12px; font-weight: 600; }
.mac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.mac-input { display: grid; gap: 6px; }
.mac-input > span { color: #bb91ff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
:root:not([data-theme="dark"]) .page-frame .field-label { color: #2a2238; }
:root:not([data-theme="dark"]) .page-frame .mac-input > span { color: #7c4ddb; }

/* MARK: Line page - format change via support */
.support-card .button { align-self: start; min-height: 46px; border-radius: 999px; }
.support-facts { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.support-facts li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.035); font-size: 13px; }
.support-facts span { color: #948ca2; }
.support-facts b { color: #fff; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 500; }
:root:not([data-theme="dark"]) .page-frame .support-facts li { background: #faf7ff; box-shadow: inset 0 0 0 1px rgba(124,77,219,.12); }
:root:not([data-theme="dark"]) .page-frame .support-facts span { color: #7d7490; }
:root:not([data-theme="dark"]) .page-frame .support-facts b { color: #160f24; }

/* MARK: Admin - automatic vs manual account creation */
.admin-span { grid-column: 1 / -1; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mode-card { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 14px; background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px rgba(195,171,255,.14); }
.mode-card h3 { margin: 0; font: 600 16px var(--display); }
.mode-tag { justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mode-auto { background: rgba(155,105,255,.2); color: #d7c4ff; }
.mode-manual { background: rgba(52,211,106,.16); color: #6ee494; }
.manual-group { display: grid; gap: 10px; margin: 0; padding: 12px; border: 1px dashed rgba(195,171,255,.25); border-radius: 10px; }
.manual-group legend { padding: 0 6px; color: #bb91ff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.admin-form .hint { font-size: 10px; }
@media (max-width: 1000px) { .mode-grid { grid-template-columns: 1fr; } }
:root:not([data-theme="dark"]) .page-frame .mode-card { background: #fff; box-shadow: inset 0 0 0 1px rgba(124,77,219,.14), 0 8px 22px rgba(76,40,140,.05); }
:root:not([data-theme="dark"]) .page-frame .mode-card h3 { color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .mode-auto { background: #f1eaff; color: #6b3dc2; }
:root:not([data-theme="dark"]) .page-frame .mode-manual { background: #e5f8ea; color: #17703a; }
:root:not([data-theme="dark"]) .page-frame .manual-group { border-color: rgba(124,77,219,.25); }
:root:not([data-theme="dark"]) .page-frame .manual-group legend { color: #7c4ddb; }
.admin-form label.check { display: flex; align-items: center; gap: 8px; }
.admin-form input[type=checkbox], :root:not([data-theme="dark"]) .page-frame .admin-form input[type=checkbox] { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: #9b69ff; }
.account-form .mode-section { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px rgba(195,171,255,.12); }
.account-form [hidden] { display: none !important; }
:root:not([data-theme="dark"]) .page-frame .account-form .mode-section { background: #faf7ff; box-shadow: inset 0 0 0 1px rgba(124,77,219,.12); }

/* ---------- Language menu ---------- */
.lang-menu { position: relative; flex: none; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid rgba(214,197,255,.25); border-radius: 999px; background: rgba(255,255,255,.04); color: #efe6fc; font-size: 12px; font-weight: 600; letter-spacing: .04em; cursor: pointer; user-select: none; transition: background .2s, border-color .2s; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 6px; height: 6px; margin-inline-start: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; transition: transform .2s; }
.lang-menu[open] summary::after { transform: translateY(1px) rotate(225deg); }
.lang-menu summary:hover, .lang-menu[open] summary { background: rgba(155,105,255,.18); border-color: rgba(214,197,255,.45); }
.lang-menu summary:focus-visible { outline: 2px solid #c8a4ff; outline-offset: 3px; }
.lang-menu summary svg { width: 16px; height: 16px; }
.lang-menu ul { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 190px; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: #17102a; border: 1px solid rgba(214,197,255,.18); box-shadow: 0 18px 40px rgba(8,4,20,.45); animation: langIn .16s ease-out; }
@keyframes langIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lang-menu li a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: #e9e0fb; font-size: 14px; text-decoration: none; }
.lang-menu li a b { width: 26px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #b99bff; }
.lang-menu li a:hover, .lang-menu li a:focus-visible { background: rgba(155,105,255,.16); color: #fff; outline: none; }
.lang-menu li a[aria-current="true"] { background: rgba(155,105,255,.24); color: #fff; }
.lang-menu li a[aria-current="true"]::after { content: "✓"; margin-inline-start: auto; color: #c8a4ff; font-size: 13px; }
:root:not([data-theme="dark"]) .page-frame .lang-menu summary { border-color: rgba(124,77,219,.25); background: #fff; color: #4b2a92; box-shadow: 0 4px 14px rgba(76,40,140,.08); }
:root:not([data-theme="dark"]) .page-frame .lang-menu summary:hover, :root:not([data-theme="dark"]) .page-frame .lang-menu[open] summary { background: #f1eaff; }
:root:not([data-theme="dark"]) .page-frame .lang-menu ul { background: #fff; border-color: rgba(124,77,219,.16); box-shadow: 0 18px 40px rgba(76,40,140,.16); }
:root:not([data-theme="dark"]) .page-frame .lang-menu li a { color: #2a1a4d; }
:root:not([data-theme="dark"]) .page-frame .lang-menu li a b { color: #7c4ddb; }
:root:not([data-theme="dark"]) .page-frame .lang-menu li a:hover, :root:not([data-theme="dark"]) .page-frame .lang-menu li a[aria-current="true"] { background: #f1eaff; color: #2a1a4d; }
@media (max-width: 720px) { .lang-menu summary { height: 34px; padding: 0 10px; } .lang-menu summary svg { display: none; } }

/* ---------- Right-to-left (Arabic) ---------- */
[dir="rtl"] body, [dir="rtl"] button, [dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea { font-family: 'IBM Plex Sans Arabic', var(--sans); }
[dir="rtl"] span[aria-hidden="true"]:not([class]), [dir="rtl"] .quote-arrow { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .cred-value, [dir="rtl"] code, [dir="rtl"] input[type="email"], [dir="rtl"] input[name^="mac"] { direction: ltr; unicode-bidi: plaintext; }
[dir="rtl"] .nav-actions .theme-toggle { margin-left: 0; }
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
[dir="rtl"] strong, [dir="rtl"] b { unicode-bidi: isolate; }
[dir="rtl"] .brand-word, [dir="rtl"] .brand-word * { letter-spacing: -.085em !important; }
@media (max-width: 720px) {
  .site-nav .nav-actions { margin-left: 0; margin-right: 0; margin-inline-start: auto; margin-inline-end: 10px; gap: 8px; }
  .site-nav .button-nav { white-space: nowrap; }
  .site-nav .lang-menu summary { padding: 0 9px; gap: 4px; }
}
@media (max-width: 400px) { .site-nav .button-nav span[aria-hidden] { display: none; } }
@media (max-width: 430px) {
  .site-nav .nav-actions { gap: 6px; margin-inline-end: 8px; }
  .site-nav .button-nav { min-height: 32px; padding: 0 11px; font-size: 11px; }
  .site-nav .theme-toggle { width: 32px; height: 32px; }
  .site-nav .lang-menu summary { height: 32px; padding: 0 8px; font-size: 11px; }
  .site-nav .brand-word { font-size: 18px; }
}

/* ---------- "View in your language?" bar ---------- */
.lang-banner { position: relative; z-index: 80; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding: 10px 18px; background: linear-gradient(90deg, #2a1650, #4a2a8c 50%, #2a1650); color: #f3ecff; font-size: 14px; line-height: 1.4; text-align: center; box-shadow: 0 1px 0 rgba(214,197,255,.18); }
.lang-banner a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.lang-banner-go { background: #fff; color: #3d1f7a; }
.lang-banner-go:hover { background: #efe6ff; }
.lang-banner-stay { color: #dccbff; border: 1px solid rgba(220,203,255,.35); }
.lang-banner-stay:hover { background: rgba(255,255,255,.08); color: #fff; }
.lang-banner a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lang-banner[dir="rtl"] { font-family: 'IBM Plex Sans Arabic', var(--sans); }
@media (max-width: 520px) { .lang-banner { font-size: 13px; padding: 8px 12px; } .lang-banner a { min-height: 30px; padding: 0 12px; } }

/* MARK: Crypto coin picker + embedded crypto payment */
.coin-pick { grid-column: 1 / -1; display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: #a69db2; }
.coin-pick select { width: 100%; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: rgba(5,4,10,.6); color: #f7f4ff; box-shadow: inset 0 0 0 1px rgba(155,105,255,.3); font: 500 14px/1 inherit; }
.crypto-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 8px; }
.crypto-qr { margin: 0; padding: 10px; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 18px 50px rgba(76,40,140,.18); }
.crypto-qr img { display: block; width: 100%; height: auto; border-radius: 10px; }
.crypto-qr figcaption { margin-top: 6px; color: #5f566f; font-size: 12px; font-weight: 600; }
.crypto-details { display: grid; gap: 14px; min-width: 0; }
.crypto-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chip-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(155,105,255,.14); color: #d9c7ff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.crypto-status { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; color: #d2cddd; font-weight: 600; }
.crypto-details .crypto-status { justify-content: flex-start; }
.spinner-sm { display: inline-block; width: 18px; height: 18px; margin: 0; border-width: 2px; flex: none; }
@media (max-width: 720px) {
  .crypto-grid { grid-template-columns: 1fr; }
  .crypto-qr { max-width: 240px; margin: 0 auto; }
}
:root:not([data-theme="dark"]) .page-frame .coin-pick { color: #6f6681; }
:root:not([data-theme="dark"]) .page-frame .coin-pick select { background: #faf7ff; color: #160f24; box-shadow: inset 0 0 0 1px rgba(124,77,219,.25); }
:root:not([data-theme="dark"]) .page-frame .chip-tag { background: #f0e8ff; color: #5a35b0; }
:root:not([data-theme="dark"]) .page-frame .crypto-status { color: #3b2f52; }

/* MARK: Admin - payment link grid */
.link-grid td { min-width: 190px; vertical-align: top; }
.link-grid .link-input { width: 100%; min-width: 170px; }
.link-grid small { display: block; margin-top: 4px; color: #a69db2; }

.pay-copy small b { font-size: inherit; font-weight: 700; }
.link-grid th[scope="rowgroup"] { vertical-align: top; padding-top: 16px; }
.link-field { display: grid; gap: 4px; }
.link-field span { font-size: 11px; font-weight: 600; color: #a69db2; }
.link-grid { min-width: 820px; }
.link-grid .link-price { display: block; margin-top: 4px; }
.link-grid { table-layout: fixed; }
.link-grid th:first-child { width: 110px; }
.link-grid td { min-width: 0; }
.link-grid .link-input { width: 100%; min-width: 0; max-width: none; }
/* MARK: Renewal widget - step 1: tick the devices to renew */
.renew-pick { gap: 12px; }
.pick-devices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pick-device { position: relative; display: block; cursor: pointer; }
.pick-device input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pick-device > span { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 10px; height: 100%; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(238,229,255,.14); transition: background .2s, box-shadow .2s; }
.pick-device b { color: #fff; font: 600 14px var(--display); }
.pick-device b em { margin-inline-start: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(155,105,255,.22); color: #e2d2ff; font: 700 10px var(--sans); font-style: normal; letter-spacing: .02em; vertical-align: 1px; }
.pick-device small { grid-column: 2; color: #a69db2; font-size: 11px; overflow-wrap: anywhere; }
/* Box: empty when not ticked, purple with a check when ticked. */
.pick-check { grid-row: 1 / span 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px rgba(238,229,255,.35); color: transparent; transition: background .2s, color .2s; }
.pick-check svg { width: 13px; height: 13px; }
.pick-device input:checked + span { background: rgba(155,105,255,.16); box-shadow: inset 0 0 0 2px #9b69ff, 0 0 22px rgba(155,105,255,.16); }
.pick-device input:checked + span .pick-check { background: #9b69ff; box-shadow: none; color: #fff; }
.pick-device input:focus-visible + span { outline: 2px solid #d7c4ff; outline-offset: 3px; }
.pick-all { justify-self: start; padding: 0; border: 0; background: none; color: #d2b5ff; font: 600 12px var(--sans); cursor: pointer; }
.pick-all:hover { text-decoration: underline; }
.pick-all:focus-visible { outline: 2px solid #c8a4ff; outline-offset: 2px; border-radius: 4px; }
.scope-hint { margin: 0; color: #c9c1d4; font-size: 13px; line-height: 1.6; }
.scope-hint strong { color: #fff; }
.renew-widget button[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .pick-device > span, .pick-check { transition: none; } }
:root:not([data-theme="dark"]) .page-frame .pick-device > span { background: #fff; box-shadow: inset 0 0 0 1px rgba(124,77,219,.2); }
:root:not([data-theme="dark"]) .page-frame .pick-device input:checked + span { background: #f6f0ff; box-shadow: inset 0 0 0 2px #9b69ff, 0 10px 26px rgba(124,77,219,.14); }
:root:not([data-theme="dark"]) .page-frame .pick-device b { color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .pick-device b em { background: #f1eaff; color: #6b3dc2; }
:root:not([data-theme="dark"]) .page-frame .pick-device small { color: #7d7490; }
:root:not([data-theme="dark"]) .page-frame .pick-check { box-shadow: inset 0 0 0 1.5px rgba(124,77,219,.4); }
:root:not([data-theme="dark"]) .page-frame .pick-all { color: #7c4ddb; }
:root:not([data-theme="dark"]) .page-frame .scope-hint { color: #4f4662; }
:root:not([data-theme="dark"]) .page-frame .scope-hint strong { color: #160f24; }
.renew-widget { scroll-margin-top: 24px; }
/* "Renew" next to the device status: jumps to the widget */
.line-renew-btn { min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 12px; }
.line-renew-btn span { transition: transform .2s; }
.line-renew-btn:hover span { transform: translateY(2px); }
.line-renew-btn:focus-visible { outline: 2px solid #d7c4ff; outline-offset: 2px; }
#renew:target { animation: renew-flash 1.4s ease-out 1; }
@keyframes renew-flash { 0% { box-shadow: 0 0 0 3px rgba(187,145,255,.7), 0 22px 60px rgba(0,0,0,.3); } 100% { box-shadow: 0 0 0 0 rgba(187,145,255,0), 0 22px 60px rgba(0,0,0,.3); } }
@media (prefers-reduced-motion: reduce) { #renew:target { animation: none; } .line-renew-btn span { transition: none; } }
@media (max-width: 520px) { .line-renew-btn { width: 100%; justify-content: space-between; } }
/* MARK: My lines - choose a subscription */
.sub-list { display: grid; gap: 14px; }
.sub-card { display: grid; gap: 14px; padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(238,229,255,.1); }
.sub-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel .sub-card h2 { margin: 0 0 2px; font-size: 19px; letter-spacing: -.03em; }
.sub-card-head small { color: #948ca2; font-size: 12px; }
.sub-devices { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sub-devices a { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); color: #c9c1d4; font-size: 13px; }
.sub-devices a:hover { background: rgba(155,105,255,.12); }
.sub-devices a:focus-visible, .sub-open:focus-visible { outline: 2px solid #c8a4ff; outline-offset: 2px; }
.sub-devices b { color: #fff; font-weight: 600; }
.sub-devices span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-devices small { color: #948ca2; font-size: 12px; }
.sub-open { justify-self: start; }
.panel .sub-list + .actions { margin-bottom: 12px; }
@media (max-width: 600px) { .sub-devices a { grid-template-columns: auto auto minmax(0, 1fr); } .sub-devices small { grid-column: 2 / -1; } .sub-open { justify-self: stretch; justify-content: space-between; } }
:root:not([data-theme="dark"]) .page-frame .sub-card { background: #fff; box-shadow: inset 0 0 0 1px rgba(124,77,219,.14), 0 10px 30px rgba(76,40,140,.05); }
:root:not([data-theme="dark"]) .page-frame .sub-devices a { background: #faf7ff; color: #4f4662; }
:root:not([data-theme="dark"]) .page-frame .sub-devices a:hover { background: #f1eaff; }
:root:not([data-theme="dark"]) .page-frame .sub-devices b { color: #160f24; }
:root:not([data-theme="dark"]) .page-frame .sub-card-head small, :root:not([data-theme="dark"]) .page-frame .sub-devices small { color: #7d7490; }
/* MARK: My lines - email code */
.flow-form input.code-input { font: 600 24px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .4em; text-align: center; }
.code-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 16px 0 10px; }
.code-actions button.text-link { padding: 0; border: 0; background: none; color: #d2b5ff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.code-actions .text-link:hover { text-decoration: underline; }
.code-actions .text-link:focus-visible { outline: 2px solid #c8a4ff; outline-offset: 2px; border-radius: 4px; }
:root:not([data-theme="dark"]) .page-frame .code-actions button.text-link { color: #7c4ddb; }
