/* 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, #10b981, #064e3b); color: #fff; font: 700 11px/1 var(--display); letter-spacing: .02em; box-shadow: 0 0 14px rgba(16,185,129,.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: #f6fdf9; font: 600 clamp(30px, 4.4vw, 46px)/1.06 var(--display); letter-spacing: -.025em; }
.panel h2 { margin: 12px 0 8px; color: #f6fdf9; font: 600 clamp(22px, 2.6vw, 30px)/1.1 var(--display); letter-spacing: -.02em; }
.panel h1 span, .panel h2 span { color: #bb96ff; }
.lede { margin: 0 0 22px; max-width: 640px; color: #a3c4b3; 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: 14px; }
.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(16,185,129,.25); color: #d1fae5; }
.steps li.current { color: #fff; background: rgba(16,185,129,.16); box-shadow: inset 0 0 0 1px rgba(187,145,255,.4); }
.steps li.current span { background: linear-gradient(130deg, #10b981, #064e3b); 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: #87a99b; 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: #f0fdf4; font: inherit; font-size: 14px; }
.flow-form select { appearance: auto; }
.flow-form input:focus-visible, .flow-form select:focus-visible { outline: 2px solid #34d399; outline-offset: 2px; border-color: #34d399; }
.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: #10b981; }

.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: #9fbdab; 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: -.009em; }
.tile small { color: #9fbdab; font-size: 12px; line-height: 1.5; }
.tile strong { margin-top: 6px; color: #d9c4ff; font: 600 18px var(--display); }
.tile:hover > span { background: rgba(16,185,129,.08); }
.tile input:checked + span { background: rgba(16,185,129,.16); box-shadow: inset 0 0 0 2px #10b981, 0 0 26px rgba(16,185,129,.18); }
.tile input:focus-visible + span { outline: 2px solid #a7f3d0; 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: #87a99b; }
.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(16,185,129,.18); color: #d1fae5; font-size: 20px; }
.pay-copy { display: grid; gap: 3px; }
.pay-copy b { color: #fff; font: 600 16px var(--display); }
.pay-copy small { color: #9fbdab; 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: #34d399; 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: #a3c4b3; 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(16,185,129,.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(16,185,129,.22); }
.creds dt { color: #9fbdab; 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: #d1fae5; 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(16,185,129,.2); color: #efe5ff; font-size: 12px; font-weight: 600; cursor: pointer; }
.copy-btn:hover { background: rgba(16,185,129,.34); }
.copy-btn:focus-visible { outline: 2px solid #a7f3d0; outline-offset: 2px; }
.howto { margin: 6px 0 0; padding-left: 20px; color: #a3c4b3; 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(16,185,129,.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: -.018em; }
.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(16,185,129,.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: #87a99b; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.stat strong { font: 600 24px var(--display); letter-spacing: -.009em; 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: #f0fdf4; 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: #87a99b; 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: 32px; padding: 0 14px; border: 1px solid rgba(193,158,255,.4); border-radius: 999px; background: rgba(149,95,255,.12); color: #efe5ff; font-size: 12px; 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 #a7f3d0; 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(16,185,129,.22), transparent 60%), rgba(16,185,129,.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: #34d399; 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: -.013em; }
.chosen-plan-main small, .chosen-plan-price small { color: #9fbdab; 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: -.013em; }
.chosen-plan-change { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); color: #d1fae5; font-size: 12px; font-weight: 600; }
.chosen-plan-change:hover, .chosen-plan-change:focus-visible { background: rgba(16,185,129,.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(16,185,129,.18); border-color: rgba(214,197,255,.45); transform: rotate(-12deg); }
.theme-toggle:focus-visible { outline: 2px solid #6ee7b7; 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: #0f1f14; background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(16,185,129,.22), transparent 75%), radial-gradient(ellipse 40% 50% at 100% 60%, rgba(16,185,129,.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(5,150,105,.14); }
:root:not([data-theme="dark"]) .page-frame .brand { color: #0f1f14; }
:root:not([data-theme="dark"]) .page-frame .brand-mark { color: #059669; 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: #059669; }
: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: #0f1f14; }
:root:not([data-theme="dark"]) .page-frame .theme-toggle { border-color: rgba(5,150,105,.25); background: #fff; color: #065f46; box-shadow: 0 4px 14px rgba(6,78,59,.08); }
:root:not([data-theme="dark"]) .page-frame .theme-toggle:hover { background: #ecfdf5; }
:root:not([data-theme="dark"]) .page-frame .page-footer { border-top-color: rgba(5,150,105,.14); color: #4b6358; }
:root:not([data-theme="dark"]) .page-frame .page-footer a { color: #059669; }

:root:not([data-theme="dark"]) .page-frame .panel { background: radial-gradient(ellipse at 96% 0%, rgba(16,185,129,.12), transparent 45%), #fff; box-shadow: 0 24px 60px rgba(6,78,59,.10), inset 0 0 0 1px rgba(5,150,105,.12); }
:root:not([data-theme="dark"]) .page-frame .panel h1, :root:not([data-theme="dark"]) .page-frame .panel h2 { color: #0f1f14; }
: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, #064e3b, #10b981 60%, #b98cff); -webkit-background-clip: text; background-clip: text; }
:root:not([data-theme="dark"]) .page-frame .panel .eyebrow { color: #059669; font-weight: 700; }
:root:not([data-theme="dark"]) .page-frame .eyebrow-line { background: linear-gradient(90deg, #10b981, rgba(16,185,129,.2)); }
:root:not([data-theme="dark"]) .page-frame .lede, :root:not([data-theme="dark"]) .page-frame .howto { color: #2b3d33; }
:root:not([data-theme="dark"]) .page-frame .lede strong, :root:not([data-theme="dark"]) .page-frame .howto strong { color: #0f1f14; }
:root:not([data-theme="dark"]) .page-frame .fine-print { color: #4b6358; }
:root:not([data-theme="dark"]) .page-frame .text-link { color: #059669; }
:root:not([data-theme="dark"]) .page-frame .button-quiet { border-color: rgba(5,150,105,.3); background: #fff; color: #065f46; }
:root:not([data-theme="dark"]) .page-frame .button-quiet:hover { background: #ecfdf5; border-color: rgba(5,150,105,.5); }

:root:not([data-theme="dark"]) .page-frame .steps li { background: #fff; color: #4b6358; box-shadow: inset 0 0 0 1px rgba(5,150,105,.12); }
:root:not([data-theme="dark"]) .page-frame .steps li span { background: #ecfdf5; color: #059669; }
:root:not([data-theme="dark"]) .page-frame .steps li.done { color: #065f46; }
:root:not([data-theme="dark"]) .page-frame .steps li.done span { background: rgba(16,185,129,.22); color: #065f46; }
:root:not([data-theme="dark"]) .page-frame .steps li.current { color: #0f1f14; background: #fff; box-shadow: inset 0 0 0 1.5px #10b981, 0 6px 18px rgba(5,150,105,.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: #4b6358; }
: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(5,150,105,.2); background: #fff; color: #0f1f14; }
: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: #059669; border-color: #059669; }
:root:not([data-theme="dark"]) .page-frame .check { color: #2b3d33; }
:root:not([data-theme="dark"]) .page-frame .tile > span { background: #fff; box-shadow: inset 0 0 0 1px rgba(5,150,105,.16); }
:root:not([data-theme="dark"]) .page-frame .tile b { color: #0f1f14; }
:root:not([data-theme="dark"]) .page-frame .tile small { color: #4b6358; }
:root:not([data-theme="dark"]) .page-frame .tile strong { color: #064e3b; }
:root:not([data-theme="dark"]) .page-frame .tile strong em { color: #4b6358; }
:root:not([data-theme="dark"]) .page-frame .tile:hover > span { background: #f0fdf4; }
:root:not([data-theme="dark"]) .page-frame .tile input:checked + span { background: #f0fdf4; box-shadow: inset 0 0 0 2px #10b981, 0 10px 26px rgba(5,150,105,.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(16,185,129,.18), transparent 60%), #f0fdf4; box-shadow: inset 0 0 0 1px rgba(5,150,105,.25); }
:root:not([data-theme="dark"]) .page-frame .chosen-plan-label { color: #059669; }
:root:not([data-theme="dark"]) .page-frame .chosen-plan-main strong, :root:not([data-theme="dark"]) .page-frame .chosen-plan-price strong { color: #0f1f14; }
:root:not([data-theme="dark"]) .page-frame .chosen-plan-main small, :root:not([data-theme="dark"]) .page-frame .chosen-plan-price small { color: #4b6358; }
:root:not([data-theme="dark"]) .page-frame .chosen-plan-change { background: #fff; color: #065f46; box-shadow: inset 0 0 0 1px rgba(5,150,105,.25); }
:root:not([data-theme="dark"]) .page-frame .chosen-plan-change:hover { background: #ecfdf5; color: #0f1f14; }

:root:not([data-theme="dark"]) .page-frame .summary { background: #f0fdf4; box-shadow: inset 0 0 0 1px rgba(5,150,105,.14); }
:root:not([data-theme="dark"]) .page-frame .summary div { border-bottom-color: rgba(5,150,105,.1); }
:root:not([data-theme="dark"]) .page-frame .summary dt { color: #4b6358; }
:root:not([data-theme="dark"]) .page-frame .summary dd { color: #0f1f14; }
:root:not([data-theme="dark"]) .page-frame .summary .summary-total dd { color: #0f1f14; }
:root:not([data-theme="dark"]) .page-frame .pay-option { background: #fff; box-shadow: inset 0 0 0 1px rgba(5,150,105,.16), 0 10px 30px rgba(6,78,59,.06); }
:root:not([data-theme="dark"]) .page-frame .pay-icon { background: #ecfdf5; color: #064e3b; }
:root:not([data-theme="dark"]) .page-frame .pay-copy b { color: #0f1f14; }
:root:not([data-theme="dark"]) .page-frame .pay-copy small { color: #4b6358; }
:root:not([data-theme="dark"]) .page-frame .spinner { border-color: rgba(5,150,105,.18); border-top-color: #059669; }

:root:not([data-theme="dark"]) .page-frame .line-status { color: #2b3d33; }
:root:not([data-theme="dark"]) .page-frame .line-status b { color: #0f1f14; }
: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: #ecfdf5; color: #064e3b; }
:root:not([data-theme="dark"]) .page-frame .creds div { background: #f0fdf4; box-shadow: inset 0 0 0 1px rgba(5,150,105,.18); }
:root:not([data-theme="dark"]) .page-frame .creds dt { color: #4b6358; }
:root:not([data-theme="dark"]) .page-frame .creds code { color: #3b2275; }
:root:not([data-theme="dark"]) .page-frame .copy-btn { background: #fff; color: #065f46; box-shadow: inset 0 0 0 1px rgba(5,150,105,.3); }
:root:not([data-theme="dark"]) .page-frame .copy-btn:hover { background: #ecfdf5; }
:root:not([data-theme="dark"]) .page-frame .line-card { background: #fff; box-shadow: inset 0 0 0 1px rgba(5,150,105,.14); color: #2b3d33; }
:root:not([data-theme="dark"]) .page-frame .line-card b { color: #0f1f14; }
:root:not([data-theme="dark"]) .page-frame .line-card:hover { background: #f0fdf4; }

:root:not([data-theme="dark"]) .page-frame .admin-bar h1 { color: #0f1f14; }
: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: #ecfdf5; color: #0f1f14; box-shadow: inset 0 0 0 1px rgba(5,150,105,.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(5,150,105,.14), 0 8px 24px rgba(6,78,59,.05); }
:root:not([data-theme="dark"]) .page-frame .stat span, :root:not([data-theme="dark"]) .page-frame .stat small { color: #4b6358; }
:root:not([data-theme="dark"]) .page-frame .stat strong, :root:not([data-theme="dark"]) .page-frame .admin-card h2 { color: #0f1f14; }
:root:not([data-theme="dark"]) .page-frame .admin-form label, :root:not([data-theme="dark"]) .page-frame .checks { color: #2b3d33; }
: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(5,150,105,.22); background: #fff; color: #0f1f14; }
:root:not([data-theme="dark"]) .page-frame .table-wrap { background: #fff; box-shadow: inset 0 0 0 1px rgba(5,150,105,.14); }
:root:not([data-theme="dark"]) .page-frame .admin-table th { background: #f0fdf4; color: #4b6358; border-bottom-color: rgba(5,150,105,.14); }
:root:not([data-theme="dark"]) .page-frame .admin-table td { color: #2a2238; border-bottom-color: rgba(5,150,105,.08); }
:root:not([data-theme="dark"]) .page-frame .admin-table tr:hover td { background: #f6fdf9; }
:root:not([data-theme="dark"]) .page-frame code.mini { color: #064e3b; }
:root:not([data-theme="dark"]) .page-frame .mini-btn { border-color: rgba(5,150,105,.35); background: #f0fdf4; color: #065f46; }
: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: #059669; }

/* 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, #064e3b); 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: #34d399; 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: 14px !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: #87a99b; font-size: 12px; line-height: 1.55; }
.pay-secure svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: #34d399; }
.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: #059669; }
:root:not([data-theme="dark"]) .page-frame .pay-secure { color: #4b6358; }
:root:not([data-theme="dark"]) .page-frame .pay-secure svg { color: #059669; }
:root:not([data-theme="dark"]) .page-frame .pay-option:hover { box-shadow: inset 0 0 0 1px rgba(5,150,105,.3), 0 16px 36px rgba(6,78,59,.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: #a3c4b3; transition: background .2s, color .2s, box-shadow .2s; }
.device-tab:hover { background: rgba(16,185,129,.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: -.005em; }
.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: #34d399; }
.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: #a7f3d0; }
.device-tab-add > span[aria-hidden] { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(16,185,129,.2); font-size: 17px; line-height: 1; }
.device-tab:focus-visible { outline: 2px solid #6ee7b7; 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(16,185,129,.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(16,185,129,.2); color: #d1fae5; }
.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: -.013em; }
.add-device-copy p { margin: 0; color: #a3c4b3; font-size: 14px; line-height: 1.6; }
.add-device-card .button { min-height: 46px; padding: 0 22px; border-radius: 999px; font-size: 14px; white-space: nowrap; }

/* Add-device pricing page */
.back-link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; color: #a7f3d0; 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(5,150,105,.14), 0 10px 30px rgba(6,78,59,.06); }
:root:not([data-theme="dark"]) .page-frame .device-tab { color: #5b5170; }
:root:not([data-theme="dark"]) .page-frame .device-tab:hover { background: #f0fdf4; color: #0f1f14; }
: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(5,150,105,.4); color: #064e3b; }
:root:not([data-theme="dark"]) .page-frame .device-tab-add > span[aria-hidden] { background: #ecfdf5; }
:root:not([data-theme="dark"]) .page-frame .add-device-card { border-color: rgba(5,150,105,.35); background: radial-gradient(ellipse at 0% 50%, rgba(16,185,129,.14), transparent 60%), #fff; }
:root:not([data-theme="dark"]) .page-frame .add-device-icon { background: #ecfdf5; color: #064e3b; }
:root:not([data-theme="dark"]) .page-frame .add-device-copy h2 { color: #0f1f14; }
:root:not([data-theme="dark"]) .page-frame .add-device-copy p { color: #2b3d33; }
:root:not([data-theme="dark"]) .page-frame .back-link { color: #064e3b; }

@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: #f0fdf4; 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: #87a99b; font-size: 12px; font-weight: 500; }
.admin-add summary { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: rgba(16,185,129,.14); color: #d1fae5; 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: #87a99b; 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(5,150,105,.22); background: #fff; color: #0f1f14; }
:root:not([data-theme="dark"]) .page-frame .admin-add summary { background: #ecfdf5; color: #065f46; }
:root:not([data-theme="dark"]) .page-frame .admin-add .admin-form { background: #f0fdf4; box-shadow: inset 0 0 0 1px rgba(5,150,105,.14); }
:root:not([data-theme="dark"]) .page-frame .group-head h2 small, :root:not([data-theme="dark"]) .page-frame .mini-check { color: #4b6358; }

/* 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: #34d399; 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: #059669; }

/* 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: #87a99b; }
.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: #f0fdf4; box-shadow: inset 0 0 0 1px rgba(5,150,105,.12); }
:root:not([data-theme="dark"]) .page-frame .support-facts span { color: #4b6358; }
:root:not([data-theme="dark"]) .page-frame .support-facts b { color: #0f1f14; }

/* 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(16,185,129,.2); color: #a7f3d0; }
.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: #34d399; 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(5,150,105,.14), 0 8px 22px rgba(6,78,59,.05); }
:root:not([data-theme="dark"]) .page-frame .mode-card h3 { color: #0f1f14; }
:root:not([data-theme="dark"]) .page-frame .mode-auto { background: #ecfdf5; color: #064e3b; }
: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(5,150,105,.25); }
:root:not([data-theme="dark"]) .page-frame .manual-group legend { color: #059669; }
.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: #10b981; }
.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: #f0fdf4; box-shadow: inset 0 0 0 1px rgba(5,150,105,.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(16,185,129,.18); border-color: rgba(214,197,255,.45); }
.lang-menu summary:focus-visible { outline: 2px solid #6ee7b7; 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(16,185,129,.16); color: #fff; outline: none; }
.lang-menu li a[aria-current="true"] { background: rgba(16,185,129,.24); color: #fff; }
.lang-menu li a[aria-current="true"]::after { content: "✓"; margin-inline-start: auto; color: #6ee7b7; font-size: 13px; }
:root:not([data-theme="dark"]) .page-frame .lang-menu summary { border-color: rgba(5,150,105,.25); background: #fff; color: #065f46; box-shadow: 0 4px 14px rgba(6,78,59,.08); }
:root:not([data-theme="dark"]) .page-frame .lang-menu summary:hover, :root:not([data-theme="dark"]) .page-frame .lang-menu[open] summary { background: #ecfdf5; }
:root:not([data-theme="dark"]) .page-frame .lang-menu ul { background: #fff; border-color: rgba(5,150,105,.16); box-shadow: 0 18px 40px rgba(6,78,59,.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: #059669; }
: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: #ecfdf5; 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: -.038em !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: 34px; padding: 0 12px; font-size: 12px; }
  .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: #ecfdf5; 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: #ecfdf5; }
.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: #9fbdab; }
.coin-pick select { width: 100%; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: rgba(5,4,10,.6); color: #f0fdf4; box-shadow: inset 0 0 0 1px rgba(16,185,129,.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(6,78,59,.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(16,185,129,.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: #4b6358; }
:root:not([data-theme="dark"]) .page-frame .coin-pick select { background: #f0fdf4; color: #0f1f14; box-shadow: inset 0 0 0 1px rgba(5,150,105,.25); }
:root:not([data-theme="dark"]) .page-frame .chip-tag { background: #ecfdf5; color: #047857; }
: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: #9fbdab; }

.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: #9fbdab; }
.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; }
.link-grid .renew-price { width: 100%; max-width: none; margin-bottom: 4px; }
.link-grid .link-field + .link-field { margin-top: 2px; }
/* 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(16,185,129,.22); color: #d1fae5; font: 700 10px var(--sans); font-style: normal; letter-spacing: .02em; vertical-align: 1px; }
.pick-device small { grid-column: 2; color: #9fbdab; 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(16,185,129,.16); box-shadow: inset 0 0 0 2px #10b981, 0 0 22px rgba(16,185,129,.16); }
.pick-device input:checked + span .pick-check { background: #10b981; box-shadow: none; color: #fff; }
.pick-device input:focus-visible + span { outline: 2px solid #a7f3d0; 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 #6ee7b7; 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(5,150,105,.2); }
:root:not([data-theme="dark"]) .page-frame .pick-device input:checked + span { background: #f0fdf4; box-shadow: inset 0 0 0 2px #10b981, 0 10px 26px rgba(5,150,105,.14); }
:root:not([data-theme="dark"]) .page-frame .pick-device b { color: #0f1f14; }
:root:not([data-theme="dark"]) .page-frame .pick-device b em { background: #ecfdf5; color: #064e3b; }
:root:not([data-theme="dark"]) .page-frame .pick-device small { color: #4b6358; }
:root:not([data-theme="dark"]) .page-frame .pick-check { box-shadow: inset 0 0 0 1.5px rgba(5,150,105,.4); }
:root:not([data-theme="dark"]) .page-frame .pick-all { color: #059669; }
:root:not([data-theme="dark"]) .page-frame .scope-hint { color: #2b3d33; }
:root:not([data-theme="dark"]) .page-frame .scope-hint strong { color: #0f1f14; }
.renew-widget { scroll-margin-top: 24px; }
/* "Renew" next to the device status: jumps to the widget */
.line-renew-btn { min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 13px; }
.line-renew-btn span { transition: transform .2s; }
.line-renew-btn:hover span { transform: translateY(2px); }
.line-renew-btn:focus-visible { outline: 2px solid #a7f3d0; 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: -.013em; }
.sub-card-head small { color: #87a99b; 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(16,185,129,.12); }
.sub-devices a:focus-visible, .sub-open:focus-visible { outline: 2px solid #6ee7b7; 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: #87a99b; 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(5,150,105,.14), 0 10px 30px rgba(6,78,59,.05); }
:root:not([data-theme="dark"]) .page-frame .sub-devices a { background: #f0fdf4; color: #2b3d33; }
:root:not([data-theme="dark"]) .page-frame .sub-devices a:hover { background: #ecfdf5; }
:root:not([data-theme="dark"]) .page-frame .sub-devices b { color: #0f1f14; }
:root:not([data-theme="dark"]) .page-frame .sub-card-head small, :root:not([data-theme="dark"]) .page-frame .sub-devices small { color: #4b6358; }
/* 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 #6ee7b7; outline-offset: 2px; border-radius: 4px; }
:root:not([data-theme="dark"]) .page-frame .code-actions button.text-link { color: #059669; }
/* MARK: Admin - trial limits / unlimited trials */
.admin-sub { margin: 20px 0 6px; color: #fff; font: 600 15px var(--display); }
.unlimited-add { flex-wrap: wrap; margin: 8px 0 10px; }
.limit-form { display: grid; gap: 10px; justify-items: start; margin: 0 0 10px; }
.limit-form fieldset { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.limit-option { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.limit-option input { accent-color: #10b981; width: 16px; height: 16px; }
.unlimited-add .mini-input { max-width: 240px; min-height: 32px; font-size: 12px; }
.unlimited-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; max-height: 260px; overflow: auto; }
.unlimited-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.035); font-size: 12px; }
.unlimited-list span { overflow-wrap: anywhere; }
:root:not([data-theme="dark"]) .page-frame .admin-sub { color: #0f1f14; }
:root:not([data-theme="dark"]) .page-frame .unlimited-list li { background: #f0fdf4; box-shadow: inset 0 0 0 1px rgba(5,150,105,.12); }
/* MARK: Admin - payments log */
.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stats-4 { grid-template-columns: 1fr; } }
.pay-filters { margin-top: 4px; }
.pay-detail { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 18px; margin: 0 0 6px; }
.pay-detail div { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.03); }
.pay-detail dt { color: #87a99b; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.pay-detail dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
:root:not([data-theme="dark"]) .page-frame .pay-detail div { background: #f0fdf4; box-shadow: inset 0 0 0 1px rgba(5,150,105,.12); }
:root:not([data-theme="dark"]) .page-frame .pay-detail dt { color: #4b6358; }
/* MARK: Payment methods - card (purple) and crypto (amber) look different at a glance */
.pay-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pay-badge { display: inline-flex; align-items: center; min-height: 20px; padding: 0 8px; border-radius: 999px; font: 700 10px var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.pay-marks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.mark { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 8px; border-radius: 6px; font: 700 10px/1 var(--sans); letter-spacing: .02em; white-space: nowrap; }
.pay-option.is-off { opacity: .6; }
.pay-option.is-off:hover { transform: none; }
/* Card */
.pay-card { background: radial-gradient(ellipse at 100% 0%, rgba(16,185,129,.26), transparent 60%), rgba(16,185,129,.06); box-shadow: inset 0 0 0 1.5px rgba(167,124,255,.55), 0 14px 34px rgba(98,52,190,.22); }
.pay-card .pay-icon { background: linear-gradient(140deg, #10b981, #064e3b); color: #fff; box-shadow: 0 8px 18px rgba(5,150,105,.4); }
.pay-card .pay-badge { background: rgba(16,185,129,.24); color: #d1fae5; }
.mark-visa { background: #fff; color: #1a1f71; font-style: italic; font-weight: 800; letter-spacing: .06em; }
.mark-mc { background: #1c1a24; padding: 0 6px; }
.mark-mc i { width: 14px; height: 14px; border-radius: 50%; background: #eb001b; }
.mark-mc i + i { margin-left: -9px; background: #f79e1b; mix-blend-mode: screen; }
.mark-apple { background: #000; color: #fff; }
.mark-gpay { background: #fff; color: #3c4043; }
/* Crypto */
.pay-crypto { background: radial-gradient(ellipse at 100% 0%, rgba(247,147,26,.16), transparent 60%), rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(247,170,70,.32); }
.pay-crypto .pay-icon { background: rgba(247,147,26,.16); color: #ffc46b; }
.pay-crypto .pay-badge { background: rgba(247,147,26,.18); color: #ffd28f; }
.pay-crypto .button-quiet { border-color: rgba(247,170,70,.45); color: #ffe2b8; }
.pay-crypto .button-quiet:hover { background: rgba(247,147,26,.12); border-color: rgba(247,170,70,.7); }
.pay-crypto .coin-pick select { box-shadow: inset 0 0 0 1px rgba(247,170,70,.35); }
.coin { background: rgba(255,255,255,.05); }
.coin-btc { color: #f7a440; box-shadow: inset 0 0 0 1px rgba(247,147,26,.35); }
.coin-eth { color: #a3b1ff; box-shadow: inset 0 0 0 1px rgba(98,126,234,.4); }
.coin-usdt { color: #4fd1a7; box-shadow: inset 0 0 0 1px rgba(38,161,123,.45); }
.coin-ltc { color: #c9ccd1; box-shadow: inset 0 0 0 1px rgba(166,169,170,.4); }
:root:not([data-theme="dark"]) .page-frame .pay-card { background: radial-gradient(ellipse at 100% 0%, rgba(16,185,129,.16), transparent 60%), #fbf8ff; box-shadow: inset 0 0 0 1.5px rgba(5,150,105,.45), 0 14px 34px rgba(98,52,190,.12); }
:root:not([data-theme="dark"]) .page-frame .pay-card .pay-icon { background: linear-gradient(140deg, #10b981, #064e3b); color: #fff; }
:root:not([data-theme="dark"]) .page-frame .pay-card .pay-badge { background: #ecfdf5; color: #047857; }
:root:not([data-theme="dark"]) .page-frame .pay-crypto { background: radial-gradient(ellipse at 100% 0%, rgba(247,147,26,.12), transparent 60%), #fffaf3; box-shadow: inset 0 0 0 1px rgba(214,131,30,.32), 0 10px 30px rgba(140,90,20,.06); }
:root:not([data-theme="dark"]) .page-frame .pay-crypto .pay-icon { background: #fff0db; color: #b8650a; }
:root:not([data-theme="dark"]) .page-frame .pay-crypto .pay-badge { background: #fff0db; color: #9a5408; }
:root:not([data-theme="dark"]) .page-frame .pay-crypto .button-quiet { border-color: rgba(214,131,30,.5); color: #8a4c06; background: #fff; }
:root:not([data-theme="dark"]) .page-frame .coin { background: #fff; }
:root:not([data-theme="dark"]) .page-frame .coin-btc { color: #c26a05; }
:root:not([data-theme="dark"]) .page-frame .coin-eth { color: #4257c9; }
:root:not([data-theme="dark"]) .page-frame .coin-usdt { color: #1a8a66; }
:root:not([data-theme="dark"]) .page-frame .coin-ltc { color: #6c7077; }
:root:not([data-theme="dark"]) .page-frame .mark-mc { background: #f1eef6; }
:root:not([data-theme="dark"]) .page-frame .mark-mc i + i { mix-blend-mode: multiply; }
:root:not([data-theme="dark"]) .page-frame .mark-visa, :root:not([data-theme="dark"]) .page-frame .mark-gpay { box-shadow: inset 0 0 0 1px rgba(22,15,36,.14); }
/* MARK: Card link - 4 s animation, then the payment page opens (public/app.js)
   The card rises in, light sweeps across it, a lock pops in (secure), then the
   card glides off to the right: "on its way to the payment page". */
.auto-open { display: grid; justify-items: center; gap: 12px; margin: 8px 0 20px; }
.pay-anim { position: relative; width: 190px; height: 130px; display: grid; place-items: center; }
.pay-anim-glow { position: absolute; inset: 14px 6px; border-radius: 50%; background: radial-gradient(closest-side, rgba(16,185,129,.45), transparent); filter: blur(10px); }
.pay-anim-card { position: relative; width: 150px; height: 94px; overflow: hidden; border-radius: 14px; background: linear-gradient(135deg, #a77bff 0%, #7444d6 55%, #4b2596 100%); box-shadow: 0 18px 34px rgba(76,40,160,.45), inset 0 1px rgba(255,255,255,.35); }
.pay-anim-chip { position: absolute; top: 18px; left: 16px; width: 24px; height: 18px; border-radius: 4px; background: linear-gradient(135deg, #ffe9a8, #d9a845); }
.pay-anim-num { position: absolute; left: 16px; right: 16px; top: 48px; display: flex; gap: 8px; }
.pay-anim-num i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.55); }
.pay-anim-name { position: absolute; left: 16px; bottom: 14px; width: 54px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.4); }
.pay-anim-logo { position: absolute; right: 14px; bottom: 10px; display: flex; }
.pay-anim-logo i { width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.75); }
.pay-anim-logo i + i { margin-left: -7px; background: rgba(255,214,140,.85); }
.pay-anim-shine { position: absolute; inset: -40% auto -40% -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); }
.pay-anim-lock { position: absolute; right: 8px; top: 4px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #064e3b; box-shadow: 0 8px 20px rgba(76,40,160,.35); opacity: 0; transform: scale(.4); }
.pay-anim-lock svg { width: 20px; height: 20px; }
.auto-open.is-running .pay-anim-card { animation: pa-card var(--auto-ms, 4000ms) cubic-bezier(.3,.7,.3,1) forwards; }
.auto-open.is-running .pay-anim-shine { animation: pa-shine 1.3s ease-in-out .5s infinite; }
.auto-open.is-running .pay-anim-lock { animation: pa-lock var(--auto-ms, 4000ms) ease forwards; }
.auto-open.is-running .pay-anim-glow { animation: pa-glow 1.6s ease-in-out infinite; }
@keyframes pa-card {
  0% { opacity: 0; transform: translateY(26px) rotate(-8deg) scale(.9); }
  18% { opacity: 1; transform: translateY(0) rotate(-4deg) scale(1); }
  50% { transform: translateY(-4px) rotate(-2deg); }
  80% { opacity: 1; transform: translateY(0) rotate(-3deg); }
  100% { opacity: 0; transform: translateX(70px) rotate(4deg) scale(.92); }
}
@keyframes pa-shine { 0% { left: -60%; } 60%, 100% { left: 120%; } }
@keyframes pa-lock {
  0%, 30% { opacity: 0; transform: scale(.4); }
  40% { opacity: 1; transform: scale(1.15); }
  48%, 80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: translateX(60px) scale(.8); }
}
@keyframes pa-glow { 50% { opacity: .55; transform: scale(1.08); } }
.auto-text { margin: 0; color: #e7dcff; font: 600 15px var(--display); }
.auto-dots i { display: inline-block; font-style: normal; }
.auto-open.is-running .auto-dots i { animation: pa-dot 1.2s ease-in-out infinite; }
.auto-open.is-running .auto-dots i:nth-child(2) { animation-delay: .2s; }
.auto-open.is-running .auto-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes pa-dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
/* Reduced motion: a still card with the lock shown; the page still opens after 4 s. */
@media (prefers-reduced-motion: reduce) {
  .auto-open.is-running .pay-anim-card, .auto-open.is-running .pay-anim-shine, .auto-open.is-running .pay-anim-glow, .auto-open.is-running .auto-dots i { animation: none; }
  .auto-open.is-running .pay-anim-lock { animation: none; opacity: 1; transform: none; }
}
:root:not([data-theme="dark"]) .page-frame .pay-anim-glow { background: radial-gradient(closest-side, rgba(16,185,129,.3), transparent); }
:root:not([data-theme="dark"]) .page-frame .auto-text { color: #2a1d45; }
/* MARK: Floating corner buttons - free trial (start side) and WhatsApp (end side) */
.float-corners { --float-gap: max(20px, env(safe-area-inset-bottom)); position: fixed; z-index: 60; inset-inline: 0; bottom: 0; pointer-events: none; }
.float-btn { position: absolute; bottom: var(--float-gap); display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; pointer-events: auto; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; -webkit-tap-highlight-color: transparent; }
.float-btn:hover { transform: translateY(-3px); }
.float-btn:focus-visible, .float-note-link:focus-visible, .float-note-close:focus-visible { outline: 3px solid #c9a8ff; outline-offset: 3px; }
.float-wa { inset-inline-end: max(20px, env(safe-area-inset-right)); background: #fff; box-shadow: 0 12px 30px rgba(20,120,50,.35), 0 0 0 1px rgba(0,0,0,.04); }
.float-wa svg { width: 40px; height: 40px; }
.float-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: waPulse 2.6s ease-out infinite; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(39,180,62,.5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(39,180,62,0); } }

/* Trial: round 24h button with a red "1" badge */
.float-trial-wrap { position: absolute; bottom: 0; inset-inline-start: max(20px, env(safe-area-inset-left)); }
.float-trial { inset-inline-start: 0; color: #fff; background: linear-gradient(130deg, #10b981, #064e3b); box-shadow: 0 14px 34px rgba(107,61,194,.5), inset 0 0 0 1px rgba(255,255,255,.2); }
.float-trial-icon svg { display: block; width: 40px; height: 40px; }
.float-trial-icon text, .float-note-icon text { font-family: var(--display); }
.float-badge { position: absolute; top: -3px; inset-inline-end: -3px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #ff3b5c; color: #fff; font: 700 11px/1 var(--display); box-shadow: 0 0 0 2px #fff; }
.float-trial-wrap.is-seen .float-badge { display: none; }

/* The notification bubble above the button */
.float-note { position: absolute; bottom: calc(var(--float-gap) + 74px); inset-inline-start: 0; width: min(300px, calc(100vw - 40px)); pointer-events: auto; opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom left; transition: opacity .35s ease, transform .35s cubic-bezier(.2,.9,.3,1.25); }
[dir="rtl"] .float-note { transform-origin: bottom right; }
.float-note.is-in { opacity: 1; transform: none; }
.float-note::after { content: ""; position: absolute; bottom: -7px; inset-inline-start: 23px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); box-shadow: 3px 3px 6px rgba(40,20,80,.08); }
.float-note-link { position: relative; z-index: 1; display: flex; gap: 12px; align-items: flex-start; padding: 14px 40px 14px 14px; border-radius: 18px; background: #fff; color: #0f1f14; text-decoration: none; box-shadow: 0 18px 50px rgba(30,10,70,.35), 0 0 0 1px rgba(5,150,105,.12); }
[dir="rtl"] .float-note-link { padding: 14px 14px 14px 40px; }
.float-note-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: linear-gradient(130deg, #10b981, #064e3b); }
.float-note-icon svg { width: 32px; height: 32px; }
.float-note-copy { display: grid; gap: 3px; min-width: 0; }
.float-note-copy small { color: #059669; font: 700 11px/1.2 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.float-note-copy strong { font: 700 15px/1.25 var(--display); letter-spacing: -.009em; }
.float-note-copy span { color: #5b5170; font-size: 13px; line-height: 1.4; }
.float-note-link:hover strong { color: #064e3b; }
.float-note-close { position: absolute; z-index: 2; top: 8px; inset-inline-end: 8px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #8a809c; font: 400 20px/1 sans-serif; cursor: pointer; }
.float-note-close:hover { background: #f1ecfa; color: #0f1f14; }
[data-theme="dark"] .float-note-link, [data-theme="dark"] .float-note::after { background: #1b1430; }
[data-theme="dark"] .float-note-link { color: #f6fdf9; box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(195,171,255,.18); }
[data-theme="dark"] .float-note-copy small { color: #c9a8ff; }
[data-theme="dark"] .float-note-copy span { color: #b9add0; }
[data-theme="dark"] .float-note-link:hover strong { color: #c9a8ff; }
[data-theme="dark"] .float-note-close:hover { background: rgba(255,255,255,.08); color: #fff; }

@media (max-width: 560px) {
  .float-corners { --float-gap: max(16px, env(safe-area-inset-bottom)); }
  .float-btn { width: 54px; height: 54px; }
  .float-wa { inset-inline-end: max(16px, env(safe-area-inset-right)); }
  .float-wa svg { width: 36px; height: 36px; }
  .float-trial-wrap { inset-inline-start: max(16px, env(safe-area-inset-left)); }
  .float-trial-icon svg { width: 36px; height: 36px; }
  .float-note { bottom: calc(var(--float-gap) + 66px); width: min(290px, calc(100vw - 32px)); }
  .float-note::after { inset-inline-start: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .float-wa::before { animation: none; }
  .float-btn, .float-btn:hover, .float-note { transition: none; transform: none; }
}
@media print { .float-corners { display: none; } }