/* ==========================================================================
   RS PAY — design system
   Palette / spacing / components derived from docs/REFERENCE-DESIGN.md.
   Mobile-first; no framework, no external requests.
   ========================================================================== */

:root {
    --bg: #F5F6F8;
    --card: #FFFFFF;
    --primary: #2F7BF6;
    --primary-dark: #1F63D9;
    --success: #22B573;
    --gold: #F5A623;
    --gold-soft: rgba(245, 166, 35, 0.16);
    --ink: #1F2A44;          /* headings */
    --muted: #8A93A3;        /* secondary text */
    --placeholder: #B0B7C3;
    --line: #E5E7EB;         /* separators */
    --danger: #E5484D;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 2px 10px rgba(31, 42, 68, 0.06);
    --nav-height: 60px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

/* ---------------------------------------------------------------- shell --- */

.app-shell {
    max-width: 560px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg);
    position: relative;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
}

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

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.brand-name { font-weight: 700; font-size: 17px; letter-spacing: 0.3px; }
.brand-badge--large { width: 48px; height: 48px; border-radius: 13px; font-size: 19px; }
.brand-name--large { font-size: 22px; }

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.icon-button svg { width: 21px; height: 21px; }
.icon-button:hover { background: var(--bg); }

.app-content {
    padding: 16px 16px calc(var(--nav-height) + 96px);
    padding-bottom: calc(var(--nav-height) + 96px + env(safe-area-inset-bottom, 0px));
}

.page-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.page-title { margin: 0; font-size: 18px; font-weight: 700; }
.section-title { margin: 8px 2px 10px; font-size: 16px; font-weight: 700; }

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

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 12px;
}

.card__title { margin: 0 0 10px; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card__title-row { display: flex; align-items: center; justify-content: space-between; }
.card--banner { display: flex; flex-direction: column; gap: 14px; }
.card--info { border-left: 4px solid var(--primary); }

.banner__text h2 { margin: 0 0 6px; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.banner__text p { margin: 0; color: var(--muted); font-size: 13px; }
.banner__actions { display: flex; gap: 10px; }

/* gold promotion banner */
.card--banner--gold {
    background: linear-gradient(135deg, #FFF6E5 0%, #FFE9C2 60%, #F9D489 100%);
    border: 1px solid rgba(245, 166, 35, 0.35);
}

/* balance card */
.card--balance {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #FFF6E5 0%, #FFE9C2 100%);
    border: 1px solid rgba(245, 166, 35, 0.35);
}

.balance__coin { width: 52px; height: 52px; flex: 0 0 auto; }
.balance__coin--small { width: 40px; height: 40px; }
.balance__main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.balance__label { color: var(--muted); font-size: 13px; }
.balance__amount { color: var(--gold); font-size: 24px; font-weight: 800; letter-spacing: 0.3px; }

/* ------------------------------------------------------------------ tabs --- */

.tabs {
    display: flex;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    overflow: hidden;
}

.tabs__tab {
    flex: 1;
    padding: 14px 8px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font: inherit;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.tabs__tab.is-active { color: var(--primary); border-bottom-color: var(--primary); }

.buy-panel { display: none; }
.buy-panel.is-visible { display: block; }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    padding: 10px 18px;
    border: none;
    border-radius: 12px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--success { background: var(--success); color: #fff; }
.btn--success:hover { filter: brightness(0.95); }
.btn--outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn--light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost { background: transparent; color: var(--muted); min-height: 34px; padding: 4px 10px; font-size: 13px; }
.btn--ghost:hover { color: var(--danger); }
.btn--small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--disabled { background: var(--placeholder); color: #fff; cursor: not-allowed; }

.btn[data-loading="true"] .btn__spinner { display: none; }

form[data-loading] .btn[type="submit"] { position: relative; }
form[data-loading].is-submitting .btn[type="submit"] { color: transparent; }
form[data-loading].is-submitting .btn[type="submit"]::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    animation: spin 0.7s linear infinite;
}

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

/* ----------------------------------------------------------------- forms --- */

.field { margin-bottom: 14px; position: relative; }
.field__label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field__hint { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.field__input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #E0E0E0;
    border-radius: var(--radius-sm);
    background: #fff;
    font: inherit;
    color: var(--ink);
}
.field__input::placeholder { color: var(--placeholder); }
.field__input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 123, 246, 0.15); }
.field__input--textarea { resize: vertical; min-height: 80px; }
.field__unit {
    position: absolute;
    right: 14px;
    bottom: 14px;
    color: var(--muted);
    font-weight: 700;
    pointer-events: none;
}
fieldset.field { border: none; padding: 0; margin: 0 0 14px; }
fieldset.field legend { padding: 0; }

.check { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }

/* chips (network / selection) */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chips--stack { flex-direction: column; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    background: #fff;
    transition: border-color 0.15s ease;
}
.chip--wide span { width: 100%; justify-content: space-between; }
.chip input:checked + span { border-color: var(--success); color: var(--success); background: rgba(34, 181, 115, 0.06); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(34, 181, 115, 0.2); }
.chip--static { padding: 4px 10px; background: var(--bg); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); }

/* ---------------------------------------------------------------- alerts --- */

.alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: 14px;
}
.alert--success { background: rgba(34, 181, 115, 0.1); color: #157A4C; }
.alert--error { background: rgba(229, 72, 77, 0.09); color: #B3282C; }
.alert__icon { display: inline-flex; margin-top: 2px; }
.alert__icon svg { width: 17px; height: 17px; }
.alert__list { margin: 0; padding-left: 16px; }

.note {
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 12.5px;
    line-height: 1.45;
    margin: 10px 0 0;
}
.note--demo { background: var(--gold-soft); color: #8A6114; }
.note--warn { background: rgba(229, 72, 77, 0.08); color: #B3282C; }

.tag--demo, .tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    vertical-align: middle;
}
.tag--demo { background: var(--gold-soft); color: #8A6114; }
.badge { background: rgba(31, 42, 68, 0.12); border-radius: 999px; font-size: 10.5px; font-weight: 700; padding: 2px 8px; letter-spacing: 0.6px; }

/* ----------------------------------------------------------- rate table --- */

.rate-table { margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.rate-table__row {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 14px;
}
.rate-table__row + .rate-table__row { border-top: 1px solid var(--line); }
.rate-table__value { font-weight: 700; }

.steps__title { margin: 4px 0 8px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.steps__list { margin: 0 0 6px; padding-left: 20px; font-size: 13.5px; color: var(--ink); }
.steps__list--plain { list-style: none; padding-left: 0; }
.steps__list li { margin-bottom: 6px; }

.info-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-style: italic;
    font-weight: 700;
    flex: 0 0 auto;
}

/* ------------------------------------------------------------ list rows --- */

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.list-item:last-of-type { border-bottom: none; }
.list-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-item__title { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item__title--mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; white-space: normal; word-break: break-all; }
.list-item__meta { color: var(--muted); font-size: 12px; }
.list-item__end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; }
.list-item__amount { font-weight: 700; font-size: 15px; }
.list-item__amount--credit { color: var(--success); }
.list-item__amount--debit { color: var(--danger); }

.status {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.status--pending { background: var(--gold-soft); color: #8A6114; }
.status--approved, .status--active { background: rgba(34, 181, 115, 0.12); color: #157A4C; }
.status--rejected, .status--blocked { background: rgba(229, 72, 77, 0.1); color: #B3282C; }
.status--cancelled { background: var(--bg); color: var(--muted); }

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(47, 123, 246, 0.12);
    color: var(--primary);
    font-weight: 700;
    flex: 0 0 auto;
}
.avatar--large { width: 56px; height: 56px; font-size: 22px; }

/* ------------------------------------------------------------ empty state --- */

.empty-state { text-align: center; padding: 22px 10px; color: var(--muted); font-size: 14px; }
.empty-state__icon { margin: 0 auto 10px; width: 52px; height: 52px; }
.empty-state__icon svg { width: 100%; height: 100%; color: var(--placeholder); }
.empty-state .btn { margin-top: 8px; }

/* --------------------------------------------------------- quick actions --- */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.quick-actions__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 4px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}
.quick-actions__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(47, 123, 246, 0.1);
    color: var(--primary);
}
.quick-actions__icon svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- stats --- */

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stat-row--two { grid-template-columns: repeat(2, 1fr); }
.stat-row__item { display: flex; flex-direction: column; gap: 3px; padding: 6px 2px; }
.stat-row__item + .stat-row__item { border-left: 1px solid var(--line); }
.stat-row__label { color: var(--muted); font-size: 12px; }
.stat-row__value { font-size: 16.5px; font-weight: 800; }

.profit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ----------------------------------------------------------------- news --- */

.news-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.news-item:last-of-type { border-bottom: none; }
.news-item__title { margin: 0 0 3px; font-size: 14.5px; font-weight: 600; }
.news-item__body { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.news-item__date { color: var(--placeholder); font-size: 11.5px; }

/* ----------------------------------------------------------- menu / mine --- */

.menu-card { padding: 4px 16px; }
.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13.5px 0;
    color: var(--ink);
    font-size: 15px;
    text-decoration: none;
}
.menu-item__label { font-weight: 500; }
.menu-item__value { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.menu-divider { height: 1px; background: var(--line); }
.chevron { color: var(--placeholder); font-size: 20px; line-height: 1; }

.profile-card { display: flex; align-items: center; gap: 14px; }
.profile-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.profile-card__name { font-weight: 700; font-size: 17px; }
.profile-card__chips { display: flex; gap: 8px; flex-wrap: wrap; }

.tutorial-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 14.5px;
}
.tutorial-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(47, 123, 246, 0.1);
    color: var(--primary);
    flex: 0 0 auto;
}
.tutorial-link__icon svg { width: 20px; height: 20px; }
.tutorial-link .chevron { margin-left: auto; }

/* --------------------------------------------------------------- invite --- */

.invite-row { display: flex; gap: 8px; margin-bottom: 8px; }
.invite-row__input { flex: 1; font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

/* ------------------------------------------------------------- rewards --- */

.reward-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.reward-card__titles { display: flex; flex-direction: column; }
.reward-card__title { font-weight: 700; font-size: 15px; }
.reward-card__amount { color: var(--gold); font-weight: 800; font-size: 14px; }
.reward-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }

.progress { height: 10px; border-radius: 999px; background: #EEE; overflow: hidden; }
.progress__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #F5A623, #F7BC53); transition: width 0.3s ease; }

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

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 560px;
    background: var(--card);
    border-top: 1px solid var(--line);
    z-index: 30;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bottom-nav__item { flex: 1; }

.bottom-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 9px 0 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 10.5px;
    font-weight: 600;
}
.bottom-nav__link svg { width: 23px; height: 23px; }
.bottom-nav__link.is-active { color: var(--primary); }

.support-fab {
    position: fixed;
    right: calc(50% - 280px + 16px);
    bottom: calc(var(--nav-height) + 16px + env(safe-area-inset-bottom, 0px));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(47, 123, 246, 0.4);
    z-index: 25;
}
.support-fab svg { width: 24px; height: 24px; }

@media (max-width: 575px) {
    .support-fab { right: 16px; }
}

/* ---------------------------------------------------------------- auth ---
   Phone-first sign-in screens: white page, speed-lines logo, pill fields. */

.auth-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    padding-top: calc(36px + env(safe-area-inset-top, 0px));
    background: #FFFFFF;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 0 4px;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}
.auth-logo { display: inline-flex; }
.auth-logo svg { height: 62px; width: auto; }
.auth-wordmark { font-size: 27px; font-weight: 800; letter-spacing: 0.3px; color: var(--ink); }
.auth-wordmark__accent { color: #2E6BE6; }

.auth-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; text-align: center; }
.auth-subtitle { margin: 0 0 24px; text-align: center; color: var(--muted); font-size: 14px; }

.auth-field {
    position: relative;
    display: flex;
    align-items: center;
    background: #F4F5F7;
    border-radius: 999px;
    margin-bottom: 14px;
    min-height: 52px;
    transition: box-shadow 0.15s ease;
}
.auth-field:focus-within { box-shadow: 0 0 0 2px rgba(46, 107, 230, 0.28); }

.auth-field__icon {
    position: absolute;
    left: 18px;
    display: inline-flex;
    color: #2E6BE6;
    pointer-events: none;
}
.auth-field__icon svg { width: 20px; height: 20px; }

.auth-field__prefix {
    padding: 0 12px 0 48px;
    margin-right: 10px;
    border-right: 1px solid #E1E4EA;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.auth-field__input {
    flex: 1;
    min-width: 0;
    height: 52px;
    background: transparent;
    border: none;
    outline: none;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    padding: 0 18px 0 48px;
}
.auth-field--phone .auth-field__input { padding-left: 0; }
.auth-field__input::placeholder { color: var(--placeholder); }
.auth-field__input--password { padding-right: 52px; }

.auth-field__toggle {
    position: absolute;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #9AA3AF;
    cursor: pointer;
}
.auth-field__toggle:hover { color: var(--ink); }
.auth-field__toggle svg { width: 20px; height: 20px; }
.is-hidden { display: none; }

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 6px 20px;
    font-size: 13.5px;
}

.auth-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

.btn--pill {
    border-radius: 999px;
    min-height: 52px;
    box-shadow: 0 8px 20px rgba(46, 107, 230, 0.24);
}

.check--center { justify-content: center; margin: 18px 0 0; }
.check--start { margin: 6px 6px 18px; align-items: flex-start; }
.check--start span { line-height: 1.45; }

.auth-foot { margin: 28px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

.auth-footnote { margin-top: 26px; color: #C6CCD6; font-size: 12px; text-align: center; }

.auth-legal__body {
    text-align: left;
    font-size: 14px;
    color: var(--ink);
    line-height: 1.6;
    margin-bottom: 20px;
}
.auth-legal__body h3 { font-size: 15px; margin: 18px 0 6px; }
.auth-legal__body ul { margin: 0; padding-left: 20px; }
.auth-legal__body li { margin-bottom: 4px; }

/* ---------------------------------------------------------------- misc --- */

.muted { color: var(--muted); font-size: 13.5px; }
.text-link { display: inline-block; margin-top: 8px; color: var(--primary); font-weight: 600; font-size: 13.5px; text-decoration: none; }
code {
    background: var(--bg);
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 12.5px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.pagination-links { margin-top: 12px; }
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
}
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled { color: var(--placeholder); border-color: transparent; background: transparent; }

/* ==================================================================== */
/* Home page v2 — promo banner / wallet card / notice strip / news       */

/* ---- promo banner ---- */
.promo-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 16px 14px 14px;
    margin-bottom: 12px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 12%, rgba(94, 158, 255, 0.55), transparent 52%),
        linear-gradient(115deg, #E5433C 0%, #FF7043 40%, #FFB74D 70%, #4FA3F7 100%);
    box-shadow: 0 4px 14px rgba(229, 67, 60, 0.22);
}

.promo-banner__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.promo-banner__decor svg { position: absolute; right: -12px; bottom: -6px; width: 78%; height: auto; opacity: .9; }

.promo-banner__head {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.promo-banner__brand { display: flex; flex-direction: column; gap: 2px; }
.promo-banner__logo {
    font-size: 19px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.promo-banner__tagline { font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.promo-banner__pill {
    flex: 0 0 auto;
    background: #FFD54A;
    color: #37296B;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.promo-banner__headline {
    position: relative;
    margin: 14px 0 7px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
    color: #FFE37E;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 0 14px rgba(255, 213, 74, 0.35);
}
.promo-banner__ribbon {
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #C62828, #E53935);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.promo-banner__table {
    position: relative;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}
.promo-banner__thead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #1E88F7;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 12px;
}
.promo-banner__thead-right { display: inline-flex; align-items: center; gap: 5px; }
.promo-banner__thead-right svg { width: 14px; height: 14px; }
.promo-banner__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7.5px 12px;
    font-size: 12.5px;
    color: #26251E;
    border-top: 1px solid #F1EEE7;
}
.promo-banner__row b { font-weight: 700; }
.promo-banner__salary { color: #1565C0; font-weight: 800; white-space: nowrap; }
.promo-banner__salary small { color: #8D8D8D; font-weight: 600; font-size: 10.5px; }
.promo-banner__tfoot { display: flex; justify-content: flex-end; padding: 6px 10px 7px; border-top: 1px solid #F1EEE7; }

.promo-banner__features {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.promo-banner__feature {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.93);
    color: #1565C0;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}
.promo-banner__feature svg { width: 11px; height: 11px; }

.promo-banner__foot {
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}
.promo-banner__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(90deg, #FFC93C, #FF9800);
    color: #37296B;
    font-size: 14.5px;
    font-weight: 800;
    padding: 11px 20px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.45);
}
.promo-banner__cta:active { transform: translateY(1px); }
.promo-banner__cta svg { width: 16px; height: 16px; }

/* ---- wallet card ---- */
.home-wallet {
    position: relative;
    overflow: hidden;
    background: #FAF6EC;
    border: 1px solid rgba(245, 166, 35, 0.28);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 12px;
}
.home-wallet__coin-bg {
    position: absolute;
    right: -24px;
    top: -16px;
    width: 150px;
    height: 150px;
    opacity: 0.14;
    pointer-events: none;
}
.home-wallet__titlebar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
}
.home-wallet__title { margin: 0; font-size: 18px; font-weight: 800; color: #26251E; }
.home-wallet__subtitle { font-size: 11.5px; color: #9C927A; }

.home-wallet__balancerow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 4px;
    position: relative;
}
.flag-chip {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.flag-chip svg { display: block; width: 100%; height: 100%; }
.home-wallet__amount {
    flex: 1;
    min-width: 0;
    font-size: 34px;
    font-weight: 800;
    color: #26251E;
    letter-spacing: 0.3px;
}
.home-wallet__buy { min-height: 40px; padding: 8px 18px; font-size: 15px; gap: 5px; }
.home-wallet__buy svg { width: 16px; height: 16px; }

.home-wallet__divider { height: 1px; background: #EBE3CD; margin: 13px 0; }

.home-wallet__row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.home-wallet__stat { display: flex; flex-direction: column; gap: 2px; }
.home-wallet__label { font-size: 13px; color: #8D8474; }
.home-wallet__value { font-size: 16px; font-weight: 700; color: #26251E; display: flex; align-items: center; gap: 5px; }
.home-wallet__link {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-decoration: none;
    color: #26251E;
}
.home-wallet__link b { font-size: 15px; font-weight: 700; }
.home-wallet__link span { font-size: 11.5px; color: #9C927A; }

.pill-button {
    margin-left: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #DFD9C8;
    border-radius: 10px;
    padding: 8px 13px;
    font-size: 12.5px;
    font-weight: 700;
    color: #26251E;
    text-decoration: none;
    white-space: nowrap;
}
.pill-button:active { background: #F6F1E4; }

/* ==================================================================== */
/* Buy page v2 — rate card / green steps / amount / chain options        */

.buy-panel { display: none; background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
.buy-panel.is-visible { display: block; }

.buy-rate,
.buy-steps,
.buy-amount,
.buy-chain {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 12px;
}

/* ---- rate card ---- */
.buy-rate__title { margin: 0 0 8px; font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.buy-rate__line { margin: 0 0 5px; font-size: 14px; color: #333; }
.buy-rate__line b { font-weight: 700; color: #111; }
.buy-rate__tagline {
    margin: 10px 0 0;
    font-size: 13.5px;
    font-weight: 800;
    color: #E0512F;
}

/* ---- instruction steps ---- */
.buy-steps__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.buy-steps__item p { margin: 0; font-size: 14px; color: #333; line-height: 1.55; }
.buy-steps__badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    margin-top: 1px;
}

/* ---- amount card ---- */
.buy-amount__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.buy-amount__label { font-size: 15px; font-weight: 700; }
.buy-amount__rate { font-size: 12.5px; font-weight: 700; color: var(--primary); }
.buy-amount__field {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1.5px solid var(--line);
    padding-bottom: 10px;
}
.buy-amount__field:focus-within { border-bottom-color: var(--primary); }
.coin-logo { width: 38px; height: 38px; flex: 0 0 auto; }
.coin-logo--small { width: 32px; height: 32px; }
.coin-logo svg { display: block; width: 100%; height: 100%; }
.buy-amount__input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    min-height: 38px;
}
.buy-amount__input::placeholder { color: var(--placeholder); font-weight: 500; }
.buy-amount__hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

/* ---- chain selection ---- */
.buy-chain__label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.buy-chain__options { display: flex; flex-direction: column; gap: 10px; }
.chain-option { position: relative; display: block; }
.chain-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chain-option__box {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 12px 14px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.chain-option input:checked + .chain-option__box {
    border-color: var(--success);
    background: #EDF9F1;
}
.chain-option input:focus-visible + .chain-option__box { box-shadow: 0 0 0 3px rgba(34, 181, 115, 0.2); }
.chain-option__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.chain-option__text b { font-size: 15px; font-weight: 700; color: #1F2A44; }
.chain-option__text small { font-size: 12px; color: var(--muted); }
.chain-option__radio {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #C9CFDA;
    background: #fff;
    position: relative;
}
.chain-option input:checked + .chain-option__box .chain-option__radio { border-color: var(--success); }
.chain-option input:checked + .chain-option__box .chain-option__radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--success);
}

.buy-continue { min-height: 52px; font-size: 17px; margin-top: 2px; }

/* ---- notice strip ---- */
.notice-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F2F2F2;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    color: #212121;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.notice-strip > svg { width: 19px; height: 19px; color: #7A7A7A; flex: 0 0 auto; }
.notice-strip__info {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E3E3E3;
    color: #7A7A7A;
    font-size: 12px;
    font-style: italic;
    font-weight: 800;
}

/* ---- news card (home v2 sizes) ---- */
.news-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
}
.news-card__title { margin: 0; font-size: 20px; font-weight: 700; color: #222222; }
.news-card__more { color: #9E9E9E; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.news-card .news-item { padding: 11px 0; }
.news-card .news-item__title { font-size: 16.5px; font-weight: 600; color: #222222; margin: 0 0 3px; }
.news-card .news-item__date { display: block; color: #B3B3B3; font-size: 13px; }
.news-item__title--large { font-size: 17px; margin: 0 0 3px; }

/* desktop polish */
@media (min-width: 576px) {
    body { background: #EDF0F4; }
    .app-shell { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* ---- team page (v2) ---- */
.team-profile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.team-profile__avatar { width: 46px; height: 46px; border-radius: 50%; background: #EEF3FE; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; }
.team-profile__avatar svg { width: 36px; height: 36px; }
.team-profile__meta { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.team-profile__text { color: var(--muted); font-size: 14px; }

.team-menu { padding: 2px 16px; }
.team-menu__item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 0; border-bottom: 1px solid #EFF1F5; text-decoration: none; }
.team-menu__item:last-child { border-bottom: 0; }
.team-menu__label { color: #3A4356; font-size: 15px; }
.team-menu__value { color: var(--primary); font-weight: 700; font-size: 15px; white-space: nowrap; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 20px 2px 10px; }
.section-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: #1B2437; }
.rules-pill { border: 1.5px solid var(--primary); color: var(--primary); border-radius: 999px; padding: 4px 16px; font-size: 13px; font-weight: 600; text-decoration: none; line-height: 1.5; }

.team-blue { background: linear-gradient(135deg, #4A94FF 0%, #1E63E9 100%); border-radius: 16px; padding: 16px; color: #fff; display: flex; gap: 16px; box-shadow: 0 8px 20px rgba(30, 99, 233, .22); }
.team-blue__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.team-blue__col + .team-blue__col { border-left: 1px solid rgba(255, 255, 255, .28); padding-left: 16px; }
.team-blue__label { font-size: 12.5px; opacity: .9; }
.team-blue__amount { display: flex; align-items: center; gap: 6px; font-size: 21px; font-weight: 800; line-height: 1; }
.team-blue__note { color: var(--muted); font-size: 11.5px; margin: 8px 2px 0; }

.coin--inline { width: 20px; height: 20px; flex: 0 0 auto; }

.milestone-card { margin-top: 10px; padding: 14px 16px; }
.milestone-card .progress { margin-top: 12px; }
.milestone-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.milestone-card__titles { display: flex; flex-direction: column; gap: 4px; }
.milestone-card__amount { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 800; color: #1B2437; }
.milestone-card__reward { display: flex; align-items: center; gap: 4px; color: #F57C00; font-weight: 700; font-size: 14px; }
.receive-pill { background: #EDF0F4; color: #9AA3B2; border: 0; border-radius: 999px; padding: 8px 18px; font-size: 13px; font-weight: 600; cursor: not-allowed; flex: 0 0 auto; }
.milestone-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.milestone-card__label { color: var(--muted); font-size: 12.5px; }
.milestone-card__pct { color: var(--muted); font-size: 12.5px; }

.rules-list { margin: 8px 0 10px; padding-left: 18px; color: #3A4356; font-size: 14.5px; line-height: 1.9; }

.invite-card__head { display: flex; align-items: center; justify-content: space-between; }
.qr-btn { background: none; border: 0; padding: 2px; color: #F57C00; cursor: pointer; }
.qr-btn svg { width: 22px; height: 22px; display: block; }
.invite-field { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.invite-field__input { flex: 1; min-width: 0; font-size: 13px; }
.invite-copy { background: none; border: 0; padding: 2px; color: var(--primary); cursor: pointer; flex: 0 0 auto; }
.invite-copy svg { width: 20px; height: 20px; display: block; }
.invite-copy.is-copied, .qr-btn.is-copied { color: var(--success); }
.invite-field__foot { margin-top: 8px; }
.hide-link { background: none; border: 0; padding: 0; color: var(--primary); font-size: 13.5px; font-weight: 600; cursor: pointer; }

/* ---- mine page (v2) ---- */
.mine-ico {
    width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto;
    display: grid; place-items: center;
}
.mine-ico svg { width: 18px; height: 18px; display: block; }
.mine-ico--blue { background: #EAF2FE; color: #2F7BF6; }
.mine-ico--gold { background: #FEF4E2; color: #E8930C; }
.mine-ico--flag { background: #F1F5F9; padding: 0; }
.mine-ico--flag svg { width: 22px; height: 22px; border-radius: 4px; overflow: hidden; }
.menu-item .mine-ico { margin-right: 12px; }
.menu-item .chevron { margin-left: auto; }
.menu-item__value--gold { color: var(--gold); }
.mine-footer {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 18px 0 6px; color: var(--muted); font-size: 12.5px; text-align: center;
}
.mine-footer a { color: var(--primary); font-weight: 600; text-decoration: none; }
.sign-out-btn { border-color: #C9CEDA; color: #3A4356; }

/* ---- USDT order confirmation page ---- */
.confirm-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.confirm-tabs__tab {
    flex: 1; text-align: center; padding: 10px 0; border-radius: 10px;
    background: #fff; color: var(--muted); font-weight: 700; font-size: 14.5px;
    border: 1.5px solid transparent;
}
.confirm-tabs__tab.is-active { color: var(--primary); border-color: var(--primary); background: #F3F8FF; }
.confirm-demo { margin-bottom: 12px; }

.pay-card {
    background: linear-gradient(135deg, #4A94FF 0%, #1E63E9 100%);
    border-radius: 16px; padding: 16px; color: #fff;
    display: flex; gap: 14px; align-items: center;
    box-shadow: 0 8px 20px rgba(30, 99, 233, .22);
}
.pay-card__main { flex: 1; min-width: 0; }
.pay-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pay-card__label { font-size: 13px; opacity: .9; }
.pay-card__copy {
    display: inline-flex; align-items: center; gap: 5px;
    background: #fff; color: var(--primary); border: 0; border-radius: 999px;
    padding: 5px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.pay-card__copy svg { width: 13px; height: 13px; }
.pay-card__copy.is-copied { color: var(--success); }
.pay-card__address {
    width: 100%; border: 0; background: rgba(255, 255, 255, .16); color: #fff;
    border-radius: 8px; padding: 10px; font-size: 12px; line-height: 1.45;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    word-break: break-all; white-space: normal; height: auto;
}
.pay-card__qr { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qr-tile { width: 86px; height: 86px; background: #fff; border-radius: 8px; padding: 5px; fill: #1F2A44; }
.pay-card__qr-caption { font-size: 10px; opacity: .85; text-align: center; line-height: 1.3; }

.pay-amount { padding: 14px 16px; }
.pay-amount__value {
    width: 100%; border: 0; background: transparent; color: #1B2437;
    font-size: 26px; font-weight: 800; padding: 0 0 4px; font-family: inherit;
}
.pay-amount__sub { color: var(--muted); font-size: 13px; }

.pay-timer {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px;
    padding: 12px 6px; color: var(--muted); font-size: 13.5px;
}
.pay-timer__clock { font-weight: 800; font-size: 17px; color: #E5484D; font-variant-numeric: tabular-nums; }
.pay-timer__expired { width: 100%; color: #E5484D; font-size: 12.5px; }
.pay-paid { margin-top: 2px; }
.pay-cancel { margin-top: 10px; }
.team-menu__value--mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }

/* ---- UPI marketplace order cards (buy page v3) ---- */
.market-filter { margin-bottom: 12px; }
.market-filter__bar { display: flex; align-items: center; gap: 8px; }
.market-filter__sort {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px;
    background: #fff; color: var(--muted); display: grid; place-items: center;
    border: 1px solid var(--line); text-decoration: none;
}
.market-filter__sort svg { width: 17px; height: 17px; }
.market-filter__field {
    flex: 1; display: flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid var(--line); border-radius: 8px;
    padding: 0 10px; height: 34px; color: var(--muted); font-size: 13px;
}
.market-filter__field input {
    border: 0; outline: none; width: 100%; font-size: 14px; font-weight: 600;
    color: var(--ink); background: transparent; padding: 0;
}
.market-filter__search {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; border: 0;
    background: #F57C00; color: #fff; display: grid; place-items: center; cursor: pointer;
}
.market-filter__search svg { width: 17px; height: 17px; }
.market-chips {
    display: flex; gap: 6px; overflow-x: auto; padding: 10px 2px 2px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.market-chips::-webkit-scrollbar { display: none; }
.market-chips__chip {
    flex: 0 0 auto; padding: 5px 12px; border-radius: 999px; font-size: 12.5px;
    font-weight: 600; color: var(--muted); background: #fff; text-decoration: none;
    border: 1px solid var(--line); white-space: nowrap;
}
.market-chips__chip.is-active { color: var(--primary); border-color: var(--primary); background: #F3F8FF; }

.market-list { display: flex; flex-direction: column; gap: 10px; }
.market-card {
    background: #fff; border-radius: 12px; padding: 25px 14px; min-height: 108px;
    box-shadow: 0 1px 2px rgba(31, 42, 68, .05);
}
.market-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.market-card__no, .market-card__rate { color: var(--muted); font-size: 12px; }
.market-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.market-card__math { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; min-width: 0; }
.market-card__price { color: #E5484D; font-weight: 700; font-size: 15px; }
.market-card__op { color: var(--muted); font-size: 13px; }
.market-card__reward { color: #333; font-weight: 700; font-size: 14px; }
.market-card__total { color: var(--primary); font-weight: 800; font-size: 15px; }
.market-card__form { flex: 0 0 auto; }
.market-card__buy {
    border: 0; border-radius: 999px; background: var(--primary); color: #fff;
    padding: 8px 22px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.market-card__buy:hover { background: #1E63E9; }
.market-empty { color: var(--muted); text-align: center; padding: 26px 0; font-size: 14px; }
.market-note { margin-top: 10px; }

/* live price rotation flash */
.market-card { transition: background .45s ease, box-shadow .45s ease; }
.market-card.is-refreshing { background: #F3F8FF; box-shadow: 0 2px 10px rgba(47, 123, 246, .18); }
.market-card.is-refreshing .market-card__price { color: var(--primary); }
