:root {
    --blue: #2f80ed;
    --blue-dark: #1e63d6;
    --blue-soft: #e8f2ff;
    --blue-line: #d6e7fe;
    --ink: #101828;
    --ink-soft: #344054;
    --muted: #7b879d;
    --muted-2: #98a4b8;
    --bg: #eef6ff;
    --card: #ffffff;
    --line: #e7eff9;
    --green: #1fae6a;
    --green-soft: #e6f8ef;
    --red: #ef4444;
    --red-soft: #fdecec;
    --yellow: #f59e0b;
    --radius: 20px;
    --shadow: 0 12px 30px rgba(33, 73, 129, 0.08);
    --shadow-blue: 0 14px 26px rgba(47, 128, 237, 0.28);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(180deg, #eaf4ff 0%, #f3f9ff 42%, #f8fbff 100%);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}
.bg-glow--one {
    width: 340px;
    height: 340px;
    top: -120px;
    right: -110px;
    background: rgba(88, 166, 255, 0.34);
}
.bg-glow--two {
    width: 300px;
    height: 300px;
    top: 360px;
    left: -140px;
    background: rgba(120, 200, 255, 0.24);
}

.app {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px calc(104px + env(safe-area-inset-bottom));
}

.screen { display: none; }
.screen.active { display: block; animation: screenIn 0.28s ease; }

@keyframes screenIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }

/* ---------- top bar ---------- */

.topbar {
    display: flex;
    align-items: center;
    padding: 18px 2px 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand__mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    box-shadow: 0 6px 14px rgba(47, 128, 237, 0.28);
}

.brand__name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.topbar__actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--blue-line);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */

    .tagline {
    width: fit-content;
    margin: 12px auto 16px;
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--blue-line);
    box-shadow: 0 8px 20px rgba(47, 128, 237, 0.08);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #51627c;
}

.hero-title {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.07;
    font-weight: 800;
    letter-spacing: -1.3px;
}

.grad {
    background: linear-gradient(96deg, #1e63d6 0%, #58a6ff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: #5f6f86;
}
.lead b { color: var(--ink-soft); }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 16px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--blue-soft);
    border: 1px solid var(--blue-line);
    color: #2867c9;
    font-size: 12px;
    font-weight: 700;
}
.chip svg { width: 13px; height: 13px; }
.chip--plain {
    background: rgba(255, 255, 255, 0.82);
    color: #4a5b73;
    font-weight: 600;
}

/* ---------- cards ---------- */

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.sub-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 16px;
}

.sub-card__icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4a9bff, #1f6fe0);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(47, 128, 237, 0.3);
}
.sub-card__icon svg { width: 25px; height: 25px; color: #fff; }

.sub-card__body { min-width: 0; }
.sub-card__title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.2px;
}
.sub-card__sub {
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.35;
}
.sub-card__state {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--green);
    background: var(--green-soft);
    border-radius: 999px;
    padding: 5px 9px;
    white-space: nowrap;
}

.sub-progress {
    margin-top: 13px;
    height: 7px;
    border-radius: 99px;
    background: #eef4fc;
    overflow: hidden;
}
.sub-progress__bar {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #2f80ed, #64b0ff);
    transition: width 0.4s ease;
}

.sub-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.link-btn {
    flex: 1;
    border: 1px solid var(--blue-line);
    background: #f5f9ff;
    color: #2565c7;
    border-radius: 12px;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}
.link-btn svg { width: 14px; height: 14px; }

.welcome-card {
    text-align: center;
    padding: 18px 16px 18px;
}
.welcome-card__icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 10px;
    border-radius: 16px;
    background: var(--blue-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
}
.welcome-card__icon svg { width: 28px; height: 28px; }
.welcome-card__title { font-size: 16px; font-weight: 800; }
.welcome-card__text {
    margin-top: 5px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.45;
}

/* ---------- buttons ---------- */

.cta {
    width: 100%;
    margin-top: 14px;
    border: 0;
    border-radius: 16px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #3d8ef7, #1e63d6);
    color: #fff;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: var(--shadow-blue);
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.2s ease;
}
.cta:active { transform: scale(0.985); }
.cta:disabled { opacity: 0.6; }
.cta svg { width: 19px; height: 19px; }

.cta--secondary {
    background: #eaf3ff;
    color: #245fc4;
    box-shadow: none;
    border: 1px solid var(--blue-line);
}
.cta--compact { padding: 12px 14px; font-size: 13.5px; margin-top: 10px; }
.cta + .cta { margin-top: 10px; }

.under-cta {
    margin: 11px 0 0;
    text-align: center;
    font-size: 11.5px;
    color: var(--muted-2);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 26px;
}
.stat {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 6px;
    text-align: center;
}
.stat__value {
    display: block;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--ink);
}
.stat__label {
    display: block;
    margin-top: 2px;
    font-size: 10.5px;
    color: var(--muted);
}

.footer-link {
    display: block;
    margin-top: 22px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
}

/* ---------- page headers ---------- */

.page-head { padding: 22px 2px 16px; }
.page-head h2 {
    margin: 0;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.8px;
}
.page-head p {
    margin: 5px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.section-title {
    margin: 22px 2px 10px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.stack { display: flex; flex-direction: column; gap: 9px; }

/* ---------- referral ---------- */

.referral-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 20px;
    background: linear-gradient(135deg, #2f80ed 0%, #1a5bd0 100%);
    color: #fff;
    box-shadow: var(--shadow-blue);
}
.referral-hero::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -60px;
    top: -70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}
.referral-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 10px;
}
.referral-hero__title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}
.referral-hero__text {
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
    max-width: 92%;
}

.ref-link-card { margin-top: 12px; }
.ref-link-card__label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.ref-link-row { display: flex; gap: 8px; }
.ref-link-input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    background: #f7faff;
    border-radius: 12px;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 12.5px;
    color: var(--ink-soft);
    outline: none;
}
.copy-btn {
    width: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.copy-btn svg { width: 18px; height: 18px; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 12px;
}
.mini-stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--shadow);
}
.mini-stat__value {
    display: block;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.7px;
}
.mini-stat__label { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.mini-stat--green .mini-stat__value { color: var(--green); }

.friend-row {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 11px 13px;
}
.friend-row__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.friend-row__name { font-size: 13.5px; font-weight: 700; }
.friend-row__date { margin-left: auto; font-size: 11px; color: var(--muted-2); }

.empty {
    text-align: center;
    padding: 26px 16px;
    border: 1px dashed #d7e5f7;
    border-radius: 16px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.55);
}

/* ---------- profile ---------- */

.profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: linear-gradient(135deg, #4a9bff, #1f6fe0);
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-card__info { min-width: 0; }
.profile-card__name {
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-card__handle { margin-top: 2px; font-size: 12px; color: var(--muted); }
.profile-card__id {
    margin-left: auto;
    font-size: 10.5px;
    color: var(--muted-2);
    background: #f4f8fe;
    border-radius: 999px;
    padding: 5px 9px;
    white-space: nowrap;
}

.balance-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 20px;
    background: linear-gradient(135deg, #2f80ed 0%, #1a5bd0 100%);
    color: #fff;
    box-shadow: var(--shadow-blue);
}
.balance-card__label { font-size: 12px; color: rgba(255, 255, 255, 0.78); }
.balance-card__value {
    margin-top: 3px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1.2px;
}
.balance-card__btn {
    position: relative;
    z-index: 2;
    margin-top: 13px;
    border: 0;
    border-radius: 12px;
    padding: 11px 15px;
    background: rgba(255, 255, 255, 0.94);
    color: #1d5fc9;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.balance-card__btn svg { width: 15px; height: 15px; }
.balance-card__glow {
    position: absolute;
    width: 190px;
    height: 190px;
    right: -70px;
    top: -80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.plan-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}
.plan-line__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
}
.plan-line__icon svg { width: 20px; height: 20px; }
.plan-line__title { font-size: 13.5px; font-weight: 800; }
.plan-line__sub { margin-top: 2px; font-size: 11.5px; color: var(--muted); }

.test-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 13px;
    background: #fff8e8;
    border: 1px solid #f7e4b8;
    color: #8a6100;
    font-size: 11.5px;
    line-height: 1.4;
}
.test-note svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; }

.tx-row {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 11px 13px;
}
.tx-row__icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
}
.tx-row__icon svg { width: 16px; height: 16px; }
.tx-row__icon.plus { background: var(--green-soft); color: var(--green); }
.tx-row__icon.minus { background: var(--red-soft); color: var(--red); }
.tx-row__title { font-size: 13px; font-weight: 700; }
.tx-row__date { margin-top: 2px; font-size: 11px; color: var(--muted-2); }
.tx-row__amount { margin-left: auto; font-size: 13px; font-weight: 800; white-space: nowrap; }
.tx-row__amount.plus { color: var(--green); }
.tx-row__amount.minus { color: var(--red); }

/* ---------- support ---------- */

.ticket-row {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 12px 14px;
    cursor: pointer;
}
.ticket-row__body { min-width: 0; }
.ticket-row__subject {
    font-size: 13.5px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ticket-row__preview {
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 230px;
}
.ticket-row__meta { margin-left: auto; text-align: right; }
.badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.badge--open { background: var(--blue-soft); color: var(--blue-dark); }
.badge--answered { background: var(--green-soft); color: var(--green); }
.badge--closed { background: #f1f4f9; color: var(--muted); }
.ticket-row__date { margin-top: 4px; font-size: 10px; color: var(--muted-2); }

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 16px 0 6px;
    border: 0;
    background: transparent;
    color: var(--blue-dark);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 0;
}
.back-btn svg { width: 17px; height: 17px; }
.ticket-title { margin: 6px 0 3px; font-size: 21px; font-weight: 800; letter-spacing: -0.5px; }
.ticket-status { font-size: 11.5px; color: var(--muted); margin-bottom: 14px; }

.chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0 2px;
}
.bubble {
    max-width: 84%;
    padding: 10px 13px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.42;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.bubble--user {
    align-self: flex-end;
    background: linear-gradient(135deg, #3d8ef7, #1e63d6);
    color: #fff;
    border-bottom-right-radius: 5px;
}
.bubble--admin {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    border-bottom-left-radius: 5px;
}
.bubble__time {
    display: block;
    margin-top: 4px;
    font-size: 9.5px;
    opacity: 0.62;
}

.chat-input {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
.chat-input input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 13.5px;
    background: #fff;
    outline: none;
}
.chat-input input:focus { border-color: #a8c9f8; box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.08); }
.send-btn {
    width: 46px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #3d8ef7, #1e63d6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.send-btn svg { width: 19px; height: 19px; }

/* ---------- nav ---------- */

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid #e3edfa;
    z-index: 50;
}
.nav-item {
    border: 0;
    background: transparent;
    font-family: inherit;
    color: #8b97aa;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.15s ease;
}
.nav-icon {
    width: 38px;
    height: 27px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease;
}
.nav-icon svg { width: 21px; height: 21px; }
.nav-item.active { color: var(--blue-dark); }
.nav-item.active .nav-icon { background: var(--blue-soft); }

/* ---------- sheet ---------- */

.overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(8, 24, 48, 0.46);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.overlay.open { display: flex; }
.sheet {
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
    animation: sheetUp 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes sheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.sheet__handle {
    width: 40px;
    height: 4px;
    border-radius: 99px;
    background: #dae4f1;
    margin: 0 auto 14px;
}
.sheet h3 { margin: 0 0 4px; font-size: 19px; font-weight: 800; letter-spacing: -0.4px; }
.sheet p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.sheet__amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin: 15px 0 10px;
}
.amount-chip {
    border: 1px solid var(--line);
    background: #f7faff;
    border-radius: 12px;
    padding: 11px 4px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-soft);
    cursor: pointer;
}
.amount-chip.active {
    border-color: #8fbdff;
    background: var(--blue-soft);
    color: var(--blue-dark);
}
.sheet__input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 13px 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    background: #f9fbff;
    outline: none;
}
.sheet__input:focus { border-color: #a8c9f8; background: #fff; }
.sheet__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    font-size: 13px;
    color: var(--ink-soft);
}
.sheet__row b { font-size: 14px; }
.sheet__links { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sheet__link {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f7faff;
    padding: 10px 11px;
    font-size: 11.5px;
    color: var(--ink-soft);
}
.sheet__link span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sheet__link button {
    border: 0;
    background: var(--blue-soft);
    color: var(--blue-dark);
    border-radius: 8px;
    padding: 6px 9px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.sheet__close {
    margin-top: 10px;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 12px;
    cursor: pointer;
}

/* ---------- toast / loader ---------- */

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(92px + env(safe-area-inset-bottom));
    transform: translate(-50%, 20px);
    z-index: 200;
    max-width: 90%;
    padding: 11px 16px;
    border-radius: 13px;
    background: rgba(16, 24, 40, 0.94);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.loader {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: linear-gradient(180deg, #eaf4ff, #f8fbff);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: opacity 0.3s ease;
}
.loader.hidden { display: none !important; }
.loader__logo img { width: 58px; height: 58px; border-radius: 16px; box-shadow: var(--shadow-blue); }
.loader__spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid #cfe4ff;
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 360px) {
    .hero-title { font-size: 30px; }
    .chips { gap: 6px; }
    .chip { font-size: 11px; padding: 6px 10px; }
    .sheet__amounts { grid-template-columns: repeat(2, 1fr); }
}
