:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: rgba(10, 15, 27, .84);
  --panel-2: rgba(255,255,255,.035);
  --line: rgba(255,255,255,.10);
  --line-strong: rgba(143,183,255,.24);
  --text: #f7f9ff;
  --muted: rgba(231,237,255,.56);
  --blue: #2d7cff;
  --blue-soft: #8fb7ff;
  --green: #78ffa6;
  --danger: #ff6f83;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); overflow-x: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.site-bg { position: fixed; inset: 0; z-index: -2; background: #05070d; overflow: hidden; }
.top-glow { position: absolute; inset: 0 0 auto; height: 560px; background: radial-gradient(circle at 50% -10%, rgba(37,99,235,.34), transparent 58%); }
.grid { position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255,255,255,.027) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.027) 1px, transparent 1px); background-size: 78px 78px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 82%); }
.vignette { position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 0, rgba(5,7,13,.93) 72%); }
.cursor-light { position: fixed; width: 360px; height: 360px; border-radius: 50%; background: rgba(45,124,255,.14); filter: blur(90px); pointer-events: none; transform: translate(-50%,-50%); opacity: 0; transition: opacity .25s ease; }
.topbar { height: 76px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.brand-orb { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); display: grid; place-items: center; }
.brand-orb i { width: 14px; height: 14px; border-radius: 50%; background: #4f8cff; box-shadow: 0 0 28px rgba(79,140,255,.85); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.site-link, .ghost { color: rgba(255,255,255,.66); text-decoration: none; font-size: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 999px; padding: 10px 15px; transition: .25s ease; }
.site-link:hover, .ghost:hover { color: white; border-color: rgba(143,183,255,.34); background: rgba(45,124,255,.08); transform: translateY(-1px); }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 66px 0 96px; }
.auth-grid { min-height: calc(100vh - 214px); display: grid; grid-template-columns: 1.15fr .85fr; gap: 74px; align-items: center; }
.hero { max-width: 690px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.48); font-size: 12px; letter-spacing: .22em; font-weight: 700; text-transform: uppercase; }
.hero-kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 18px rgba(45,124,255,.9); }
.hero h1, .dashboard-head h1 { margin: 22px 0 20px; font-size: clamp(54px, 7vw, 92px); line-height: .93; letter-spacing: -.065em; font-weight: 650; }
.hero h1 em { color: var(--blue-soft); font-style: normal; }
.hero > p, .dashboard-head p { max-width: 620px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-points { margin-top: 42px; display: grid; gap: 12px; max-width: 590px; }
.hero-points div { display: flex; align-items: center; gap: 16px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 13px; color: rgba(255,255,255,.72); }
.hero-points b { color: var(--blue-soft); font-size: 11px; letter-spacing: .18em; }
.panel { position: relative; border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(22px); border-radius: 28px; padding: 28px; box-shadow: 0 30px 90px rgba(0,0,0,.38); overflow: hidden; }
.panel::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: radial-gradient(circle at 30% 0%, rgba(45,124,255,.13), transparent 35%); pointer-events: none; }
.auth-panel { width: 100%; max-width: 470px; justify-self: end; }
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 26px; }
.panel-label { display: block; color: var(--blue-soft); font-size: 11px; letter-spacing: .2em; font-weight: 800; }
h2 { margin: 8px 0 0; font-size: 28px; letter-spacing: -.04em; }
.panel-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.panel-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(120,255,166,.8); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; margin-bottom: 24px; border: 1px solid rgba(255,255,255,.07); background: rgba(0,0,0,.25); border-radius: 16px; }
.tab { border: 0; border-radius: 12px; background: transparent; color: rgba(255,255,255,.45); padding: 12px; transition: .25s ease; }
.tab.active { color: white; background: rgba(45,124,255,.18); box-shadow: inset 0 0 0 1px rgba(143,183,255,.16); }
.stack { display: grid; gap: 16px; }
label { display: grid; gap: 8px; color: rgba(255,255,255,.68); font-size: 13px; }
input { width: 100%; border: 1px solid rgba(255,255,255,.10); background: rgba(3,7,15,.72); color: white; border-radius: 14px; padding: 14px 15px; outline: 0; transition: .25s ease; }
input::placeholder { color: rgba(255,255,255,.28); }
input:focus { border-color: rgba(79,140,255,.65); box-shadow: 0 0 0 4px rgba(45,124,255,.10); background: rgba(5,10,20,.9); }
.checkbox { display: flex; align-items: center; gap: 10px; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--blue); }
.primary, .secondary, .ghost, .payment-grid button, .device-actions button { border-radius: 999px; padding: 12px 18px; border: 1px solid transparent; transition: transform .22s ease, background .22s ease, border-color .22s ease, color .22s ease; }
.primary { background: white; color: #05070d; font-weight: 750; }
.primary:hover { background: #dbeafe; transform: translateY(-1px); box-shadow: 0 12px 36px rgba(45,124,255,.16); }
.secondary, .payment-grid button, .device-actions button { background: rgba(255,255,255,.04); color: rgba(255,255,255,.82); border-color: rgba(255,255,255,.10); }
.secondary:hover, .payment-grid button:hover, .device-actions button:hover { background: rgba(45,124,255,.11); border-color: rgba(143,183,255,.26); color: white; transform: translateY(-1px); }
.message { min-height: 21px; margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.message.error { color: var(--danger); }
.panel-foot { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.30); font-size: 10px; letter-spacing: .16em; }
.dashboard-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 36px; }
.dashboard-head h1 { font-size: clamp(48px, 6vw, 74px); }
.account-tag { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 10px 15px; color: var(--muted); background: rgba(255,255,255,.025); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.metric { min-height: 150px; border: 1px solid var(--line); background: rgba(10,15,27,.70); backdrop-filter: blur(18px); border-radius: 22px; padding: 22px; transition: .25s ease; }
.metric:hover { transform: translateY(-3px); border-color: var(--line-strong); background: rgba(12,20,36,.82); }
.metric-primary { background: linear-gradient(145deg, rgba(45,124,255,.20), rgba(10,15,27,.78)); }
.metric span { color: var(--muted); font-size: 12px; }
.metric strong { display: block; margin: 18px 0 10px; font-size: 30px; letter-spacing: -.045em; }
.metric small { color: rgba(255,255,255,.34); }
.content-grid { display: grid; grid-template-columns: 1.45fr .72fr; gap: 18px; }
.wide { grid-row: span 2; }
.section-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.panel-copy { color: var(--muted); line-height: 1.6; }
.device-list { display: grid; gap: 10px; position: relative; z-index: 1; }
.device { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); border-radius: 18px; padding: 16px; transition: .22s ease; }
.device:hover { border-color: rgba(143,183,255,.22); background: rgba(45,124,255,.055); }
.device-title { font-weight: 700; }
.device-meta { margin-top: 5px; color: var(--muted); font-size: 12px; }
.device-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: end; }
.device-actions button { padding: 8px 11px; font-size: 12px; }
.device-actions .danger { color: var(--danger); }
.empty { padding: 46px 0; color: var(--muted); text-align: center; }
.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0 12px; }
.payment-grid button { border-radius: 14px; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.compact { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.dashboard-message { margin-top: 18px; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(2,4,9,.78); backdrop-filter: blur(16px); }
.modal-card { width: min(650px, 100%); border: 1px solid var(--line); background: #0a0f1b; border-radius: 24px; padding: 28px; box-shadow: 0 30px 100px rgba(0,0,0,.6); position: relative; }
.modal-close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; color: var(--muted); font-size: 28px; }
pre { white-space: pre-wrap; word-break: break-all; max-height: 330px; overflow: auto; border: 1px solid var(--line); background: #050912; border-radius: 14px; padding: 15px; color: rgba(255,255,255,.82); }
.footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 34px; border-top: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; color: rgba(255,255,255,.25); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.hidden { display: none !important; }
body:not(.ready) .auth-grid, body:not(.ready) .dashboard { opacity: 0; transform: translateY(12px); }
.auth-grid, .dashboard { transition: opacity .45s ease, transform .45s ease; }
@media (max-width: 950px) {
  .auth-grid, .content-grid { grid-template-columns: 1fr; }
  .auth-panel { justify-self: stretch; max-width: none; }
  .hero { max-width: none; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .wide { grid-row: auto; }
}
@media (max-width: 650px) {
  .topbar, .shell, .footer { width: min(100% - 24px, 1180px); }
  .shell { padding-top: 34px; }
  .site-link { display: none; }
  .auth-grid { gap: 40px; }
  .hero h1 { font-size: 52px; }
  .hero > p { font-size: 16px; }
  .metrics { grid-template-columns: 1fr; }
  .dashboard-head, .section-head, .device { display: block; }
  .account-tag { display: inline-block; margin-top: 16px; }
  .actions, .device-actions { margin-top: 14px; justify-content: start; }
  .inline-form { grid-template-columns: 1fr; }
  .footer { gap: 14px; flex-direction: column; }
  .cursor-light { display: none; }
}


/* Legal, support and service-state refinements */
.legal-consent { align-items: flex-start; line-height: 1.5; }
.legal-consent input { margin-top: 2px; flex: 0 0 auto; }
.legal-consent span { color: rgba(255,255,255,.58); }
.legal-consent a, .footer a { color: #8fb7ff; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
.legal-consent a:hover, .footer a:hover { color: #fff; }
.support-link { border-color: rgba(143,183,255,.18); }
.footer-links { align-items: center; gap: 20px; }
.footer-links nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-links a { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 650px) {
  .top-actions { gap: 8px; }
  .top-actions .support-link { display: inline-flex; }
  .footer-links { align-items: flex-start; }
  .footer-links nav { justify-content: flex-start; gap: 12px 16px; }
}
