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

:root {
    --ag-void: #12061c;
    --ag-ink: #1c0b2e;
    --ag-panel: #2a1248;
    --ag-line: rgba(216,180,254,.16);
    --ag-text: #f6edff;
    --ag-dim: #b9a3d4;
    --ag-lilac: #d8b4fe;
    --ag-berry: #c026d3;
}

html, body, .ag-body, .login-body {
    background: #12061c !important;
    color: var(--ag-text) !important;
    font-family: Outfit, system-ui, sans-serif !important;
}

.ag-app, .app-layout {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background:
        radial-gradient(120% 60% at 80% -10%, rgba(192,38,211,.35), transparent 55%),
        linear-gradient(180deg, #2a0a4a 0%, #12061c 38%, #12061c 100%) !important;
    padding-bottom: 96px !important;
    color: var(--ag-text) !important;
}
.ag-app.no-nav, .app-layout.no-nav { padding-bottom: 20px !important; }

.ag-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 8px;
}
.ag-top-who { display: flex; align-items: center; gap: 12px; }
.ag-mark {
    width: 58px; height: 58px; border-radius: 16px;
    object-fit: contain; background: rgba(255,255,255,.06);
}
.ag-top-who small { display: block; font-size: 11px; color: var(--ag-dim); letter-spacing: .08em; text-transform: uppercase; }
.ag-top-who strong { display: block; font-size: 18px; font-weight: 700; }
.ag-top-act { display: flex; gap: 8px; }
.ag-top-act a {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    color: var(--ag-lilac); background: rgba(255,255,255,.06);
    position: relative; text-decoration: none;
}
.ag-top-act span {
    position: absolute; top: 4px; right: 4px;
    min-width: 14px; height: 14px; padding: 0 3px;
    border-radius: 99px; background: var(--ag-berry); color: #fff;
    font-size: 9px; font-weight: 800; display: grid; place-items: center;
}

.ag-main, .page-content {
    padding: 4px 16px 28px !important;
    color: var(--ag-text) !important;
}

.ag-support {
    display: flex; justify-content: space-between; gap: 8px;
    background: #134e4a; color: #fff; padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; font-size: 13px;
}
.ag-support a { color: #fff; }

.ag-wallet {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 80% at 100% -20%, rgba(244, 114, 182, .28), transparent 50%),
        radial-gradient(80% 60% at -10% 110%, rgba(124, 58, 237, .45), transparent 55%),
        linear-gradient(165deg, #2a1544 0%, #1a0c2e 100%);
    border: 1px solid rgba(250, 232, 255, .16);
    border-radius: 28px;
    padding: 18px 18px 16px;
    margin: 4px 0 16px;
    box-shadow: 0 20px 40px rgba(8, 2, 18, .35);
}
.ag-wallet-shine {
    position: absolute; inset: 0;
    background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, transparent 36%, transparent 62%, rgba(255,255,255,.05) 100%);
    pointer-events: none;
}
.ag-wallet-top {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    z-index: 1;
}
.ag-wallet-logo {
    width: 40px; height: 40px; border-radius: 12px; object-fit: contain;
    background: rgba(255,255,255,.08);
}
.ag-wallet-tools { display: flex; align-items: center; gap: 8px; }
.ag-wallet-eye {
    width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.08); color: #f3e8ff; cursor: pointer;
}
.ag-wallet-tools a {
    font-size: 12px; font-weight: 650; color: #f5d0fe; text-decoration: none;
    background: rgba(255,255,255,.08); padding: 8px 12px; border-radius: 999px;
}
.ag-wallet-label {
    position: relative; z-index: 1;
    margin: 14px 0 4px; font-size: 12px; color: rgba(233,213,255,.72);
}
.ag-wallet h1, .ag-wallet-amt {
    position: relative; z-index: 1;
    margin: 0 0 16px; font-size: 36px; font-weight: 700; letter-spacing: -.05em; line-height: 1;
    color: #fff; font-variant-numeric: tabular-nums;
}
.ag-wallet-amt em {
    font-style: normal; font-size: 16px; font-weight: 600; margin-right: 4px;
    color: rgba(245,208,254,.8); letter-spacing: 0;
}
.ag-wallet.is-masked .ag-wallet-amt { letter-spacing: .12em; }
.ag-wallet-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr;
    margin-bottom: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.ag-wallet-grid div { padding: 12px 0; }
.ag-wallet-grid div + div { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.1); }
.ag-wallet-grid small { display: block; font-size: 11px; color: rgba(233,213,255,.62); margin-bottom: 3px; }
.ag-wallet-grid b { font-size: 14px; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; }
.ag-wallet-btns {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.ag-wallet-btns a {
    height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px;
    background: rgba(255,255,255,.1); color: #fff;
    border: 1px solid rgba(255,255,255,.14);
}
.ag-wallet-btns a:first-child {
    background: #f4f0ea; color: #2a1544; border-color: transparent;
}

.ag-stage { padding: 8px 4px 18px; }
.ag-kicker {
    font-size: 11px; font-weight: 700; letter-spacing: .22em;
    text-transform: uppercase; color: var(--ag-lilac); margin: 0 0 6px;
}
.ag-stage h1 {
    margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1;
}
.ag-sub { margin: 6px 0 16px; color: var(--ag-dim); font-size: 13px; }
.ag-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px;
}
.ag-split div {
    padding: 12px 14px;
    border-top: 1px solid var(--ag-line);
}
.ag-split em { display: block; font-style: normal; font-size: 11px; color: var(--ag-dim); }
.ag-split b { font-size: 16px; }
.ag-ops { display: flex; gap: 10px; }
.ag-ops a {
    flex: 1; height: 46px; display: grid; place-items: center;
    border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px;
    background: linear-gradient(90deg, #c026d3, #7c3aed); color: #fff;
}
.ag-ops a.ghost {
    background: transparent; color: var(--ag-lilac);
    border: 1px solid var(--ag-line);
}

.ag-media {
    margin: 0 0 18px;
    padding: 8px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
        #24103f;
    border: 1px solid rgba(233,213,255,.18);
    box-shadow: 0 18px 40px rgba(8, 2, 18, .35);
}
.ag-reel {
    position: relative;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #14081f;
    aspect-ratio: 16 / 9;
    max-height: 210px;
}
.ag-slide {
    display: none;
    position: absolute;
    inset: 0;
}
.ag-slide.on { display: block; }
.ag-slide img, .ag-slide video {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.ag-slide-veil {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(18,6,28,.72) 100%);
    pointer-events: none;
}
.ag-slide-cap {
    position: absolute; left: 14px; right: 14px; bottom: 14px;
    font-size: 13px; font-weight: 800; color: #fff;
    text-shadow: 0 8px 18px rgba(0,0,0,.45);
    z-index: 1;
}
.ag-slide-live {
    position: absolute; top: 12px; right: 12px; z-index: 1;
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(18,6,28,.55);
    backdrop-filter: blur(10px);
    color: #fff; font-size: 11px;
    border: 1px solid rgba(255,255,255,.18);
}
.ag-reel-dots {
    position: absolute; left: 0; right: 0; top: 12px;
    display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.ag-reel-dots button {
    width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px;
    background: rgba(255,255,255,.35); cursor: pointer;
}
.ag-reel-dots button.on {
    width: 18px;
    background: #fff;
}

.ag-mosaic {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px;
}
.ag-mosaic a {
    position: relative;
    background: var(--ag-panel);
    border: 1px solid var(--ag-line);
    border-radius: 16px;
    padding: 14px;
    color: var(--ag-text);
    text-decoration: none;
    display: flex; flex-direction: column; gap: 8px;
    min-height: 78px;
}
.ag-mosaic i { color: var(--ag-lilac); font-size: 18px; }
.ag-mosaic span { font-size: 13px; font-weight: 650; }
.ag-mosaic em {
    position: absolute; top: 10px; right: 10px;
    font-style: normal; font-size: 10px; font-weight: 800;
    color: #4ade80;
}

.ag-row, .ag-checkin {
    background:
        radial-gradient(90% 80% at 100% 0%, rgba(192,38,211,.22), transparent 55%),
        linear-gradient(180deg, #34185a 0%, #2a1248 100%);
    border: 1px solid var(--ag-line);
    border-radius: 20px;
    padding: 14px 14px 12px;
    margin-bottom: 18px;
}
.ag-checkin-top {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ag-checkin-ico {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 14px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #e879f9, #7c3aed);
    color: #fff;
    box-shadow: 0 8px 18px rgba(192, 38, 211, .28);
}
.ag-checkin.is-done .ag-checkin-ico {
    background: linear-gradient(135deg, #34d399, #059669);
    box-shadow: 0 8px 18px rgba(16, 185, 129, .22);
}
.ag-checkin-copy { flex: 1; min-width: 0; }
.ag-checkin-copy small, .ag-row small {
    color: var(--ag-dim); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.ag-checkin-copy strong, .ag-row strong {
    display: block; margin: 1px 0 0; font-size: 16px; font-weight: 800;
}
.ag-checkin-copy em {
    display: inline-block; margin-top: 4px; font-style: normal;
    font-size: 12px; font-weight: 800; color: #f0abfc;
    background: rgba(240,171,252,.12);
    border: 1px solid rgba(240,171,252,.18);
    border-radius: 999px; padding: 2px 8px;
}
.ag-checkin-btn {
    border: 0; border-radius: 999px; height: 38px; padding: 0 16px;
    background: linear-gradient(90deg, #c026d3, #7c3aed);
    color: #fff; font-weight: 800; cursor: pointer; flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(124, 58, 237, .28);
}
.ag-checkin-btn.done, .ag-row button[disabled] {
    background: rgba(52, 211, 153, .12);
    color: #6ee7b7;
    border: 1px solid rgba(110, 231, 183, .28);
    box-shadow: none;
    cursor: default;
}
.ag-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 12px;
}
.ag-week i, .ag-day {
    font-style: normal;
    height: 34px;
    border-radius: 11px;
    display: grid; place-items: center;
    color: var(--ag-dim);
    background: rgba(255,255,255,.04);
    border: 1px solid transparent;
    font-size: 11px; font-weight: 700;
}
.ag-day b { font-weight: 700; }
.ag-week i.ok, .ag-day.ok {
    color: #fff;
    background: linear-gradient(180deg, #d946ef, #a21caf);
    box-shadow: 0 6px 12px rgba(192, 38, 211, .28);
}
.ag-day.today:not(.ok) {
    color: #f0abfc;
    border-color: rgba(240,171,252,.45);
    background: rgba(240,171,252,.08);
}
.ag-checkin-meta {
    margin: 10px 2px 0;
    font-size: 11px;
    color: var(--ag-dim);
}

.ag-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin: 4px 2px 10px; font-weight: 700;
}
.ag-head a { color: var(--ag-lilac); text-decoration: none; font-size: 13px; font-weight: 600; }

.ag-pote {
    display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--ag-line);
    text-decoration: none; color: inherit;
}
.ag-pote img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; }
.ag-pote span { display: block; color: var(--ag-dim); font-size: 12px; margin: 2px 0 8px; }
.ag-bar { height: 3px; background: rgba(255,255,255,.08); border-radius: 99px; }
.ag-bar i { display: block; height: 100%; background: #e879f9; border-radius: 99px; }

.ag-invite {
    margin-top: 18px; padding: 16px;
    background: linear-gradient(160deg, #4a148c, #2a1248);
    border-radius: 18px; border: 1px solid var(--ag-line);
}
.ag-invite p { margin: 0 0 10px; color: var(--ag-lilac); font-size: 13px; }
.ag-invite #inviteLink {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(0,0,0,.25); border-radius: 12px; padding: 10px 12px;
}
.ag-invite code { font-size: 16px; letter-spacing: .16em; color: #fff; }
.ag-invite button {
    border: 0; background: transparent; color: #f0abfc; font-weight: 700; cursor: pointer;
}
.ag-invite ul {
    display: flex; gap: 18px; list-style: none; padding: 12px 0 0; margin: 0;
    color: var(--ag-dim); font-size: 12px;
}

.ag-rail {
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 406px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 8px;
    background: rgba(22, 8, 36, .72);
    border: 1px solid rgba(240, 171, 252, .18);
    border-radius: 28px;
    box-shadow:
        0 18px 40px rgba(8, 0, 18, .45),
        inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.ag-rail.is-hidden, .no-nav .ag-rail { display: none; }
.ag-rail a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 54px;
    color: #a78bb8;
    text-decoration: none;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .02em;
    border-radius: 20px;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
.ag-rail i { font-size: 17px; line-height: 1; }
.ag-rail a.on {
    color: #fff;
    background: linear-gradient(180deg, rgba(192,38,211,.95), rgba(124,58,237,.92));
    box-shadow: 0 8px 18px rgba(124, 58, 237, .35);
}
.ag-rail a:active { transform: scale(.96); }

.tabbar, .acai-dock, .bottom-nav, .side-fabs, .qa-grid { display: none !important; }

.balance-card, .checkin-card, .my-plan-card, .invite-sheet,
.taxi-card, .refer-card, .team-level-card, .milestone-card,
.prize-card, .invite100-card, .wd-box, .legal-card, .profile-card,
.invest-active-card, .invest-hero, .plan-confirm-card, .rent-receipt,
.quick-action, .plan-card, .tx-item, .notif-item, .support-card,
.form-card, .pix-box, .tg-group-card, .pix-paid-card, .invest-hero,
.profile-header, .method-card {
    background: var(--ag-panel) !important;
    color: var(--ag-text) !important;
    border: 1px solid var(--ag-line) !important;
    box-shadow: none !important;
}

.section-title, h1, h2, h3, .taxi-title, .plan-head h1,
.invest-section-header h2, .balance-amount, .taxi-price {
    color: var(--ag-text) !important;
}
.balance-label, p, .taxi-profit, label, .filter-row, .filter-row a,
.legal-card p, .legal-card li {
    color: var(--ag-dim) !important;
}

input, select, textarea,
.input-wrapper input, .login-input input, .login-phone-row input {
    background: #1c0b2e !important;
    color: var(--ag-text) !important;
    border: 1px solid var(--ag-line) !important;
}

.btn-primary, .btn-gold, .btn-alugar, .btn-receber, .login-submit, .plan-card .btn-buy, .tg-group-go {
    background: linear-gradient(90deg, #c026d3, #7c3aed) !important;
    color: #fff !important;
    box-shadow: none !important;
    border: 0 !important;
}
.btn-secondary { background: transparent !important; color: var(--ag-lilac) !important; border: 1px solid var(--ag-line) !important; }

.city-pill { background: var(--ag-panel) !important; color: var(--ag-lilac) !important; border: 1px solid var(--ag-line) !important; }
.city-pill.active { background: #7c3aed !important; color: #fff !important; }

.login-page, .auth-page {
    background: transparent !important;
    max-width: 430px; margin: 0 auto; min-height: 100vh; padding: 16px;
}
.login-pattern { display: none !important; }
.login-header h1, .login-welcome { color: var(--ag-text) !important; }
.login-back {
    background: var(--ag-panel) !important; color: var(--ag-lilac) !important; border: 1px solid var(--ag-line) !important;
}

.plan-sticky { background: linear-gradient(180deg, transparent, #12061c 45%) !important; }
.hero-banner { border-radius: 16px; overflow: hidden; }

.app-header, .acai-topbar { display: none !important; }

.alert-success { background: #14532d !important; color: #bbf7d0 !important; }
.alert-error { background: #7f1d1d !important; color: #fecaca !important; }

.me-member, .me-top, .me-col {
    background: var(--ag-panel) !important;
    color: var(--ag-text) !important;
    box-shadow: none !important;
}
.me-member { border: 1px solid var(--ag-line) !important; }
.me-col + .me-col { border-left-color: var(--ag-line) !important; }
.me-code, .me-col .lbl { color: var(--ag-dim) !important; }
.me-phone, .me-col .num { color: var(--ag-text) !important; }
.modal, .modal-overlay .modal {
    background: var(--ag-panel) !important;
    color: var(--ag-text) !important;
}

.ag-dock {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin: 10px 0 0;
    padding: 2px 2px 4px;
}
.ag-dock a {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: var(--ag-lilac); text-decoration: none; font-size: 9px; font-weight: 700;
    letter-spacing: .02em; min-width: 0;
}
.ag-dock span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-dock i {
    width: 46px; height: 46px; border-radius: 16px;
    display: grid; place-items: center; font-size: 16px; color: #fff;
    background:
        linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.05)),
        #3a1760;
    border: 1px solid rgba(233,213,255,.2);
    box-shadow: 0 8px 16px rgba(8,2,18,.22);
}
.ag-dock a.is-tg i { background: linear-gradient(180deg, #38bdf8, #0284c7); border-color: transparent; }
.ag-dock a.is-wa i { background: linear-gradient(180deg, #25d366, #128c7e); border-color: transparent; }

.ag-shop {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px;
}
.ag-item {
    background: var(--ag-panel); border: 1px solid var(--ag-line);
    border-radius: 16px; padding: 12px 10px 14px;
    text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px;
}
.ag-item img { width: 100%; height: 88px; object-fit: cover; border-radius: 12px; }
.ag-item strong { font-size: 13px; }
.ag-item em { font-style: normal; font-size: 12px; color: #f0abfc; }
.ag-item b { font-size: 16px; margin-top: 4px; }
.ag-item span { font-size: 11px; color: var(--ag-dim); }

.ag-inv {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
    margin: 0 0 16px;
}
.ag-inv div {
    background: var(--ag-panel); border: 1px solid var(--ag-line);
    border-radius: 12px; padding: 10px 8px;
}
.ag-inv em { display: block; font-style: normal; font-size: 10px; color: var(--ag-dim); text-transform: uppercase; letter-spacing: .06em; }
.ag-inv b { font-size: 13px; }

.ag-catalog {
    display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center;
    background: var(--ag-panel); border: 1px solid var(--ag-line);
    border-radius: 16px; padding: 12px; margin-bottom: 10px;
    text-decoration: none; color: inherit;
}
.ag-catalog img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.ag-catalog h3 { margin: 0; font-size: 14px; }
.ag-catalog p { margin: 4px 0 6px; font-size: 12px; color: var(--ag-dim); }
.ag-catalog b { font-size: 16px; color: #f5d0fe; }
.ag-catalog span {
    background: linear-gradient(90deg, #c026d3, #7c3aed);
    color: #fff; font-size: 11px; font-weight: 800;
    padding: 8px 12px; border-radius: 999px;
}

.filter-row, .city-pills { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; }
.filter-row a, .city-pill, .filter-btn {
    flex: 0 0 auto; background: var(--ag-panel) !important; color: var(--ag-lilac) !important;
    border: 1px solid var(--ag-line) !important; border-radius: 999px;
    padding: 7px 12px; font-size: 12px; font-weight: 700; text-decoration: none;
}
.filter-row a.is-active, .city-pill.active {
    background: #7c3aed !important; color: #fff !important;
}

.ag-cash .balance-card, .ag-cash .method-card, .ag-cash .feature-card {
    background: var(--ag-panel) !important;
    border: 1px solid var(--ag-line) !important;
    color: var(--ag-text) !important;
    box-shadow: none !important;
}
.ag-cash .amount-btn {
    background: var(--ag-panel) !important;
    color: var(--ag-text) !important;
    border: 1px solid var(--ag-line) !important;
}
.ag-cash .amount-btn.active { background: #7c3aed !important; color: #fff !important; }
.ag-cash .section-title { color: var(--ag-text) !important; }

.taxi-card { display: none !important; }

.me-card, .me-grid, .me-member, .me-member-bar {
    background: var(--ag-panel) !important;
    color: var(--ag-text) !important;
    box-shadow: none !important;
    border-color: var(--ag-line) !important;
}
.me-grid a { color: var(--ag-lilac) !important; }
.me-row { color: var(--ag-dim) !important; }
.me-withdraw, .me-out { color: var(--ag-lilac) !important; border-color: var(--ag-line) !important; }
.me-recharge { background: #7c3aed !important; }

.ag-pay { padding-bottom: 12px; }
.ag-pay-hero {
    padding: 8px 4px 18px;
}
.ag-pay-hero span {
    display: block; font-size: 12px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--ag-dim); font-weight: 700;
}
.ag-pay-hero strong {
    display: block; font-size: 34px; font-weight: 800; letter-spacing: -.04em; margin: 6px 0 4px;
}
.ag-pay-hero p { margin: 0; color: var(--ag-dim); font-size: 13px; }

.ag-qr {
    text-align: center;
    background: var(--ag-panel);
    border: 1px solid var(--ag-line);
    border-radius: 20px;
    padding: 22px 16px;
    margin-bottom: 18px;
}
.ag-qr h2 { margin: 0 0 4px; font-size: 18px; }
.ag-qr p, .ag-qr small { color: var(--ag-dim); }
.ag-qr-box {
    background: #fff; border-radius: 16px; padding: 12px; display: inline-block; margin: 12px 0;
}
.ag-qr-box img { width: 200px; height: 200px; display: block; }
.ag-qr b { display: block; font-size: 26px; margin: 8px 0; }
.ag-qr textarea {
    width: 100%; min-height: 72px; font-size: 11px; resize: none;
    background: #1c0b2e !important; color: var(--ag-lilac) !important;
    border-radius: 12px; padding: 10px; margin: 8px 0 12px;
}

.ag-pay-form label, .ag-pay label {
    display: block; font-size: 12px; color: var(--ag-dim); font-weight: 700;
    margin: 0 0 8px; letter-spacing: .04em;
}
.ag-pay-input {
    display: flex; align-items: center; gap: 10px;
    background: var(--ag-panel); border: 1px solid var(--ag-line);
    border-radius: 16px; padding: 4px 16px; margin-bottom: 12px;
    min-height: 58px;
}
.ag-pay-input span { color: var(--ag-lilac); font-weight: 800; font-size: 18px; }
.ag-pay-input input {
    flex: 1; background: transparent !important; border: 0 !important;
    font-size: 28px !important; font-weight: 800 !important; padding: 8px 0 !important;
    box-shadow: none !important; color: var(--ag-text) !important;
}

.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; scrollbar-width: none; }
.ag-chips::-webkit-scrollbar, .filter-row::-webkit-scrollbar, .city-pills::-webkit-scrollbar { display: none; }
.ag-chip {
    border: 1px solid var(--ag-line); background: var(--ag-panel);
    color: var(--ag-text); border-radius: 999px; padding: 8px 14px;
    font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit;
}
.ag-chip.on { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.ag-chips a {
    flex: 0 0 auto;
    text-decoration: none;
    border: 1px solid var(--ag-line);
    background: var(--ag-panel);
    color: var(--ag-lilac);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700; font-size: 12px;
}
.ag-chips a.on { background: linear-gradient(90deg, #c026d3, #7c3aed); color: #fff; border-color: transparent; }
.ag-chips.flavors { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }

.ag-pay-method {
    display: flex; align-items: center; gap: 12px;
    background: var(--ag-panel); border: 1px solid var(--ag-line);
    border-radius: 16px; padding: 14px; margin-bottom: 16px;
    text-decoration: none; color: inherit;
}
.ag-pay-method i { color: #f0abfc; font-size: 18px; width: 24px; text-align: center; }
.ag-pay-method strong, .ag-pay-method div strong { display: block; font-size: 14px; }
.ag-pay-method span { color: var(--ag-dim); font-size: 12px; }
.ag-pay-method a { margin-left: auto; color: var(--ag-lilac); font-size: 12px; font-weight: 700; }

.ag-pay-btn {
    width: 100%; border: 0; border-radius: 999px; height: 52px;
    background: linear-gradient(90deg, #c026d3, #7c3aed);
    color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; font-family: inherit;
}
.ag-pay-btn:disabled { opacity: .4; cursor: not-allowed; }

.ag-pay-h { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--ag-dim); margin: 22px 0 10px; }
.ag-pay-empty { color: var(--ag-dim); font-size: 13px; }
.ag-pay-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 0; border-bottom: 1px solid var(--ag-line);
}
.ag-pay-row b { display: block; font-size: 15px; }
.ag-pay-row span { display: block; font-size: 12px; color: var(--ag-dim); }
.ag-pay-row em { font-style: normal; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.ag-pay-row em.ok { background: #14532d; color: #bbf7d0; }
.ag-pay-row em.no { background: #7f1d1d; color: #fecaca; }
.ag-pay-row em.wait { background: #3b0764; color: #e9d5ff; }

.ag-back { display: inline-block; color: var(--ag-lilac); text-decoration: none; font-size: 13px; font-weight: 700; margin-bottom: 12px; }

.ag-me-hero {
    display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.ag-me-ava {
    width: 56px; height: 56px; border-radius: 18px;
    background: linear-gradient(135deg, #c026d3, #7c3aed);
    display: grid; place-items: center; font-weight: 800; font-size: 22px;
}
.ag-me-hero strong { display: block; font-size: 18px; }
.ag-me-hero span { color: var(--ag-dim); font-size: 12px; }
.ag-me-hero a { margin-left: auto; color: var(--ag-lilac); font-size: 13px; font-weight: 700; text-decoration: none; }

.ag-me-stats {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 14px;
}
.ag-me-stats div {
    background: var(--ag-panel); border: 1px solid var(--ag-line);
    border-radius: 14px; padding: 12px 8px;
}
.ag-me-stats em { display: block; font-style: normal; font-size: 10px; color: var(--ag-dim); text-transform: uppercase; }
.ag-me-stats b { font-size: 13px; }

.ag-me-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.ag-me-cta a {
    height: 46px; display: grid; place-items: center; border-radius: 999px;
    text-decoration: none; font-weight: 800; font-size: 14px;
    background: linear-gradient(90deg, #c026d3, #7c3aed); color: #fff;
}
.ag-me-cta a.ghost {
    background: transparent; color: var(--ag-lilac); border: 1px solid var(--ag-line);
}

.ag-me-note {
    background: var(--ag-panel); border: 1px solid var(--ag-line);
    border-radius: 16px; padding: 14px; margin-bottom: 16px;
}
.ag-me-note span { display: block; font-size: 11px; color: var(--ag-dim); text-transform: uppercase; }
.ag-me-note b { display: block; font-size: 18px; margin: 4px 0; }
.ag-me-note small { color: var(--ag-dim); }

.ag-me-list { display: flex; flex-direction: column; }
.ag-me-list a {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 4px; border-bottom: 1px solid var(--ag-line);
    color: var(--ag-text); text-decoration: none; font-weight: 600; font-size: 14px;
}
.ag-me-list i { width: 20px; color: var(--ag-lilac); }
.ag-me-list a.danger { color: #fca5a5; }
.ag-me-list a.danger i { color: #fca5a5; }

/* Plan detail */
.ag-main.plan-page {
    padding: 0 16px 120px !important;
    background: transparent !important;
    color: var(--ag-text) !important;
    margin: 0 !important;
    width: auto !important;
}
.page-content.plan-page, .plan-head, .plan-sticky, .plan-confirm-card, .rent-receipt {
    background: transparent !important;
    color: var(--ag-text) !important;
    box-shadow: none !important;
    border-color: var(--ag-line) !important;
}
.plan-hero-img::before, .plan-hero-dot { display: none !important; }
.ag-plan-head {
    display: grid; grid-template-columns: 40px 1fr 40px; align-items: center;
    padding: 8px 0 12px; position: sticky; top: 0; z-index: 20;
    background: linear-gradient(180deg, #1c0b2e 70%, transparent);
}
.ag-plan-head h1 { margin: 0; text-align: center; font-size: 15px; font-weight: 800; color: #fff !important; }
.ag-plan-back {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    color: var(--ag-lilac); background: rgba(255,255,255,.06);
    text-decoration: none;
}
.ag-plan-hero {
    display: grid; place-items: center;
    padding: 8px 0 4px;
}
.ag-plan-hero img {
    width: 200px; height: 200px; object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(192,38,211,.35));
}
.ag-plan-hero.sm img { width: 140px; height: 140px; }
.ag-plan-kicker {
    margin: 4px 0 0; text-align: center;
    font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ag-lilac); font-weight: 700;
}
.ag-plan-name {
    margin: 6px 0 12px; text-align: center;
    font-size: 22px; font-weight: 800; letter-spacing: -.03em;
}
.ag-plan-chips {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
    margin-bottom: 16px;
}
.ag-plan-chips span, .ag-plan-chips .taxi-timer {
    background: var(--ag-panel); border: 1px solid var(--ag-line);
    color: var(--ag-lilac); border-radius: 999px;
    padding: 6px 10px; font-size: 11px; font-weight: 800;
}
.ag-plan-kpis {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin-bottom: 14px;
}
.ag-plan-kpis div {
    background: var(--ag-panel); border: 1px solid var(--ag-line);
    border-radius: 16px; padding: 12px;
}
.ag-plan-kpis em { display: block; font-style: normal; font-size: 11px; color: var(--ag-dim); }
.ag-plan-kpis b { font-size: 16px; color: #f5d0fe; }
.ag-plan-sheet {
    background: var(--ag-panel); border: 1px solid var(--ag-line);
    border-radius: 18px; padding: 4px 14px; margin-bottom: 14px;
}
.ag-plan-sheet div {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 12px 0; border-bottom: 1px solid var(--ag-line);
    font-size: 13px; color: var(--ag-dim);
}
.ag-plan-sheet div:last-child { border-bottom: 0; }
.ag-plan-sheet strong { color: var(--ag-text); text-align: right; font-weight: 700; }
.ag-plan-more {
    background: var(--ag-panel); border: 1px solid var(--ag-line);
    border-radius: 16px; padding: 12px 14px; margin-bottom: 24px;
    color: var(--ag-dim); font-size: 13px; line-height: 1.55;
}
.ag-plan-more summary { color: var(--ag-text); font-weight: 800; cursor: pointer; }
.ag-plan-more p { margin: 10px 0 0; }
.ag-plan-hint { color: var(--ag-dim); font-size: 13px; margin: 0 2px 20px; }
.ag-plan-bar {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: 0; width: 100%; max-width: 430px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
    background: rgba(18, 6, 28, .92);
    border-top: 1px solid var(--ag-line);
    backdrop-filter: blur(16px);
    z-index: 80;
}
.ag-plan-bar small { display: block; font-size: 10px; color: var(--ag-dim); text-transform: uppercase; letter-spacing: .08em; }
.ag-plan-bar strong { display: block; font-size: 20px; font-weight: 800; }
.ag-plan-bar em { font-style: normal; font-size: 12px; color: #f0abfc; font-weight: 700; }
.ag-plan-cta {
    flex: 0 0 auto; min-width: 128px; height: 46px; padding: 0 22px;
    display: grid; place-items: center;
    border-radius: 999px; text-decoration: none; border: 0;
    background: linear-gradient(90deg, #c026d3, #7c3aed);
    color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; font-family: inherit;
}
.ag-plan-cta.full { width: 100%; min-width: 0; }
.ag-plan-cta.is-off {
    background: rgba(52,211,153,.12); color: #6ee7b7;
    border: 1px solid rgba(110,231,183,.28);
}
.ag-receipt { text-align: center; padding: 12px 0 8px; }
.ag-receipt .ok {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #34d399, #059669); color: #fff; font-size: 22px;
}
.ag-receipt h2 { margin: 0 0 4px; font-size: 20px; }
.ag-receipt p { color: var(--ag-dim); font-size: 12px; margin: 0 0 16px; }
.ag-plan-sheet.tight { text-align: left; }

/* Invest catalog polish */
.ag-inv div {
    background:
        radial-gradient(80% 80% at 100% 0%, rgba(192,38,211,.18), transparent 60%),
        var(--ag-panel);
}
.filter-row, .city-pills { border: 0 !important; box-shadow: none !important; background: transparent !important; }
.filter-btn { display: none !important; }
.ag-catalog {
    background:
        radial-gradient(70% 80% at 0% 0%, rgba(192,38,211,.16), transparent 55%),
        var(--ag-panel);
}
.ag-catalog.owned span {
    background: rgba(52,211,153,.14);
    color: #6ee7b7;
}
.invest-section-header h2 { color: var(--ag-text) !important; }
.invest-section-count {
    background: rgba(192,38,211,.2) !important;
    color: #f0abfc !important;
}
.invest-active-card {
    background: var(--ag-panel) !important;
    border: 1px solid var(--ag-line) !important;
    border-radius: 18px !important;
}
.invest-active-media { background: rgba(255,255,255,.04) !important; }
.invest-active-info h3, .invest-active-days-num { color: #fff !important; }
.invest-active-stat span, .invest-active-days-kicker { color: var(--ag-dim) !important; }
.invest-days-bar { background: rgba(255,255,255,.08) !important; }
.invest-progress-fill { background: linear-gradient(90deg, #e879f9, #7c3aed) !important; }

/* Transactions */
.ag-tx-list { display: flex; flex-direction: column; gap: 8px; }
.ag-tx-row {
    display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center;
    background: var(--ag-panel); border: 1px solid var(--ag-line);
    border-radius: 16px; padding: 12px;
}
.ag-tx-ico {
    width: 42px; height: 42px; border-radius: 13px;
    display: grid; place-items: center;
}
.ag-tx-ico.in { background: rgba(52,211,153,.14); color: #6ee7b7; }
.ag-tx-ico.out { background: rgba(248,113,113,.14); color: #fca5a5; }
.ag-tx-row strong { display: block; font-size: 13px; }
.ag-tx-row span { display: block; font-size: 11px; color: var(--ag-dim); margin-top: 2px; }
.ag-tx-row b { font-size: 13px; white-space: nowrap; }
.ag-tx-row b.in { color: #6ee7b7; }
.ag-tx-row b.out { color: #fca5a5; }
.ag-empty {
    text-align: center; padding: 48px 16px; color: var(--ag-dim);
}
.ag-empty i { font-size: 28px; color: var(--ag-lilac); margin-bottom: 10px; }
.ag-empty h3 { color: #fff; margin: 0 0 6px; }

.ag-page-head { margin: 4px 2px 16px; }
.ag-page-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.ag-page-head p { margin: 6px 0 0; color: var(--ag-dim); font-size: 13px; }

.ag-invite {
    background: var(--ag-panel); border: 1px solid var(--ag-line);
    border-radius: 18px; padding: 14px; margin-bottom: 12px;
}
.ag-invite > span { display: block; font-size: 11px; color: var(--ag-dim); text-transform: uppercase; letter-spacing: .1em; }
.ag-invite > div {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 4px;
}
.ag-invite code { font-size: 22px; font-weight: 800; letter-spacing: .08em; color: #fff; }
.ag-invite button {
    border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer;
    background: linear-gradient(90deg, #c026d3, #7c3aed); color: #fff; font-weight: 800; font-family: inherit;
}
.ag-invite small { color: var(--ag-dim); font-size: 12px; }

.ag-mission {
    background: var(--ag-panel); border: 1px solid var(--ag-line);
    border-radius: 16px; padding: 14px; margin-bottom: 10px;
}
.ag-mission strong { display: block; font-size: 14px; }
.ag-mission span, .ag-mission small, .ag-mission em {
    display: block; font-size: 12px; color: var(--ag-dim); font-style: normal; margin-top: 4px;
}
.ag-mission em.ok { color: #6ee7b7; font-weight: 700; }
.ag-track {
    height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); margin: 10px 0 8px; overflow: hidden;
}
.ag-track i { display: block; height: 100%; background: linear-gradient(90deg, #c026d3, #7c3aed); border-radius: 99px; }

.ag-ghost {
    width: 100%; border: 1px solid var(--ag-line); background: transparent;
    color: var(--ag-lilac); border-radius: 12px; height: 40px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.ag-prize-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.ag-prize-row button {
    height: 40px; border: 0; border-radius: 12px; font-weight: 800; cursor: pointer;
    background: #fff; color: #5b21b6; font-family: inherit;
}

.ag-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.ag-mini-stats div {
    background: var(--ag-panel); border: 1px solid var(--ag-line);
    border-radius: 14px; padding: 12px;
}
.ag-mini-stats small { display: block; color: var(--ag-dim); font-size: 11px; }
.ag-mini-stats b { font-size: 18px; }

.ag-levels { margin-bottom: 14px; }
.ag-levels > div {
    display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center;
    padding: 12px 0; border-bottom: 1px solid var(--ag-line);
}
.ag-levels em {
    width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(192,38,211,.2); color: #f0abfc; font-style: normal; font-weight: 800;
}
.ag-levels strong { display: block; font-size: 14px; }
.ag-levels span { font-size: 12px; color: var(--ag-dim); }
.ag-levels b { font-size: 13px; color: #f5d0fe; }

.ag-wallet-sm h1 { font-size: 28px; margin: 8px 0 4px; }
.ag-timer { display: flex; gap: 4px; align-items: center; font-variant-numeric: tabular-nums; }
.ag-timer b { background: rgba(0,0,0,.25); padding: 4px 6px; border-radius: 8px; font-size: 12px; }
.dark-toast {
    position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
    background: #2a1248; color: #fff; border: 1px solid var(--ag-line);
    padding: 12px 16px; border-radius: 12px; z-index: 80; font-size: 13px;
}

.ag-chips { flex-wrap: nowrap; overflow-x: auto; }
.ag-tx { padding-bottom: 8px; }

.invite100-card, .team-stats, .team-level-card, .milestone-card, .prize-card, .page-subhead {
    background: var(--ag-panel) !important; color: var(--ag-text) !important;
    border: 1px solid var(--ag-line) !important; box-shadow: none !important;
}
