:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0d1b2b;
  --panel-2: #122438;
  --ink: #f6f8fb;
  --muted: #9bb0c5;
  --line: rgba(255,255,255,.105);
  --blue: #3575ff;
  --cyan: #50d8ff;
  --mint: #78f5c5;
  --paper: #f4f7fb;
  --paper-ink: #0b1827;
  --radius: 22px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
svg { display: block; }
.shell { width: min(1180px, calc(100% - 44px)); margin-inline: auto; }
.site-header { height: 82px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -.02em; }
.brand small { color: #72879c; font-size: .72rem; font-weight: 650; padding-left: 2px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, var(--cyan), var(--blue)); box-shadow: 0 10px 28px rgba(53,117,255,.3); }
.brand-mark svg { width: 22px; fill: none; stroke: white; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-header nav { display: flex; align-items: center; gap: 30px; color: #b4c1cf; font-size: .9rem; }
.site-header nav > a:not(.button):hover { color: white; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; font-weight: 720; font-size: .9rem; transition: transform .2s ease, border-color .2s ease, background .2s ease; cursor: pointer; }
.button:hover { transform: translateY(-1px); }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.04); }
.button-primary { min-height: 52px; padding-inline: 25px; background: linear-gradient(135deg, #3a7bff, #285be8); box-shadow: 0 16px 38px rgba(38,95,235,.34); }
.button-light { background: white; color: #0b1827; }
.hero { min-height: 650px; display: grid; grid-template-columns: 1.02fr .98fr; gap: 76px; align-items: center; padding-block: 58px 86px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .kicker { color: #8ca4bc; font-size: .74rem; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(120,245,197,.1); }
h1 { font-size: clamp(3.4rem, 6vw, 6.25rem); line-height: .96; margin: 0; letter-spacing: -.068em; font-weight: 770; }
h1 em { font-style: normal; color: #769dff; }
.hero-copy > p { max-width: 570px; color: #a8bacb; font-size: 1.15rem; line-height: 1.7; margin: 28px 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.text-link { color: #d4deea; font-size: .9rem; border-bottom: 1px solid #617286; padding-block: 8px 5px; }
button.text-link { border-inline: 0; border-top: 0; background: transparent; cursor: pointer; }
.trust-line { display: flex; gap: 24px; margin-top: 35px; color: #8094a8; font-size: .75rem; flex-wrap: wrap; }
.trust-line span::before { content: "✓"; color: var(--mint); margin-right: 7px; }
.signal-stage { min-height: 515px; position: relative; display: grid; place-items: center; }
.signal-stage::before { content: ""; position: absolute; inset: 8% 4%; background-image: radial-gradient(rgba(90,142,194,.28) 1px, transparent 1px); background-size: 21px 21px; mask-image: radial-gradient(circle, black, transparent 72%); }
.signal-glow { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(51,116,255,.27), rgba(51,116,255,.04) 55%, transparent 70%); filter: blur(4px); }
.signal-orbit { position: absolute; border: 1px solid rgba(97,171,255,.13); border-radius: 50%; }
.orbit-one { width: 420px; height: 420px; }
.orbit-two { width: 520px; height: 520px; }
.glass { border: 1px solid rgba(255,255,255,.11); background: linear-gradient(145deg, rgba(21,43,66,.94), rgba(8,23,39,.91)); box-shadow: 0 28px 75px rgba(0,0,0,.32); backdrop-filter: blur(18px); }
.vpn-card { width: min(370px, 78vw); min-height: 430px; border-radius: 30px; padding: 25px 28px; text-align: center; position: relative; z-index: 2; }
.vpn-card-head { display: flex; justify-content: space-between; align-items: center; }
.status-pill { font-size: .7rem; color: #b9c8d6; display: flex; align-items: center; gap: 7px; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(120,245,197,.08); }
.tiny-label { color: #657b91; font-size: .63rem; letter-spacing: .16em; font-weight: 800; }
.power-wrap { display: grid; place-items: center; height: 220px; }
.power-ring { width: 142px; height: 142px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #143667 0 45%, #112b50 46% 59%, rgba(72,135,255,.12) 60%); border: 1px solid rgba(111,164,255,.37); box-shadow: 0 0 0 15px rgba(54,113,229,.07), 0 0 65px rgba(56,130,255,.3), inset 0 0 30px rgba(63,140,255,.13); }
.power-ring svg { width: 47px; fill: none; stroke: #79afff; stroke-width: 1.5; stroke-linecap: round; }
.vpn-card h2 { font-size: 1.4rem; margin: 0 0 4px; letter-spacing: -.025em; }
.vpn-card > p { margin: 0; color: #7890a7; font-size: .85rem; }
.route-line { margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; color: #5f758b; font-size: .54rem; font-weight: 800; letter-spacing: .08em; }
.route-line i { height: 1px; flex: 1; background: #294360; }
.route-line b { color: #83a9ff; font-size: .55rem; }
.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-radius: 15px; }
.float-card strong, .float-card small { display: block; }
.float-card strong { font-size: .75rem; }
.float-card small { color: #7890a7; font-size: .64rem; margin-top: 2px; }
.float-location { left: -15px; top: 104px; }
.flag-dot { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #173765; color: #8eb6ff; font-size: .63rem; font-weight: 800; }
.float-lock { right: -13px; bottom: 82px; }
.float-lock svg { width: 29px; fill: none; stroke: var(--mint); stroke-width: 1.4; }
.metric-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.018); }
.metric-grid { min-height: 118px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.metric-grid > div { padding-left: 28px; border-left: 1px solid var(--line); }
.metric-grid > div:first-child { border-left: 0; padding-left: 0; }
.metric-grid strong, .metric-grid span { display: block; }
.metric-grid strong { font-size: 1.25rem; letter-spacing: -.02em; }
.metric-grid span { color: #71879c; font-size: .72rem; margin-top: 4px; }
.feature-section { padding-block: 110px 126px; }
.section-heading { display: grid; grid-template-columns: 1.5fr .7fr; gap: 80px; align-items: end; margin-bottom: 45px; }
.section-heading h2, .clients-section h2 { font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -.052em; margin: 12px 0 0; }
.section-heading > p { color: #8298ad; margin: 0 0 5px; }
.feature-grid { display: grid; grid-template-columns: 1.1fr .95fr .95fr; gap: 17px; }
.feature-card { min-height: 370px; border-radius: var(--radius); padding: 30px; background: var(--paper); color: var(--paper-ink); overflow: hidden; position: relative; }
.feature-dark { color: white; background: linear-gradient(150deg, #132942, #0a1b2e); border: 1px solid var(--line); }
.feature-icon { width: 38px; height: 38px; border-radius: 11px; background: rgba(42,103,239,.11); color: #376eef; display: grid; place-items: center; font-size: .72rem; font-weight: 800; }
.feature-dark .feature-icon { color: #8db4ff; background: rgba(79,139,255,.12); }
.feature-card h3 { max-width: 300px; font-size: 1.45rem; line-height: 1.2; letter-spacing: -.035em; margin: 36px 0 12px; }
.feature-card p { color: #5d6c7a; font-size: .88rem; max-width: 350px; }
.feature-dark p { color: #91a6b9; }
.key-visual { position: absolute; left: 30px; right: 30px; bottom: 28px; height: 62px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; display: flex; align-items: center; gap: 6px; padding: 16px; background: rgba(0,0,0,.17); }
.key-visual span { width: 5px; height: 5px; border-radius: 50%; background: #63809d; }
.key-visual b { margin-left: auto; color: #6d88a3; font-size: .57rem; letter-spacing: .12em; }
.policy-list, .device-stack { position: absolute; left: 30px; right: 30px; bottom: 26px; }
.policy-list { display: grid; gap: 8px; }
.policy-list span { background: white; border: 1px solid #dfe5eb; box-shadow: 0 5px 20px rgba(35,57,78,.06); border-radius: 10px; padding: 9px 11px; font-size: .72rem; font-weight: 680; }
.policy-list i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3bc68c; margin-right: 7px; }
.device-stack { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.device-stack span { min-height: 72px; background: #e8edf3; border-radius: 12px; display: grid; place-items: center; font-size: .66rem; font-weight: 750; color: #455564; }
.clients-section { background: #2f69ef; color: white; }
.clients-inner { min-height: 480px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; }
.clients-inner p { color: #c8d9ff; max-width: 600px; margin: 24px 0 30px; }
.clients-section .kicker { color: #bfd3ff; }
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.platform-grid span { min-height: 120px; padding: 20px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(5,31,92,.14); display: flex; flex-direction: column; justify-content: space-between; font-weight: 730; }
.platform-grid small { font-size: .65rem; color: #c0d3ff; font-weight: 600; }
.site-footer { min-height: 130px; display: flex; align-items: center; gap: 35px; color: #8397aa; font-size: .78rem; }
.site-footer p { margin-left: auto; }
.site-footer .brand { color: white; }

.policy-content { padding: 110px 0 90px; }
.policy-content > h1 { margin: 18px 0 20px; max-width: 760px; font-size: clamp(3rem, 7vw, 5.8rem); line-height: .95; letter-spacing: -.055em; }
.policy-content > h1 em { color: #91b3ff; font-style: normal; }
.policy-lead { max-width: 760px; color: #8fa3b7; font-size: 1.05rem; line-height: 1.75; }
.policy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 54px; }
.policy-grid article, .policy-callout { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: rgba(10,25,40,.72); }
.policy-grid h2, .policy-callout h2 { margin: 0 0 16px; font-size: 1.05rem; }
.policy-grid ul { margin: 0; padding-left: 20px; color: #8fa3b7; font-size: .85rem; line-height: 1.9; }
.policy-callout { margin-top: 18px; background: rgba(31,71,128,.18); }
.policy-callout p { margin: 0; max-width: 960px; color: #9cb0c3; font-size: .88rem; line-height: 1.75; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 70px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .trust-line { justify-content: center; }
  .signal-stage { margin-top: 25px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid > :first-child { grid-column: 1 / -1; }
  .clients-inner { grid-template-columns: 1fr; padding-block: 90px; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-header nav > a:not(.button) { display: none; }
  .site-header nav { gap: 0; }
  .site-header .button { padding-inline: 13px; }
  .brand small { display: none; }
  .hero { padding-top: 45px; }
  h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-copy > p { font-size: 1rem; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .button { width: 100%; }
  .trust-line { display: grid; gap: 8px; }
  .signal-stage { min-height: 495px; }
  .float-location { left: -4px; top: 55px; }
  .float-lock { right: -3px; bottom: 45px; }
  .metric-grid { grid-template-columns: 1fr 1fr; padding-block: 18px; gap: 18px 0; }
  .metric-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .feature-section { padding-block: 80px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid > :first-child { grid-column: auto; }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { flex-wrap: wrap; padding-block: 35px; gap: 16px; }
  .site-footer p { order: 3; margin: 0; width: 100%; }
  .policy-content { padding: 70px 0 55px; }
  .policy-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Authenticated application */
.app-page { min-height: 100vh; background: #07111f; }
.app-loading { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: #8195aa; }
.app-loading p { font-size: .84rem; }
.auth-view { min-height: 100vh; position: relative; overflow: hidden; background: radial-gradient(circle at 18% 25%, rgba(44,111,242,.2), transparent 34%), #07111f; }
.auth-view::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(125,165,206,.13) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(90deg, black, transparent 70%); }
.auth-brand { position: absolute; z-index: 2; left: 34px; top: 28px; }
.auth-panel { width: min(1120px, calc(100% - 44px)); min-height: 100vh; margin: auto; display: grid; grid-template-columns: 1fr 440px; gap: 90px; align-items: center; position: relative; z-index: 1; }
.auth-copy h1 { font-size: clamp(3rem, 6vw, 5.7rem); }
.auth-copy > p { color: #93a8bc; max-width: 540px; font-size: 1.05rem; margin: 28px 0; }
.auth-security { display: grid; gap: 10px; color: #8599ad; font-size: .77rem; }
.auth-security span::before { content: "✓"; color: var(--mint); margin-right: 9px; }
.login-card { padding: 38px; border-radius: 24px; background: #f7f9fc; color: #102033; box-shadow: 0 35px 90px rgba(0,0,0,.36); display: grid; gap: 20px; }
.login-card h2 { margin: 9px 0 3px; font-size: 1.75rem; letter-spacing: -.035em; }
.login-card div > p { margin: 0; color: #748292; font-size: .85rem; }
.login-card .tiny-label { color: #4775df; }
label { display: grid; gap: 7px; font-size: .74rem; color: #66778a; font-weight: 720; }
input, select { width: 100%; min-height: 45px; padding: 0 13px; border: 1px solid #d8e0e8; background: white; color: #102033; border-radius: 10px; outline: none; }
input:focus, select:focus { border-color: #3976f3; box-shadow: 0 0 0 3px rgba(57,118,243,.13); }
.form-error { margin: -4px 0; padding: 10px 12px; border-radius: 9px; background: #fff0f1; color: #b12432; font-size: .76rem; }
.auth-help { text-align: center; color: #5e6e80; font-size: .74rem; }
.dashboard { min-height: 100vh; }
.app-topbar { height: 74px; padding: 0 24px; border-bottom: 1px solid #dce3e8; background: rgba(255,255,255,.97); backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; }
.topbar-brand { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; }
.topbar-brand:focus-visible { outline: 2px solid #3575ff; outline-offset: 2px; }
.app-top-actions { position: relative; display: flex; align-items: center; }
.topbar-tools { height: 44px; display: flex; align-items: center; gap: 12px; }
.topbar-control { position: relative; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #17262f; display: grid; place-items: center; cursor: pointer; transition: color .16s ease, background .16s ease; }
.topbar-control:hover, .topbar-control[aria-expanded="true"] { color: #0d1921; background: #eef2f4; }
.topbar-control:focus-visible { outline: 2px solid #3575ff; outline-offset: 1px; }
.topbar-visual { width: 22px; height: 22px; flex: 0 0 22px; }
svg.topbar-visual { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-visual { position: relative; overflow: hidden; display: grid; place-items: center; border-radius: 50%; background: #f06a4d; color: white; font-size: .58rem; font-weight: 820; line-height: 1; }
.profile-avatar-image { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.profile-avatar-fallback { display: grid; width: 100%; height: 100%; place-items: center; }
.topbar-popover { position: absolute; top: calc(100% + 12px); right: 0; z-index: 45; width: 270px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #0e2033; color: #f6f8fb; box-shadow: 0 22px 60px rgba(0,0,0,.38); }
.notifications-popover { right: 96px; }
.topbar-popover strong, .topbar-popover small { display: block; }
.topbar-popover > strong { margin-top: 9px; font-size: .83rem; }
.topbar-popover p { margin: 4px 0 0; color: #7890a6; font-size: .71rem; }
.profile-summary { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.profile-summary-avatar { position: relative; overflow: hidden; width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: #f06a4d; color: white; font-size: .65rem; font-weight: 820; }
.profile-summary strong { font-size: .8rem; }
.profile-summary small { color: #758ba0; font-size: .66rem; margin-top: 2px; }
.profile-action { width: 100%; min-height: 40px; margin-top: 8px; padding: 0 8px; border: 0; border-radius: 9px; background: transparent; color: #9badbd; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.profile-action:hover { background: rgba(255,255,255,.045); color: #e1e8ef; }
.profile-action svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); background: rgba(255,255,255,.035); color: #8da1b4; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.icon-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 74px); }
.app-sidebar { border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; position: sticky; top: 74px; height: calc(100vh - 74px); }
.app-sidebar nav { display: grid; gap: 5px; }
.nav-item { width: 100%; min-height: 44px; border: 0; background: transparent; color: #8397aa; border-radius: 10px; display: flex; align-items: center; gap: 11px; padding: 0 13px; font-size: .8rem; font-weight: 650; cursor: pointer; text-align: left; }
.nav-item:hover { background: rgba(255,255,255,.035); color: #c7d2dd; }
.nav-item.active { background: #122844; color: #91b3ff; }
.nav-item svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-foot { margin-top: auto; display: grid; gap: 14px; padding: 14px 11px; border-top: 1px solid var(--line); color: #5f768b; font-size: .66rem; }
.sidebar-protocol { display: flex; align-items: center; gap: 7px; }
.sidebar-protocol i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.app-content { min-width: 0; padding: 34px; background: radial-gradient(circle at 50% -25%, rgba(43,96,190,.09), transparent 35%), #091421; }
.view-shell { max-width: 1160px; margin: 0 auto; }
.view-head { min-height: 66px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.view-head h1 { font-size: 1.9rem; line-height: 1.1; letter-spacing: -.035em; margin: 0 0 7px; }
.view-head p { margin: 0; color: #758ba0; font-size: .82rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(370px, 1.15fr) minmax(300px, .85fr); gap: 18px; }
.app-card { border: 1px solid var(--line); background: rgba(13,28,44,.86); border-radius: 18px; padding: 22px; }
.card-spaced { margin-top: 18px; }
.boundary-copy { line-height: 1.7; }
.app-card h2 { font-size: .86rem; margin: 0; letter-spacing: -.015em; }
.app-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.meta-label { color: #62798e; font-size: .64rem; font-weight: 790; letter-spacing: .09em; text-transform: uppercase; }
.connection-card { grid-row: span 2; min-height: 510px; display: flex; flex-direction: column; align-items: center; text-align: center; background: radial-gradient(circle at 50% 35%, rgba(43,105,235,.16), transparent 36%), rgba(13,28,44,.9); }
.connection-card .app-card-head { width: 100%; }
.connection-orb { width: 170px; height: 170px; border: 1px solid rgba(105,158,255,.3); border-radius: 50%; display: grid; place-items: center; margin: 30px 0 24px; background: radial-gradient(circle, #18396a 0 44%, #102b4f 45% 59%, rgba(57,118,243,.1) 60%); box-shadow: 0 0 0 18px rgba(45,107,235,.04), 0 0 75px rgba(40,112,255,.25); }
.connection-orb.connected { border-color: rgba(102,240,191,.5); box-shadow: 0 0 0 18px rgba(82,220,175,.05), 0 0 75px rgba(67,225,179,.18); }
.connection-orb svg { width: 54px; fill: none; stroke: #8bb6ff; stroke-width: 1.35; stroke-linecap: round; }
.connection-orb.connected svg { stroke: var(--mint); }
.connection-card h2.connection-title { font-size: 1.45rem; margin-bottom: 3px; }
.connection-copy { color: #6f8599; font-size: .78rem; margin: 0 0 24px; }
.connection-selectors { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; text-align: left; }
.connection-selectors select { background: #0b1a2a; color: #c4d1de; border-color: var(--line); }
.connection-action { width: 100%; }
.connection-action[disabled] { opacity: .48; cursor: not-allowed; transform: none; }
.connection-note { min-height: 20px; margin-top: 11px; color: #71879b; font-size: .69rem; }
.policy-stack { display: grid; gap: 10px; }
.policy-row { min-height: 58px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 11px; }
.policy-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(61,121,245,.1); color: #7ca6ff; }
.policy-icon svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.policy-row div:nth-child(2) { flex: 1; }
.policy-row strong, .policy-row small { display: block; }
.policy-row strong { font-size: .76rem; }
.policy-row small { color: #687f93; font-size: .64rem; margin-top: 2px; }
.switch { width: 38px; height: 22px; border: 0; border-radius: 20px; background: #26394c; padding: 3px; cursor: pointer; }
.switch span { display: block; width: 16px; height: 16px; border-radius: 50%; background: #8093a4; transition: transform .2s, background .2s; }
.switch.on { background: #275ecf; }
.switch.on span { transform: translateX(16px); background: white; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.stat { min-height: 76px; border-radius: 12px; background: rgba(255,255,255,.028); padding: 13px; }
.stat strong, .stat small { display: block; }
.stat strong { font-size: 1.15rem; letter-spacing: -.03em; }
.stat small { color: #6d8397; font-size: .62rem; margin-top: 5px; }
.list-stack { display: grid; gap: 10px; }
.list-row { min-height: 70px; border: 1px solid var(--line); background: rgba(13,28,44,.8); border-radius: 14px; padding: 13px 15px; display: flex; align-items: center; gap: 12px; }
.list-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #122b48; color: #84aaff; font-size: .68rem; font-weight: 800; }
.list-copy { min-width: 0; flex: 1; }
.list-copy strong, .list-copy small { display: block; }
.list-copy strong { font-size: .8rem; }
.list-copy small { color: #6c8296; font-size: .66rem; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-chip { padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.04); color: #7f93a5; font-size: .62rem; font-weight: 720; text-transform: capitalize; }
.status-chip.active, .status-chip.connected, .status-chip.healthy { color: #74e9bd; background: rgba(67,210,158,.09); }
.status-chip.provisioning, .status-chip.connecting, .status-chip.pending { color: #e2bc6a; background: rgba(217,165,53,.09); }
.danger-link { border: 0; background: transparent; color: #cb7181; cursor: pointer; font-size: .68rem; }
.danger-card { border-color: rgba(221,91,110,.3); background: linear-gradient(145deg, rgba(62,23,35,.44), rgba(13,28,44,.9)); }
.button-danger { background: #b83349; color: white; border: 1px solid #d7566b; box-shadow: 0 8px 24px rgba(184,51,73,.2); }
.button-danger:hover { background: #ca3b53; }
.empty-card { min-height: 250px; display: grid; place-content: center; justify-items: center; text-align: center; border: 1px dashed rgba(255,255,255,.13); border-radius: 17px; color: #7890a6; }
.empty-card h2 { color: #d3dde6; font-size: 1rem; margin: 18px 0 5px; }
.empty-card p { max-width: 420px; font-size: .75rem; margin: 0 0 18px; }
.empty-symbol { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #112b47; color: #80a7ff; font-weight: 800; }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.settings-list { display: grid; gap: 18px; }
.setting-control { display: grid; grid-template-columns: 1fr 180px; gap: 20px; align-items: center; }
.setting-control strong, .setting-control small { display: block; }
.setting-control strong { font-size: .8rem; }
.setting-control small { color: #6d8397; font-size: .66rem; margin-top: 3px; }
.setting-control select { background: #0a1929; color: #c0cedb; border-color: var(--line); min-height: 40px; }
.posture-list { display: grid; gap: 12px; }
.posture-item { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.posture-item > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: rgba(76,213,163,.1); color: #6fe6b8; font-size: .67rem; }
.posture-item strong, .posture-item small { display: block; }
.posture-item strong { font-size: .76rem; }
.posture-item small { color: #6e8498; font-size: .65rem; margin-top: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-two { grid-column: 1 / -1; }
.form-note { padding: 11px 13px; border-radius: 10px; background: rgba(57,118,243,.08); color: #7891ad; font-size: .7rem; }
.dialog-card { width: min(520px, calc(100% - 28px)); border: 1px solid var(--line); border-radius: 21px; background: #0d1d2e; color: white; padding: 26px; box-shadow: 0 30px 100px rgba(0,0,0,.6); }
.dialog-card::backdrop { background: rgba(2,8,15,.72); backdrop-filter: blur(5px); }
.dialog-card h2 { margin: 8px 0 0; letter-spacing: -.035em; }
.dialog-card p { color: #8297aa; font-size: .8rem; }
.dialog-card label { color: #8598aa; margin-block: 14px; }
.dialog-card input, .dialog-card select { background: #091725; color: #d2dde7; border-color: var(--line); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; }
.dialog-head .icon-button { font-size: 1.2rem; }
.dialog-success { color: #70e5b7 !important; }
.utility-dialog { width: min(560px, calc(100% - 28px)); }
.utility-search-label { margin-top: 20px; }
.utility-search-results { display: grid; gap: 7px; margin-top: 13px; }
.utility-search-results button, .utility-links button, .utility-links a { width: 100%; min-height: 50px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); color: #c8d5e1; text-align: left; cursor: pointer; }
.utility-search-results button:hover, .utility-search-results button:focus-visible, .utility-links button:hover, .utility-links a:hover { border-color: rgba(110,157,255,.45); background: rgba(57,118,243,.08); }
.utility-search-results span, .utility-search-results small { display: block; }
.utility-search-results span { font-size: .78rem; font-weight: 720; }
.utility-search-results small { margin-top: 2px; color: #6f8599; font-size: .64rem; }
.utility-links { display: grid; gap: 8px; margin-top: 18px; }
.utility-links button, .utility-links a { display: flex; align-items: center; font-size: .75rem; font-weight: 680; }
#enroll-code, #node-enroll-code { display: block; padding: 17px; margin: 15px 0; border-radius: 12px; background: #07131f; border: 1px solid rgba(98,153,255,.2); color: #a8c3ff; word-break: break-all; font-size: .85rem; }
.operations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.operations-grid .app-card { min-height: 112px; display: grid; align-content: center; gap: 5px; }
.operations-grid strong { font-size: 1.55rem; letter-spacing: -.04em; }
.operations-grid small { color: #6d8397; font-size: .66rem; }
.admin-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.audit-list { display: grid; gap: 4px; }
.audit-row { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: .7rem; }
.audit-row:last-child { border-bottom: 0; }
.audit-row small { color: #60768a; white-space: nowrap; }
.node-row { flex-wrap: wrap; }
.node-row .text-link { white-space: nowrap; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; max-width: 360px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: #13263a; color: #dce5ed; box-shadow: 0 20px 55px rgba(0,0,0,.35); font-size: .75rem; }

html[data-theme="light"] { color-scheme: light; --bg: #f4f7fb; --ink: #142437; --muted: #60758a; --line: rgba(24,48,76,.15); }
html[data-theme="light"] .app-page { background: #eef3f8; color: #142437; }
html[data-theme="light"] .app-sidebar { background: #f7f9fc; }
html[data-theme="light"] .app-content { background: radial-gradient(circle at 50% -25%, rgba(43,96,190,.1), transparent 35%), #eef3f8; }
html[data-theme="light"] .app-card, html[data-theme="light"] .list-row { background: rgba(255,255,255,.92); }
html[data-theme="light"] .connection-card { background: radial-gradient(circle at 50% 35%, rgba(43,105,235,.12), transparent 36%), rgba(255,255,255,.96); }
html[data-theme="light"] .connection-selectors select, html[data-theme="light"] .setting-control select { background: #fff; color: #24394e; }
html[data-theme="light"] .nav-item:hover { background: rgba(43,84,132,.07); color: #314a63; }
html[data-theme="light"] .nav-item.active { background: #e1eaff; color: #285dcc; }
html[data-theme="light"] .policy-row, html[data-theme="light"] .stat { background: rgba(30,66,106,.035); border-color: rgba(24,48,76,.1); }
html[data-theme="light"] .empty-card h2 { color: #294057; }
html[data-theme="light"] .topbar-popover, html[data-theme="light"] .dialog-card { background: #fff; color: #142437; box-shadow: 0 22px 60px rgba(31,54,79,.18); }
html[data-theme="light"] .dialog-card input, html[data-theme="light"] .dialog-card select { background: #fff; color: #24394e; }
html[data-theme="light"] .utility-search-results button, html[data-theme="light"] .utility-links button, html[data-theme="light"] .utility-links a { background: #f8fafc; color: #263d54; }
html[data-theme="light"] .profile-action { color: #5f7387; }
html[data-theme="light"] .profile-action:hover { background: rgba(42,92,153,.07); color: #1d3854; }
html[data-theme="light"] .toast { background: #fff; color: #213a52; box-shadow: 0 20px 55px rgba(31,54,79,.2); }

@media (max-width: 950px) {
  .auth-panel { grid-template-columns: 1fr; gap: 35px; padding: 130px 0 60px; }
  .auth-copy { text-align: center; }
  .auth-copy > p { margin-inline: auto; }
  .auth-security { justify-content: center; }
  .login-card { width: min(440px, 100%); margin: auto; }
  .app-layout { grid-template-columns: 76px 1fr; }
  .app-sidebar { padding-inline: 9px; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item span { display: none; }
  .sidebar-foot { display: none; }
  .dashboard-grid, .security-grid { grid-template-columns: 1fr; }
  .operations-grid { grid-template-columns: 1fr 1fr; }
  .admin-detail-grid { grid-template-columns: 1fr; }
  .connection-card { grid-row: auto; }
}

@media (max-width: 660px) {
  .app-topbar { padding: 0 8px; }
  .topbar-tools { gap: 4px; }
  .app-layout { display: block; padding-bottom: 68px; }
  .app-sidebar { position: fixed; z-index: 30; inset: auto 0 0; height: 64px; background: #081522; border: 1px solid var(--line); padding: 7px; }
  .app-sidebar nav { display: flex; justify-content: space-around; }
  .nav-item { width: 50px; min-height: 48px; }
  .app-content { padding: 23px 14px; }
  .view-head { display: grid; }
  .connection-selectors, .security-grid, .form-grid { grid-template-columns: 1fr; }
  .span-two { grid-column: auto; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid > :last-child { grid-column: 1 / -1; }
  .setting-control { grid-template-columns: 1fr; gap: 9px; }
  .operations-grid { grid-template-columns: 1fr 1fr; }
  .auth-copy h1 { font-size: 3.1rem; }
  .auth-panel { width: min(100% - 28px, 1120px); }
  .login-card { padding: 27px 22px; }
}

@media(max-width:760px){.signal-orbit.orbit-one{width:min(420px,85vw);height:min(420px,85vw)}.signal-orbit.orbit-two{width:min(520px,95vw);height:min(520px,95vw)}}
@media(max-width:1024px){.signal-orbit.orbit-one,.signal-orbit.orbit-two{max-width:80vw;max-height:80vw}}
@media(max-width:1024px){.signal-stage{overflow:clip}.signal-orbit.orbit-one,.signal-orbit.orbit-two{max-width:100%;aspect-ratio:1;height:auto}}
