/* =========================================================
   Snaplys — Mobile app UI
   iOS 26 "liquid glass" aesthetic × AI/imaging brand palette
   ========================================================= */

:root {
    /* Brand palette — indigo (AI) × teal (vision/data), with warm accents */
    --c1:   #6C5CE7;
    --c2:    #FF5C7A;
    --c3: #FFB020;
    --c4:  #00C2A8;
    --c1-d: #4B3FC4;

    /* Neutrals — dark is the default identity now, not an opt-in toggle state */
    --ink:      #e8eaed;
    --ink-2:    #9aa0a6;
    --ink-3:    #74787e;
    --line:     rgba(255, 255, 255, .12);

    /* Glass surfaces — alpha stays close to the original so text/numbers on
       data-bearing cards (balances, commissions) don't lose legibility; the
       actual "liquid" feel comes mostly from the much stronger blur/saturate
       below and the specular rim-light in --shadow-card/--shadow-pop. */
    --glass:        rgba(32, 33, 38, .58);
    --glass-strong: rgba(32, 33, 38, .8);
    --glass-line:   rgba(255, 255, 255, .16);
    --blur:         saturate(210%) blur(30px);

    /* Radii (continuous-corner feel) */
    --r-lg: 30px;
    --r-md: 22px;
    --r-sm: 16px;

    /* Shadows — layered with an inset top rim-light + faint inset base shadow
       so every card reads as a lit, curved piece of glass, not just a blurred
       flat panel. A faint white top highlight still reads as a lit glass
       edge, with a deep black cast shadow instead of a light-theme's soft grey. */
    --shadow-card: 0 8px 30px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .25),
                   inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(0, 0, 0, .35);
    --shadow-pop:  0 18px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12);

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
            "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Surface tokens (theme-swappable) */
    --bg-body:  #131418;
    --card-bg:  #1c1d22;
    --field-bg: #1c1d22;
    --input-border: #33353c;
    --surface-1: rgba(19, 20, 24, .85);
    --surface-2: rgba(19, 20, 24, .4);
    --surface-3: rgba(19, 20, 24, .55);
    --surface-4: rgba(19, 20, 24, .92);
}

/* Light mode is now the opt-in state (via the theme toggle), not the default. */
:root[data-theme="light"] {
    --ink:      #1b1c1f;
    --ink-2:    #5f6368;
    --ink-3:    #9aa0a6;
    --line:     rgba(60, 64, 67, .12);

    --glass:        rgba(255, 255, 255, .58);
    --glass-strong: rgba(255, 255, 255, .8);
    --glass-line:   rgba(255, 255, 255, .85);

    --bg-body:  #f4f7fe;
    --card-bg:  #ffffff;
    --field-bg: #ffffff;
    --input-border: #d4dae3;
    --surface-1: rgba(255, 255, 255, .85);
    --surface-2: rgba(255, 255, 255, .4);
    --surface-3: rgba(255, 255, 255, .55);
    --surface-4: rgba(255, 255, 255, .92);

    --shadow-card: 0 8px 30px rgba(31, 41, 55, .10), 0 2px 8px rgba(31, 41, 55, .06),
                   inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 -1px 0 rgba(31, 41, 55, .05);
    --shadow-pop:  0 18px 50px rgba(31, 41, 55, .22), inset 0 1px 0 rgba(255, 255, 255, .6);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html {
    -webkit-text-size-adjust: 100%;
}

html:has(.app) {
    overflow: hidden;
    height: 100%;
    height: 100dvh;
}

body {
    font-family: var(--font);
    color: var(--ink);
    line-height: 1.5;
    background: var(--bg-body);
    min-height: 100vh;
    min-height: 100dvh;
}

body:has(.app) {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
    width: 100%;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }
.material-symbols-rounded { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ---------- App shell ----------
   Mobile-first: the app fills the whole screen, edge-to-edge (real native feel).
   On desktop (>=520px) it becomes a centered phone mockup. */
.app {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background:
        radial-gradient(520px 360px at -10% -6%, rgba(108,92,231,.16), transparent 60%),
        radial-gradient(520px 360px at 120% 4%, rgba(255,92,122,.13), transparent 58%),
        radial-gradient(620px 420px at 50% 116%, rgba(0,194,168,.16), transparent 60%),
        linear-gradient(180deg, var(--card-bg) 0%, var(--bg-body) 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 600px) {
    /* No device mockup — just center the app column on large screens */
    .app { max-width: 480px; margin-inline: auto; }
}

/* ---------- Top app bar ---------- */
.appbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: calc(8px + env(safe-area-inset-top, 0px)) 20px 12px;
    background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    flex-shrink: 0;
}
.appbar__back {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--glass); border: 1px solid var(--glass-line);
    color: var(--ink);
}
.theme-toggle {
    position: relative;
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--glass); border: 1px solid var(--glass-line);
    color: var(--ink);
    transition: transform .15s ease;
}
.theme-toggle:active { transform: scale(.9); }
.theme-toggle::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 2px;
    background: conic-gradient(from 0deg, var(--c1), var(--c4), var(--c3), var(--c2), var(--c1));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: rxThemeRing 4s linear infinite;
    pointer-events: none;
}
.theme-toggle .material-symbols-rounded { position: relative; z-index: 1; font-size: 21px; }

@keyframes rxThemeRing { to { transform: rotate(360deg); } }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
    width: 38px; height: 38px; border-radius: 50%;
    position: relative;
    background: #4B3FC4;
    box-shadow: 0 6px 16px rgba(75,63,196,.35);
    overflow: hidden;
    flex-shrink: 0;
}
.brand__mark::before, .brand__mark::after {
    content: ''; position: absolute; width: 58%; height: 58%; border-radius: 32%;
}
.brand__mark::before { background: #00E0C0; top: 16%; left: 14%; transform: rotate(-9deg); }
.brand__mark::after  { background: #FF5C7A; top: 34%; left: 34%; transform: rotate(10deg); }
.brand__name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand__name b { font-weight: 800; }
.brand__name .c1{color:var(--c1)} .brand__name .c2{color:var(--c2)}
.brand__name .c3{color:var(--c3)} .brand__name .c4{color:var(--c4)}

/* ---------- Scroll area ---------- */
.screen {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    padding: 6px 20px 120px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen--center { display: flex; flex-direction: column; justify-content: center; }

/* ---------- Glass card ---------- */
.glass {
    background: var(--glass);
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    border: 1px solid var(--glass-line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
}

/* Liquid glass — the whole platform's glass surfaces soften/deepen while the
   page is actively scrolling (one shared --blur swap on <body>, so this is a
   single cheap variable change, not a per-element per-frame effect), then
   ease back to resting state when scrolling stops. */
.glass, .appbar, .tabbar { transition: backdrop-filter .4s ease, -webkit-backdrop-filter .4s ease; }
body.is-scrolling { --blur: saturate(240%) blur(38px); }

/* Popups are excluded from the scroll-blur effect entirely — iOS Safari has
   long-standing bugs rendering an animated backdrop-filter on a
   position:fixed overlay (the exact shape of .rx-sheet), which is what broke
   every popup on iPhone. A modal is also normally shown while the page is
   static anyway, so the scroll effect never made sense here regardless. */
.rx-sheet, .rx-sheet .glass { --blur: saturate(210%) blur(30px) !important; transition: none !important; }

/* Liquid glass touch ripple — a soft light bloom that expands from the exact
   touch/click point, like light refracting through glass. Applied via JS
   (liquid-glass.js in the layout) to any .glass / .btn / tappable surface. */
.liquid-ripple-host { position: relative; overflow: hidden; }
.liquid-ripple {
    position: absolute; border-radius: 50%; pointer-events: none; z-index: 5;
    background: radial-gradient(circle, rgba(255,255,255,.6) 0%, rgba(255,255,255,.24) 45%, rgba(255,255,255,0) 72%);
    mix-blend-mode: overlay;
    transform: translate(-50%, -50%) scale(0);
    animation: liquidRipple .65s cubic-bezier(.25,.8,.25,1) forwards;
}
@keyframes liquidRipple {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: .95; }
    55%  { opacity: .5; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Small rounded pill link — used for compact header actions across pages */
.wd-pill {
    display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650;
    color: var(--ink-2); background: var(--field-bg); border: 1px solid var(--line);
    padding: 7px 12px; border-radius: 999px; transition: border-color .15s ease, color .15s ease;
}
.wd-pill .material-symbols-rounded { font-size: 15px; }
.wd-pill:active { border-color: var(--c1); color: var(--c1-d); }

/* Bigger icon badge with shadow — reused across earn/trust/withdraw cards */
.earn-badge { width: 50px !important; height: 50px !important; border-radius: 50% !important; box-shadow: 0 6px 14px rgba(16,24,40,.14); flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 54px; padding: 0 22px; width: 100%;
    border-radius: 17px; font-size: 16px; font-weight: 700; letter-spacing: -.01em;
    transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:active { transform: scale(.97); }
.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--c1) 0%, var(--c1-d) 100%);
    box-shadow: 0 10px 24px rgba(108,92,231,.40);
}
.btn--ghost {
    color: var(--c1-d);
    background: var(--glass-strong);
    border: 1px solid var(--glass-line);
}
.btn--google {
    color: var(--ink); background: var(--card-bg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}
.btn--sm { height: 44px; font-size: 14px; width: auto; padding: 0 18px; border-radius: 14px; }
.btn .material-symbols-rounded { font-size: 20px; }

/* ---------- Pills / chips ---------- */
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 14px; border-radius: 999px;
    font-size: 13px; font-weight: 650; color: var(--ink-2);
    background: var(--glass); border: 1px solid var(--glass-line);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--blue{background:var(--c1)} .dot--red{background:var(--c2)}
.dot--yellow{background:var(--c3)} .dot--green{background:var(--c4)}

/* ---------- Hero ---------- */
.hero { padding: 18px 4px 8px; }
.hero h1 {
    font-size: 33px; line-height: 1.08; font-weight: 800; letter-spacing: -.03em;
    margin: 14px 0 12px;
}
.hero h1 .grad {
    background: linear-gradient(120deg, var(--c1), var(--c4) 60%, var(--c3));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: var(--ink-2); font-size: 16px; max-width: 34ch; }
.hero__cta { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

/* ---------- Section headings ---------- */
.section { margin-top: 26px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; padding: 0 2px; }
.section__head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.section__head a { font-size: 13px; font-weight: 650; color: var(--c1-d); }

/* ---------- Feature list (how it works) ---------- */
.feature {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px; margin-bottom: 12px;
}
.feature__icon {
    flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
}
.feature__icon .material-symbols-rounded { font-size: 26px; }
.ic--blue{background:linear-gradient(135deg,#5b9bff,var(--c1)) !important}
.ic--red{background:linear-gradient(135deg,#ff7a6f,var(--c2)) !important}
.ic--yellow{background:linear-gradient(135deg,#ffd34d,#f9a825) !important;color:#3a2c00}
.ic--green{background:linear-gradient(135deg,#5fd07e,var(--c4)) !important}
.feature__body h3 { font-size: 15.5px; font-weight: 750; letter-spacing: -.01em; }
.feature__body p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.feature__step { margin-left: auto; align-self: center; font-size: 13px; font-weight: 800; color: var(--ink-3); }

/* ---------- Timeline (step-by-step flows: "How it works" etc.) ----------
   A connected vertical rail with icon nodes, instead of identical stacked
   cards — reads as a deliberate sequence rather than a generic feature list. */
.timeline { position: relative; padding: 4px 0; }
.timeline::before {
    content: '';
    position: absolute;
    left: 23px; top: 28px; bottom: 28px; width: 2px;
    background: linear-gradient(180deg, var(--c1), var(--c4));
    opacity: .22;
}
.timeline__item { position: relative; display: flex; gap: 16px; padding-bottom: 26px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__node {
    position: relative; z-index: 1; flex-shrink: 0;
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    box-shadow: 0 0 0 6px var(--bg-body), 0 6px 14px rgba(16,24,40,.14);
}
.timeline__node .material-symbols-rounded { font-size: 23px; }
.timeline__body { padding-top: 5px; min-width: 0; }
.timeline__body h3 { font-size: 15.5px; font-weight: 750; letter-spacing: -.01em; }
.timeline__body p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }

/* ---------- Stat row ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 16px 12px; text-align: center; }
.stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.stat--blue b{color:var(--c1-d)} .stat--green b{color:var(--c4)} .stat--red b{color:var(--c2)}

/* ---------- Audience cards ---------- */
.split { display: grid; gap: 12px; }
.audience { padding: 20px; position: relative; overflow: hidden; }
.audience h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.audience p { font-size: 13.5px; color: var(--ink-2); }
.audience .material-symbols-rounded { position: absolute; right: -6px; bottom: -10px; font-size: 86px; opacity: .10; }

/* ---------- CTA banner ---------- */
.cta-banner {
    margin-top: 26px; padding: 26px 22px; text-align: center; color: #fff;
    border-radius: var(--r-lg); overflow: hidden; position: relative;
    background: linear-gradient(135deg, var(--c1) 0%, #6a5cff 55%, var(--c4) 130%);
    box-shadow: 0 16px 40px rgba(108,92,231,.35);
}
.cta-banner h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.cta-banner p { opacity: .9; font-size: 14px; margin: 8px 0 18px; }
.cta-banner .btn { background: #fff; color: var(--c1-d); box-shadow: none; }

/* ---------- Bottom nav ----------
   Fixed to the viewport so Android PWA / standalone never scrolls it away. */
.tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 14px calc(16px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, var(--surface-3), var(--surface-4));
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    border-top: 1px solid var(--glass-line);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

@media (min-width: 600px) {
    .tabbar {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateZ(0);
        -webkit-transform: translateX(-50%) translateZ(0);
        width: 100%;
        max-width: 480px;
    }
}

@media (display-mode: standalone) {
    .tabbar {
        padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    }
}
.tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 10.5px; font-weight: 650; color: var(--ink-3);
}
.tabbar a.is-active { color: var(--c1-d); }
.tabbar a .material-symbols-rounded { font-size: 25px; }
.tabbar a.is-active .material-symbols-rounded { font-variation-settings: 'FILL' 1; }

/* ---------- Forms ---------- */
.auth-head { text-align: center; margin: 8px 0 22px; }
.auth-head h1 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; }
.auth-head p { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }

.field { margin-bottom: 14px; position: relative; }
.field label {
    display: block; font-size: 12.5px; font-weight: 650; color: var(--ink-2);
    margin: 0 0 6px 4px;
}
.field input {
    width: 100%; height: 54px; padding: 0 16px;
    font-size: 15.5px; font-family: inherit; color: var(--ink);
    background: var(--field-bg);
    border: 1.5px solid var(--input-border); border-radius: 16px;
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, .05);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input::placeholder { color: var(--ink-3); }
.field input:hover { border-color: #aeb6c2; }
.field input:focus {
    outline: none; background: var(--field-bg);
    border-color: var(--c1);
    box-shadow: 0 0 0 4px rgba(108,92,231, .16);
}
.field--pw input { padding-right: 50px; }
.field__toggle {
    position: absolute; right: 12px; bottom: 12px;
    width: 32px; height: 32px; display: grid; place-items: center;
    color: var(--ink-3); background: transparent;
}
.field__toggle .material-symbols-rounded { font-size: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

/* Select (bank picker) */
.field select {
    width: 100%; height: 54px; padding: 0 44px 0 16px;
    font-size: 15.5px; font-family: inherit; color: var(--ink);
    background-color: var(--field-bg);
    border: 1.5px solid var(--input-border); border-radius: 16px;
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, .05);
    -webkit-appearance: none; appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235f6368' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.field select:focus { outline: none; border-color: var(--c1); box-shadow: 0 0 0 4px rgba(108,92,231,.16); }

.field textarea {
    width: 100%; min-height: 96px; padding: 14px 16px; resize: vertical;
    font-size: 15.5px; font-family: inherit; color: var(--ink);
    background: var(--field-bg);
    border: 1.5px solid var(--input-border); border-radius: 16px;
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, .05);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea::placeholder { color: var(--ink-3); }
.field textarea:focus {
    outline: none; border-color: var(--c1);
    box-shadow: 0 0 0 4px rgba(108,92,231, .16);
}

/* Verified account result box */
.verify-box {
    display: none; align-items: center; gap: 12px;
    padding: 14px 16px; margin: 4px 0 16px;
    border-radius: 16px; background: rgba(0,194,168,.10);
    border: 1.5px solid rgba(0,194,168,.35);
}
.verify-box.show { display: flex; }
.verify-box .material-symbols-rounded { color: var(--c4); font-size: 26px; }
.verify-box small { display: block; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.verify-box b { font-size: 15.5px; letter-spacing: -.01em; }
.lock-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); margin: 2px 4px 18px; }
.lock-note .material-symbols-rounded { font-size: 18px; color: var(--ink-3); }

.trust-gate {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
    padding: 18px 16px; margin: 0 0 14px; border-radius: 16px;
    background: rgba(255,176,32,.12); border: 1.5px solid rgba(255,176,32,.35);
}
.trust-gate .material-symbols-rounded { font-size: 30px; color: #b45309; }
.trust-gate b { font-size: 14.5px; color: var(--ink); line-height: 1.4; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.checkrow { display: flex; align-items: flex-start; gap: 10px; margin: 4px 2px 18px; font-size: 13px; color: var(--ink-2); }
.checkrow input { width: 20px; height: 20px; accent-color: var(--c1); margin-top: 1px; }
.checkrow a { color: var(--c1-d); font-weight: 650; }

.form-foot { text-align: center; font-size: 14px; color: var(--ink-2); margin-top: 18px; }
.form-foot a { color: var(--c1-d); font-weight: 700; }
.forgot { text-align: right; margin: -4px 4px 16px; }
.forgot a { font-size: 13px; font-weight: 650; color: var(--c1-d); }

.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- About ---------- */
.about-hero { text-align: center; padding: 16px 6px 6px; }
.about-hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 12px; }
.about-hero p { color: var(--ink-2); font-size: 15px; margin-top: 10px; }
.value { display: flex; gap: 14px; align-items: flex-start; padding: 16px; margin-bottom: 12px; }
.value .material-symbols-rounded { color: var(--c1-d); }
.value h3 { font-size: 15.5px; font-weight: 750; }
.value p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }

/* ---------- Social login (old-theme markup, restyled) ---------- */
.other-option { position: relative; text-align: center; margin: 22px 0 16px; }
.other-option::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.other-option__text {
    position: relative; background: transparent; padding: 0 14px;
    font-size: 12.5px; font-weight: 650; color: var(--ink-3);
    display: inline-block;
}
.other-option__text::before {
    content: ""; position: absolute; inset: -4px -2px; z-index: -1;
    background: var(--bg-body); filter: blur(2px);
}
.signup-btn {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 18px; border-radius: 16px;
    font-size: 15px; font-weight: 650; color: var(--ink) !important;
    background: var(--card-bg); border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}
.signup-btn img { width: 20px; height: 20px; object-fit: contain; }
.flex-fill { flex: 1 1 auto; }

/* =========================================================
   Authenticated app (dashboard / earn / withdraw / referral)
   ========================================================= */
.topbar-telegram {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, #37aee2, #1e96c8);
    box-shadow: 0 4px 12px rgba(30,150,200,.35);
}
.topbar-telegram .material-symbols-rounded { font-size: 19px; }

/* Greeting */
.greet-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.greet-ic {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    border: 1px solid var(--glass-line);
}
.greet-ic--morning   { background: linear-gradient(135deg, rgba(255,159,67,.16), rgba(255,159,67,.05)); }
.greet-ic--afternoon { background: linear-gradient(135deg, rgba(255,201,60,.18), rgba(255,154,0,.05)); }
.greet-ic--evening   { background: linear-gradient(135deg, rgba(108,111,224,.18), rgba(108,111,224,.05)); }
.greet-hi { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.greet-name { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-top: 1px; }

/* Wallet card — styled like a physical premium card rather than a plain
   gradient banner: dark navy/violet body, gold EMV-style chip, diagonal
   light sheen, cardholder + contactless footer. */
.balance-card {
    padding: 22px; color: #fff; border-radius: 22px; position: relative; overflow: hidden; isolation: isolate;
    background: linear-gradient(135deg, rgba(16,16,20,.55) 0%, rgba(42,38,44,.4) 45%, rgba(16,16,20,.55) 100%);
    -webkit-backdrop-filter: saturate(190%) blur(30px);
    backdrop-filter: saturate(190%) blur(30px);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow:
        0 18px 40px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.3),
        inset 0 -1px 0 rgba(0,0,0,.3);
}
.balance-card::before {
    content: ''; position: absolute; inset: -60% -20%; z-index: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.1) 46%, rgba(255,255,255,.24) 50%, rgba(255,255,255,.1) 54%, transparent 70%);
}
.balance-card::after {
    content: ''; position: absolute; width: 190px; height: 190px; right: -70px; bottom: -90px;
    border-radius: 50%; background: rgba(212,175,55,.22); filter: blur(4px); pointer-events: none; z-index: 0;
}
.balance-card__brandrow { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.balance-card__brand { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; letter-spacing: .09em; opacity: .9; }
.balance-card__brand .material-symbols-rounded { font-size: 16px; color: #ffd54f; }
.balance-card__chip {
    width: 34px; height: 25px; border-radius: 6px; position: relative;
    background: linear-gradient(135deg, #ffe9a8, #d4af37 60%, #ffe9a8);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}
.balance-card__chip::before, .balance-card__chip::after {
    content: ''; position: absolute; left: 6px; right: 6px; height: 1px; background: rgba(0,0,0,.22);
}
.balance-card__chip::before { top: 8px; }
.balance-card__chip::after { top: 16px; }
.balance-card__top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.balance-card__label { display: flex; align-items: center; gap: 6px; opacity: .7; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.balance-card__label .material-symbols-rounded { font-size: 15px; }
.balance-card__eye {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff;
    display: grid; place-items: center; cursor: pointer;
}
.balance-card__eye .material-symbols-rounded { font-size: 17px; }
.balance-card .amount { font-size: 33px; font-weight: 800; letter-spacing: -.01em; margin-top: 6px; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.balance-card .row-actions { display: flex; gap: 10px; margin-top: 18px; position: relative; z-index: 1; }
.balance-card .row-actions a {
    flex: 1; height: 48px; border-radius: 14px; font-weight: 700; font-size: 13.5px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    border: none; transition: transform .15s ease;
}
.balance-card .row-actions a:active { transform: scale(.96); }
.balance-card .row-actions a.solid {
    background: linear-gradient(135deg, #00C2A8, #0f9d58); color: #fff;
    box-shadow: 0 4px 12px rgba(15,157,88,.35);
}
.balance-card .row-actions a:not(.solid) {
    background: linear-gradient(135deg, #ffe9a8, #d4af37); color: #6b4e00;
    box-shadow: 0 4px 12px rgba(212,175,55,.3);
}
.balance-card .row-actions .material-symbols-rounded { font-size: 19px; }

/* Quick actions */
.qa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px; text-align: center; }
.qa .qa-ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.qa .qa-ic .material-symbols-rounded { font-size: 25px; }
.qa span { font-size: 11px; font-weight: 650; color: var(--ink-2); }

/* List cards */
.list-card { padding: 2px 4px; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.lrow:last-child { border-bottom: none; }
.lrow__ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.lrow__ic .material-symbols-rounded { font-size: 23px; }
.lrow__main { flex: 1; min-width: 0; }
.lrow__main b { font-size: 14.5px; font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow__main small { font-size: 12px; color: var(--ink-2); }
.lrow__end { text-align: right; flex-shrink: 0; }
.lrow__end b { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.lrow__end small { font-size: 11px; color: var(--ink-3); display: block; }

/* Trust score */
.trust-card { padding: 18px; }
.trust-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.trust-ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.trust-ic .material-symbols-rounded { font-size: 26px; }
.trust-head .t-label { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.trust-head .t-score { font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.trust-head .t-badge { margin-left: auto; align-self: flex-start; }
.progress { height: 10px; border-radius: 999px; background: rgba(60,64,67,.10); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--c1), var(--c4)); }
.trust-note { font-size: 12px; color: var(--ink-2); margin-top: 9px; text-align: center; }

/* Empty state */
.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); }
.empty .material-symbols-rounded { font-size: 56px; opacity: .45; }
.empty p { margin-top: 10px; font-size: 14px; }

/* Soft badges */
.badge-soft {
    display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
    -webkit-backdrop-filter: saturate(180%) blur(8px); backdrop-filter: saturate(180%) blur(8px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.badge-soft.green { background: rgba(0,194,168,.14); color: #1e7e34; }
.badge-soft.blue  { background: rgba(108,92,231,.14); color: var(--c1-d); }
.badge-soft.dark  { background: rgba(60,64,67,.12); color: var(--ink-2); }
.badge-soft.amber { background: rgba(255,176,32,.18); color: #946200; }
.badge-soft.red   { background: rgba(255,92,122,.14); color: #c5221f; }

/* Section card + copy field */
.section-card { padding: 18px; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { flex: 1; }
.copy-field button { width: 54px; height: 54px; border-radius: 50%; background: var(--c1); color: #fff; display: grid; place-items: center; flex-shrink: 0; }

/* Earn (PTC) ad cards */
.earn-card { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 12px; }
.earn-card__ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; background: linear-gradient(135deg, #5b9bff, var(--c1)); }
.earn-card__main { flex: 1; min-width: 0; }
.earn-card__main h3 { font-size: 15px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.earn-card__main small { font-size: 12.5px; color: var(--ink-2); }
.earn-card__end { text-align: right; flex-shrink: 0; }
.earn-card__reward { font-size: 16px; font-weight: 800; color: var(--c4); display: block; margin-bottom: 6px; }

/* Withdraw method picker */
.method-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.method-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--card-bg); border: 1.5px solid var(--input-border); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.method-item:has(input:checked) { border-color: var(--c1); box-shadow: 0 0 0 4px rgba(108,92,231,.14); }
.method-item img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.method-item .payment-item__name { font-weight: 700; font-size: 14.5px; flex: 1; }
.method-item .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cfd5de; display: grid; place-items: center; }
.method-item:has(input:checked) .tick { border-color: var(--c1); background: var(--c1); }
.method-item:has(input:checked) .tick::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.summary-row.total { border-bottom: none; padding-top: 15px; font-weight: 800; color: var(--ink); font-size: 16px; }
.summary-row b { color: var(--ink); font-weight: 700; }

/* minimal bootstrap-compat utilities used by reused partials */
.d-none { display: none !important; }
.d-flex { display: flex; } .flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.w-100 { width: 100%; } .form-group { margin-bottom: 14px; }
.align-items-center { align-items: center; }

/* shared */
.mb-2 { margin-bottom: 8px; } .mt-3 { margin-top: 16px; }
.center { text-align: center; }

/* =========================================================
   Landing page (marketing homepage) — a distinct, dark,
   editorial identity. Deliberately NOT the app shell's light
   glassmorphism look: this page should read as a website, not
   another screen inside the earning app.
   ========================================================= */
.lp {
    background:
        radial-gradient(1100px 600px at 12% -10%, rgba(108,92,231,.38), transparent 60%),
        radial-gradient(900px 520px at 105% 6%, rgba(0,194,168,.22), transparent 55%),
        radial-gradient(700px 420px at 50% 120%, rgba(255,92,122,.14), transparent 60%),
        #0B0D17;
    color: #F4F5FA;
    min-height: 100vh; min-height: 100dvh;
    overflow-x: hidden;
    padding: 0 0 50px !important;
}
.lp-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px;
}
.lp-nav .brand__name { color: #fff; font-size: 19px; }
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 18px; border-radius: 13px; font-size: 14px; font-weight: 700;
    transition: transform .15s ease;
}
.lp-btn:active { transform: scale(.96); }
.lp-btn--ghost-sm { color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); }

/* Hero */
.lp-hero { padding: 14px 20px 6px; position: relative; }
.lp-hero__eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: #C3BBFF; background: rgba(108,92,231,.2); border: 1px solid rgba(139,124,246,.35);
    padding: 7px 13px; border-radius: 999px; margin-bottom: 20px;
}
.lp-hero h1 {
    font-family: 'Clash Display', var(--font);
    font-size: 38px; line-height: 1.06; font-weight: 700; letter-spacing: -.03em;
    margin-bottom: 16px;
}
.lp-hero h1 .grad {
    background: linear-gradient(120deg, #A79BFF, #4CE0C6 60%, #FFC15C);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lp-hero p { font-size: 15.5px; line-height: 1.55; color: rgba(244,245,250,.66); max-width: 42ch; margin-bottom: 26px; }
.lp-hero__cta { display: flex; flex-direction: column; gap: 12px; }
.lp-hero .lp-btn { height: 56px; border-radius: 16px; font-size: 15.5px; }
.lp-hero .lp-btn--primary { color: #fff; background: linear-gradient(135deg,#8B7CF6,#4B3FC4); box-shadow: 0 16px 32px rgba(108,92,231,.4); }
.lp-hero .lp-btn--ghost { color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }

/* Photo-tile mosaic — the visual anchor, echoes the app mark's tile motif */
.lp-mosaic { position: relative; height: 168px; margin: 34px 0 4px; }
.lp-tile {
    position: absolute; border-radius: 22px; box-shadow: 0 22px 40px rgba(0,0,0,.4);
    display: grid; place-items: center; color: rgba(255,255,255,.92);
}
.lp-tile .material-symbols-rounded { font-size: 26px; }
.lp-tile--1 { width: 104px; height: 104px; left: 2%; top: 6px; background: linear-gradient(135deg,#8B7CF6,#6C5CE7); transform: rotate(-10deg); }
.lp-tile--2 { width: 92px; height: 92px; left: 29%; top: 44px; background: linear-gradient(135deg,#00E0C0,#00A896); transform: rotate(7deg); z-index: 2; }
.lp-tile--3 { width: 86px; height: 86px; left: 55%; top: 0; background: linear-gradient(135deg,#FF5C7A,#FF8FA3); transform: rotate(-5deg); }
.lp-tile--4 { width: 76px; height: 76px; right: 2%; top: 58px; background: linear-gradient(135deg,#FFB020,#F5941F); transform: rotate(11deg); }

/* Stat strip — one bordered bar with dividers, not three separate cards */
.lp-stats {
    display: flex; padding: 22px 12px; margin: 30px 20px 0; border-radius: 20px;
    background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09);
}
.lp-stat { flex: 1; text-align: center; padding: 0 4px; }
.lp-stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.lp-stat span { font-size: 10.5px; color: rgba(244,245,250,.5); font-weight: 650; }
.lp-stat--1 b { color: #A79BFF; } .lp-stat--2 b { color: #4CE0C6; } .lp-stat--3 b { color: #FF8FA3; }
.lp-stat + .lp-stat { border-left: 1px solid rgba(255,255,255,.09); }

/* Section header on dark */
.lp-section { padding: 0 20px; margin-top: 44px; }
.lp-section h2 { font-family: 'Clash Display', var(--font); font-size: 23px; font-weight: 700; letter-spacing: -.02em; color: #fff; margin-bottom: 4px; }
.lp-section .lp-sub { color: rgba(244,245,250,.5); font-size: 13px; margin-bottom: 20px; }

/* Timeline re-tuned for the dark background */
.lp .timeline { margin-top: 6px; }
.lp .timeline::before { opacity: .35; }
.lp .timeline__node { box-shadow: 0 0 0 6px #0B0D17, 0 6px 14px rgba(0,0,0,.35); }
.lp .timeline__body h3 { color: #fff; }
.lp .timeline__body p { color: rgba(244,245,250,.58); }

/* Bento grid — asymmetric card sizes instead of a uniform stacked list */
.lp-bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 6px; }
.lp-bento-card {
    padding: 22px; border-radius: 20px; position: relative; overflow: hidden;
    background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09);
}
.lp-bento-card--wide { grid-column: span 2; }
.lp-bento-ic { font-size: 28px; margin-bottom: 14px; display: block; }
.lp-bento-card h3 { color: #fff; font-size: 15.5px; font-weight: 750; margin-bottom: 6px; letter-spacing: -.01em; }
.lp-bento-card p { color: rgba(244,245,250,.6); font-size: 13px; line-height: 1.55; }

/* CTA block — full-bleed gradient panel, not another list card */
.lp-cta {
    margin: 44px 20px 0; padding: 36px 24px; border-radius: 26px; text-align: center;
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #6C5CE7 0%, #4B3FC4 55%, #00A896 130%);
}
.lp-cta h2 { font-family: 'Clash Display', var(--font); font-size: 23px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.lp-cta p { color: rgba(255,255,255,.85); font-size: 13.5px; margin-bottom: 22px; }
.lp-cta .lp-btn { background: #fff; color: #1a1533; width: 100%; max-width: 280px; margin: 0 auto; height: 52px; border-radius: 15px; box-shadow: 0 16px 32px rgba(0,0,0,.28); }

.lp-footer { text-align: center; padding: 32px 20px 44px; color: rgba(244,245,250,.4); font-size: 12.5px; }
.lp-footer a { color: #A79BFF; font-weight: 650; }
