:root {
    --ink: #122b36;
    --muted: #637b82;
    --green: #164b57;
    --green-2: #167a7a;
    --lime: #45d6c2;
    --paper: #f4f8f7;
    --line: #dce9e6;
    --white: #fff;
    --shadow: 0 18px 55px rgba(20, 45, 90, .08);
}

/* ------------------------------------------------------------------------
   The display stacks below ask for Manrope and DM Sans, but this project does
   not ship the font files, so headings resolve to the operating system's
   fallback. Drop the two woff2 files into assets/fonts/ and restore the
   @font-face rules here to bring the brand face back.
   ------------------------------------------------------------------------ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
img, video, canvas, iframe { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { max-width: 100%; font: inherit; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.topbar { height: 78px; display: flex; align-items: center; gap: 18px; justify-content: space-between; padding: 0 clamp(20px, 5vw, 80px); background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(225, 229, 233,.8); position: relative; z-index: 3; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: Manrope, "Segoe UI", Arial, sans-serif; font-size: 14px; font-weight: 800; letter-spacing: .07em; }
.brand small { display: block; margin-top: 2px; color: #787D87; font-family: "DM Sans", "Segoe UI", Arial, sans-serif; font-size: 8px; letter-spacing: .2em; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px 11px 11px 3px; background: #11283a; color: #45d6c2; font-family: Manrope, "Segoe UI", Arial, sans-serif; font-size: 20px; font-weight: 800; }
.brand-wordmark { display: inline-flex; align-items: baseline; gap: 3px; color: var(--ink); letter-spacing: -.035em; }
.brand-wordmark strong { font-weight: 800; }
.brand-wordmark > span { color: var(--green-2); font-weight: 600; }
/* The wordmark logo is sized by height so it stays crisp on retina screens and
   never crowds the nav. The footer gets a smaller lockup. */
.brand-logo { display: block; height: 44px; width: auto; max-width: 220px; }
.footer-brand .brand-logo { height: 34px; max-width: 165px; }
.topbar nav { display: flex; align-items: center; gap: 32px; color: #4B515C; font-size: 13px; font-weight: 600; }
/* Wayfinding. The label names the page on screen, and the matching nav link is
   marked, so the current page is never left to guesswork. */
.topbar-context { margin-right: auto; padding-left: 18px; border-left: 1px solid var(--line); color: #8A9098; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.topbar nav a:not(.nav-cta)[aria-current="page"] { position: relative; color: var(--green); }
.topbar nav a:not(.nav-cta)[aria-current="page"]::after { content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; border-radius: 2px; background: var(--green-2); }
.topbar nav .nav-cta[aria-current="page"] { background: var(--green-2); }
.topbar nav a:hover, footer a:hover, .text-link:hover { color: var(--green-2); }
.topbar nav .nav-cta { padding: 12px 17px; border-radius: 7px; background: var(--green); color: white; }
.topbar nav .nav-cta:hover { background: var(--green-2); color: white; }
/* The label steps aside once the navigation needs the width; the marked link
   and each page's own heading still carry the wayfinding. Below 1100px the whole
   navigation folds behind one button, keeping it usable on portrait displays
   and smaller windows as well as phones. */
.nav-toggle { display: none; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; }
.nav-toggle-bars { position: relative; width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
@media (max-width: 1100px) {
    .topbar-context { display: none; }
    .nav-toggle { display: inline-flex; }
    .topbar nav { position: absolute; top: 100%; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - 118px); max-height: calc(100dvh - 118px); overflow-y: auto; padding: 4px 16px 12px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(20,45,90,.12); }
    .topbar.is-nav-open nav { display: flex; }
    .topbar nav > * + * { border-top: 1px solid var(--line); }
    .topbar nav a { padding: 13px 4px; font-size: 13px; }
    .topbar nav a[aria-current="page"]::after { display: none; }
    .topbar nav .nav-cta { margin-top: 10px; border-top: 0; text-align: center; }
    .topbar nav .inline-form { display: block; }
    .topbar nav .nav-button { width: 100%; padding: 13px 4px; text-align: left; }
}
.inline-form { display: inline; }
.nav-button { border: 0; padding: 0; background: none; color: inherit; cursor: pointer; font-weight: 600; }
/* The signed-in account, shown on every page. One block, drawn by
   ventra_identity_chip(), so the topbar, the messaging header and the staff console
   all present the same person the same way: the profile photo when one is on
   file, otherwise their initials. It sits outside the <nav> so it stays on screen
   on a phone, where the navigation folds behind the Menu button, and it collapses
   to just the avatar there. */
.identity-chip { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 3px 12px 3px 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); }
a.identity-chip:hover { border-color: #c6d5e8; }
.identity-chip-static { cursor: default; }
.identity-chip-photo { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #fff; object-fit: contain; }
.identity-chip-initials { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--lime); font-family: Manrope, "Segoe UI", Arial, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.identity-chip-initials.is-staff { background: #2b4d7e; color: #dbe7f7; }
.identity-chip-meta { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.identity-chip-meta strong { overflow: hidden; color: var(--ink); font-size: 12.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.identity-chip-meta small { overflow: hidden; color: #858991; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) {
    /* Beside the Menu button rather than adrift in the middle of the bar, and
       the avatar alone, which is what a phone has room for. */
    .topbar .identity-chip { margin-left: auto; padding: 3px; border-color: transparent; background: none; }
    .topbar .identity-chip-meta { display: none; }
}
/* One shape for every action drawn in a header: a member's Messages shortcut on
   the public pages, and the Back Office, Data Console and Messages links in the
   console topbars. They all wear the same pill as the account chip they sit
   beside, so a header reads as one set of controls instead of a different shape
   per page. Only the public topbar drops the label on a phone, where the icon
   alone fits. */
.header-action { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; transition: border-color .18s ease, color .18s ease; }
.header-action .ventra-icon { font-size: 16px; }
.header-action:hover, .header-action:focus-visible { border-color: #c6d5e8; color: var(--green-2); outline: none; }
/* The unread count sitting on the corner of a Messages pill. Absolute against the
   relative .header-action so it overlaps the pill's top-right edge instead of
   pushing the label aside. Capped at 99+ in the markup; the min-width keeps a
   single digit centred and the width grows for two digits or the +. */
.header-action-badge { position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #d94141; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 1; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
@media (max-width: 1100px) {
    .topbar .header-action { padding: 9px; }
    .topbar .header-action-label { display: none; }
    .topbar .header-action-badge { top: -6px; right: -6px; }
}
/* 100vh minus the topbar (78px) and footer (74px), so short pages fill the
   screen without a permanent scrollbar. The dynamic unit keeps that true on
   Android and iOS, whose toolbars resize the viewport. */
main { min-height: calc(100vh - 152px); min-height: calc(100dvh - 152px); }
.hero-banner-section { width: 100%; background: #f4f8f7; display: flex; justify-content: center; }
/* The banner is a 3:2 picture, shown whole so the wordmark is never cropped.
   Cap its width against the viewport height (minus the topbar, the action bar
   and the footer) so the banner fits one screen on a laptop or desktop, with
   the section's own background filling the space either side. The floor keeps
   it readable in landscape on a phone. */
.hero-banner { display: block; width: 100%; height: auto; max-width: min(100%, max(520px, calc((100vh - 240px) * 1.5))); max-width: min(100%, max(520px, calc((100dvh - 240px) * 1.5))); }
.hero-banner-actions { display: flex; justify-content: center; padding: 22px 20px; border-bottom: 1px solid var(--line); background: white; }
.hero-banner-actions .hero-actions { justify-content: center; flex-wrap: wrap; gap: 16px 25px; }
.eyebrow { color: #667283; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(0,230,118,.16); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, sans-serif; }
.section-intro h2 em { color: #5A6880; font-family: Georgia, serif; font-weight: 400; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 47px; padding: 0 19px; border: 0; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 700; transition: .2s ease; }
.button-primary { background: var(--green); color: white; box-shadow: 0 8px 20px rgba(18, 31, 57,.13); }
.button-primary:hover { transform: translateY(-2px); background: var(--green-2); }
.button-secondary { min-height: 39px; padding: 0 13px; border: 1px solid var(--line); background: white; color: var(--green); font-size: 12px; }
.text-link { color: #434C5C; font-size: 13px; font-weight: 700; }
.checkmark { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; background: #e2fff0; color: #087a40; font-size: 11px; }
.cup { position: absolute; left: 24px; top: 62px; width: 192px; height: 218px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border-radius: 15px 15px 52px 52px; background: linear-gradient(105deg,#16233D 0%,#233353 55%,#141F36 100%); color: #C5D8E8; box-shadow: inset 12px 0 18px rgba(255,255,255,.06), 12px 25px 35px rgba(28, 41, 66,.2); transform: perspective(500px) rotateY(-7deg); }
.cup:after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(173, 203, 231,.28); border-radius: 9px 9px 45px 45px; }
.cup span { z-index: 1; font-family: Georgia, serif; font-size: 55px; line-height: 1; }
.cup small { z-index: 1; margin-top: 5px; font-size: 11px; letter-spacing: .23em; }
.cup i { position: absolute; right: 0; bottom: 20px; left: 0; height: 1px; background: rgba(173, 203, 231,.3); }
.cup-lid { position: absolute; z-index: 1; top: 47px; left: 17px; width: 207px; height: 25px; border-radius: 50%; background: linear-gradient(#f3f7fb,#cbd8e5); box-shadow: 0 5px 8px rgba(22, 33, 52,.17); }
.cup-shadow { position: absolute; bottom: 12px; left: 26px; width: 190px; height: 22px; border-radius: 50%; background: rgba(24, 35, 56,.16); filter: blur(7px); }
.floating-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; min-width: 190px; padding: 14px 16px; border: 1px solid rgba(231, 235, 239,.8); border-radius: 9px; background: rgba(255,255,255,.91); box-shadow: 0 14px 35px rgba(28, 41, 65,.1); backdrop-filter: blur(8px); }
.floating-top { top: 24%; left: 8%; }
.floating-bottom { right: 0; bottom: 22%; }
.float-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 8px; background: #e2fff0; color: #087a40; font-size: 20px; }
.people-icon { background: #e7eef6; color: #496183; }
.floating-card small { display: block; color: #858A92; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.floating-card strong { display: block; margin-top: 4px; font-family: Manrope, sans-serif; font-size: 16px; }
.floating-card strong small { display: inline; font-size: 9px; font-weight: 500; letter-spacing: 0; }
.trust-strip { min-height: 73px; display: flex; align-items: center; justify-content: center; gap: clamp(25px, 6vw, 88px); border-bottom: 1px solid var(--line); background: white; color: #656B75; font-size: 11px; font-weight: 600; }
.trust-strip span:first-child { color: #9A9EA5; font-size: 9px; letter-spacing: .14em; }
.section { padding: 94px clamp(20px, 5vw, 80px); }
.section-intro { max-width: 720px; margin: 0 auto 43px; text-align: center; }
.section-intro h2 { margin: 15px 0 13px; font-size: clamp(32px, 4vw, 43px); letter-spacing: -.045em; line-height: 1.15; }
.section-intro p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.product-section { background: white; }
.product-card { max-width: none; min-height: 310px; display: grid; grid-template-columns: 1fr 1fr; margin: auto; overflow: hidden; border: 1px solid #E4E7EB; border-radius: 12px; background: white; box-shadow: var(--shadow); }
.product-visual { position: relative; min-height: 200px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at center, #D1DCE7 0, #E3E9F0 48%, #EFF2F5 100%); }
.product-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.bean { position: absolute; width: 31px; height: 20px; border-radius: 50%; background: #9b7049; transform: rotate(38deg); }
.bean:after { content: ''; position: absolute; top: 9px; left: 4px; width: 22px; height: 1px; background: #e0b486; transform: rotate(-16deg); }
.bean-one { top: 25%; left: 23%; }
.bean-two { right: 19%; bottom: 22%; width: 23px; height: 16px; transform: rotate(-29deg); }
.product-info { padding: 37px 42px; }
.product-info h3 { margin: 10px 0; font-size: 23px; letter-spacing: -.03em; }
.product-info > p { margin-bottom: 19px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.price-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); color: #686E79; font-size: 12px; }
.price-row strong { color: var(--ink); font-size: 16px; }
.price-row.secondary-price { padding-top: 3px; border-top: 0; }
.price-row.secondary-price strong { font-size: 13px; }
.product-info .button { margin-top: 12px; }
.rewards-section { background: #F2F5F7; }
.reward-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.reward-card { position: relative; min-height: 225px; padding: 25px 23px; border: 1px solid #E2E6EA; border-radius: 9px; background: white; }
.reward-number { position: absolute; top: 20px; right: 20px; color: #B7BBC0; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.reward-icon { display: grid; width: 36px; height: 36px; margin-bottom: 17px; place-items: center; border-radius: 8px; background: #e2fff0; color: #087a40; font-size: 19px; }
.reward-card h3 { margin-bottom: 8px; font-size: 16px; }
.reward-card p { min-height: 37px; margin-bottom: 13px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.reward-card > strong { color: #087a40; font-family: Manrope,sans-serif; font-size: 21px; }
.reward-card > strong small { color: #858991; font-family: 'DM Sans',sans-serif; font-size: 10px; font-weight: 500; }
.unilevel-card { grid-column: span 2; min-height: 230px; }
.unilevel-card p { min-height: unset; }
.level-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; margin: 17px 0 12px; }
.level-grid span { display: flex; justify-content: space-between; padding: 8px; border-radius: 5px; background: #F1F4F6; color: #787D84; font-size: 10px; }
.level-grid b { color: #087a40; }
.eligibility-note { color: #848990; font-size: 10px; }
.compliance-note { display: flex; gap: 12px; margin-top: 20px; padding: 15px 17px; border: 1px solid #e8e2c9; border-radius: 7px; background: #fbf8eb; color: #776d47; }
.compliance-note > span { flex: 0 0 20px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #eee5c2; font-weight: 700; }
.compliance-note p { margin: 0; font-size: 11px; line-height: 1.65; }
/* Home-page FAQ. Native <details> so it opens and closes with no script, styled to
   match the card language used elsewhere on the page. */
.faq-list { max-width: none; margin: 0 auto; display: grid; gap: 11px; }
.faq-item { border: 1px solid var(--line); border-radius: 9px; background: var(--white); box-shadow: 0 10px 30px rgba(20, 45, 90, .04); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; color: var(--ink); font-family: Manrope,sans-serif; font-size: 14px; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #eef3f9; color: #2b4d7e; font-size: 15px; font-weight: 600; transition: transform .2s ease, background .2s ease; }
.faq-item summary:hover { color: var(--green-2); }
.faq-item[open] summary::after { content: "-"; background: var(--green); color: var(--white); }
.faq-item p { margin: 0; padding: 0 20px 19px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.faq-foot { max-width: none; margin: 20px auto 0; color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; }
.faq-foot a { color: var(--green-2); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.bottom-cta { display: flex; align-items: center; justify-content: space-between; padding: 46px clamp(20px, 5vw, 80px); background: var(--green); color: white; }
.bottom-cta .eyebrow { color: #94AEC9; }
.bottom-cta h2 { margin: 10px 0 5px; font-size: 25px; letter-spacing: -.04em; }
.bottom-cta p { margin: 0; color: #C0C6D0; font-size: 12px; }
.button-light { background: var(--lime); color: var(--green); }
.button-light:hover { background: #52ef92; transform: translateY(-2px); }
footer { min-height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 13px clamp(20px, 5vw, 80px); background: white; color: #7B8088; font-size: 10px; }
.footer-brand { color: var(--ink); font-size: 12px; }
.footer-brand .brand-mark { width: 29px; height: 29px; font-size: 19px; }

.auth-layout { min-height: 630px; display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 70px; max-width: 1400px; margin: auto; padding: 70px 35px; }
.login-layout { min-height: 540px; }
.auth-copy h1 { max-width: 520px; margin: 15px 0; font-size: 45px; line-height: 1.13; letter-spacing: -.05em; }
.auth-copy > p { max-width: 460px; color: var(--muted); line-height: 1.7; }
.mini-stat { display: flex; align-items: baseline; gap: 12px; margin-top: 35px; padding-top: 18px; border-top: 1px solid var(--line); }
.mini-stat strong { color: var(--green-2); font-family: Manrope,sans-serif; font-size: 25px; }
.mini-stat span { color: var(--muted); font-size: 13px; }
.card { border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.form-card { padding: 30px; }
.form-card h2 { margin-bottom: 7px; font-size: 23px; letter-spacing: -.04em; }
.muted { color: var(--muted); }
.form-card > .muted { margin-bottom: 21px; font-size: 14px; }
.form-card label { display: block; margin-bottom: 14px; color: #343C4B; font-size: 13px; font-weight: 700; }
.form-card label .muted { font-weight: 400; }
.form-card input { width: 100%; height: 46px; margin-top: 6px; padding: 0 12px; border: 1px solid #DCE0E5; border-radius: 5px; outline: 0; color: var(--ink); font-size: 16px; }
.form-card input:focus { border-color: #667690; box-shadow: 0 0 0 3px rgba(102, 118, 144,.12); }
/* A select beside the card's inputs, matched to them so a package choice looks
   like the rest of the form rather than the browser's default control. */
.form-card select { width: 100%; height: 46px; margin-top: 6px; padding: 0 12px; border: 1px solid #DCE0E5; border-radius: 5px; outline: 0; background: white; color: var(--ink); font-size: 16px; }
.form-card select:focus { border-color: #667690; box-shadow: 0 0 0 3px rgba(102, 118, 144,.12); }
/* Password show/hide toggle. Wraps any password field so the eye button can sit
   inside the input's right edge without disturbing the field's own sizing. */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap input[type="password"],
.pw-wrap input[type="text"] { padding-right: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer; color: #6b7280; padding: 0; border-radius: 4px; }
.pw-toggle:hover { color: #111827; background: rgba(0,0,0,.05); }
.pw-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.pw-toggle svg { width: 18px; height: 18px; }
.pw-toggle .pw-eye-off { display: none; }
.pw-toggle.pw-show .pw-eye { display: none; }
.pw-toggle.pw-show .pw-eye-off { display: block; }
.full-width { width: 100%; margin-top: 7px; }
.form-foot { margin: 17px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.form-foot a { color: var(--green-2); font-weight: 700; }
.setup-notice, .alerts { max-width: none; margin: 18px auto 0; padding: 17px 20px; border: 1px solid #e8e2c9; border-radius: 8px; background: #fbf8eb; color: #675e3f; }
.setup-notice h1 { margin: 8px 0 5px; font-size: 20px; }
.setup-notice p, .alerts p { margin: 0; font-size: 12px; line-height: 1.6; }
.alerts { margin-bottom: -20px; border-color: #f1d2c8; background: #fff5f1; color: #8b3c2a; }
.alerts p + p { margin-top: 5px; }

.dashboard-head { max-width: none; margin: auto; padding: 55px 25px 24px; display: flex; align-items: center; justify-content: space-between; }
.dashboard-head h1 { margin: 10px 0 5px; font-size: 32px; letter-spacing: -.04em; }
.dashboard-head p { margin: 0; color: var(--muted); font-size: 13px; }
.status-pill { padding: 8px 12px; border-radius: 30px; background: #fff0d6; color: #8b6928; font-size: 11px; font-weight: 700; }
.status-active { background: #e2fff0; color: #087a40; }
.status-suspended { background: #fce8e7; color: #9a4844; }
.notice-banner { max-width: none; margin: 0 auto 18px; padding: 13px 16px; border: 1px solid #eadfba; border-radius: 6px; background: #fbf7e9; color: #746438; font-size: 11px; }
.metrics-grid { max-width: none; display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; margin: auto; }
.metric-card { padding: 19px 20px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.metric-card span { display: block; color: #6E737C; font-size: 11px; font-weight: 600; }
.metric-card strong { display: block; margin: 10px 0 4px; font-family: Manrope,sans-serif; font-size: 28px; letter-spacing: -.04em; }
.metric-card small { color: #898D94; font-size: 10px; }
/* Icon rules sit below .metric-card span so they win on specificity, not !important. */
.metric-card .metric-icon { display: grid; width: 34px; height: 34px; margin-bottom: 13px; place-items: center; border-radius: 9px; background: #eef3f9; color: #4b5d79; font-size: 16px; }
.metric-card .metric-icon-team { background: #e9f0fa; color: #2b4d7e; }
.metric-card .metric-icon-wallet { background: #eaf6ef; color: #31745a; }
.metric-card .metric-icon-package { background: #fdf3e6; color: #94702f; }
.metric-card .metric-icon-date { background: #efeefa; color: #54558f; }
.metric-card .metric-word { font-size: 20px; }
.dashboard-grid { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px auto 70px; }
.dashboard-grid > *, .wallet-layout > *, .account-layout > *, .simulator-layout > * { min-width: 0; }
.panel { padding: 23px; box-shadow: none; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.panel-heading h2 { margin: 7px 0 0; font-size: 18px; letter-spacing: -.03em; }
.icon-badge, .team-count { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; background: #E9EEF4; color: #4B5D79; font-size: 18px; }
.team-count { border-radius: 50%; font-size: 12px; font-weight: 700; }
.panel > p { color: var(--muted); font-size: 12px; }
.referral-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 17px 0 14px; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: #F8FAFB; }
.referral-box code { padding-left: 6px; color: #31425F; font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.small { font-size: 10px !important; }
.detail-row { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-top: 1px solid #EAEDF0; color: #747981; font-size: 11px; }
.detail-row strong { color: #333B49; text-align: right; font-weight: 600; }
.team-panel { grid-column: span 2; }
.empty-state { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #525C6C; text-align: center; }
.empty-icon { margin-bottom: 9px; color: #00b95c; font-size: 25px; }
.empty-state strong { font-family: Manrope,sans-serif; font-size: 13px; }
.empty-state p { margin: 7px 0 0; color: #848990; font-size: 11px; }
.table-wrap, .admin-table-wrap, .matrix-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 8px; color: #898D94; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
td { padding: 12px 8px; border-top: 1px solid #EAEDF0; color: #434A56; font-size: 11px; }
.status-text { color: #987541; font-weight: 700; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.invite-share { display: flex; align-items: center; gap: 8px; }
.invite-share input { min-width: 0; flex: 1; height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: #536157; font-size: 10px; }
.invite-share .button { flex: 0 0 auto; }
.copy-feedback { min-height: 15px; margin: 7px 0 5px !important; color: var(--green-2) !important; }

/* Dashboard enrichment. The three numbers on their own read as a stub, so the
   member view also carries an identity block, a network snapshot, the draft
   reward list, a first-steps checklist and a feed built from real rows. */
.dashboard-identity { display: flex; align-items: center; gap: 17px; }
.avatar { flex: 0 0 auto; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--lime); font-family: Manrope,sans-serif; font-size: 21px; font-weight: 700; }
.dashboard-head .head-meta { display: flex; align-items: center; gap: 9px; margin: 12px 0 0; font-size: 11px; }
.code-chip { padding: 5px 9px; border: 1px solid #d4e0f0; border-radius: 4px; background: #f2f6fc; color: #2b4d7e; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.network-panel { max-width: none; margin: 14px auto 0; }
.network-panel .panel-heading { margin-bottom: 12px; }
.panel > .panel-note { max-width: 660px; margin: 0 0 16px; font-size: 12px; line-height: 1.6; }
.panel > .panel-foot { margin: 14px 0 0; color: #858991; font-size: 10px; line-height: 1.6; }
.dashboard-network { padding: 18px 16px 14px; border: 1px solid #dfe7f1; border-radius: 8px; background: #f8fafd; }
.share-kit { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 4px 0 12px; padding-top: 12px; border-top: 1px solid #eaedf0; }
.share-label { width: 100%; color: #858991; font-size: 10px; font-weight: 600; }
.share-chip { padding: 7px 11px; border: 1px solid var(--line); border-radius: 20px; background: white; color: #2b4d7e; font-size: 10px; font-weight: 700; cursor: pointer; }
.share-chip:hover { border-color: #b9cbe4; background: #f4f8fd; }
.checklist, .reward-rows, .activity-feed { margin: 0; padding: 0; list-style: none; }
.checklist-item { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 11px; padding: 12px 0; border-top: 1px solid #eaedf0; }
.checklist-item:first-child { padding-top: 0; border-top: 0; }
.checklist-mark { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: #eef3f9; color: #7b8798; font-size: 11px; font-weight: 700; }
.checklist-item.is-done .checklist-mark { background: #d2f5e3; color: #087a40; }
.checklist-item.is-open .checklist-mark { background: #fdf3e6; color: #94702f; }
.checklist-item strong, .reward-rows strong, .activity-item strong { display: block; color: #333b49; font-size: 12px; }
.checklist-item small, .activity-item small { display: block; margin-top: 3px; color: #858991; font-size: 10px; line-height: 1.55; }
.checklist-item a { color: var(--green-2); font-weight: 700; }
.reward-rows li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto 18px; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid #eaedf0; }
.reward-rows li:first-child { padding-top: 0; border-top: 0; }
.reward-row-index { color: #b7bbc0; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.reward-rows small { display: block; margin-top: 2px; color: #858991; font-size: 10px; line-height: 1.5; }
.reward-row-amount { color: #087a40; font-family: Manrope,sans-serif; font-size: 14px; font-weight: 700; white-space: nowrap; }
.reward-row-amount small { display: inline; margin: 0; font-size: 9px; }
.reward-row-link { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: #eef3f9; color: #4b5d79; font-size: 10px; }
.reward-row-link:hover { background: var(--green); color: white; }
.activity-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid #eaedf0; }
.activity-item:first-child { padding-top: 0; border-top: 0; }
.activity-mark { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #eef3f9; color: #4b5d79; font-size: 10px; }
.activity-join .activity-mark { background: #e9f0fa; color: #2b4d7e; }
.activity-order .activity-mark { background: #fdf3e6; color: #94702f; }
.activity-team .activity-mark { background: #d2f5e3; color: #087a40; }
.activity-item time { color: #9aa0a8; font-size: 10px; white-space: nowrap; }
.pre-member-steps, .activation-steps { margin: 16px 0 0; padding: 0; list-style: none; }
.pre-member-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 11px; padding: 10px 0; border-top: 1px solid #eaedf0; }
.pre-member-steps li:first-child { padding-top: 0; border-top: 0; }
.pre-member-steps strong, .activation-steps strong { display: block; color: #333b49; font-size: 12px; }
.pre-member-steps small, .activation-steps small { display: block; margin-top: 3px; color: #858991; font-size: 10px; line-height: 1.55; }
.step-number { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: #eef3f9; color: #4b5d79; font-size: 11px; font-weight: 700; }
.activation-panel { max-width: none; margin: 0 auto 14px; }
.activation-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid #eaedf0; }
.activation-steps li:first-child { padding-top: 0; border-top: 0; }
.activation-steps li.is-done .step-number { background: #d2f5e3; color: #087a40; }
.activation-steps .code-chip { letter-spacing: .1em; }
.step-flag { padding: 5px 10px; border-radius: 20px; background: #f4f2e9; color: #8a8264; font-size: 9px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.step-flag-done { background: #d2f5e3; color: #087a40; }
.detail-block { margin-top: 12px; }
.detail-block .detail-row:first-child { border-top: 0; }
.wallet-panel { max-width: none; margin: 14px auto 0; }
.wallet-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.wallet-main .panel-note { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.wallet-balances { display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: 11px; }
.wallet-balance { padding: 15px 16px; border: 1px solid #e2eaf4; border-radius: 8px; background: #f8fafd; }
.balance-label { display: block; color: #858991; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.wallet-balance strong { display: block; margin: 7px 0 3px; color: #1e2a3d; font-family: Manrope,sans-serif; font-size: 21px; letter-spacing: -.03em; }
.wallet-balance small { display: block; color: #858991; font-size: 10px; line-height: 1.5; }
.wallet-example { margin-top: 16px; padding: 16px 18px; border: 1px dashed #c6d7ec; border-radius: 9px; background: #f4f8fd; }
.example-flag { display: inline-block; padding: 4px 8px; border-radius: 3px; background: #fdf3e6; color: #94702f; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.wallet-example h3 { margin: 10px 0; color: #333b49; font-size: 13px; }
.example-rows { margin: 0; padding: 0; list-style: none; }
.example-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #e3eaf4; }
.example-rows li:first-child { padding-top: 0; border-top: 0; }
.example-rows strong { display: block; color: #333b49; font-size: 11px; }
.example-rows small { display: block; margin-top: 2px; color: #858991; font-size: 10px; }
.example-rows span { color: #2b4d7e; font-family: Manrope,sans-serif; font-size: 13px; font-weight: 700; white-space: nowrap; }
.example-foot { margin: 12px 0 0; color: #858991; font-size: 10px; line-height: 1.6; }
.wallet-side { display: grid; gap: 16px; }
.payout-form, .payout-history { padding: 18px; border: 1px solid #e2eaf4; border-radius: 9px; background: #f8fafd; }
.payout-form h3, .payout-history h3 { margin: 0 0 13px; color: #1e2a3d; font-size: 14px; letter-spacing: -.02em; }
.payout-form label { display: block; margin-bottom: 12px; color: #4b5563; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.payout-form select, .payout-form input { display: block; width: 100%; height: 38px; margin-top: 6px; padding: 0 10px; border: 1px solid #d4e0f0; border-radius: 5px; background: #fff; color: #333b49; font: inherit; font-size: 12px; text-transform: none; }
.payout-form select:disabled, .payout-form input:disabled { background: #f1f3f6; color: #949aa3; cursor: not-allowed; }
.payout-note { margin: 0 0 13px; color: #94702f; font-size: 10px; line-height: 1.6; }
.payout-facts { margin: 14px 0 0; padding: 0; list-style: none; }
.payout-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #e3eaf4; color: #858991; font-size: 10px; }
.payout-facts li span:last-child { color: #4b5563; font-weight: 700; text-align: right; }
.payout-empty { min-height: 108px; }
.payout-empty .empty-icon { font-size: 20px; }
.account-panel { max-width: none; margin: 14px auto 70px; }
.account-panel .panel-note { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.account-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.account-form { padding: 18px; border: 1px solid #e2eaf4; border-radius: 9px; background: #f8fafd; }
.account-form h3 { margin: 0 0 14px; color: #1e2a3d; font-size: 14px; letter-spacing: -.02em; }
.account-form label { display: block; margin-bottom: 12px; color: #4b5563; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.account-form label .muted { font-weight: 400; text-transform: none; }
.account-form input { display: block; width: 100%; height: 40px; margin-top: 6px; padding: 0 11px; border: 1px solid #d4e0f0; border-radius: 5px; background: #fff; color: #333b49; font: inherit; font-size: 12px; text-transform: none; }
.account-form input:focus { border-color: #667690; box-shadow: 0 0 0 3px rgba(102, 118, 144,.12); outline: 0; }
.account-form input:disabled { background: #f1f3f6; color: #949aa3; cursor: not-allowed; }
.account-hint { margin: -4px 0 14px; color: #858991; font-size: 10px; line-height: 1.6; }
.button[disabled], .button:disabled { background: var(--green); cursor: not-allowed; opacity: .55; box-shadow: none; transform: none !important; }
.level-rows { margin: 0; padding: 0; list-style: none; }
.level-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 30px; align-items: center; gap: 11px; padding: 8px 0; border-top: 1px solid #eaedf0; }
.level-row:first-child { padding-top: 0; border-top: 0; }
.level-index { color: #9aa0a8; font-size: 10px; font-weight: 700; }
.level-bar { display: block; height: 6px; border-radius: 3px; background: #eef3f9; overflow: hidden; }
.level-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg,#175ab8,#123d82); }
.level-row strong { color: #2b4d7e; font-family: Manrope,sans-serif; font-size: 12px; text-align: right; }

.simulator-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 17px 19px; border: 1px solid #d9e3ef; background: rgba(255,255,255,.68); }
.simulator-cta p { max-width: 520px; margin: 0; color: #687992; font-size: 11px; line-height: 1.6; }
.simulator-cta .button { min-height: 40px; }

[hidden] { display: none !important; }
.simulator-page { padding: 54px clamp(20px, 5vw, 80px) 76px; }
.page-back { display: flex; width: fit-content; align-items: center; gap: 7px; margin-bottom: 14px; color: #6C7D91; font-size: 12px; font-weight: 700; }
.page-back:hover { color: var(--green-2); }
.page-back span[aria-hidden] { font-size: 13px; }
.simulator-intro { max-width: 820px; margin-bottom: 25px; }
.simulator-intro h1 { margin: 14px 0 12px; font-size: clamp(40px, 5vw, 58px); letter-spacing: -.045em; line-height: 1.08; }
.simulator-intro > p { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.simulator-install-button { margin-top: 18px; }
.simulator-install-status { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.simulator-package { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 0; }
.simulator-package label { color: #687992; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.simulator-package select { min-height: 40px; padding: 0 12px; border: 1px solid #dce0e5; border-radius: 5px; background: #fff; color: var(--ink); font-size: 13px; }
.simulator-plan-name { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.simulation-disclaimer { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 27px; padding: 15px 17px; border: 1px solid #e8e2c9; background: #fbf8eb; color: #776d47; }
.simulation-disclaimer > span { display: grid; flex: 0 0 21px; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: #eee5c2; font-size: 12px; font-weight: 700; }
.simulation-disclaimer p { margin: 0; font-size: 12px; line-height: 1.65; }
.simulation-disclaimer strong { color: #4d412f; }
.simulator-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 20px; }
.simulator-tabs { display: grid; gap: 6px; }
.simulator-tab { scroll-margin-top: 48px; display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 60px; padding: 9px 11px; border: 1px solid transparent; border-left: 3px solid transparent; border-radius: 4px; background: transparent; color: #52627b; cursor: pointer; text-align: left; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.simulator-tab:hover { background: rgba(255,255,255,.55); }
.simulator-tab.is-selected { border-color: #d4dfed; border-left-color: #123d82; background: #fff; color: #123d82; box-shadow: 0 5px 16px rgba(26,54,94,.07); }
.simulator-tab:focus-visible, .sim-number:focus-visible, .qualification-toggle input:focus-visible { outline: 3px solid rgba(18,61,130,.26); outline-offset: 2px; }
.simulator-tab-index { color: #6b85aa; font-size: 9px; font-weight: 700; }
.simulator-tab > span:nth-child(2) { font-size: 12px; font-weight: 700; }
.simulator-tab-rate { color: #5879a7; font-size: 9px; white-space: nowrap; }
.simulator-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.simulator-panel { padding: clamp(22px, 4vw, 38px); }
.simulator-panel-heading { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.simulator-panel-heading h2 { margin: 9px 0 7px; color: #10213d; font-size: 29px; letter-spacing: -.025em; }
.simulator-panel-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.sim-input-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; padding: 12px 0; border-top: 1px solid var(--line); }
.sim-input-row > span:not(.sim-number-group), .qualification-toggle > span { display: grid; gap: 5px; }
.sim-input-row strong, .qualification-toggle strong { color: #343c4b; font-size: 12px; }
.sim-input-row small, .qualification-toggle small { color: #848990; font-size: 10px; }
.sim-number { width: 102px; height: 41px; padding: 0 10px; border: 1px solid #dce0e5; border-radius: 5px; background: #fff; color: var(--ink); font-size: 14px; text-align: right; transition: border-color .16s ease, box-shadow .16s ease; }
.sim-number:focus { border-color: #667690; box-shadow: 0 0 0 3px rgba(102,118,144,.12); outline: 0; }
.sim-number[aria-invalid="true"] { border-color: #d9a99b; background: #fff5f1; }
/* Cross-platform number stepper. Native <input type="number"> spinners are hidden
   on most mobile browsers, so every count field is wrapped with explicit minus and
   plus buttons that work identically on phones and desktops. */
.sim-number-group {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #dce0e5;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.sim-number-group:focus-within { border-color: #667690; box-shadow: 0 0 0 3px rgba(102,118,144,.12); }
.sim-number-group.is-invalid { border-color: #d9a99b; background: #fff5f1; }
.sim-number-group .sim-number {
    width: 54px;
    min-width: 0;
    height: 41px;
    border: 0;
    border-radius: 0;
    text-align: center;
    -moz-appearance: textfield;
}
.sim-number-group .sim-number::-webkit-outer-spin-button,
.sim-number-group .sim-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.sim-number-group .sim-number[aria-invalid="true"] { background: #fff5f1; }
.sim-number-spinner {
    display: grid;
    place-items: center;
    width: 36px;
    border: 0;
    background: #f5f8fc;
    color: #5879a7;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background .16s ease, color .16s ease;
}
.sim-number-spinner:hover { background: #e8eef7; color: #123d82; }
.sim-number-spinner:active { background: #dce6f2; }
.sim-number-spinner[disabled] { color: #c4cdd8; cursor: not-allowed; background: #f5f8fc; }
.sim-pair-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.sim-pair-inputs .sim-input-row { align-items: flex-start; flex-direction: column; gap: 8px; }
.sim-pair-inputs .sim-number-group { width: 100%; }
.sim-pair-inputs .sim-number-group .sim-number { flex: 1; text-align: left; padding: 0 10px; }
.binary-cap { margin: 13px 0 4px; padding: 14px 15px; border: 1px solid #dfe7f1; border-radius: 5px; background: #f6f9fd; }
.binary-cap-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: #687992; font-size: 10px; }
.binary-cap-heading strong { display: flex; align-items: baseline; gap: 5px; color: #123d82; font-size: 14px; }
.binary-cap-heading small { color: #7b8ba3; font-size: 9px; font-weight: 500; }
.binary-cap-track { height: 7px; overflow: hidden; border-radius: 8px; background: #dce5f0; }
.binary-cap-track > span { width: 0; height: 100%; display: block; border-radius: inherit; background: var(--lime); transition: width .25s ease; }
.binary-safety { margin: 12px 0 0; padding: 12px 15px; border: 1px solid #eaddc6; border-radius: 5px; background: #fdf9f0; }
.binary-safety-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; color: #6f6449; font-size: 10px; }
.binary-safety-row strong { color: #4d412f; font-size: 12px; }
.binary-safety-note { margin: 8px 0 0; color: #8a7c58; font-size: 9px; line-height: 1.5; }
.passup-trigger { margin: 13px 0 5px; padding: 13px 15px 11px; border: 1px solid #dfe7f1; border-radius: 5px; background: #f6f9fd; }
.passup-trigger-label { display: block; margin-bottom: 11px; color: #687992; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
/* The chips are plan-driven, so the legend holds one, two, or no ranks: the columns
   follow the number of chips instead of being fixed at two. */
.passup-milestones { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.passup-milestones::before { position: absolute; top: 12px; right: 25%; left: 25%; height: 1px; background: #cbd8e8; content: ""; }
.passup-milestones span { position: relative; z-index: 1; justify-self: center; min-width: 27px; padding: 5px 7px; border: 1px solid #d4dfed; border-radius: 14px; background: #f5f8fc; color: #71819a; font-size: 9px; text-align: center; transition: .18s ease; }
.passup-milestones span.is-reached { border-color: #91cdae; background: #e2fff0; color: #087a40; }
.passup-milestones span[data-rank="manager"].is-reached { border-color: var(--lime); background: var(--lime); color: #123d48; }
.sim-result { display: grid; gap: 8px; margin-top: 20px; padding: 20px 22px; border-radius: 5px; background: var(--green); color: #fff; }
.sim-result.has-error { background: #8b3c2a; }
.sim-result > span { color: var(--lime); font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.sim-result output { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 5vw, 43px); letter-spacing: -.03em; line-height: 1; }
.sim-result p { margin: 0; color: #c0c6d0; font-size: 10px; line-height: 1.5; }
.sim-assumption { margin: 16px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.sim-assumption-warning { padding: 12px 14px; border-left: 2px solid #d9c48a; background: #fbf8eb; color: #776d47; }
.sim-assumption-warning strong { color: #4d412f; }
.sim-genealogy { margin-top: 20px; padding: 16px 17px; border: 1px solid #dfe7f1; border-radius: 5px; background: #f8fafd; }
.genealogy-title { display: block; margin-bottom: 13px; color: #687992; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.genealogy-node { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 5px 9px; border: 1px solid #dbe1e8; border-radius: 4px; background: #fff; }
.genealogy-badge { display: grid; flex: 0 0 auto; min-width: 21px; height: 21px; place-items: center; border-radius: 50%; background: #eef3f9; color: #5879a7; font-size: 9px; font-weight: 700; }
.genealogy-text { display: grid; gap: 1px; }
.genealogy-text strong { color: #343c4b; font-size: 10px; }
.genealogy-text small { color: #848990; font-size: 9px; }
/* The Founder chip marks a seat the company made by hand. It sits under the name
   in the same grid, so it never displaces the badge, and it is a label only:
   never a rank and never a colour the earned states already use. */
.genealogy-founder { justify-self: start; display: inline-flex; align-items: center; padding: 1px 6px; border: 1px solid #ddc99a; border-radius: 999px; background: #fdf8ec; color: #8a6f33; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.genealogy-node.is-you .genealogy-founder { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.16); color: #fff; }
.genealogy-node.is-you { border-color: #123d82; background: var(--green); }
.genealogy-node.is-you .genealogy-text strong { color: #fff; }
.genealogy-node.is-you .genealogy-text small { color: #c0c6d0; }
.genealogy-node.is-counted { border-color: #a9d8bf; background: #f2fff8; }
.genealogy-node.is-counted .genealogy-badge { background: #d2f5e3; color: #087a40; }
.genealogy-node.is-counted .genealogy-text small { color: #087a40; font-weight: 700; }
.genealogy-node.is-skipped, .genealogy-node.is-empty { border-style: dashed; background: #fbfcfe; }
.genealogy-node.is-empty .genealogy-text strong { color: #848990; font-weight: 600; }
.genealogy-node.is-unpaired { border-style: dashed; background: #fdfaf5; }
.genealogy-node.is-unpaired .genealogy-text small { color: #9c8a63; }
.genealogy-node.is-held { border-color: #ddc99a; background: #fdf8ec; }
.genealogy-node.is-held .genealogy-badge { background: #f1e4c4; color: #8a6f33; }
.genealogy-node.is-held .genealogy-text small { color: #9c8a63; font-weight: 700; }
/* A leg drawn as "more members": its members sit past the drawn depth, so it is
   not an open slot and must not wear the open slot's dashed look. It reads as a
   solid, tinted aggregate marker instead, and, when the leg sits in the member's
   own line, it is a link that registers into the first open slot of that leg. */
.genealogy-node.is-overflow { border-style: solid; border-color: #cfd9e6; background: #eef3f9; }
.genealogy-node.is-overflow .genealogy-badge { border: 1px solid #cfd9e6; background: #fff; color: #5879a7; }
.genealogy-node.is-overflow .genealogy-text strong { color: #3f4c60; font-weight: 700; }
a.genealogy-slot-link.is-overflow:hover { border-color: #1a5fb4; background: #e3edfb; }
a.genealogy-slot-link.is-overflow:hover .genealogy-text strong,
a.genealogy-slot-link.is-overflow:hover .genealogy-text small { color: #1a5fb4; }
.genealogy-caption { margin: 14px 0 0; color: #52627b; font-size: 10px; line-height: 1.6; }

/* Drill-down controls: a depth selector and the breadcrumb back to the top. */
.genealogy-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 14px; }
.genealogy-depth { display: inline-flex; align-items: center; gap: 6px; }
.genealogy-depth-label { color: #52627b; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.genealogy-depth-btn { display: inline-grid; min-width: 30px; height: 28px; place-items: center; padding: 0 8px; border: 1px solid #d3dce8; border-radius: 4px; background: #fff; color: #343c4b; font-size: 12px; font-weight: 700; text-decoration: none; }
.genealogy-depth-btn:hover { border-color: #7a93b5; background: #eef3f9; }
.genealogy-depth-btn.is-active { border-color: #123d82; background: #123d82; color: #fff; }
.genealogy-breadcrumb { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #52627b; font-size: 12px; }
.genealogy-breadcrumb a { color: #1a5fb4; text-decoration: none; }
.genealogy-breadcrumb a:hover { text-decoration: underline; }
.genealogy-breadcrumb-sep { color: #a9b2c2; }
.genealogy-breadcrumb-current { color: #343c4b; font-weight: 700; }
/* A node that is also a link: keep it visually identical to a plain node. */
a.genealogy-node-link { text-decoration: none; cursor: pointer; }
a.genealogy-node-link:hover { border-color: #7a93b5; background: #eef3f9; }
a.genealogy-node-link.is-you:hover { border-color: #123d82; background: var(--green); }
/* An open slot that invites a registration. Stays dashed like a plain empty
   slot, but gains a hover state so the member can see it is actionable. */
a.genealogy-slot-link { text-decoration: none; cursor: pointer; }
a.genealogy-slot-link:hover { border-color: #1a5fb4; background: #eef5ff; }
a.genealogy-slot-link:hover .genealogy-text strong { color: #1a5fb4; }
a.genealogy-slot-link:hover .genealogy-text small { color: #1a5fb4; }
/* The tree is a pan surface, so its links must never start the browser's own
   link drag: that drag would swallow the click instead of opening the link. */
.genealogy-tree a.genealogy-node-link,
.genealogy-tree a.genealogy-slot-link { -webkit-user-drag: none; }
.genealogy-scroll-hint { margin: 10px 0 0; color: #848990; font-size: 11px; line-height: 1.6; text-align: center; }

/* Triangle view: every generation hangs under the sponsor that produced it, so the
   network widens downward and an amount can be traced from you to its source. */
.genealogy-tree { display: flex; overflow: auto; padding-bottom: 4px; cursor: grab; touch-action: none; }
.genealogy-tree:active { cursor: grabbing; }
.genealogy-tree.is-dragging { user-select: none; -webkit-user-select: none; }
.genealogy-tree > .tree-unit { flex: 0 0 auto; margin: 0 auto; }
/* The binary legs grow downward like a live binary tree, so the pane is a bounded
   viewport: it scrolls vertically as the tree deepens and sideways as it widens.
   Scrollbars are always visible so deeper and wider levels are obviously reachable
   on every platform, and the corner where they meet is styled to match. */
.genealogy-scroll {
    position: relative;
    border: 1px solid #dfe7f1;
    border-radius: 6px;
    background: #f8fafd;
}
.genealogy-zoom-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 8px 12px 0;
}
.genealogy-zoom-button {
    display: inline-flex;
    min-width: 36px;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid #cbd7e5;
    border-radius: 6px;
    background: #fff;
    color: #123d82;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}
.genealogy-zoom-button:hover:not(:disabled) { border-color: #7a93b5; background: #eef5ff; }
.genealogy-zoom-button:focus-visible { outline: 2px solid #1a5fb4; outline-offset: 2px; }
.genealogy-zoom-button:disabled { opacity: .45; cursor: not-allowed; }
.genealogy-zoom-reset { min-width: 64px; font-size: 12px; }
.genealogy-scroll .genealogy-tree {
    align-items: flex-start;
    min-height: 280px;
    max-height: min(82vh, 820px);
    padding: 18px 20px 22px;
    overflow: auto;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
    scrollbar-color: #7a93b5 #eef3f9;
}
.genealogy-scroll .genealogy-tree::-webkit-scrollbar { width: 14px; height: 14px; }
.genealogy-scroll .genealogy-tree::-webkit-scrollbar-track { background: #eef3f9; border-radius: 7px; }
.genealogy-scroll .genealogy-tree::-webkit-scrollbar-thumb {
    background: #9fb3cc;
    border-radius: 7px;
    border: 3px solid #eef3f9;
}
.genealogy-scroll .genealogy-tree::-webkit-scrollbar-thumb:hover { background: #7a93b5; }
.genealogy-scroll .genealogy-tree::-webkit-scrollbar-corner { background: #eef3f9; }
.tree-unit { position: relative; display: grid; justify-items: center; }
.tree-unit > .genealogy-node { position: relative; z-index: 1; }
.tree-children { position: relative; display: flex; align-items: flex-start; justify-content: center; margin-top: 16px; }
.tree-children::before { position: absolute; top: -16px; left: 50%; width: 2px; height: 16px; margin-left: -1px; background: #dbe4f0; content: ""; }
.tree-children > .tree-unit { position: relative; padding: 16px 7px 0; }
.tree-children > .tree-unit::before { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: #dbe4f0; content: ""; }
.tree-children > .tree-unit::after { position: absolute; top: 0; left: 50%; width: 2px; height: 16px; margin-left: -1px; background: #dbe4f0; content: ""; }
.tree-children > .tree-unit:first-child::before { left: 50%; width: 50%; }
.tree-children > .tree-unit:last-child::before { width: 50%; }
.tree-children > .tree-unit:only-child::before { display: none; }
/* Binary placement: the two legs and their volume, then the placement record. */
.placement-meta { margin: 0 0 14px; color: #343c4b; font-size: 11px; line-height: 1.6; }
.placement-meta strong { color: #10213d; }
.leg-volume { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.leg-card { display: grid; gap: 3px; padding: 13px 14px; border: 1px solid #dfe7f1; border-radius: 5px; background: #f8fafd; }
.leg-card .leg-label { color: #687992; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.leg-card strong { color: #10213d; font-family: Georgia, "Times New Roman", serif; font-size: 24px; line-height: 1; }
.leg-card small { color: #848990; font-size: 10px; }
.leg-card.is-carried { border-color: #ddc99a; background: #fdf8ec; }
.leg-card.is-carried strong { color: #8a6f33; }
.leg-card.is-carried small { color: #9c8a63; }
.placement-history { margin-top: 22px; }
.placement-history h3 { margin: 0 0 10px; color: #10213d; font-size: 13px; }
.qualification-toggle { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 18px; padding: 13px 14px; border: 1px solid #e2e6ea; background: #f8fafb; cursor: pointer; }
.qualification-toggle input { flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--green); }
.unilevel-input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.unilevel-input { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 49px; border-top: 1px solid var(--line); }
.unilevel-input > span { display: grid; gap: 3px; color: #343c4b; font-size: 10px; font-weight: 700; }
.unilevel-input small { color: #848990; font-size: 9px; font-weight: 400; }
.unilevel-input .sim-number-group { width: 124px; }
.unilevel-input .sim-number-group .sim-number { flex: 1; height: 35px; padding: 0 7px; font-size: 12px; }
.unilevel-input .sim-number-spinner { width: 32px; font-size: 16px; }
.unilevel-breakdown { margin: 13px 0 0; padding: 0; list-style: none; }
.unilevel-breakdown li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 10px; border-bottom: 1px solid #eaedf0; color: var(--muted); font-size: 10px; }
.unilevel-breakdown li strong { color: #333b49; font-size: 10px; }
.unilevel-breakdown .breakdown-note { display: block; color: #848990; font-size: 10px; }
/* The offline card centres in the full viewport, since this page carries no chrome. */
.offline-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.offline-card { width: min(100%, 560px); padding: clamp(24px, 6vw, 48px); border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.offline-card .brand { margin-bottom: 38px; }
.offline-card > .eyebrow { display: block; }
.offline-card h1 { margin: 13px 0 12px; font-size: clamp(34px, 7vw, 48px); line-height: 1.1; }
.offline-card > p { color: var(--muted); line-height: 1.7; }
.offline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.notice-success { margin: 0 0 16px; padding: 13px 16px; border: 1px solid #b8dfc9; border-radius: 6px; background: #eefaf3; color: #1d6b45; font-size: 12px; }
/* Saved-confirmation banner on the dashboard. Aligned to the same 1070px column
   the panels below use, so it reads as part of the dashboard rather than the page. */
.dash-notice { max-width: none; margin: 0 auto 18px; }

@media (max-width: 850px) {
    /* The navigation is already folded below 1000px, so only the call to action
       inside the panel still needs a phone-sized tighten-up. */
    .topbar nav .nav-cta { padding: 11px 13px; white-space: nowrap; }
    .hero-banner-actions { padding: 20px; }
    .floating-top { left: 0; }
    .floating-bottom { right: 5%; }
    .section { padding: 70px 6vw; }
    .auth-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 390px); gap: 24px; }
    .trust-strip { flex-wrap: wrap; gap: 12px clamp(18px, 3vw, 30px); padding: 15px 20px; }
    .setup-notice, .alerts { margin-right: 20px; margin-left: 20px; }
    .metrics-grid, .dashboard-grid, .network-panel, .wallet-panel, .account-panel { margin-right: 25px; margin-left: 25px; }
    .metrics-grid { grid-template-columns: repeat(2,1fr); }
    .wallet-layout { grid-template-columns: 1fr; gap: 18px; }
    .account-layout { grid-template-columns: 1fr; gap: 18px; }
    .notice-banner, .dash-notice { margin-right: 25px; margin-left: 25px; }

    .simulator-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 12px; }
    .simulator-tab { grid-template-columns: 22px minmax(0, 1fr); }
    .simulator-tab-rate { grid-column: 2; }
}
@media (max-width: 780px) {
    .auth-layout { min-height: unset; grid-template-columns: 1fr; gap: 30px; padding: 48px 6vw; }
    .login-layout { min-height: unset; }
}
@media (max-width: 650px) {
    .topbar { height: 66px; gap: 10px; padding: 0 16px; }
    /* The folded panel tracks the shorter topbar on phones. */
    .topbar nav { max-height: calc(100vh - 106px); max-height: calc(100dvh - 106px); }
    .hero-banner-actions { padding: 18px 16px; }
    .hero-banner-actions .hero-actions { gap: 14px 20px; }
    .floating-card { min-width: unset; padding: 9px 11px; }
    .floating-top { top: 17%; left: 3%; }
    .floating-bottom { right: 1%; bottom: 13%; }
    .float-icon { width: 29px; height: 29px; }
    .floating-card strong { font-size: 13px; }
    .trust-strip { min-height: 65px; flex-wrap: wrap; gap: 8px 20px; padding: 15px; font-size: 9px; }
    .trust-strip span:first-child { display: none; }
    .section { padding: 62px 20px; }
    .section-intro { margin-bottom: 30px; }
    .faq-item summary { padding: 15px 16px; font-size: 13px; }
    .faq-item p { padding: 0 16px 17px; }
    .section-intro h2 { font-size: 34px; }
    .product-card { grid-template-columns: 1fr; }
    .product-visual { min-height: 220px; }
    .product-info { padding: 25px; }
    .reward-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .reward-card { min-height: 215px; padding: 19px 15px; }
    .unilevel-card { grid-column: span 2; }
    .level-grid { grid-template-columns: repeat(2,1fr); }
    .bottom-cta { align-items: flex-start; flex-direction: column; gap: 22px; padding: 34px 22px; }
    footer { flex-wrap: wrap; gap: 14px; padding: 18px 20px; }
    footer > span { order: 3; width: 100%; }
    .auth-layout { min-height: unset; grid-template-columns: 1fr; gap: 30px; padding: 48px 20px; }
    .auth-copy h1 { font-size: 36px; }
    .form-card { padding: 24px; }
    .activation-steps li { grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: 10px; }
    .activation-steps .step-flag { grid-column: 2; justify-self: start; max-width: 100%; white-space: normal; }
    .dashboard-head { align-items: flex-start; flex-direction: column; gap: 15px; padding: 38px 20px 20px; }
    .dashboard-head h1 { font-size: 27px; }
    .notice-banner, .dash-notice { margin-right: 20px; margin-left: 20px; line-height: 1.6; }
    .metrics-grid { grid-template-columns: 1fr; margin-right: 20px; margin-left: 20px; }
    .metric-card { padding: 17px; }
    .dashboard-grid { grid-template-columns: 1fr; margin: 13px 20px 45px; }
    .wallet-panel { margin-right: 20px; margin-left: 20px; }
    .activation-panel { margin-right: 20px; margin-left: 20px; }
    .account-panel { margin-right: 20px; margin-left: 20px; margin-bottom: 45px; }
    .network-panel { margin-right: 20px; margin-left: 20px; }
    .avatar { width: 48px; height: 48px; font-size: 18px; }
    .dashboard-identity { align-items: flex-start; }
    .activity-item { align-items: start; grid-template-columns: 22px minmax(0, 1fr); }
    .activity-item time { grid-column: 2; }
    .team-panel { grid-column: auto; }
    .panel { padding: 19px; }
    .referral-box { align-items: flex-start; flex-direction: column; }
    .simulator-page { padding: 40px 20px 56px; }
    .simulator-intro h1 { font-size: 39px; }
    .simulator-layout { grid-template-columns: 1fr; }
    .simulator-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
    .simulator-tab { min-height: 57px; padding: 8px; }
    .simulator-tab-rate { font-size: 8px; }
    .simulator-panel { padding: 21px 17px; }
    .simulator-panel-heading h2 { font-size: 25px; }
    .sim-pair-inputs { gap: 12px; }
    .sim-genealogy { padding: 14px 13px; }
    .leg-volume { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tree-children { margin-top: 13px; }
    .tree-children::before { top: -13px; height: 13px; }
    .tree-children > .tree-unit { padding: 13px 5px 0; }
    .tree-children > .tree-unit::after { height: 13px; }
    .unilevel-input-grid { gap: 0 10px; }
    .simulator-cta { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 380px) {
    .unilevel-input-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   DASHBOARD LAYOUT (PWA-style sidebar + responsive)
   Layout only: reuses the existing company theme colors.
   The sidebar replaces the topbar on the dashboard and the
   main area fills the display with no wide empty side space.
   ============================================================ */
body.dashboard-app .topbar,
body.dashboard-app footer { display: none !important; }
body.dashboard-app main { min-height: 100vh; min-height: 100dvh; }

.dashboard-shell {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--paper);
}

/* ---------- Sidebar ---------- */
.dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 248px;
    display: flex;
    flex-direction: column;
    background: var(--green);
    border-right: 1px solid var(--line);
    z-index: 50;
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.dash-sidebar-head {
    padding: 22px 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.dash-brand { display: block; margin-bottom: 16px; }
.dash-brand img { display: block; height: 30px; width: auto; max-width: 100%; }
.dash-user {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
}
.dash-avatar {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--lime);
    color: var(--green);
    font-family: Manrope, sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.dash-user-meta { min-width: 0; }
.dash-user-meta strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-user-meta small {
    display: block;
    margin-top: 2px;
    color: rgba(255,255,255,.65);
    font-size: 11px;
}
.dash-package {
    display: block;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--lime);
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.25;
}

.dash-nav {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}
.dash-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    color: rgba(255,255,255,.75);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: color .18s, background .18s;
}
.dash-nav-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--lime);
    transform: scaleY(0);
    transition: transform .18s;
}
.dash-nav-item:hover,
.dash-nav-item:focus-visible {
    color: #fff;
    background: rgba(255,255,255,.08);
    outline: none;
}
.dash-nav-item.is-active {
    color: var(--lime);
    background: rgba(0,230,118,.1);
}
.dash-nav-item.is-active::before { transform: scaleY(1); }
.dash-nav-icon {
    flex: 0 0 auto;
    width: 18px;
    text-align: center;
    font-size: 14px;
    line-height: 1;
}

.dash-logout-form { margin: 0; padding: 8px 0 16px; border-top: 1px solid rgba(255,255,255,.12); }
.dash-logout { color: #ff8a8a !important; font-weight: 700; }
.dash-logout:hover { background: rgba(255,138,138,.14) !important; }
.dash-logout::before { display: none; }

.dash-sidebar-close {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.15);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    z-index: 2;
}

.dash-menu-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 60;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--green);
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(20,45,90,.15);
}

/* ---------- Main content ---------- */
.dash-main {
    flex: 1 1 auto;
    margin-left: 248px;
    padding: 28px 32px 56px;
    min-width: 0;
}
/* Fill the available width: no wide empty side space on large displays. */
.dash-main > * { max-width: none; margin-left: auto; margin-right: auto; }

/* Let the existing dashboard panels fill the wider shell. */
body.dashboard-app .dashboard-head,
body.dashboard-app .metrics-grid,
body.dashboard-app .dashboard-grid,
body.dashboard-app .network-panel,
body.dashboard-app .wallet-panel,
body.dashboard-app .account-panel,
body.dashboard-app .notice-banner,
body.dashboard-app .dash-notice,
body.dashboard-app .activation-panel {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Backdrop for mobile sidebar ---------- */
.dash-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 45;
    opacity: 0;
    transition: opacity .25s ease;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        box-shadow: 0 0 40px rgba(0,0,0,.25);
    }
    .dashboard-sidebar.is-open { transform: translateX(0); }
    .dash-sidebar-close { display: grid; place-items: center; }
    .dash-menu-toggle { display: grid; place-items: center; }
    .dash-backdrop.is-open { display: block; opacity: 1; }
    .dash-main {
        margin-left: 0;
        padding: 68px 18px 40px;
    }
    body.dashboard-app .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.dashboard-app .dashboard-grid { grid-template-columns: 1fr; }
    body.dashboard-app .wallet-layout { grid-template-columns: 1fr; }
    body.dashboard-app .account-layout { grid-template-columns: 1fr; }
    body.dashboard-app .leg-volume { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px) {
    .dash-main { padding: 64px 14px 32px; }
    body.dashboard-app .metrics-grid { grid-template-columns: 1fr; }
    body.dashboard-app .panel { padding: 16px; }
    body.dashboard-app .metric-card { padding: 16px; }
}

/* ------------------------------------------------------------------------
   Member-area legibility.
   The signed-in member area is marked by body.dashboard-app: the index
   dashboard and the shop, orders, wallet, statements and activation pages.
   The staff consoles use body.admin-body and the public pages carry no marker,
   so none of the rules below reach them.
   These sizes are raised for older readers on phones: running text to 15px,
   captions and labels to about 13px, and every form field to 16px, which is
   also the width at which iOS stops zooming the page when a field is tapped.
   Headings keep their scale, so the pages stay calm rather than shouty.
   ------------------------------------------------------------------------ */
body.dashboard-app .dash-nav-item { font-size: 15px; }
body.dashboard-app .dash-nav-icon { font-size: 17px; }
body.dashboard-app .dash-user-meta strong { font-size: 15px; }
body.dashboard-app .dash-user-meta small { font-size: 13px; }
body.dashboard-app .dash-package { font-size: 12px; }
body.dashboard-app .dashboard-head p { font-size: 15px; }
body.dashboard-app .eyebrow { font-size: 12px; }
body.dashboard-app th { font-size: 12px; }
body.dashboard-app td { font-size: 15px; }
body.dashboard-app .metric-card span { font-size: 13.5px; }
body.dashboard-app .metric-card small,
body.dashboard-app .wallet-balance small,
body.dashboard-app .example-rows small,
body.dashboard-app .reward-rows small,
body.dashboard-app .activity-item time,
body.dashboard-app .head-meta { font-size: 13px; }
body.dashboard-app .panel > p,
body.dashboard-app .panel > .panel-note,
body.dashboard-app .account-panel .panel-note,
body.dashboard-app .wallet-main .panel-note { font-size: 14.5px; }
body.dashboard-app .panel > .panel-foot,
body.dashboard-app .example-foot { font-size: 13px; }
body.dashboard-app .detail-row { font-size: 14px; }
body.dashboard-app .empty-state strong { font-size: 15px; }
body.dashboard-app .empty-state p { font-size: 13.5px; }
body.dashboard-app .code-chip,
body.dashboard-app .status-pill,
body.dashboard-app .notice-banner { font-size: 13px; }
body.dashboard-app .small { font-size: 13px !important; }
body.dashboard-app .checklist-item strong,
body.dashboard-app .reward-rows strong,
body.dashboard-app .activity-item strong,
body.dashboard-app .pre-member-steps strong,
body.dashboard-app .activation-steps strong { font-size: 14.5px; }
body.dashboard-app .checklist-item small,
body.dashboard-app .activity-item small,
body.dashboard-app .pre-member-steps small,
body.dashboard-app .activation-steps small { font-size: 13px; }
body.dashboard-app .step-flag { font-size: 12px; }
body.dashboard-app .balance-label { font-size: 12px; }
body.dashboard-app .wallet-example h3 { font-size: 15px; }
body.dashboard-app .example-rows strong { font-size: 14px; }
body.dashboard-app .example-rows span,
body.dashboard-app .reward-row-amount { font-size: 15px; }
body.dashboard-app .example-flag { font-size: 11.5px; }
body.dashboard-app .payout-form h3,
body.dashboard-app .payout-history h3,
body.dashboard-app .account-form h3 { font-size: 15.5px; }
body.dashboard-app .payout-form label,
body.dashboard-app .account-form label,
body.dashboard-app .share-label { font-size: 12.5px; }
body.dashboard-app .payout-form select,
body.dashboard-app .payout-form input,
body.dashboard-app .account-form input,
body.dashboard-app .invite-share input { font-size: 16px; }
body.dashboard-app .payout-note,
body.dashboard-app .account-hint { font-size: 13px; }
body.dashboard-app .payout-facts li { font-size: 13.5px; }
body.dashboard-app .share-chip,
body.dashboard-app .reward-row-index,
body.dashboard-app .reward-row-link,
body.dashboard-app .level-index { font-size: 12.5px; }
body.dashboard-app .level-row strong { font-size: 14px; }

/* ------------------------------------------------------------------------
   The icon set.
   Every icon is an inline SVG stroke sized at 1em, so it takes the size and
   colour of the slot it sits in and stays sharp at any zoom or pixel ratio.
   The slot sizes below are set so each drawing fills its badge neatly.
   ------------------------------------------------------------------------ */
.ventra-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -.14em;
    flex: 0 0 auto;
}
.checkmark { font-size: 12px; }
.activity-mark { font-size: 12px; }
.metric-card .metric-icon { font-size: 17px; }
.icon-badge, .team-count { font-size: 19px; }
/* A stroke reads lighter than a glyph, so the two smallest round slots get a
   touch more size than the numeral that shares them. */
.checklist-mark .ventra-icon, .step-number .ventra-icon { width: 13px; height: 13px; }

