:root {
  color-scheme: light;
  --page: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #f6f8fc;
  --ink: #182035;
  --muted: #657088;
  --line: #e9edf5;
  --accent: #315efb;
  --accent-soft: #edf1ff;
  --accent-ink: #3159dd;
  --green: #147457;
  --green-soft: #eaf7f1;
  --shadow: 0 6px 24px -16px #1e31572e;
  --nav: rgb(255 255 255 / 88%);
  --ring: #edf0f7;
  --prism-tint: 91 123 221;
  --prism-light: 255 255 255;
  --safe-top: calc(var(--tg-safe-area-inset-top, env(safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: calc(var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)) + var(--tg-content-safe-area-inset-bottom, 0px));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-synthesis: none;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #101218;
  --surface: #1a1e28;
  --surface-soft: #202530;
  --ink: #f0f3fb;
  --muted: #98a2b7;
  --line: #2b3140;
  --accent: #6687ff;
  --accent-soft: #252f51;
  --accent-ink: #a4b7ff;
  --green: #8ed7bc;
  --green-soft: #223d35;
  --shadow: 0 8px 32px -18px #00000080;
  --nav: rgb(24 28 38 / 90%);
  --ring: #2c3343;
  --prism-tint: 112 139 231;
  --prism-light: 154 183 255;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--page); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; overflow-x: clip; color: var(--ink); background: var(--page); }
button, input, a { font: inherit; }
button, a { touch-action: manipulation; }
button { color: inherit; }
button, a, input { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
a { color: inherit; text-decoration: none; }
.payment-link { display: inline-flex; gap: 8px; align-items: center; color: var(--accent-ink); background: none; border: 0; padding: 12px 0; text-decoration: underline; text-underline-offset: 4px; line-height: 1.5; text-align: left; }
.payment-link:disabled { opacity: .55; }
.plan-meta { margin: 12px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.plan-price { margin: 0 0 20px; font-size: 34px; font-weight: 700; letter-spacing: -1px; }
button, a { -webkit-user-select: none; user-select: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: 36px; letter-spacing: -1.4px; line-height: 1.12; font-weight: 740; }
h2 { font-size: 22px; letter-spacing: -.6px; line-height: 1.23; font-weight: 700; }
h3 { font-size: 18px; letter-spacing: -.35px; font-weight: 680; }
button span, a span { min-width: 0; }
.icon { display: block; width: 22px; height: 22px; flex: 0 0 auto; }
.prism-app { position: relative; isolation: isolate; }
.prism-atmosphere { position: fixed; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; user-select: none; }
.ambient-light { position: absolute; width: 330px; height: 330px; top: -100px; left: calc(50% - 40px); border-radius: 50%; background: radial-gradient(circle, rgb(var(--prism-tint) / .12), transparent 67%); animation: light-drift 19s ease-in-out infinite alternate; }
.prism-scene { --prism-size: 100px; display: block; position: relative; width: var(--prism-size); height: calc(var(--prism-size) * 1.4142); perspective: 700px; pointer-events: none; }
.prism-body { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transform: rotateX(-14deg) rotateY(34deg) rotateZ(-16deg); animation: prism-turn 32s linear infinite; }
.prism-facet { position: absolute; display: block; width: 100%; height: calc(var(--prism-size) * .866); left: 0; top: 50%; margin-top: calc(var(--prism-size) * -.866); transform-origin: center bottom; clip-path: polygon(50% 0, 100% 100%, 0 100%); backface-visibility: hidden; background: linear-gradient(145deg, rgb(var(--prism-light) / .46), rgb(var(--prism-tint) / var(--facet-shade))); transform: rotateY(var(--facet-turn)) translateZ(calc(var(--prism-size) * .5)) rotateX(35.264deg); }
.prism-facet.lower { background: linear-gradient(25deg, rgb(var(--prism-tint) / .34), rgb(var(--prism-light) / .1)); transform: rotateY(var(--facet-turn)) translateZ(calc(var(--prism-size) * .5)) rotateX(-35.264deg) rotateZ(180deg); }
.prism-facet::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 49.5%, rgb(var(--prism-light) / .28) 50%, transparent 50.5%); }
.ambient-prism { position: absolute; opacity: .55; }
.prism-one { --prism-size: 168px; top: 80px; left: calc(50% + 103px); transform: rotate(-11deg); }
.prism-two { --prism-size: 112px; top: 49%; right: calc(50% + 133px); transform: rotate(21deg); opacity: .36; }
.prism-two .prism-body { animation-duration: 39s; animation-direction: reverse; animation-delay: -11s; }
.prism-three { --prism-size: 64px; bottom: 13%; left: calc(50% + 173px); opacity: .38; }
.prism-three .prism-body { animation-duration: 28s; animation-delay: -17s; }
.app-shell { position: relative; width: 100%; max-width: 488px; margin: 0 auto; padding: calc(22px + var(--safe-top)) 24px 0; }
.brand-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 34px; }
.wordmark { display: flex; align-items: center; gap: 8px; font-size: 20px; letter-spacing: -.8px; font-weight: 730; }
.brand-symbol { position: relative; overflow: hidden; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 10px 10px 10px 3px; background: var(--accent); color: #fff; font-size: 25px; line-height: 1; font-weight: 750; padding-bottom: 5px; transform: rotate(-7deg); box-shadow: 0 4px 12px -7px var(--accent); }
.brand-symbol::after { content: ''; position: absolute; inset: 0; background: rgb(255 255 255 / .18); clip-path: polygon(0 0, 100% 0, 0 100%); pointer-events: none; }
.brand-descriptor { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); letter-spacing: .25px; }
.brand-descriptor::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.main-content { position: relative; isolation: isolate; padding-bottom: 32px; }
.main-content.with-navigation { padding-bottom: calc(112px + var(--safe-bottom)); }
.page-content { display: flex; flex-direction: column; gap: 18px; }
.page-heading { margin: 0 0 6px; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.4; letter-spacing: 1.5px; }
.page-heading .eyebrow { margin-bottom: 10px; }
.page-subtitle { max-width: 330px; margin-top: 13px; color: var(--muted); font-size: 15px; line-height: 1.55; letter-spacing: -.2px; }
.identity-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 7px; }
.identity-text { min-width: 0; }
.identity-text .eyebrow { margin-bottom: 8px; }
.identity-text h1 { overflow-wrap: anywhere; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 54px; height: 54px; border-radius: 19px; transform: rotate(5deg); background: linear-gradient(135deg, var(--accent-soft), var(--surface)); border: 1px solid var(--line); color: var(--accent-ink); font-size: 19px; font-weight: 700; letter-spacing: -.6px; box-shadow: 0 6px 14px -10px rgb(var(--prism-tint) / .45); }
.card { border: 1px solid var(--line); background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-topline h2 { margin-top: 6px; }
.connection-card { position: relative; isolation: isolate; overflow: hidden; padding: 23px 24px 20px; border: 1px solid rgb(255 255 255 / .16); border-radius: 28px; background: linear-gradient(120deg, #234bdd, #3b58d2); color: #fff; box-shadow: 0 18px 35px -21px #244bd0aa, inset 0 1px 0 rgb(255 255 255 / .12); }
.connection-card > :not(.hero-prism) { position: relative; z-index: 1; }
.connection-card::before { content: ''; position: absolute; width: 230px; height: 300px; right: -95px; top: -40px; background: rgb(255 255 255 / .035); clip-path: polygon(55% 0, 100% 42%, 38% 100%, 0 42%); transform: rotate(15deg); pointer-events: none; }
.connection-card::after { content: ''; position: absolute; inset: -50% -60%; background: linear-gradient(110deg, transparent 43%, rgb(255 255 255 / .07) 50%, transparent 57%); pointer-events: none; animation: hero-light 14s ease-in-out infinite; }
.hero-prism { --prism-size: 114px; --prism-tint: 192 212 255; --prism-light: 255 255 255; position: absolute; top: 28px; right: -4px; opacity: .68; transform: rotate(-12deg); }
.hero-prism .prism-body { animation-duration: 24s; animation-delay: -5s; }
.connection-card > .card-topline > .icon { width: 25px; height: 25px; opacity: .76; }
.connection-card h2 { font-size: 31px; line-height: 1.1; letter-spacing: -1px; white-space: pre-line; margin-top: 24px; max-width: 290px; font-weight: 720; }
.connection-card.inactive { background: linear-gradient(130deg, #e8edff 0%, #e4eaff 65%, #d6e0ff 100%); color: #2545a0; box-shadow: none; }
.connection-card.inactive .hero-prism { --prism-tint: 72 110 220; opacity: .42; }
:root[data-theme="dark"] .connection-card.inactive { background: linear-gradient(130deg, #253153, #2c3c69); color: #d3ddff; }
:root[data-theme="dark"] .connection-card.inactive .hero-prism { --prism-tint: 160 184 255; }
.connection-card.unavailable { background: linear-gradient(130deg, #49536d, #6b7895); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 100px; background: var(--surface-soft); color: var(--muted); font-size: 11px; line-height: 1.2; font-weight: 600; padding: 8px 10px; max-width: 100%; }
.status-dot { flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill.active { color: var(--green); background: var(--green-soft); }
.connection-card .status-pill { color: inherit; background: rgb(17 36 103 / 20%); font-size: 10px; }
.connection-card.inactive .status-pill { background: rgb(255 255 255 / 45%); }
:root[data-theme="dark"] .connection-card.inactive .status-pill { background: rgb(255 255 255 / 7%); }
.connection-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 21px; margin-top: 15px; border-top: 1px solid rgb(255 255 255 / 20%); }
.connection-footer > span { font-size: 11px; line-height: 1.5; max-width: 165px; }
.connection-card.inactive .connection-footer { border-top-color: rgb(75 107 209 / 12%); }
.hero-action { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 6px; border: 0; border-radius: 14px; padding: 0 12px; min-height: 44px; color: inherit; background: rgb(17 36 103 / 20%); font-size: 12px; font-weight: 650; }
.hero-action .icon { width: 16px; height: 16px; order: 1; }
.connection-card.inactive .hero-action { background: rgb(255 255 255 / 58%); }
:root[data-theme="dark"] .connection-card.inactive .hero-action { background: rgb(255 255 255 / 8%); }
.traffic-card { position: relative; padding: 25px 24px 0; overflow: hidden; }
.traffic-card.is-updating::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); pointer-events: none; animation: data-scan 1.3s ease-in-out infinite; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; padding: 11px; background: var(--surface); color: var(--muted); }
.icon-button .icon { width: 20px; height: 20px; }
.icon-button.is-loading .icon { animation: spin 1s linear infinite; }
.traffic-figure { width: 210px; height: 210px; position: relative; margin: 17px auto 19px; }
.traffic-ring { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-track { stroke: var(--ring); }
.ring-value { stroke: var(--accent); stroke-linecap: round; }
.traffic-figure:not(.has-data) .ring-track { stroke-dasharray: 4 5; opacity: .9; }
.traffic-figure:not(.has-data) .ring-value { display: none; }
.traffic-caption { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 25px; text-align: center; }
.traffic-label { color: var(--muted); font-size: 12px; }
.traffic-value { display: flex; align-items: baseline; justify-content: center; gap: 5px; white-space: nowrap; max-width: 100%; font-variant-numeric: tabular-nums; }
.traffic-value strong { font-size: 39px; font-weight: 730; letter-spacing: -1.8px; line-height: 1.15; }
.traffic-value > span { font-size: 15px; font-weight: 600; color: var(--muted); }
.traffic-limit { font-size: 11px; line-height: 1.3; color: var(--muted); }
.traffic-directions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 22px; }
.traffic-direction { display: flex; gap: 10px; align-items: center; min-width: 0; }
.traffic-direction + .traffic-direction { padding-left: 15px; border-left: 1px solid var(--line); }
.direction-icon { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.direction-icon.up { background: var(--surface-soft); color: var(--muted); }
.direction-icon .icon { width: 16px; height: 16px; }
.direction-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.traffic-direction strong { display: block; font-size: 14px; line-height: 1.3; font-weight: 650; font-variant-numeric: tabular-nums; }
.update-caption { border-top: 1px solid var(--line); padding: 14px 0; text-align: center; color: var(--muted); font-size: 10px; line-height: 1.5; }
.shortcut-card { min-height: 66px; display: flex; align-items: center; gap: 12px; padding: 15px 19px; text-align: left; color: var(--ink); font-size: 13px; font-weight: 600; border-radius: 20px; }
.shortcut-card > .icon:first-child { color: var(--accent-ink); }
.shortcut-card > .icon:last-child { margin-left: auto; color: var(--muted); width: 16px; height: 16px; }
.profile-meta { font-size: 10px; text-align: center; color: var(--muted); overflow-wrap: anywhere; padding-top: 2px; }
.bottom-navigation { position: fixed; z-index: 10; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 488px; padding: 14px 24px calc(14px + var(--safe-bottom)); background: linear-gradient(transparent, var(--page) 45%); }
.navigation-tabs { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(var(--tab-count, 4), minmax(0, 1fr)); gap: 3px; padding: 7px; background: var(--nav); border: 1px solid var(--line); border-radius: 25px; box-shadow: 0 8px 32px -12px #172a4e30; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.navigation-indicator { position: absolute; z-index: -1; top: 7px; bottom: 7px; left: 7px; width: calc((100% - 14px - (var(--tab-count, 4) - 1) * 3px) / var(--tab-count, 4)); border-radius: 19px; background: var(--accent-soft); box-shadow: inset 0 1px 0 rgb(var(--prism-light) / .3); transform: translateX(calc(var(--tab-index, 0) * (100% + 3px))); transition: transform .48s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.navigation-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 8px 3px; min-height: 57px; background: transparent; border: 0; border-radius: 19px; font-size: 10px; font-weight: 550; color: var(--muted); transition: color .25s ease, transform .25s ease; }
.navigation-tab .icon { width: 21px; height: 21px; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.navigation-tab[aria-selected="true"] { color: var(--accent-ink); }
.navigation-tab[aria-selected="true"] .icon { stroke-width: 2; transform: translateY(-1px) scale(1.06); }
.button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 51px; border: 0; border-radius: 16px; padding: 13px 18px; width: 100%; font-size: 14px; line-height: 1.4; font-weight: 650; text-align: center; }
.button .icon { width: 19px; height: 19px; }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 18px -14px #315efb99; }
:root[data-theme="dark"] .button-primary { background: #4d72fc; }
.button-secondary { background: var(--accent-soft); color: var(--accent-ink); }
.subscription-card { padding: 24px; }
.section-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 15px; background: var(--accent-soft); color: var(--accent-ink); }
.subscription-card > h2 { margin-top: 24px; margin-bottom: 20px; font-size: 21px; }
.detail-list { width: 100%; }
.detail-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.4; }
.detail-row dt { color: var(--muted); }
.detail-row dd { font-weight: 600; text-align: right; }
.detail-row:last-child { padding-bottom: 0; }
.coming-soon { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 16px 12px; }
.coming-art { width: 118px; height: 118px; display: grid; place-items: center; position: relative; margin: 0 auto 15px; background: radial-gradient(circle, var(--accent-soft), transparent 70%); }
.coming-art > .icon { width: 65px; height: 65px; color: var(--accent-ink); stroke-width: .75; transform: rotate(-15deg); animation: globe-float 9s ease-in-out infinite; }
.art-spark { display: block; position: absolute; width: 7px; height: 7px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); opacity: .7; }
.spark-one { right: 18px; top: 16px; }
.spark-two { left: 11px; bottom: 21px; width: 4px; height: 4px; opacity: .4; }
.art-spark { animation: spark-turn 7s ease-in-out infinite; }
.spark-two { animation-delay: -3s; }
.small-badge { display: inline-flex; border: 1px solid var(--line); color: var(--muted); border-radius: 100px; padding: 5px 9px; font-size: 8px; font-weight: 700; letter-spacing: 1px; margin-bottom: 13px; }
.coming-soon h2 { font-size: 24px; letter-spacing: -.8px; }
.coming-soon p { max-width: 295px; margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.credential-card { padding: 24px; }
.credential-card > .card-topline > .icon { color: var(--accent-ink); width: 18px; height: 18px; }
.credential-card h2 { white-space: pre-line; font-size: 26px; line-height: 1.17; letter-spacing: -.9px; margin-top: 16px; margin-bottom: 21px; }
.subscription-field { width: 100%; min-width: 0; min-height: 48px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); color: var(--muted); font-size: 12px; line-height: 1.5; text-overflow: ellipsis; margin-bottom: 12px; }
.credential-note { display: flex; justify-content: center; text-align: center; color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 13px; }
.access-notice { padding: 25px; }
.access-notice h2 { margin-top: 17px; }
.access-notice p { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 10px; margin-bottom: 19px; }
.setup-section { margin-top: 10px; }
.setup-heading { display: flex; align-items: center; gap: 9px; }
.setup-heading h2 { font-size: 19px; letter-spacing: -.5px; }
.step-number { display: grid; place-items: center; flex: 0 0 auto; width: 23px; height: 23px; border-radius: 50%; color: var(--accent-ink); background: var(--accent-soft); font-size: 11px; font-weight: 700; }
.section-description { color: var(--muted); margin: 10px 0 17px; font-size: 13px; line-height: 1.55; }
.client-list { display: flex; flex-direction: column; gap: 12px; }
.client-card { border-radius: 22px; padding: 19px 19px 0; }
.client-identity { display: flex; gap: 13px; align-items: center; }
.client-identity > div { min-width: 0; }
.client-identity p { color: var(--muted); font-size: 11px; line-height: 1.45; margin-top: 6px; max-width: 240px; }
.client-mark { display: grid; place-items: center; flex: 0 0 auto; width: 45px; height: 45px; border-radius: 14px; font-size: 28px; font-weight: 750; letter-spacing: -1px; }
.client-mark.happ { background: #efeffd; color: #675bd4; }
.client-mark.incy { background: #e6f6ef; color: #3c9270; font-style: italic; font-family: Georgia, serif; font-size: 36px; padding-right: 3px; }
:root[data-theme="dark"] .client-mark.happ { background: #322e4c; color: #bcb2ff; }
:root[data-theme="dark"] .client-mark.incy { background: #253b35; color: #8bd4b3; }
.client-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); margin-top: 17px; }
.client-link { display: inline-flex; align-items: center; gap: 7px; min-height: 48px; font-size: 11px; font-weight: 600; color: var(--muted); }
.client-link .icon { width: 13px; height: 13px; }
.client-link-accent { color: var(--accent-ink); }
.setup-checklist { list-style: none; counter-reset: setup; padding: 0; margin: 15px 0 0; }
.setup-checklist li { counter-increment: setup; position: relative; padding: 0 0 17px 32px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.setup-checklist li::before { content: counter(setup); position: absolute; left: 4px; top: 1px; width: 15px; height: 20px; color: var(--muted); opacity: .7; font-size: 10px; font-weight: 600; text-align: center; }
.setup-checklist li:not(:last-child)::after { content: ''; position: absolute; top: 24px; bottom: 5px; left: 11px; width: 1px; background: var(--line); }
.gate-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 0 25px; }
.gate-visual { position: relative; display: grid; place-items: center; width: 200px; height: 200px; margin: 12px 0 24px; background: radial-gradient(ellipse, var(--accent-soft) 20%, transparent 68%); }
.gate-visual > .icon { width: 72px; height: 72px; stroke-width: .9; color: var(--accent-ink); }
.gate-orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.orbit-one { width: 170px; height: 170px; }
.orbit-two { width: 124px; height: 124px; border-style: dashed; transform: rotate(18deg); animation: spin 42s linear infinite; }
.gate-state .eyebrow { margin-bottom: 14px; }
.gate-state h1 { font-size: 33px; line-height: 1.1; letter-spacing: -1.4px; white-space: pre-line; }
.gate-description { font-size: 15px; line-height: 1.65; color: var(--muted); margin-top: 19px; max-width: 330px; }
.gate-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 30px; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: calc(108px + var(--safe-bottom)); transform: translate(-50%, 12px); opacity: 0; pointer-events: none; width: max-content; max-width: min(370px, calc(100% - 40px)); border-radius: 16px; padding: 13px 18px; background: var(--ink); color: var(--surface); font-size: 12px; line-height: 1.5; text-align: center; box-shadow: 0 8px 28px #00000020; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.loading-state { display: flex; flex-direction: column; gap: 16px; }
.skeleton { display: block; position: relative; background: var(--line); overflow: hidden; border-radius: 10px; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--surface), transparent); transform: translateX(-100%); animation: shimmer 1.6s ease-in-out infinite; opacity: .65; }
.skeleton-eyebrow { width: 120px; height: 10px; }
.skeleton-heading { width: 200px; height: 35px; margin-bottom: 10px; }
.skeleton-hero { height: 231px; border-radius: 28px; }
.skeleton-traffic { height: 330px; border-radius: 26px; }
.loading-caption { font-size: 11px; color: var(--muted); text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript { max-width: 400px; margin: 70px auto; padding: 24px; line-height: 1.7; }
.tab-panel { position: relative; transform-origin: 50% 120px; }
.tab-panel.is-leaving { position: absolute; inset: 0 0 auto; pointer-events: none; }
.button, .hero-action, .icon-button, .shortcut-card, .client-link { transition: transform .25s cubic-bezier(.22, 1, .36, 1), opacity .2s ease, background-color .2s ease; }
.button:active, .hero-action:active, .icon-button:active, .shortcut-card:active { transform: scale(.975); }
.client-link:active { transform: translateY(2px); opacity: .7; }
.navigation-tab:active { transform: scale(.96); }
.hero-action .icon, .shortcut-card > .icon:last-child, .client-link .icon { transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.prism-app.motion-paused *, .prism-app.motion-paused *::before, .prism-app.motion-paused *::after { animation-play-state: paused !important; }
.prism-app.motion-paused .navigation-indicator { transition: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes data-scan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes prism-turn {
  0% { transform: rotateX(-14deg) rotateY(34deg) rotateZ(-16deg); }
  50% { transform: rotateX(12deg) rotateY(214deg) rotateZ(-8deg); }
  100% { transform: rotateX(-14deg) rotateY(394deg) rotateZ(-16deg); }
}
@keyframes light-drift { to { transform: translate(-100px, 110px) scale(1.12); opacity: .6; } }
@keyframes hero-light {
  0%, 15% { transform: translateX(-35%); opacity: 0; }
  38%, 52% { opacity: 1; }
  75%, 100% { transform: translateX(35%); opacity: 0; }
}
@keyframes globe-float {
  0%, 100% { transform: translateY(3px) rotate(-15deg); }
  50% { transform: translateY(-4px) rotate(-7deg); }
}
@keyframes spark-turn { 50% { transform: translateY(-5px) rotate(135deg); opacity: .35; } }
@media (hover: hover) {
  .button:hover, .hero-action:hover, .icon-button:hover, .client-link:hover { opacity: .85; }
  .shortcut-card:hover { background: var(--surface-soft); }
  .navigation-tab:hover { color: var(--accent-ink); }
  .hero-action:hover .icon, .shortcut-card:hover > .icon:last-child, .client-link:hover .icon { transform: translateX(3px); }
}
@media (max-width: 359px) {
  .app-shell { padding-left: 18px; padding-right: 18px; }
  .bottom-navigation { padding-left: 18px; padding-right: 18px; }
  h1 { font-size: 32px; }
  .connection-card, .traffic-card, .subscription-card, .credential-card { padding-left: 19px; padding-right: 19px; }
  .connection-card h2 { font-size: 27px; }
  .hero-prism { --prism-size: 96px; top: 41px; right: -13px; opacity: .5; }
  .connection-footer > span { font-size: 10px; }
  .hero-action { padding-left: 9px; padding-right: 9px; font-size: 11px; }
  .traffic-direction { gap: 7px; }
  .traffic-direction + .traffic-direction { padding-left: 9px; }
  .direction-icon { width: 29px; height: 29px; border-radius: 10px; }
  .client-card { padding-left: 15px; padding-right: 15px; }
  .client-actions { gap: 10px; }
  .client-link { font-size: 10px; }
  .status-pill { font-size: 10px; }
  .subscription-card > .card-topline { gap: 8px; }
}
@media (min-width: 600px) {
  .app-shell { padding-top: calc(32px + var(--safe-top)); }
  .brand-header { padding-bottom: 40px; }
  .bottom-navigation { padding-bottom: calc(22px + var(--safe-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .skeleton::after { display: none; }
  .hero-prism .prism-body { transform: rotateX(-14deg) rotateY(58deg) rotateZ(-16deg); }
}

.preferred-client { display: inline-block; margin-top: 7px; color: var(--accent-ink); font-size: 11px; font-weight: 650; }
.promo-card, .purchases-card { padding: 25px; }
.promo-card > .eyebrow { margin-bottom: 9px; }
.promo-form { display: flex; gap: 9px; margin-top: 18px; }
.promo-input { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 15px; padding: 13px 14px; background: var(--surface-soft); color: var(--ink); font-size: 16px; text-transform: uppercase; }
.promo-input::placeholder { text-transform: none; font-size: 13px; }
.promo-form .button { width: auto; flex-shrink: 0; padding: 13px; font-size: 12px; }
.promo-feedback { margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.promo-feedback:empty { display: none; }
.promo-success { margin: 12px 0 17px; color: var(--green); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.purchase-intro, .purchase-empty { color: var(--muted); font-size: 12px; line-height: 1.65; margin-top: 9px; }
.purchase-empty { padding: 18px 0 2px; }
.purchase-row { border-top: 1px solid var(--line); padding: 19px 0; }
.purchase-row:first-of-type { margin-top: 18px; }.purchase-row:last-child { padding-bottom: 0; }
.purchase-topline { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.purchase-topline h3 { font-size: 15px; line-height: 1.45; letter-spacing: -.25px; }
.purchase-amount { white-space: nowrap; font-size: 14px; }
.purchase-detail { margin-top: 6px; font-size: 12px; color: var(--muted); }
.purchase-date { margin-top: 8px; font-size: 10px; color: var(--muted); line-height: 1.55; }
.purchase-status { display: inline-block; padding: 5px 9px; border-radius: 9px; background: var(--surface-soft); font-size: 10px; margin-top: 10px; color: var(--muted); }
.purchase-status.status-fulfilled { color: var(--green); background: var(--green-soft); }.purchase-status.status-paid { color: var(--accent-ink); background: var(--accent-soft); }
.purchase-code { display: inline-block; margin-left: 8px; max-width: 100%; overflow-wrap: anywhere; color: var(--muted); font-size: 10px; letter-spacing: .6px; }
.payment-back { align-self: flex-start; min-height: 44px; display: inline-flex;
  align-items: center; gap: 8px; border: 0; padding: 8px 0; background: transparent;
  color: var(--accent-ink); font: inherit; font-size: 13px; cursor: pointer; }
.payment-back > .icon { transform: rotate(180deg); }
.payment-status-card { padding: 26px 22px; }
.payment-symbol { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 20px; }
.payment-symbol .icon { width: 26px; height: 26px; }
.payment-symbol.is-complete { background: var(--green-soft); color: var(--green); }
.payment-state h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.6px; }
.payment-description { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.payment-steps { list-style: none; display: grid; gap: 14px; padding: 20px 0; margin: 22px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.payment-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.payment-steps .icon { width: 17px; height: 17px; flex-shrink: 0; }
.payment-steps .is-complete { color: var(--green); }
.payment-details { margin-top: 18px; }
.payment-details dd { min-width: 0; overflow-wrap: anywhere; }
.payment-feedback { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 18px; }
.payment-feedback:empty { display: none; }
.payment-feedback.is-error { padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface-soft); }
.payment-status-card > .button { margin-top: 14px; }
.payment-status-card > .button:disabled { opacity: .6; cursor: wait; }
.purchase-receipt { margin-left: 12px; font-size: 11px; }.purchase-row .payment-link { display: flex; font-size: 12px; }
.identity-text h1 { overflow-wrap: anywhere; }
.welcome-overlay { position: fixed; inset: 0; z-index: 50; overflow-y: auto; overscroll-behavior: contain; background: var(--page); color: var(--ink); transition: background-color .45s, color .45s; isolation: isolate; }
.welcome-glow { position: fixed; z-index: -1; inset: -20%; pointer-events: none; background: radial-gradient(ellipse at 36% 25%, rgb(124 150 255 / .18), transparent 42%), radial-gradient(ellipse at 77% 56%, rgb(170 120 242 / .10), transparent 39%); animation: welcome-drift 18s ease-in-out infinite alternate; }
.welcome-frame { display: flex; flex-direction: column; width: min(100%, 480px); min-height: 100%; min-height: 100dvh; margin: auto; padding: calc(22px + var(--safe-top)) 28px calc(18px + var(--safe-bottom)); }
.welcome-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.welcome-brand { font-size: 18px; font-weight: 720; letter-spacing: -.7px; }
.welcome-skip, .welcome-back { border: 0; background: transparent; color: var(--muted); font-size: 13px; padding: 12px; border-radius: 16px; transition: color .2s, background-color .2s; }
.welcome-skip:hover, .welcome-back:hover { color: var(--accent-ink); background: var(--accent-soft); }
.welcome-visual { position: relative; display: grid; place-items: center; flex: 0 0 auto; height: clamp(150px, 28dvh, 250px); margin: 8px 0 12px; perspective: 700px; transition: height .55s cubic-bezier(.22,1,.36,1); }
.welcome-prism { --prism-size: 100px; filter: drop-shadow(0 25px 22px rgb(65 102 234 / .18)); transition: transform .9s cubic-bezier(.22,1,.36,1); }
.welcome-prism .prism-body { animation-duration: 18s; }
.welcome-halo { position: absolute; width: 200px; height: 200px; border: 1px solid rgb(var(--prism-tint) / .23); border-radius: 50%; animation: welcome-orbit 20s linear infinite; }
.halo-a { transform: rotateX(66deg) rotateZ(-24deg); }
.halo-b { width: 250px; height: 250px; opacity: .5; animation-direction: reverse; animation-duration: 26s; }
.welcome-spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); animation: welcome-spark 5s ease-in-out infinite alternate; }
.spark-a { left: 24%; top: 30%; }.spark-b { right: 22%; bottom: 24%; width: 4px; height: 4px; animation-delay: -3s; }
.welcome-body { text-align: center; flex: 1 0 auto; }
.welcome-body > .eyebrow { font-size: 10px; letter-spacing: 2px; margin-bottom: 15px; color: var(--accent-ink); }
.welcome-body h1 { font-size: clamp(30px, 8vw, 39px); line-height: 1.08; letter-spacing: -1.6px; outline: none; }
.welcome-overlay[data-step="0"] h1 { font-size: clamp(66px, 17vw, 84px); font-weight: 650; letter-spacing: -5px; background: linear-gradient(110deg, var(--ink) 14%, var(--accent-ink) 52%, var(--ink) 86%); background-size: 200% auto; background-clip: text; -webkit-background-clip: text; color: transparent; animation: welcome-hello 7s ease-in-out infinite alternate; }
.welcome-description { max-width: 350px; margin: 17px auto 0; font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.welcome-perks { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 25px; }
.welcome-perks span { font-size: 10px; padding: 8px 11px; border: 1px solid var(--line); background: var(--nav); border-radius: 20px; color: var(--muted); }
.welcome-footer { padding-top: 28px; }
.welcome-progress { display: flex; justify-content: center; align-items: center; gap: 7px; height: 12px; margin-bottom: 20px; }
.welcome-progress span { display: block; width: 5px; height: 5px; background: var(--line); border-radius: 8px; transition: width .4s, background-color .4s; }
.welcome-progress .is-current { width: 25px; background: var(--accent); }.welcome-progress .is-complete { background: var(--accent); opacity: .4; }
.welcome-next { width: 100%; min-height: 54px; border-radius: 19px; box-shadow: 0 10px 26px -10px rgb(49 94 251 / .5); font-size: 15px; }
.welcome-back { display: block; width: 100%; margin-top: 6px; min-height: 42px; }.welcome-back[hidden] { display: block; visibility: hidden; pointer-events: none; }
.welcome-error { font-size: 12px; line-height: 1.5; color: var(--ink); text-align: center; }.welcome-error:not(:empty) { padding-bottom: 14px; }
.welcome-label { display: block; text-align: left; font-size: 12px; color: var(--muted); margin: 25px 0 9px 3px; }
.welcome-input { width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 19px 20px; border-radius: 18px; font-size: 19px; transition: border-color .2s, box-shadow .2s; }
.welcome-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.welcome-input::placeholder { color: var(--muted); opacity: .7; }
.welcome-hint { margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.welcome-options { display: flex; gap: 10px; margin-top: 25px; }
.welcome-option { position: relative; display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: center; gap: 13px; padding: 17px 8px 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .25s, box-shadow .25s; }
.welcome-option[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); transform: translateY(-4px); }
.welcome-option:active { transform: scale(.96); }
.option-caption { display: flex; flex-direction: column; gap: 5px; }.option-caption strong { font-size: 13px; font-weight: 650; }.option-caption > span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.option-check { width: 17px; height: 17px; border-radius: 50%; font-size: 11px; line-height: 17px; color: transparent; background: var(--line); transition: background-color .25s, color .25s, transform .3s; }
[aria-pressed="true"] > .option-check { color: white; background: #315efb; transform: scale(1.08); }
.theme-options .option-art { display: flex; flex-direction: column; gap: 4px; width: 44px; height: 68px; padding: 12px 5px 5px; border-radius: 10px; background: #eef1f8; border: 1px solid #cbd2e5; box-shadow: 0 4px 12px #00000008; }
.theme-options .option-art i { height: 9px; border-radius: 3px; background: #d0dafb; }.theme-options .option-art i:first-child { height: 21px; background: #7392f6; }
.option-dark .option-art { background: #1b2131; border-color: #505d7c; }.option-dark .option-art i { background: #3a4667; }.option-dark .option-art i:first-child { background: #5777da; }
.option-auto .option-art { background: linear-gradient(90deg, #eef1f8 50%, #1b2131 50%); }.option-auto .option-art i { background: linear-gradient(90deg, #d0dafb 50%, #3a4667 50%); }
.client-options .option-art { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; font-size: 31px; font-weight: 700; color: #ffffff; background: linear-gradient(145deg, #7b9aff, #3454d3); box-shadow: 0 8px 20px #315efb22; }
.option-incy .option-art { background: linear-gradient(145deg, #ad86f4, #7753bd); }
.welcome-summary { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 19px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); text-align: left; box-shadow: var(--shadow); }
.welcome-monogram { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 17px; flex-shrink: 0; background: var(--accent-soft); color: var(--accent-ink); font-size: 23px; font-weight: 650; }
.welcome-summary-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 6px; }.welcome-summary-copy strong { font-size: 17px; overflow-wrap: anywhere; }.welcome-summary-copy span { font-size: 10px; line-height: 1.5; color: var(--muted); }
.welcome-done { color: var(--green); font-size: 22px; }
.welcome-overlay[data-step="4"] .welcome-prism { transform: rotate(-10deg) scale(1.1); }
@keyframes welcome-orbit { from { transform: rotateX(65deg) rotateY(-20deg) rotateZ(0); } to { transform: rotateX(65deg) rotateY(-20deg) rotateZ(360deg); } }
@keyframes welcome-drift { to { transform: translate(4%, -4%) rotate(12deg); } }
@keyframes welcome-spark { to { transform: translateY(-17px) scale(.6); opacity: .4; } }
@keyframes welcome-hello { to { background-position: 100% center; } }
@media (max-height: 720px) { .welcome-visual { height: 145px; margin: 0; }.welcome-prism { --prism-size: 75px; }.welcome-halo { width: 160px; height: 160px; }.halo-b { width: 190px; height: 190px; }.welcome-footer { padding-top: 18px; }.welcome-description { font-size: 13px; }.welcome-options { margin-top: 19px; } }
@media (max-width: 359px) { .welcome-frame { padding-left: 20px; padding-right: 20px; }.welcome-options { gap: 7px; }.option-caption > span { font-size: 8px; } }
@media (prefers-reduced-motion: reduce) { .welcome-body { filter: none; }.welcome-prism .prism-body { transform: rotateX(-14deg) rotateY(58deg) rotateZ(-16deg); } }


/* Personal details live in their own tab; the dashboard stays focused on connection. */
.avatar-link { cursor: pointer; }
.avatar-link:active { transform: rotate(0) scale(.95); }
.account-card { display: flex; flex-direction: column; align-items: center; padding: 28px 24px 24px; gap: 13px; }
.account-avatar { width: 76px; height: 76px; border-radius: 25px; font-size: 27px; }
.account-name { max-width: 100%; text-align: center; overflow-wrap: anywhere; font-size: 25px; letter-spacing: -.7px; }
.account-handle { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; max-width: 100%; }
.account-card .status-pill { color: var(--accent-ink); background: var(--accent-soft); }
.account-card .status-dot { background: currentColor; }
.account-details { margin-top: 4px; }
.account-details dd { overflow-wrap: anywhere; min-width: 0; }
.my-subscription-connection { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
.my-subscription-connection > label { display: block; color: var(--muted); font-size: 10px; }
.my-subscription-url { display: block; width: 100%; max-width: 100%; min-width: 0; resize: vertical; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; font-family: inherit; font-size: 13px; line-height: 1.65; text-align: left; }
.my-subscription-url:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.my-subscription-help { display: flex; align-items: center; justify-content: center; width: 100%; gap: 8px; min-height: 44px; padding: 12px; margin-top: 8px; border: 0; border-radius: 14px; background: transparent; color: var(--accent-ink); font-size: 12px; }.my-subscription-help .icon { width: 16px; height: 16px; }
.my-subscription-empty { margin-top: 18px; padding: 16px; border-radius: 15px; background: var(--surface-soft); font-size: 12px; line-height: 1.7; color: var(--muted); }

