:root {
  --ink: #17211b;
  --muted: #637168;
  --line: #d9e0dc;
  --paper: #f6f8f7;
  --white: #ffffff;
  --green: #148f60;
  --green-dark: #0d6846;
  --charcoal: #101714;
  --amber: #d9a23a;
  --danger: #b33a3a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }

.site-header { height: 68px; padding: 0 4%; display: flex; align-items: center; justify-content: space-between; background: rgba(16, 23, 20, .96); color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); position: relative; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; }
.brand-mark, .message-mark { display: grid; place-items: center; width: 36px; height: 36px; padding: 6px; background: #fff; color: #111; border: 1px solid rgba(17,17,17,.08); border-radius: 8px; font-size: 13px; transition: transform .2s ease, background .2s ease; }
.brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.05); background: #f2f7f4; }
.top-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.marketing-link { color: #aebbb4; }
.marketing-link:hover { color: #fff; }
.top-nav form { margin: 0; }
.nav-button { padding: 0; color: inherit; background: none; border: 0; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: #fff; font-weight: 700; box-shadow: 0 5px 14px rgba(20,143,96,.12); transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.button:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-2px); box-shadow: 0 9px 20px rgba(20,143,96,.2); }
.button:active { transform: translateY(1px); }
.button-small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.button-wide { width: 100%; }
.button-ghost { background: rgba(16,23,20,.52); border-color: rgba(255,255,255,.48); }

.hero { min-height: calc(86vh - 68px); max-height: 820px; position: relative; display: flex; align-items: center; overflow: hidden; background: var(--charcoal); color: #fff; }
#route-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; background: rgba(8, 13, 11, .54); }
.hero-brand-symbol { position: absolute; z-index: 1; width: min(460px, 37vw); height: min(460px, 37vw); right: 7%; top: 50%; transform: translateY(-50%); opacity: .13; pointer-events: none; }
.hero-content { position: relative; width: min(1180px, 92%); margin: 0 auto; padding: 64px 0; }
.eyebrow { margin: 0 0 14px; color: #8ee0ba; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.eyebrow.dark { color: var(--green-dark); }
.hero h1 { max-width: 720px; margin: 0; font-size: 76px; line-height: 1; font-weight: 810; }
.hero-price-line { width: fit-content; margin-top: 24px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(142,224,186,.38); border-radius: 8px; background: rgba(15,30,22,.72); }
.hero-price-line > strong { color: #75e0ab; font-size: 34px; line-height: 1; }
.hero-price-line > strong span { margin-left: 2px; font-size: 20px; }
.hero-price-line b, .hero-price-line small { display: block; }
.hero-price-line b { font-size: 14px; }
.hero-price-line small { margin-top: 3px; color: #aebbb4; font-size: 11px; }
.hero-copy { max-width: 610px; margin: 20px 0 0; color: #d8e1dc; font-size: 19px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.live-status { display: flex; align-items: center; gap: 9px; margin-top: 34px; color: #bdc9c2; font-size: 13px; }
.live-status span, .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #36c987; box-shadow: 0 0 0 4px rgba(54,201,135,.13); }
.live-status span { animation: status-pulse 2.4s ease-in-out infinite; }
.status-dot { display: inline-block; margin-right: 8px; box-shadow: none; }
.status-dot.off { background: #9aa59f; }

.signal-band { min-height: 132px; padding: 26px 4%; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; background: #fff; border-bottom: 1px solid var(--line); }
.signal-band div { padding: 10px 28px; border-right: 1px solid var(--line); }
.signal-band div:last-child { border-right: 0; }
.signal-band strong, .signal-band span { display: block; }
.signal-band strong { margin-bottom: 8px; font-size: 16px; }
.signal-band span { color: var(--muted); font-size: 13px; }

.price-advantage-band { padding: 94px max(4%, calc((100% - 1180px)/2)); display: grid; grid-template-columns: minmax(340px, .9fr) minmax(480px, 1.1fr); gap: 86px; align-items: center; background: #fff; }
.price-lead h2 { margin: 0; font-size: 46px; line-height: 1.18; }
.price-lead h2 em { color: var(--green); font-style: normal; white-space: nowrap; }
.price-lead > p:not(.eyebrow) { max-width: 540px; margin: 22px 0 28px; color: var(--muted); line-height: 1.8; }
.price-comparison { padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: #f5f8f6; box-shadow: 0 22px 54px rgba(20,39,29,.09); }
.saving-badge { margin-bottom: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.saving-badge strong { color: var(--green-dark); font-size: 34px; }
.saving-badge span { color: var(--muted); font-size: 12px; }
.price-row { margin-top: 22px; display: grid; grid-template-columns: minmax(140px, 1fr) auto; gap: 12px 22px; align-items: end; }
.price-row div strong, .price-row div span { display: block; }
.price-row div strong { font-size: 15px; }
.price-row div span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.price-row > b { font-size: 22px; }
.price-row > i { grid-column: 1 / -1; height: 12px; overflow: hidden; border-radius: 8px; background: #dfe6e2; }
.price-row > i span { display: block; width: 100%; height: 100%; border-radius: inherit; background: #65746c; transform-origin: left; animation: price-grow 1s .2s ease both; }
.price-row.yuni > b { color: var(--green); font-size: 28px; }
.price-row.yuni > i { background: #d9eee4; }
.price-row.yuni > i span { width: 4%; min-width: 14px; background: var(--green); animation-delay: .4s; }
.price-note { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: #7b8981; font-size: 11px; line-height: 1.7; }
.public-route-prices { margin-top: 22px; padding-top: 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; border-top: 1px solid #dce5e0; }
.public-route-price { min-width: 0; padding: 10px; border-radius: 8px; background: #fff; }
.public-route-price span, .public-route-price strong, .public-route-price small { display: block; }
.public-route-price span { color: var(--muted); font-size: 9px; font-weight: 800; }
.public-route-price strong { margin: 5px 0; color: var(--green-dark); font-size: 16px; }
.public-route-price small { min-height: 28px; color: #748178; font-size: 9px; line-height: 1.4; overflow-wrap: anywhere; }
.public-route-price.family-claude { background: #fffaf0; }
.public-route-price.family-claude strong { color: #8a6320; }

.content-band { padding: 92px max(4%, calc((100% - 1180px)/2)); display: grid; grid-template-columns: minmax(280px, .8fr) minmax(480px, 1.2fr); gap: 76px; align-items: center; background: #edf2ef; }
.section-heading h2, .cta-band h2 { margin: 0; font-size: 38px; line-height: 1.2; }
.section-heading > p:not(.eyebrow) { max-width: 470px; margin: 22px 0 0; color: var(--muted); line-height: 1.8; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--green-dark); font-size: 14px; font-weight: 750; }
.text-link span { transition: transform .18s ease; }
.text-link:hover span { transform: translateX(4px); }
.console-preview { border: 1px solid #26352e; border-radius: 8px; overflow: hidden; background: #121a16; color: #fff; box-shadow: 0 24px 60px rgba(19,38,29,.16); transition: transform .28s ease, box-shadow .28s ease; }
.console-preview:hover { transform: translateY(-5px); box-shadow: 0 30px 68px rgba(19,38,29,.22); }
.preview-toolbar { height: 45px; padding: 0 14px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid #2d3b34; color: #9ba9a1; font-size: 11px; }
.preview-toolbar span { width: 8px; height: 8px; border-radius: 50%; background: #56655d; }
.preview-toolbar span:nth-child(2) { background: var(--amber); }
.preview-toolbar span:nth-child(3) { background: var(--green); }
.preview-toolbar b { margin-left: 8px; font-weight: 600; }
.preview-grid { padding: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.preview-stat { min-width: 0; padding: 18px; border: 1px solid #2e3b35; border-radius: 8px; background: #18221d; transition: border-color .2s ease, transform .2s ease; }
.preview-stat:hover { border-color: #47705c; transform: translateY(-2px); }
.preview-stat span, .preview-stat small { display: block; color: #91a097; font-size: 10px; }
.preview-stat strong { display: block; margin: 10px 0 5px; font-size: 22px; overflow-wrap: anywhere; }
.request-lines { padding: 8px 28px 30px; display: grid; gap: 10px; }
.request-lines i { width: var(--w); height: 7px; background: #2c9f70; border-radius: 2px; opacity: .8; }
.request-lines i:nth-child(even) { background: #d9a23a; opacity: .5; }
.cta-band { padding: 64px 4%; display: flex; justify-content: center; align-items: center; gap: 40px; background: #fff; border-top: 1px solid var(--line); }

.capability-band, .trust-band, .faq-band { padding: 92px max(4%, calc((100% - 1180px)/2)); background: #fff; }
.band-heading { max-width: 710px; margin-bottom: 48px; }
.band-heading.compact { max-width: 660px; }
.band-heading h2, .quickstart-copy h2, .billing-band h2 { margin: 0; font-size: 38px; line-height: 1.2; }
.band-heading > p:last-child { margin: 18px 0 0; color: var(--muted); line-height: 1.8; }
.capability-list { display: grid; gap: 12px; }
.capability-list article { min-height: 146px; padding: 28px; display: grid; grid-template-columns: 76px minmax(0, 1fr) 150px; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(20,39,29,.025); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.capability-list article:hover { transform: translateY(-3px); border-color: #bdcec5; box-shadow: 0 12px 26px rgba(20,39,29,.07); }
.feature-number { color: var(--green); font-size: 13px; font-weight: 800; }
.capability-list h3, .trust-grid h3 { margin: 0; font-size: 20px; }
.capability-list p { max-width: 670px; margin: 9px 0 0; color: var(--muted); line-height: 1.7; }
.capability-list article > strong { color: #8b9790; text-align: right; font-size: 11px; text-transform: uppercase; }

.quickstart-band { padding: 88px max(4%, calc((100% - 1180px)/2)); display: grid; grid-template-columns: minmax(320px, .85fr) minmax(480px, 1.15fr); gap: 84px; align-items: center; background: #142019; color: #fff; }
.step-list { margin: 36px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.step-list li { padding: 18px; display: grid; grid-template-columns: 36px 1fr; gap: 16px; border: 1px solid #34483d; border-radius: 8px; background: #18251e; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.step-list li:hover { transform: translateX(4px); border-color: #557362; background: #1d2c24; }
.step-list li > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #5e7568; border-radius: 50%; color: #94dfbb; font-size: 12px; font-weight: 800; }
.step-list strong { font-size: 16px; }
.step-list p { margin: 7px 0 0; color: #aebbb4; font-size: 13px; line-height: 1.65; }
.code-window { overflow: hidden; border: 1px solid #35473d; border-radius: 8px; background: #0d1511; box-shadow: 0 26px 60px rgba(0,0,0,.24); }
.code-toolbar, .code-foot { height: 46px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #29372f; color: #dbe5df; font-size: 12px; }
.code-toolbar small { color: #809087; }
.code-window pre { margin: 0; padding: 26px; overflow-x: auto; color: #d9e5df; font: 13px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; }
.code-muted { color: #8fa69a; }
.code-string { color: #78d9a8; }
.code-foot { justify-content: flex-start; border-top: 1px solid #29372f; border-bottom: 0; color: #91a298; gap: 4px; }

.trust-band { background: #edf2ef; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.trust-grid article { min-height: 190px; padding: 30px; border: 1px solid #cfd9d3; border-radius: 8px; background: rgba(255,255,255,.42); transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.trust-grid article:hover { transform: translateY(-3px); border-color: #b7cac0; background: rgba(255,255,255,.82); box-shadow: 0 10px 24px rgba(20,39,29,.06); }
.trust-grid p { margin: 14px 0 0; color: var(--muted); line-height: 1.75; }

.billing-band { padding: 64px max(4%, calc((100% - 1180px)/2)); display: grid; grid-template-columns: .65fr 1fr auto; gap: 56px; align-items: center; background: #0f1713; color: #fff; }
.billing-band > p { margin: 0; color: #aebbb4; line-height: 1.8; }

.faq-band { background: #fff; }
.faq-list { display: grid; gap: 10px; }
.faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.faq-item:hover { border-color: #b9cbc1; box-shadow: 0 8px 22px rgba(20,39,29,.055); }
.faq-item.is-open { border-color: #a9cfbb; background: #fbfdfc; box-shadow: 0 10px 26px rgba(20,39,29,.07); }
.faq-question { width: 100%; min-height: 72px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 0; background: transparent; color: var(--ink); text-align: left; font-size: 17px; font-weight: 720; }
.faq-question:focus { outline: none; }
.faq-question:focus-visible { border-radius: 7px; box-shadow: inset 0 0 0 2px rgba(20,143,96,.48); }
.faq-question i { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #cfd8d3; border-radius: 50%; color: var(--green-dark); font-style: normal; transition: transform .28s ease, background .2s ease, border-color .2s ease; }
.faq-question:hover i { border-color: #8dbca3; background: #eef8f3; }
.faq-item.is-open .faq-question i { transform: rotate(45deg); border-color: #80b99a; background: #e5f4ec; }
.faq-answer { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .32s cubic-bezier(.4,0,.2,1), opacity .24s ease; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { max-width: 790px; margin: 0; padding: 0 68px 0 20px; color: var(--muted); line-height: 1.8; transform: translateY(-8px); transition: padding .32s ease, transform .32s ease; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; opacity: 1; }
.faq-item.is-open .faq-answer p { padding-bottom: 22px; transform: translateY(0); }
.expanded-cta { padding-top: 76px; padding-bottom: 76px; justify-content: space-between; }
.expanded-cta > div:first-child { max-width: 720px; }
.expanded-cta p:last-child { margin: 14px 0 0; color: var(--muted); }
.cta-actions { display: flex; align-items: center; gap: 24px; }
.cta-actions .text-link { margin: 0; }

.auth-page { min-height: 100vh; background: #eef2ef; }
.auth-shell { width: min(960px, 92%); min-height: calc(100vh - 68px); margin: 0 auto; display: grid; grid-template-columns: 1fr 420px; gap: 90px; align-items: center; padding: 56px 0; }
.auth-context h1, .message-shell h1 { margin: 0; font-size: 44px; line-height: 1.15; }
.auth-context > p:last-child { max-width: 430px; margin: 20px 0 0; color: var(--muted); line-height: 1.8; }
.auth-panel { padding: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 20px 50px rgba(22,45,33,.08); transition: box-shadow .25s ease, transform .25s ease; }
.auth-panel:hover { transform: translateY(-2px); box-shadow: 0 24px 58px rgba(22,45,33,.11); }
.stack-form { display: grid; gap: 18px; }
.stack-form label { display: grid; gap: 8px; color: #39473f; font-size: 13px; font-weight: 700; }
input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #cbd5cf; border-radius: 8px; outline: none; background: #fff; color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
input:hover { border-color: #a9b8b0; }
input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(20,143,96,.11); }
.form-row { margin-top: -5px; text-align: right; color: var(--green-dark); font-size: 13px; }
.button-google { margin-top: 12px; background: #fff; border-color: #cbd5cf; color: var(--ink); gap: 10px; }
.button-google:hover { background: #f4f7f5; border-color: #aab7b0; }
.button-google span { font-weight: 900; color: #3173db; }
.form-foot { margin: 20px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.form-foot a { color: var(--green-dark); font-weight: 700; }
.alert { margin: 0 0 18px; padding: 11px 13px; border-left: 3px solid var(--green); background: #eef8f3; color: #275a43; font-size: 13px; line-height: 1.55; }
.alert-error { border-color: var(--danger); background: #fff1f1; color: #7f2929; }
.message-shell { width: min(560px, 90%); min-height: calc(100vh - 68px); margin: auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.message-shell .message-mark { margin-bottom: 24px; }
.message-shell p { margin: 20px 0 28px; color: var(--muted); line-height: 1.8; }

.console-page { background: #f3f5f4; }
.console-page .site-header { background: #fff; color: var(--ink); border-color: var(--line); }
.console-layout { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 228px minmax(0, 1fr); }
.side-nav { padding: 30px 18px 22px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); background: #fff; }
.side-label { margin: 0 12px 12px; color: #8a9690; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.side-nav a { display: block; padding: 10px 12px; border-radius: 8px; color: #5d6962; font-size: 14px; transition: color .18s ease, background .18s ease, transform .18s ease; }
.side-nav a:hover { background: #f1f5f3; color: var(--ink); transform: translateX(2px); }
.side-nav a.active { background: #e9f5ef; color: var(--green-dark); font-weight: 750; }
.account-chip { min-width: 0; padding-top: 18px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.account-chip > span { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #dfeae4; color: var(--green-dark); font-size: 13px; font-weight: 800; }
.account-chip div { min-width: 0; }
.account-chip strong, .account-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chip strong { font-size: 13px; }
.account-chip small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.console-main { min-width: 0; padding: 38px clamp(24px, 4%, 64px) 70px; }
.console-heading { display: flex; align-items: center; justify-content: space-between; }
.console-heading h1 { margin: 0; font-size: 30px; }
.verified-badge, .admin-badge { padding: 7px 10px; border: 1px solid #a9d8c1; border-radius: 8px; background: #edf8f2; color: var(--green-dark); font-size: 12px; font-weight: 700; animation: badge-arrive .45s ease both; }
.admin-badge { border-color: #d7bd83; background: #fff8e9; color: #8a6320; }
.metric-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.metric-grid article { min-width: 0; min-height: 136px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(20,39,29,.025); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.metric-grid article:hover { transform: translateY(-3px); border-color: #bfd0c7; box-shadow: 0 10px 24px rgba(20,39,29,.07); }
.metric-grid span, .metric-grid small { display: block; color: var(--muted); font-size: 12px; }
.metric-grid strong { display: block; margin: 18px 0 9px; font-size: 25px; overflow-wrap: anywhere; }
.key-reveal { margin-top: 24px; padding: 18px; display: grid; grid-template-columns: minmax(170px, .55fr) minmax(240px, 1fr) auto; align-items: center; gap: 16px; border: 1px solid #96ceb3; border-radius: 8px; background: #eef8f3; animation: reveal-key .38s ease both; }
.key-reveal strong, .key-reveal span { display: block; }
.key-reveal span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.key-reveal code { min-width: 0; padding: 12px 14px; font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; letter-spacing: .2px; color: var(--green-dark); background: #fff; border: 1px solid #cce4d8; border-radius: 6px; white-space: normal; word-break: break-all; user-select: all; }
.tool-section { margin-top: 34px; }
.section-bar { margin-bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-bar h2 { margin: 0; font-size: 20px; }
.section-bar p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.inline-form, .grant-form { display: flex; align-items: center; gap: 8px; }
.inline-form input { width: 190px; height: 36px; }
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(20,39,29,.025); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.data-table th, .data-table td { height: 58px; padding: 0 16px; border-bottom: 1px solid #e5eae7; text-align: left; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .16s ease; }
.data-table tbody tr:hover { background: #f6faf8; }
.data-table th { height: 44px; background: #f8faf9; color: #6e7b74; font-size: 11px; text-transform: uppercase; }
.data-table code { font-size: 12px; }
.data-table form { margin: 0; }
.text-danger { padding: 5px; border: 0; background: none; color: var(--danger); font-size: 12px; }
.text-danger:hover { text-decoration: underline; }
.api-key-actions { display: flex; align-items: center; gap: 10px; }
.empty-state { height: 100px !important; color: var(--muted); text-align: center !important; }
.grant-form input { width: 130px; height: 34px; }
.side-nav-links { min-width: 0; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 10px; }
.nav-icon { width: 18px; color: #91a098; font-size: 15px; text-align: center; transition: color .2s ease, transform .2s ease; }
.side-nav a:hover .nav-icon, .side-nav a.active .nav-icon { color: var(--green-dark); transform: scale(1.08); }
.nav-note { margin-left: auto; color: #9ba9a1; font-size: 10px; }
.dashboard-header { margin-bottom: 2px; }
.dashboard-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.overview-card.balance { border-color: #9bd5ba; background: linear-gradient(145deg, #f5fcf8, #fff); }
.overview-card.balance strong { color: var(--green-dark); }
.price-banner { margin-top: 22px; padding: 25px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #b6dcc7; border-radius: 8px; background: #eaf7f0; overflow: hidden; }
.price-kicker { display: block; color: var(--green-dark); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.price-banner h2 { margin: 7px 0 6px; font-size: 21px; }
.price-banner h2 strong { color: #13804f; }
.price-banner p { max-width: 700px; margin: 0; color: #5c7065; font-size: 12px; line-height: 1.7; }
.saving-stat { min-width: 108px; padding-left: 25px; border-left: 1px solid #b6dcc7; text-align: center; }
.saving-stat strong, .saving-stat span { display: block; }
.saving-stat strong { color: #13804f; font-size: 34px; line-height: 1; }
.saving-stat span { margin-top: 7px; color: #5c7065; font-size: 11px; }
.spend-layout { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .75fr); gap: 16px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(20,39,29,.025); }
.panel-heading { padding: 20px 20px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-heading h2 { margin: 0; font-size: 18px; }
.panel-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.panel-tag { flex: 0 0 auto; padding: 5px 7px; border-radius: 4px; background: #f0f5f2; color: #738179; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.flat-table { border: 0; border-radius: 0; box-shadow: none; }
.charged-cell { color: var(--green-dark); font-weight: 750; }
.recent-list { padding: 0 20px 10px; }
.recent-item { min-width: 0; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e8eeeb; }
.recent-item div { min-width: 0; }
.recent-item strong, .recent-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item strong { font-size: 13px; }
.recent-item small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.recent-item > span { flex: 0 0 auto; color: var(--green-dark); font-size: 12px; font-weight: 750; }
.empty-copy { padding: 34px 0; color: var(--muted); font-size: 13px; text-align: center; }
.api-section { margin-top: 28px; }
.pricing-group-strip { margin-top: 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pricing-group-item { min-width: 0; min-height: 100px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #d5e3db; border-radius: 8px; background: #fff; box-shadow: 0 7px 18px rgba(20,39,29,.035); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.pricing-group-item:hover { transform: translateY(-2px); border-color: #9fcbb3; box-shadow: 0 11px 24px rgba(20,39,29,.07); }
.pricing-group-item > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.pricing-group-item > strong { margin: 7px 0; color: var(--green-dark); font-size: 22px; }
.pricing-group-item > small { min-height: 30px; color: #6c7972; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.pricing-group-item.family-claude { border-color: #e4d5ae; background: #fffdf7; }
.pricing-group-item.family-claude > strong { color: #8a6320; }
.api-create-form { padding: 20px 0 24px; border-top: 1px solid #e1e8e4; border-bottom: 1px solid #e1e8e4; }
.api-endpoint-bar { margin-bottom: 18px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #c9ddd2; border-radius: 8px; background: #f2f9f5; }
.api-endpoint-bar > div { min-width: 0; }
.api-endpoint-bar span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 800; }
.api-endpoint-bar code { display: block; overflow: hidden; color: var(--green-dark); font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.api-endpoint-bar .button { flex: 0 0 auto; }
.route-group-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.route-group-option { min-width: 0; position: relative; cursor: pointer; }
.route-group-option > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.route-choice { min-height: 112px; padding: 15px; display: flex; flex-direction: column; border: 1px solid #d6e0da; border-radius: 8px; background: #fff; box-shadow: 0 5px 14px rgba(20,39,29,.025); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
.route-group-option:hover .route-choice { transform: translateY(-2px); border-color: #a9cdb9; box-shadow: 0 10px 22px rgba(20,39,29,.06); }
.route-group-option > input:checked + .route-choice { border-color: #43a979; background: #eff9f4; box-shadow: 0 0 0 3px rgba(20,143,96,.1), 0 10px 22px rgba(20,39,29,.055); }
.route-group-option > input:focus-visible + .route-choice { outline: 2px solid var(--green); outline-offset: 2px; }
.route-choice-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.route-choice-top strong { font-size: 13px; }
.route-choice-top b { color: var(--green-dark); font-size: 19px; }
.route-choice > small { margin-top: auto; padding-top: 16px; color: var(--muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.route-group-option.family-claude .route-choice { border-color: #e4d8b9; background: #fffdf8; }
.route-group-option.family-claude > input:checked + .route-choice { border-color: #c79d47; background: #fff8e9; box-shadow: 0 0 0 3px rgba(199,157,71,.12), 0 10px 22px rgba(20,39,29,.055); }
.route-group-option.family-claude .route-choice-top b { color: #8a6320; }
.api-create-row { margin-top: 14px; display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 10px; }
.api-create-row input { height: 46px; }
.api-key-table { margin-top: 24px; }
.route-table-label { padding: 5px 8px; border-radius: 999px; background: #edf7f2; color: var(--green-dark); font-size: 11px; font-weight: 750; }
.recharge-panel, .profile-panel { margin-top: 30px; padding: clamp(24px, 5vw, 52px); display: grid; grid-template-columns: minmax(190px, .65fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 86px); }
.recharge-visual { min-height: 220px; padding: 30px; display: flex; flex-direction: column; justify-content: center; border-radius: 8px; background: #edf8f2; }
.recharge-icon { width: 42px; height: 42px; margin-bottom: 24px; display: grid; place-items: center; border-radius: 50%; background: #d5efdf; color: #13804f; font-size: 25px; animation: soft-pulse 2.5s ease-in-out infinite; }
.recharge-visual strong { margin-top: 10px; color: var(--green-dark); font-size: 34px; overflow-wrap: anywhere; }
.recharge-visual small { margin-top: 6px; color: var(--muted); font-size: 12px; }
.placeholder-copy { max-width: 480px; }
.placeholder-copy h2 { margin: 12px 0 10px; font-size: 25px; }
.placeholder-copy p { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.profile-panel { grid-template-columns: 130px minmax(0, 1fr); align-items: flex-start; }
.profile-avatar { width: 106px; height: 106px; display: grid; place-items: center; border: 1px solid #b6dcc7; border-radius: 50%; background: #eaf7f0; color: var(--green-dark); font-size: 40px; font-weight: 800; animation: avatar-arrive .55s ease both; }
.profile-details h2 { margin: 9px 0 25px; font-size: 28px; }
.profile-row { max-width: 560px; padding: 14px 0; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid #e5eae7; font-size: 13px; }
.profile-row span { color: var(--muted); }
.profile-row strong { overflow-wrap: anywhere; text-align: right; }
.verified-text { color: var(--green-dark); }
.profile-action { margin-top: 18px; }
@keyframes soft-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(54,201,135,.08); } 50% { box-shadow: 0 0 0 9px rgba(54,201,135,.08); } }
@keyframes avatar-arrive { from { opacity: 0; transform: scale(.82) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
.admin-nav { border-right-color: #28352f; background: #17211c; color: #fff; }
.admin-nav .side-label, .admin-nav small { color: #8fa097; }
.admin-nav a { color: #bac5bf; }
.admin-nav a.active { background: #273a31; color: #9be2bf; }
.admin-nav a:hover { background: #22332b; color: #fff; }
.admin-nav .account-chip { border-color: #35443c; }

.site-header { animation: header-arrive .42s ease both; }
.hero .eyebrow { animation: hero-arrive .5s .08s ease both; }
.hero h1 { animation: hero-arrive .56s .14s ease both; }
.hero-price-line { animation: hero-arrive .56s .2s ease both; }
.hero-copy { animation: hero-arrive .56s .25s ease both; }
.hero-actions { animation: hero-arrive .56s .31s ease both; }
.live-status { animation: hero-arrive .56s .38s ease both; }
.motion-reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease var(--reveal-delay, 0ms), transform .5s ease var(--reveal-delay, 0ms); }
.motion-reveal.is-visible { opacity: 1; transform: translateY(0); }
.console-preview.motion-reveal.is-visible:hover { transform: translateY(-5px); }
.auth-panel.motion-reveal.is-visible:hover { transform: translateY(-2px); }
.capability-list article.motion-reveal.is-visible:hover,
.trust-grid article.motion-reveal.is-visible:hover,
.metric-grid article.motion-reveal.is-visible:hover { transform: translateY(-3px); }

@keyframes header-arrive {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-arrive {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(54,201,135,.1); }
  50% { box-shadow: 0 0 0 8px rgba(54,201,135,.02); }
}

@keyframes badge-arrive {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes reveal-key {
  from { opacity: 0; transform: translateY(-8px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes price-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 920px) {
  .hero h1 { font-size: 58px; }
  .signal-band { grid-template-columns: repeat(2, 1fr); }
  .signal-band div:nth-child(2) { border-right: 0; }
  .content-band { grid-template-columns: 1fr; gap: 42px; }
  .price-advantage-band { grid-template-columns: 1fr; gap: 42px; }
  .quickstart-band { grid-template-columns: 1fr; gap: 44px; }
  .billing-band { grid-template-columns: 1fr; gap: 24px; }
  .billing-band .button { justify-self: start; }
  .auth-shell { grid-template-columns: 1fr 390px; gap: 44px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .key-reveal { grid-template-columns: 1fr auto; }
  .key-reveal div { grid-column: 1 / -1; }
  .spend-layout { grid-template-columns: 1fr; }
  .pricing-group-strip, .route-group-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .site-header { padding: 0 18px; }
  .top-nav { gap: 14px; }
  .marketing-link { display: none; }
  .hero { min-height: 76vh; }
  .hero-content { width: calc(100% - 36px); padding: 48px 0; }
  .hero h1 { font-size: 46px; }
  .hero-brand-symbol { width: 250px; height: 250px; right: -82px; top: 36%; opacity: .1; }
  .hero-copy { font-size: 16px; }
  .hero-price-line { padding: 10px 12px; }
  .hero-price-line > strong { font-size: 29px; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 260px; }
  .signal-band { padding: 14px 18px; }
  .signal-band div { padding: 16px 10px; }
  .content-band { padding: 62px 20px; }
  .price-advantage-band { padding: 62px 20px; }
  .price-lead h2 { font-size: 34px; }
  .price-comparison { padding: 22px; }
  .public-route-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .saving-badge { align-items: flex-start; flex-direction: column; gap: 5px; }
  .saving-badge strong { font-size: 30px; }
  .section-heading h2, .cta-band h2, .band-heading h2, .quickstart-copy h2, .billing-band h2 { font-size: 30px; }
  .preview-grid { grid-template-columns: 1fr; padding: 18px; }
  .cta-band { align-items: flex-start; flex-direction: column; gap: 22px; }
  .capability-band, .trust-band, .faq-band { padding: 62px 20px; }
  .band-heading { margin-bottom: 32px; }
  .capability-list article { grid-template-columns: 42px 1fr; gap: 12px; }
  .capability-list article > strong { display: none; }
  .quickstart-band { padding: 62px 20px; }
  .code-window pre { padding: 20px; font-size: 11px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid article { min-height: auto; padding: 24px; }
  .billing-band { padding: 56px 20px; }
  .faq-question { min-height: 66px; padding: 16px; font-size: 15px; }
  .faq-answer p { padding-left: 16px; padding-right: 54px; }
  .expanded-cta { align-items: flex-start; }
  .cta-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .auth-shell { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 30px; padding: 42px 0; }
  .auth-context h1, .message-shell h1 { font-size: 36px; }
  .auth-panel { padding: 24px; }
  .console-layout { display: block; }
  .side-nav { padding: 10px 16px; flex-direction: row; align-items: center; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-nav > div:first-child { display: flex; align-items: center; }
  .side-label, .account-chip { display: none; }
  .side-nav a { white-space: nowrap; }
  .console-main { padding: 28px 16px 50px; }
  .console-heading { align-items: flex-start; }
  .dashboard-subtitle { line-height: 1.6; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-grid article { min-height: 122px; padding: 16px; }
  .metric-grid strong { font-size: 20px; }
  .section-bar { align-items: stretch; flex-direction: column; }
  .inline-form { width: 100%; }
  .inline-form input { flex: 1; min-width: 0; }
  .key-reveal { grid-template-columns: 1fr; }
  .key-reveal div { grid-column: auto; }
  .price-banner { align-items: flex-start; flex-direction: column; padding: 22px; }
  .saving-stat { width: 100%; padding: 16px 0 0; border-top: 1px solid #b6dcc7; border-left: 0; text-align: left; }
  .saving-stat strong, .saving-stat span { display: inline-block; margin-right: 8px; }
  .recharge-panel, .profile-panel { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
  .profile-panel { gap: 22px; }
  .profile-row { align-items: flex-start; flex-direction: column; gap: 5px; }
  .profile-row strong { text-align: left; }
  .pricing-group-strip { grid-template-columns: 1fr 1fr; }
  .route-group-grid { grid-template-columns: 1fr; }
  .api-create-row { grid-template-columns: 1fr; }
  .api-endpoint-bar { align-items: stretch; flex-direction: column; }
  .api-endpoint-bar code { white-space: normal; overflow-wrap: anywhere; }
  .api-endpoint-bar .button { align-self: flex-start; }
}

/* Interface polish: softer surfaces and a distinct brand entrance. */
body { background: #f4f7f5; }
main { animation: page-arrive .46s cubic-bezier(.22,1,.36,1) both; }
.site-header { height: 72px; background: rgba(16,23,20,.94); border-bottom-color: rgba(255,255,255,.08); box-shadow: 0 8px 26px rgba(13,29,21,.08); backdrop-filter: blur(14px); animation: header-fade .42s ease both; }
.brand { padding: 5px 14px 5px 5px; gap: 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(255,255,255,.07); box-shadow: 0 8px 22px rgba(0,0,0,.12); transition: transform .24s ease, background .24s ease, box-shadow .24s ease; }
.brand:hover { transform: translateY(-1px); background: rgba(255,255,255,.12); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.brand-mark { width: 40px; height: 40px; padding: 7px; border-radius: 13px; box-shadow: 0 5px 12px rgba(0,0,0,.1); }
.brand-enter .brand-mark { animation: brand-card-drop .76s cubic-bezier(.34,1.56,.64,1) both; }
.brand-enter > span:last-child { animation: brand-name-arrive .48s .18s cubic-bezier(.22,1,.36,1) both; }
.console-page .site-header { background: rgba(255,255,255,.9); box-shadow: 0 8px 24px rgba(20,39,29,.05); }
.console-page .brand { border-color: #dbe5df; background: #f8fbf9; box-shadow: 0 6px 18px rgba(20,39,29,.06); }
.console-page .brand:hover { background: #fff; box-shadow: 0 10px 24px rgba(20,39,29,.1); }
.button { min-height: 46px; border-radius: 999px; box-shadow: 0 8px 18px rgba(20,143,96,.14); }
.button-small { min-height: 38px; border-radius: 999px; }
input { height: 48px; padding: 0 15px; border-radius: 12px; background: rgba(255,255,255,.9); box-shadow: 0 2px 0 rgba(20,39,29,.02); }
input:focus { box-shadow: 0 0 0 4px rgba(20,143,96,.1), 0 3px 0 rgba(20,39,29,.03); }
.auth-panel, .price-comparison, .console-preview, .capability-list article, .step-list li, .code-window, .trust-grid article, .faq-item, .metric-grid article, .data-table-wrap, .key-reveal, .price-banner, .panel, .recharge-panel, .profile-panel { border-radius: 12px; }
.auth-panel, .price-comparison, .panel, .metric-grid article, .data-table-wrap { box-shadow: 0 12px 30px rgba(20,39,29,.055); }
.side-nav a { border-radius: 12px; }
.side-nav a.active { box-shadow: inset 0 0 0 1px rgba(20,143,96,.06); }
.verified-badge, .admin-badge, .panel-tag { border-radius: 999px; }
.key-reveal { box-shadow: 0 12px 28px rgba(20,143,96,.08); }
.data-table th { background: #f5f9f6; }
.console-main { padding-top: 44px; }

@keyframes page-arrive {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes header-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes brand-card-drop {
  0% { opacity: 0; transform: translateY(-28px) rotate(-8deg) scale(.78); }
  58% { opacity: 1; transform: translateY(5px) rotate(2deg) scale(1.06); }
  78% { transform: translateY(-2px) rotate(-1deg) scale(.99); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

@keyframes brand-name-arrive {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 680px) {
  .site-header { height: 68px; }
  .brand { padding-right: 11px; }
  .brand-mark { width: 36px; height: 36px; padding: 6px; border-radius: 11px; }
  .console-main { padding-top: 30px; }
}

/* Recharge and operations console */
.recharge-layout { margin-top: 30px; display: grid; grid-template-columns: minmax(320px, .85fr) minmax(360px, 1.15fr); gap: 18px; align-items: stretch; }
.payment-panel, .redeem-panel { padding: clamp(24px, 4vw, 38px); border-radius: 20px; }
.payment-heading h2, .redeem-copy h2 { margin: 12px 0 8px; font-size: 25px; }
.payment-heading p, .redeem-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.payment-qr-wrap { width: min(100%, 330px); margin: 26px auto 20px; padding: 14px; border: 1px solid #d9e5de; border-radius: 24px; background: #fff; box-shadow: 0 14px 34px rgba(20,39,29,.08); transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease; }
.payment-qr-wrap:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 20px 42px rgba(20,39,29,.12); }
.payment-qr-wrap img { width: 100%; aspect-ratio: 1; display: block; border-radius: 14px; object-fit: contain; }
.qq-group-line { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 14px; background: #edf8f2; }
.qq-group-line span { color: var(--muted); font-size: 10px; font-weight: 850; }
.qq-group-line strong { color: var(--green-dark); font-size: 18px; }
.payment-note { margin: 16px 0 0; color: #5d6d64; font-size: 13px; line-height: 1.75; }
.redeem-panel { display: flex; flex-direction: column; }
.recharge-balance { min-height: 144px; padding: 24px; display: flex; flex-direction: column; justify-content: center; border-radius: 18px; background: #17211c; color: #fff; overflow: hidden; position: relative; }
.recharge-balance::after { content: ""; width: 90px; height: 90px; position: absolute; right: -20px; bottom: -36px; border: 18px solid rgba(155,226,191,.18); border-radius: 50%; animation: soft-pulse 3s ease-in-out infinite; }
.recharge-balance span, .recharge-balance small { color: #9dafb5; font-size: 11px; }
.recharge-balance strong { margin: 8px 0 3px; color: #a2ecc7; font-size: 34px; overflow-wrap: anywhere; }
.redeem-copy { margin-top: 28px; }
.redeem-form { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.redeem-form label { grid-column: 1 / -1; color: #506158; font-size: 12px; font-weight: 750; }
.redeem-form input { text-transform: uppercase; }
.redeem-security { margin-top: auto; padding-top: 22px; display: flex; align-items: flex-start; gap: 9px; }
.redeem-security .status-dot { flex: 0 0 auto; margin-top: 5px; }
.redeem-security p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.admin-main { max-width: none; }
.admin-route-section, .admin-redeem-section, .admin-users-section { padding-top: 34px; scroll-margin-top: 80px; }
.route-admin-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.route-admin-form { min-width: 0; padding: 20px; display: flex; flex-direction: column; gap: 14px; border-radius: 18px; }
.route-admin-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.route-admin-heading span { font-size: 15px; font-weight: 850; }
.route-admin-heading strong { color: var(--muted); font-size: 9px; }
.route-admin-form label > span:first-child { margin-bottom: 7px; display: block; color: var(--muted); font-size: 10px; font-weight: 750; }
.route-admin-form input { width: 100%; height: 40px; }
.route-admin-form .input-affix { display: block; }
.route-admin-form .input-affix input { padding-right: 48px; }
.route-admin-form .button { margin-top: auto; }
.admin-redeem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr); gap: 16px; }
.redeem-generator, .redeem-explainer { padding: 26px; border-radius: 18px; }
.redeem-generator-form { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; gap: 12px; align-items: end; }
.redeem-generator-form label { min-width: 0; }
.redeem-generator-form label > span { margin-bottom: 8px; display: block; color: #596b61; font-size: 11px; font-weight: 750; }
.redeem-generator-form input { width: 100%; }
.redeem-explainer { background: #17211c; color: #fff; }
.redeem-explainer .panel-tag { background: rgba(155,226,191,.13); color: #a2ecc7; }
.redeem-explainer h3 { margin: 17px 0 8px; font-size: 19px; }
.redeem-explainer p { margin: 0; color: #afbbb5; font-size: 12px; line-height: 1.75; }
.admin-code-reveal { margin-top: 16px; grid-template-columns: minmax(180px, .7fr) minmax(260px, 1fr) auto; border-radius: 18px; }
.admin-code-reveal pre { max-height: 180px; margin: 0; padding: 12px 14px; overflow: auto; border-radius: 12px; background: #fff; color: var(--green-dark); font: 700 13px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.admin-code-table, .admin-user-table { margin-top: 16px; border-radius: 18px; }
.status-pill { padding: 6px 9px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-active { background: #e5f7ed; color: #147147; }
.status-used { background: #edf1ef; color: #65746c; }
.status-off { background: #fff0f0; color: #a63232; }
.admin-user-identity { min-width: 210px; }
.admin-user-identity strong, .admin-user-identity small { display: block; }
.admin-user-identity small { max-width: 260px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; }
.admin-inline-form { min-width: 235px; display: flex; align-items: center; gap: 8px; }
.admin-inline-form input { width: 145px; height: 40px; }
.admin-inline-form .button { flex: 0 0 auto; }
.admin-balance-cell { display: flex; flex-direction: column; gap: 8px; }
.admin-grant-form input { width: 145px; }
.admin-grant-form input::placeholder { color: var(--muted); font-size: 12px; }
.multiplier-form { min-width: 200px; }
.input-affix { position: relative; }
.input-affix input { width: 105px; padding-right: 31px; }
.input-affix b { position: absolute; right: 12px; top: 50%; color: var(--muted); font-size: 11px; transform: translateY(-50%); }
.multiplier-note { margin-top: 6px; display: block; color: var(--muted); font-size: 10px; }
.admin-account-actions { min-width: 170px; display: flex; align-items: center; gap: 10px; }
.button-muted { border-color: #dfb9b9; background: #fff; color: #9f3030; box-shadow: none; }
.button-muted:hover { background: #fff4f4; }
.danger-button { padding: 8px 4px; border: 0; background: transparent; color: #a63232; cursor: pointer; font-size: 11px; font-weight: 750; }
.danger-button:hover { text-decoration: underline; }

@media (max-width: 1050px) {
  .route-admin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recharge-layout { grid-template-columns: 1fr 1fr; }
  .redeem-generator-form { grid-template-columns: 1fr 120px; }
  .redeem-generator-form .button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 760px) {
  .route-admin-grid { grid-template-columns: 1fr; }
  .recharge-layout, .admin-redeem-grid { grid-template-columns: 1fr; }
  .payment-panel, .redeem-panel { padding: 22px; border-radius: 18px; }
  .admin-code-reveal { grid-template-columns: 1fr; }
  .admin-code-reveal > div { grid-column: auto; }
}

@media (max-width: 520px) {
  .redeem-form, .redeem-generator-form { grid-template-columns: 1fr; }
  .redeem-form button, .redeem-generator-form .button { width: 100%; grid-column: auto; }
  .qq-group-line { align-items: flex-start; flex-direction: column; gap: 5px; }
  .qq-group-line strong { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .motion-reveal { opacity: 1; transform: none; }
}
