@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #0d1511;
  --surface: #16221b;
  --surface-2: #1c2b22;
  --surface-3: #25382a;
  --text: #f2f3e9;
  --muted: #aab9a9;
  --muted-2: #829484;
  --line: rgba(215, 236, 194, .15);
  --line-strong: rgba(215, 236, 194, .28);
  --accent: #d5f46a;
  --accent-hover: #e4ff8d;
  --accent-text: #15231a;
  --success: #b9e887;
  --radius-lg: 10px 38px 10px 38px;
  --radius-md: 13px;
  --font-main: Manrope, 'Avenir Next', sans-serif;
}
html, body { background: var(--bg); }
html:has(.demo-landing) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(.demo-landing) { scroll-behavior: auto; } }
body { font-family: var(--font-main); background-image: radial-gradient(ellipse at 85% -12%, #263e2a 0, transparent 35%), radial-gradient(ellipse at -10% 75%, #182c20 0, transparent 33%); }
.demo-ribbon { position: relative; z-index: 110; min-height: 32px; padding: 7px 16px; display: flex; justify-content: center; align-items: center; gap: 11px; color: #d6e7ce; background: #2b4431; font: 500 10px/1.4 'DM Mono', monospace; letter-spacing: .04em; }
.demo-ribbon span:last-child { color: #b7ccb2; }
.demo-ribbon__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(213,244,106,.12); }
.demo-overline, .page-eyebrow, .section-label { font: 500 11px/1.5 'DM Mono', monospace; letter-spacing: .14em; color: #b1cd9f; }
.demo-brand { display: inline-flex; align-items: center; gap: 11px; width: auto !important; max-width: none !important; color: var(--text); vertical-align: middle; }
.demo-brand__symbol { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; transform: rotate(-8deg); color: var(--accent); background: #263a2a; font: 700 29px/1 Georgia, serif; }
.demo-brand__name { font: 800 23px/.9 Manrope, sans-serif; letter-spacing: -.085em; }
.demo-brand__name > span { color: #9cb968; }
.demo-brand__name small { display: block; margin-top: 7px; color: #8da58d; font: 500 8px/1 'DM Mono', monospace; letter-spacing: .2em; }
button, .button { border-radius: 11px; }
button:hover, .button:hover { transform: translateY(-2px); }
.button.secondary, button.secondary { color: var(--text); background: #26382b; }
input, textarea, select { border-color: #36503c; background: #101b15; }
input:focus, textarea:focus, select:focus { border-color: #9cb968; }
.layout { max-width: 1480px; padding-inline: clamp(20px, 3.5vw, 60px); }
.app-header { min-height: 83px; }
.app-header::before { background: rgba(13, 21, 17, .93); }
.nav { gap: 3px; }
.nav a { border-radius: 100px; font-size: 12px; font-weight: 700; }
.nav a.active { background: #d5f46a; }
.header-tools { gap: 8px; }
.account-chip { border-color: var(--line); }
.content { padding-top: clamp(40px, 5vw, 70px); }
.topbar { display: flex; justify-content: space-between; align-items: end; gap: 15px; padding-bottom: 26px; margin-bottom: 28px; }
.topbar h1 { margin-top: 8px; max-width: 1100px; font-size: clamp(41px, 5vw, 70px); letter-spacing: -.07em; font-weight: 800; }
.admin-shortcut { padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 100px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.overview-grid { grid-template-columns: minmax(0, 1.35fr) minmax(290px, .85fr); gap: 14px; }
.overview-primary, .overview-secondary, .profiles-section, .card { border-color: var(--line); box-shadow: 0 15px 45px rgba(0,0,0,.1); }
.overview-primary { min-height: 395px; border-radius: 10px 45px 10px 45px; background: radial-gradient(circle at 15% 110%, #3a6041, transparent 55%), #203a2a; }
.balance-summary { padding: clamp(26px, 4vw, 52px); }
.balance-summary > strong { color: #f8f9ed; font-weight: 800; letter-spacing: -.09em; }
.balance-summary .button { min-width: 200px; }
.overview-facts { border-color: rgba(227,245,220,.16); }
.overview-fact { border-color: rgba(227,245,220,.16); }
.overview-fact span { color: #bfd0bd; }
.overview-secondary { border-radius: 32px 10px 32px 10px; background: #d5f46a; color: #15231a; }
.overview-secondary .section-label, .overview-secondary .days-caption, .overview-secondary .small, .overview-secondary .secondary-charge span { color: #48693f; }
.overview-secondary .days-value { color: #15231a; font-weight: 800; }
.overview-secondary .secondary-charge { border-color: rgba(26,48,27,.2); }
.overview-secondary .button.secondary { margin-top: 18px; color: #f3f9e8; background: #183326; align-self: stretch; }
.profiles-section { margin-top: 14px; border-radius: 12px 34px 12px 34px; background: #16241c; }
.quick-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.quick-actions a, .connect-instructions { min-height: 120px; padding: 24px 28px; display: flex; flex-direction: column; justify-content: space-between; position: relative; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: #1d2b21; text-decoration: none; transition: transform .2s, border-color .2s; }
.quick-actions a:hover, .connect-instructions:hover { transform: translateY(-3px); border-color: #9ec46d; }
.quick-actions a span, .connect-instructions span { color: #94af8c; font: 500 10px 'DM Mono', monospace; letter-spacing: .15em; }
.quick-actions a strong, .connect-instructions strong { font-size: clamp(18px,2vw,24px); letter-spacing: -.05em; }
.quick-actions a b, .connect-instructions b { position: absolute; right: 25px; bottom: 24px; color: var(--accent); font-size: 23px; }
.connect-lead { max-width: 760px; margin-bottom: 25px; }
.connect-lead span { color: #b2d48a; font: 500 11px 'DM Mono', monospace; letter-spacing: .13em; }
.connect-lead p { margin-top: 12px; color: var(--muted); line-height: 1.75; }
.connect-instructions { margin-top: 14px; background: #254332; }
.card, .plan-card { border-radius: 13px 30px 13px 30px; background: #17231b; }
.plan-card strong { color: var(--accent); }
.table-wrap { border-radius: 12px; background: #101a14; }
.stats-card, .admin-user-card { background: #1a2b20; }
.admin-create-profile { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 12px; align-items: end; padding: 18px 0; }
.admin-create-profile button { white-space: nowrap; }
.auth-shell { min-height: calc(100vh - 32px); padding: 35px 20px; }
.auth-stage { width: min(1150px, 100%); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap: 20px; align-items: stretch; }
.auth-panel { border-radius: 13px 40px 13px 40px; padding: clamp(28px, 4vw, 55px); background: #17271d; }
.auth-panel .brand { margin-bottom: 34px; }
.auth-panel > h1 { font-weight: 800; letter-spacing: -.07em; }
.auth-panel > .demo-overline { margin: 0 0 12px; color: #aacf84; font: 500 10px 'DM Mono', monospace; letter-spacing: .14em; }
.auth-story { min-height: 650px; padding: clamp(34px, 5vw, 65px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; border-radius: 40px 13px 40px 13px; background: radial-gradient(circle at 70% 35%, #486a3b, transparent 46%), #264330; }
.auth-story::before { content: ''; position: absolute; width: 700px; height: 700px; right: -340px; top: -160px; border: 1px solid rgba(219,243,167,.15); border-radius: 50%; box-shadow: 0 0 0 70px rgba(219,243,167,.035), 0 0 0 150px rgba(219,243,167,.025); }
.auth-story__index { color: #c0dfa1; font: 500 11px 'DM Mono',monospace; letter-spacing: .14em; }
.auth-story h2 { z-index: 1; font-size: clamp(46px, 4.5vw, 68px); font-weight: 800; letter-spacing: -.08em; }
.auth-story h2 em { color: var(--accent); font-style: normal; }
.auth-story > p { max-width: 400px; z-index: 1; color: #c7d8c3; font-size: 15px; line-height: 1.8; }
.auth-story__signal { z-index: 1; padding-top: 20px; display: flex; justify-content: space-between; border-top: 1px solid rgba(219,243,167,.24); color: #c7d8c3; font: 500 11px 'DM Mono',monospace; }
.auth-story__signal b { color: var(--accent); font-weight: 500; }
.demo-code { padding: 15px 20px; border: 1px solid #72985a; border-radius: 11px; background: #253f2a; color: #d6efc3 !important; font: 500 14px 'DM Mono',monospace; }
.demo-code strong { color: var(--accent); letter-spacing: .18em; font-size: 18px; }
.demo-landing { width: min(1450px, calc(100% - 80px)); margin: auto; }
.landing-header { height: 94px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.landing-header nav { display: flex; gap: 34px; margin-left: auto; margin-right: 42px; font-size: 13px; font-weight: 700; }
.landing-login { padding: 11px 18px; border: 1px solid var(--line-strong); border-radius: 100px; font-size: 12px; font-weight: 800; }
.landing-hero { min-height: 670px; display: grid; grid-template-columns: 1fr .9fr; gap: 55px; align-items: center; padding: 70px 0; }
.landing-copy h1 { margin: 30px 0 22px; font-size: clamp(57px, 6vw, 95px); line-height: 1.05; letter-spacing: -.09em; font-weight: 800; }
.landing-copy h1 em { color: #b7d48e; font-style: normal; }
.landing-copy > p:not(.demo-overline) { max-width: 520px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.landing-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 33px; }
.landing-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 70px; padding-top: 20px; border-top: 1px solid var(--line); color: #b3c6ae; font: 500 10px 'DM Mono',monospace; }
.landing-visual { position: relative; min-height: 535px; display: grid; place-items: center; overflow: hidden; border-radius: 12px 90px 12px 90px; background: radial-gradient(circle at 75% 20%, #537a48, transparent 35%), #21402c; }
.landing-orbit { position: absolute; width: 680px; height: 680px; border: 1px solid rgba(226,247,178,.2); border-radius: 50%; box-shadow: 0 0 0 95px rgba(226,247,178,.025), 0 0 0 200px rgba(226,247,178,.02); }
.landing-preview { z-index: 1; width: min(72%, 380px); padding: 29px; transform: rotate(-7deg); border-radius: 15px 35px 15px 35px; background: #edf2db; color: #1a2b1d; box-shadow: 0 35px 70px rgba(0,0,0,.27); }
.preview-caption, .preview-bottom { display: flex; justify-content: space-between; gap: 8px; align-items: center; font: 500 10px 'DM Mono',monospace; letter-spacing: .08em; }
.preview-live { color: #558545; }
.landing-preview > strong { display: block; margin-top: 55px; font-size: clamp(80px, 10vw, 130px); line-height: 1; letter-spacing: -.12em; }
.landing-preview > strong small { font-size: 20px; letter-spacing: -.05em; }
.landing-preview > p { margin: 7px 0 35px; color: #4f6350; font-size: 13px; }
.preview-bottom { padding-top: 19px; border-top: 1px solid #c4d3bf; }
.visual-caption { position: absolute; bottom: 30px; left: 35px; right: 35px; color: #dbedcd; font: 500 10px 'DM Mono',monospace; letter-spacing: .12em; }
.landing-section { display: grid; grid-template-columns: .9fr 1.6fr; gap: 60px; padding: 100px 0; border-top: 1px solid var(--line); }
.landing-section h2 { margin-top: 20px; font-size: clamp(40px, 4vw, 62px); letter-spacing: -.07em; }
.landing-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.landing-steps article { padding: 25px; border: 1px solid var(--line); border-radius: 12px 30px 12px 30px; background: #18271d; }
.landing-steps article span { color: var(--accent); font: 500 11px 'DM Mono',monospace; }
.landing-steps h3 { margin: 43px 0 12px; font-size: 19px; }
.landing-steps p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.landing-price { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 60px; margin-bottom: 80px; border-radius: 12px 45px 12px 45px; background: #d5f46a; color: #16291a; }
.landing-price .demo-overline { color: #527546; }
.landing-price h2 { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 20px; letter-spacing: normal; }
.landing-price__amount { font-size: clamp(48px,5vw,75px); line-height: 1.12; font-weight: 800; letter-spacing: -.055em; white-space: nowrap; }
.landing-price__period { font-size: clamp(25px,2.7vw,39px); line-height: 1.25; font-weight: 700; letter-spacing: -.045em; }
.landing-price p { max-width: 430px; color: #486644; font-size: 14px; line-height: 1.8; }
.landing-price .button { margin-top: 20px; background: #193221; color: #f2f7e8; }
.landing-footer { display: flex; justify-content: space-between; padding: 25px 0 40px; border-top: 1px solid var(--line); color: var(--muted-2); font: 500 10px 'DM Mono',monospace; }
@media(max-width: 980px) { .auth-stage { grid-template-columns: 1fr; max-width: 600px; } .auth-story { display: none; } .landing-hero { grid-template-columns: 1fr; } .landing-visual { min-height: 480px; } .landing-section { grid-template-columns: 1fr; gap: 30px; } }
@media(max-width: 1100px) { .overview-grid { grid-template-columns: 1fr; } }
@media(max-width: 720px) { .demo-ribbon span:last-child { display: none; } .demo-landing { width: calc(100% - 32px); } .landing-header { height: 75px; } .landing-header nav { display: none; } .landing-hero { padding: 60px 0 45px; gap: 35px; min-height: 0; } .landing-copy h1 { font-size: clamp(50px,12vw,72px); } .landing-meta { margin-top: 40px; } .landing-visual { min-height: 420px; border-radius: 9px 55px 9px 55px; } .landing-preview { padding: 22px; width: 76%; } .landing-preview > strong { margin-top: 35px; font-size: 76px; } .landing-section { padding: 70px 0; } .landing-steps { grid-template-columns: 1fr; } .landing-steps h3 { margin-top: 25px; } .landing-price { grid-template-columns: 1fr; padding: 33px; margin-bottom: 50px; gap: 15px; } .layout { padding-inline: 16px; } .topbar h1 { font-size: 43px; } .overview-grid { grid-template-columns: 1fr; } .overview-primary { grid-template-columns: 1fr; min-height: 0; } .overview-facts { grid-template-columns: repeat(3,1fr); grid-template-rows: 1fr; border-left: 0; border-top: 1px solid var(--line); } .overview-fact { min-width: 0; padding: 14px; border-right: 1px solid var(--line); border-bottom: 0; } .overview-fact span { font-size: 10px; } .overview-fact strong { font-size: 22px; } .overview-secondary { min-height: 300px; } .quick-actions { grid-template-columns: 1fr; } .connect-instructions { min-height: 120px; } .admin-create-profile { grid-template-columns: 1fr; } }
@media(max-width: 460px) { .landing-actions .button { width: 100%; } .landing-meta { gap: 10px; } .landing-meta span { min-width: 42%; } .topbar { align-items: start; } .admin-shortcut { font-size: 10px; padding: 8px; } .overview-facts { grid-template-columns: 1fr; } .overview-fact { border-right: 0; border-bottom: 1px solid var(--line); } .overview-fact:last-child { border-bottom: 0; } .auth-shell { padding: 18px 12px; } .auth-panel { padding: 26px 22px; } }

/* The demo's user-facing pages use a compact, single-destination shell. */
.simple-layout { width: min(1320px, calc(100% - 64px)); margin: auto; }
.simple-header { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.simple-header__right { display: flex; align-items: center; gap: 18px; }
.header-user-link { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: 12px; font-weight: 800; text-decoration: none; }
.header-user-link:hover, .header-user-link:focus-visible { color: var(--accent); }
.header-user-link svg { width: 19px; height: 19px; flex: none; }
.demo-header-label, .home-label { color: #a7bd9c; font: 500 10px/1.5 'DM Mono', monospace; letter-spacing: .14em; }
.header-admin, .simple-back { color: var(--text); border: 1px solid var(--line-strong); border-radius: 100px; padding: 10px 17px; font-size: 12px; font-weight: 800; }
.header-admin:hover, .simple-back:hover { border-color: var(--accent); }
.simple-main { padding: clamp(22px, 3.2vh, 38px) 0 32px; }
.home-heading { margin-bottom: clamp(17px, 2.3vh, 28px); }
.home-heading .demo-overline { margin-bottom: 9px; }
.home-heading h1 { font-size: clamp(31px, 3vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -.075em; }
.home-heading > p:last-child { color: var(--muted); margin: 10px 0 0; font-size: 13px; }
.home-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 16px; height: min(62vh, 570px); min-height: 420px; }
.home-primary, .home-secondary { min-height: 0; display: grid; gap: 14px; }
.home-primary { grid-template-rows: minmax(0, 1fr); }
.home-primary .home-balance { height: 100%; }
.home-secondary { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.home-balance, .home-panel, .home-quick a, .flow-card { border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.12); }
.home-balance { min-height: 0; padding: clamp(25px, 3.3vw, 45px); border-radius: 12px 42px 12px 42px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 80% -10%, rgba(148,194,93,.3), transparent 50%), linear-gradient(140deg, #294632, #172b20 75%); }
.home-balance strong { display: block; margin: 22px 0 7px; font-size: clamp(48px, 5.8vw, 84px); line-height: 1; letter-spacing: -.095em; color: #f3f9e9; }
.home-balance strong.metric-value-compact { font-size: clamp(44px, 5vw, 72px); }
.home-balance p { color: #bacdb5; font-size: 13px; }
.home-balance__bottom { display: flex; align-items: end; gap: 20px; justify-content: space-between; padding-top: 18px; border-top: 1px solid rgba(236,249,222,.17); }
.home-balance__bottom > span { color: #bcd1b7; font-size: 12px; }
.home-balance__bottom > span b { display: block; margin-top: 4px; color: white; font-size: 17px; }
.home-buy { min-width: 188px; min-height: 50px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-radius: 10px; background: var(--accent); color: #182b1b; font-size: 13px; font-weight: 800; }
.home-buy:hover { background: var(--accent-hover); }
.home-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.home-quick a { min-height: 103px; padding: 18px 20px; display: flex; align-items: center; gap: 12px; border-radius: 12px 26px 12px 26px; background: #1b2a20; }
.home-quick a:hover { border-color: #a7cf79; background: #233b29; }
.home-quick__icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #6c915c; border-radius: 10px; color: var(--accent); }
.home-quick__icon::before { content: ''; width: 19px; height: 19px; box-sizing: border-box; border: 1.5px solid currentColor; border-radius: 50%; }
.home-quick__icon--profile::before { box-shadow: inset 0 0 0 3px #1b2a20; background: currentColor; }
.home-quick__icon--support::before { border-style: dashed; }
.home-quick a > span:nth-child(2) { min-width: 0; }
.home-quick strong, .home-quick small { display: block; }
.home-quick strong { font-size: 13px; line-height: 1.3; }
.home-quick small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.home-quick b { align-self: flex-start; margin-left: auto; color: var(--accent); font-size: 16px; }
.home-panel { min-height: 0; padding: 21px 24px; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px 30px 12px 30px; background: #19261d; }
.home-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.home-panel h2 { margin-top: 5px; font-size: 22px; font-weight: 800; letter-spacing: -.05em; }
.home-panel h2 em { margin-left: 6px; color: var(--accent); font: 500 13px 'DM Mono', monospace; font-style: normal; }
.home-plus { width: 39px; height: 39px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: #183023; font-size: 29px; line-height: 1; }
.home-plus:hover { background: var(--accent-hover); }
.home-panel__count { color: var(--accent); font: 500 13px 'DM Mono',monospace; }
.home-details { min-height: 0; margin-top: 15px; display: block; }
.home-details[open] { flex: 1 1 auto; overflow: hidden; }
.home-details:not([open]) { flex: none; }
.home-details summary { padding: 10px 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: #c3d4bd; cursor: pointer; font-size: 12px; font-weight: 700; list-style: none; }
.home-details summary::-webkit-details-marker { display: none; }
.home-details[open] summary span { transform: rotate(180deg); }
.home-panel__list { min-height: 0; height: 127px; max-height: calc(100% - 37px); overflow-y: auto; overflow-x: hidden; scrollbar-color: #5a8151 transparent; }
.home-list-row { min-height: 51px; display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(226,241,214,.07); }
.home-list-row > span:nth-child(2) { min-width: 0; flex: 1; }
.home-list-row strong, .home-list-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-list-row strong { font-size: 12px; }
.home-list-row small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.home-list-row b { margin-left: auto; color: var(--accent); font-size: 12px; white-space: nowrap; }
.home-device-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }
.home-device-dot.is-transaction { background: #8fbeb3; }
.home-empty { padding: 12px 0; color: var(--muted); font-size: 12px; }
.subpage-layout { max-width: 1130px; }
.subpage-head { margin-bottom: 24px; }
.simple-back { display: inline-flex; margin-bottom: 25px; }
.subpage-head h1 { margin: 8px 0; font-size: clamp(34px, 3.8vw, 54px); font-weight: 800; letter-spacing: -.07em; }
.subpage-head > p:last-child { color: var(--muted); font-size: 14px; }
.account-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 17px; align-items: start; }
.flow-card { padding: clamp(22px, 3vw, 36px); border-radius: 13px 37px 13px 37px; background: #19271e; }
.flow-card h2 { margin: 8px 0 12px; font-size: clamp(25px, 2.7vw, 34px); font-weight: 800; }
.flow-muted { color: var(--muted); line-height: 1.7; font-size: 13px; }
.account-email-large { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--accent); font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.account-form { margin-top: 20px; display: grid; gap: 12px; }
.account-form label, .flow-create-form label, .referral-field { display: grid; gap: 7px; color: #c9d9c4; font-size: 12px; font-weight: 700; }
.account-form input, .flow-create-form input, .referral-field input { width: 100%; }
.account-form button, .account-logout button { justify-self: start; }
.email-confirm { padding-top: 18px; border-top: 1px solid var(--line); }
.email-confirm p { margin: 0; font-size: 12px; color: var(--muted); }
.email-confirm p strong { color: var(--accent); }
.account-logout { margin-top: 30px; }
.referral-stat { display: flex; gap: 20px; padding: 15px 0; margin: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.referral-stat span { color: var(--muted); font-size: 12px; }
.referral-stat b { display: block; margin-top: 5px; color: var(--text); font-size: 19px; }
.referral-field { margin-top: 14px; }
.referral-field + button { margin-top: 8px; min-height: 37px; font-size: 11px; }
.referral-apply { padding-top: 19px; border-top: 1px solid var(--line); }
.referral-apply small { color: var(--muted); }
.flow-notice, .flow-error { padding: 12px 16px; border-radius: 10px; color: #d8efc3; background: #2a4830; font-size: 12px; }
.flow-error { color: #ffd5d9; background: #4c2a30; }
.connect-layout { max-width: 1050px; }
.flow-wrap { width: min(780px, 100%); margin: 0 auto; }
.flow-wrap .subpage-head { margin-bottom: 14px; }
.flow-steps { display: flex; align-items: center; justify-content: center; margin: 12px 0 25px; }
.flow-steps span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font: 600 12px 'DM Mono',monospace; }
.flow-steps span.active, .flow-steps span.complete { border-color: var(--accent); background: #334c2d; color: var(--accent); }
.flow-steps i { width: 54px; height: 1px; background: var(--line-strong); }
.flow-device-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.flow-device-groups button { min-height: 117px; display: flex; flex-direction: column; gap: 5px; border-color: var(--line); background: #233526; color: var(--text); }
.flow-device-groups button.is-selected { border-color: var(--accent); background: #304930; }
.device-art { width: 40px; height: 40px; color: var(--accent); }
.flow-device-groups strong { font-size: 13px; }
.flow-platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.flow-platforms label { position: relative; cursor: pointer; }
.flow-platforms label[hidden] { display: none; }
.flow-platforms .flow-device-badge { position: absolute; z-index: 1; top: -11px; right: 12px; display: inline-flex; align-items: center; min-height: 21px; padding: 2px 8px; border: 1px solid #76965b; border-radius: 20px; background: #d5f46a; color: #17301c; font: 700 10px/1.2 Manrope,sans-serif; white-space: nowrap; }
.flow-platforms .flow-device-badge[hidden] { display: none; }
.flow-platforms input { position: absolute; opacity: 0; pointer-events: none; }
.flow-platforms label > span:last-child { min-height: 54px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; background: #16231b; font-size: 13px; font-weight: 700; }
.flow-platforms label.is-detected > span:last-child { border-color: #8eae6a; }
.flow-platforms input:checked + span { border-color: var(--accent); background: #263f2b; }
.flow-platforms input:focus-visible + span { outline: 2px solid var(--accent); }
.flow-platforms label b { display: none; color: var(--accent); }
.flow-platforms input:checked + span b { display: block; }
.flow-main-button { width: 100%; min-height: 53px; margin-top: 10px; justify-content: center; }
.flow-main-button span { margin-left: 6px; }
.flow-app, .flow-ready { display: flex; align-items: center; gap: 13px; padding: 18px; margin: 22px 0; border: 1px solid var(--line-strong); border-radius: 12px; background: #263a2b; }
.flow-app--link { color: var(--text); text-decoration: none; transition: border-color .2s, background .2s; }
.flow-app--link:hover, .flow-app--link:focus-visible { border-color: var(--accent); background: #304934; }
.flow-app__icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 12px; color: #19311e; background: var(--accent); font: 800 27px Georgia,serif; }
.flow-app strong, .flow-app small, .flow-ready strong, .flow-ready small { display: block; }
.flow-app strong, .flow-ready strong { font-size: 15px; }
.flow-app small, .flow-ready small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.flow-app__tag { margin-left: auto; color: var(--accent); font: 500 10px 'DM Mono',monospace; }
.flow-ready > span { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: #3d5935; font-size: 22px; }
.flow-create-form { display: grid; gap: 10px; margin-top: 18px; }
.flow-hint { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 13px 0; }
.flow-text-link { display: inline-flex; margin-top: 18px; color: #bedd9e; font-size: 12px; font-weight: 700; }
.flow-delete-card { margin-top: 18px; background: #202a21; }
.flow-delete-card h2 { font-size: 23px; }
.flow-delete-button { min-height: 44px; padding: 0 20px; border: 1px solid #c38b88; border-radius: 9px; color: #ffd3d0; background: #4a2929; font-weight: 800; cursor: pointer; }
.flow-delete-button:hover:not(:disabled), .flow-delete-button:focus-visible:not(:disabled) { background: #633333; }
.flow-delete-button:disabled { opacity: .48; cursor: not-allowed; }
.device-addon-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 30px; margin-top: 14px; padding: 28px 32px; border-color: #759054; background: linear-gradient(120deg, #213829, #19271e 72%); }
.device-addon-card h2 { margin: 6px 0 9px; }
.device-addon-card p { max-width: 760px; color: var(--muted); line-height: 1.55; }
.device-addon-card .device-addon-count { color: var(--text); }
.device-addon-card .device-addon-count strong { color: var(--accent); }
.device-addon-card form { display: grid; gap: 9px; min-width: 235px; }
.device-addon-card form button { min-height: 48px; }
.device-addon-card form button:disabled { opacity: .5; cursor: not-allowed; }
.device-addon-card form small { color: var(--muted); text-align: center; }
.device-addon-expiry { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 12px 0 0; list-style: none; color: #c3d5b8; font-size: 11px; }
.subscriber-card { min-height: 0; }
.subscriber-end { margin: 18px 0 10px; font-size: clamp(34px, 4vw, 64px); line-height: 1.05; letter-spacing: -.05em; }
.subscriber-help { display: flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; }
.subscriber-help strong { font-size: 18px; }
.subscriber-help > span:last-child { margin-left: auto; color: var(--accent); }
.subscriber-intro { margin-bottom: 14px; }
.subscriber-intro h1 { margin: 8px 0 10px; }
.subscriber-intro p { color: var(--muted); }
.subscriber-plan { position: relative; min-width: 0; padding-top: 54px; }
.subscriber-plan .plan-head { display: block; }
.subscriber-plan .benefit { position: absolute; top: 18px; right: 18px; }
.subscriber-plan > strong { margin: 24px 0 14px; }
.subscriber-plan > p { color: var(--muted); }
.subscriber-plan form { display: grid; gap: 14px; }
.bonus-choice { display: grid; gap: 10px; margin-top: 10px; font-size: 13px; }
.bonus-choice__balance { color: var(--muted); }
.bonus-choice__balance strong { color: var(--text); font-variant-numeric: tabular-nums; }
.bonus-choice__toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.bonus-choice__toggle span { color: var(--text); }
.bonus-choice input[type="checkbox"], .check-line input[type="checkbox"] { -webkit-appearance: none; appearance: none; display: grid; place-items: center; flex: 0 0 22px; width: 22px; height: 22px; min-height: 22px; padding: 0; margin: 0; border: 1px solid #6e8a68; border-radius: 6px; background: #102018; cursor: pointer; }
.bonus-choice input[type="checkbox"]::before, .check-line input[type="checkbox"]::before { content: ""; width: 11px; height: 6px; border-left: 2px solid #17261b; border-bottom: 2px solid #17261b; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 140ms ease; }
.bonus-choice input[type="checkbox"]:checked, .check-line input[type="checkbox"]:checked { border-color: var(--accent); background: var(--accent); }
.bonus-choice input[type="checkbox"]:checked::before, .check-line input[type="checkbox"]:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
.bonus-choice input[type="checkbox"]:focus-visible, .check-line input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.bonus-amount { display: grid; gap: 6px; }
.bonus-amount[hidden] { display: none; }
.bonus-amount input { width: 100%; }
.bonus-amount input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.bonus-amount input::-webkit-inner-spin-button, .bonus-amount input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.subscriber-bonus-total { color: var(--accent); font-size: 28px; font-weight: 800; }
.account-email-editor, .subscriber-history { margin-top: 16px; }
.account-email-editor summary, .subscriber-history summary { cursor: pointer; font-weight: 700; }
.account-email-editor .account-form { margin-top: 16px; }
.subscriber-history summary { display: flex; justify-content: space-between; }
@media (max-width: 620px) { .subscriber-plan { min-height: 0; } .subscriber-end { font-size: 38px; } .device-addon-card form { min-width: 0; } }
.flow-manual { margin-top: 20px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 10px; }
.flow-manual summary { display: flex; justify-content: space-between; list-style: none; cursor: pointer; font-size: 13px; font-weight: 700; }
.flow-manual summary::-webkit-details-marker { display: none; }
.flow-manual p { margin: 16px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.flow-qr { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.flow-qr img { width: 120px; height: 120px; padding: 5px; background: white; }
.flow-qr span { color: var(--muted); font-size: 11px; line-height: 1.5; }
@media (min-width: 900px) and (min-height: 680px) { body:has(.home-layout) { overflow: hidden; } }
@media (max-width: 900px), (max-height: 679px) { .home-grid { height: auto; min-height: 0; } .home-primary, .home-secondary { grid-template-rows: auto; } .home-panel__list { height: 300px; max-height: 300px; } }
@media (max-width: 900px) { .home-grid, .account-grid { grid-template-columns: 1fr; } .home-primary { grid-template-rows: auto; } .home-balance { min-height: 285px; } .device-addon-card { grid-template-columns: 1fr; } .device-addon-card form { width: 100%; } }
@media (max-width: 620px) { .simple-header__right { gap: 9px; } .header-user-link { width: 38px; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; } .header-user-link span { display: none; } .device-addon-card { padding: 20px; } }
@media (max-width: 620px) { .simple-layout { width: calc(100% - 30px); } .simple-header { height: 72px; } .demo-header-label { display: none; } .simple-main { padding-top: 24px; } .home-heading h1 { font-size: 36px; } .home-quick { grid-template-columns: 1fr; } .home-quick a { min-height: 76px; } .home-balance { padding: 26px; } .home-balance__bottom { align-items: stretch; flex-direction: column; } .home-buy { width: 100%; } .home-panel { padding: 18px; } .flow-device-groups { gap: 7px; } .flow-device-groups button { min-height: 95px; padding: 8px; } .flow-platforms { grid-template-columns: 1fr; } .flow-qr { flex-direction: column; align-items: flex-start; } }
.chat-messages { height: min(46vh, 390px); min-height: 230px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #111d16; }
.chat-message { max-width: 82%; padding: 12px 15px; border-radius: 13px 13px 13px 3px; background: #29402e; }
.chat-message.is-user { align-self: flex-end; border-radius: 13px 13px 3px 13px; background: #3c5739; }
.chat-message span { color: var(--accent); font-size: 10px; font-weight: 800; }
.chat-message p { margin: 5px 0; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message small { color: var(--muted); font-size: 10px; }
.chat-form { display: grid; gap: 10px; margin-top: 17px; }
.chat-form label { color: var(--muted); font-size: 12px; }
.chat-form button { justify-self: end; }
.profile-revoke-notice { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text); background: #27392b; line-height: 1.5; }
.profile-revoke-notice a { color: var(--accent); font-weight: 700; }
.site-confirm-overlay { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; background: rgb(5 14 8 / 76%); backdrop-filter: blur(8px); }
.site-confirm { width: min(100%, 460px); padding: 28px; border: 1px solid var(--line-strong); border-radius: 22px; background: #1b2a20; box-shadow: 0 26px 80px rgb(0 0 0 / 38%); }
.site-confirm h2 { margin: 11px 0; font-size: 25px; }
.site-confirm p { margin: 0 0 25px; color: var(--muted); line-height: 1.55; }
.site-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }
.site-confirm-actions button { min-height: 44px; }
@media (max-width: 480px) { .site-confirm { padding: 22px; } .site-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; } }
.pwa-prompt { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 9000; width: min(410px, calc(100vw - 36px)); max-height: min(78vh, 650px); overflow-y: auto; padding: 23px; border: 1px solid var(--line-strong); border-radius: 22px; background: #203126; box-shadow: 0 18px 70px rgb(0 0 0 / 42%); }
.pwa-prompt h2 { margin: 9px 34px 8px 0; font-size: 23px; line-height: 1.15; }
.pwa-prompt p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.pwa-prompt__close { position: absolute; top: 15px; right: 15px; width: 33px; height: 33px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text); background: transparent; font-size: 22px; cursor: pointer; }
.pwa-prompt__actions { display: flex; gap: 9px; }
.pwa-prompt__actions .button { flex: 1; min-height: 42px; }
.pwa-prompt__guide { margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line-strong); }
.pwa-prompt__guide[hidden] { display: none; }
.pwa-prompt__tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.pwa-prompt__tabs button { padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); background: transparent; font-size: 11px; cursor: pointer; }
.pwa-prompt__tabs button.is-active { color: #152318; background: var(--accent); }
.pwa-prompt__guide p { margin-bottom: 0; color: var(--text); }
.admin-users-list { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.admin-user-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-adjust-form { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.admin-user-card, .admin-user-head > div:first-child, .admin-user-actions, .admin-user-actions form, .admin-user-metrics > div { min-width: 0; }
.admin-user-head h2 { overflow-wrap: anywhere; }
.admin-user-head p, .admin-user-card > p, .admin-profile-row strong { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .admin-layout, .admin-layout .content, .admin-layout .content > .card { min-width: 0; }
  .admin-layout .topbar h1 { font-size: clamp(29px, 8vw, 38px); overflow-wrap: anywhere; }
  .admin-user-head { flex-direction: column; gap: 10px; }
  .admin-user-head h2 { font-size: clamp(18px, 5.3vw, 24px); }
  .admin-user-status { align-self: flex-start; }
  .admin-user-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .admin-user-actions { grid-template-columns: minmax(0, 1fr); }
  .admin-adjust-form, .admin-role-form { grid-template-columns: minmax(0, 1fr); }
  .admin-user-actions input, .admin-user-actions select, .admin-user-actions button { min-width: 0; width: 100%; }
  .admin-profile-row > div { min-width: 0; }
}
@media (max-width: 460px) {
  .admin-layout.layout { padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right)); }
  .admin-layout .content > .card { padding: 16px; }
  .admin-user-card { padding: 16px; }
  .admin-user-search label { flex-basis: 100%; }
  .admin-user-search > button, .admin-user-search > a { flex: 1; }
}
