:root {
    color-scheme: light;
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-2: #eef1f4;
    --text: #15191e;
    --muted: #66707a;
    --border: #dce1e6;
    --accent: #0f766e;
    --accent-soft: #d9f0ed;
    --danger: #b42318;
    --warning: #a15c07;
    --success: #087443;
    --shadow: 0 8px 24px rgba(21, 25, 30, 0.08);
    --nav-height: 68px;
    --top-height: 72px;
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    overflow-anchor: none;
    scroll-behavior: auto;
}

body {
    overscroll-behavior: none;
}

button,
input,
select {
    color: inherit;
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.hidden {
    display: none !important;
}

.app-shell {
    width: min(100%, 980px);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--bg);
}

.topbar {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 50%;
    display: flex;
    width: min(100%, 980px);
    height: calc(var(--top-height) + env(safe-area-inset-top));
    padding: calc(12px + env(safe-area-inset-top)) 18px 10px;
    align-items: center;
    justify-content: space-between;
    background: rgba(244, 246, 248, 0.96);
    border-bottom: 1px solid var(--border);
    transform: translateX(-50%);
    backdrop-filter: blur(14px);
}

.brand-lockup {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.brand-mark,
.guard-mark {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 8px;
    background: var(--text);
    color: var(--surface);
    font-size: 20px;
    font-weight: 800;
}

.brand-lockup div {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.brand-lockup strong {
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-lockup span {
    color: var(--muted);
    font-size: 12px;
}

.balance-button {
    display: flex;
    min-width: 132px;
    height: 44px;
    padding: 5px 6px 5px 12px;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.balance-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
    text-align: right;
}

.balance-copy small {
    color: var(--muted);
    font-size: 10px;
}

.balance-copy strong {
    overflow: hidden;
    max-width: 90px;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.balance-plus {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 6px;
    background: var(--accent);
    color: #ffffff;
    font-size: 21px;
    line-height: 1;
}

.main {
    min-height: 100vh;
    padding: calc(var(--top-height) + env(safe-area-inset-top) + 18px) 18px
        calc(var(--nav-height) + env(safe-area-inset-bottom) + 28px);
}

.page {
    display: none;
    animation: page-in 160ms ease-out;
}

.page.active {
    display: block;
}

@keyframes page-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.home-heading,
.section-heading,
.modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.home-heading h1,
.section-heading h1,
.profile-head h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.2;
}

.home-heading p,
.section-heading p,
.profile-head p,
.modal-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.live-badge {
    display: inline-flex;
    height: 28px;
    padding: 0 10px;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.live-badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.search-field {
    display: flex;
    height: 48px;
    margin-top: 20px;
    padding: 0 14px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.search-field svg {
    width: 19px;
    height: 19px;
    color: var(--muted);
}

.search-field input {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
}

.search-field:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.segmented-control {
    display: grid;
    height: 42px;
    margin: 14px 0 18px;
    padding: 3px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 8px;
    background: var(--surface-2);
}

.segment {
    min-width: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.segment.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(21, 25, 30, 0.1);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.game-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    text-align: left;
    transition: transform 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
}

.game-card:active {
    transform: scale(0.985);
}

.game-card:hover {
    border-color: #b9c2ca;
    box-shadow: var(--shadow);
}

.game-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 29 / 20;
    background: var(--surface-2);
}

.game-card-media::before {
    display: none;
}

@supports not (aspect-ratio: 1 / 1) {
    .game-card-media {
        height: 120px;
    }
}

.game-card img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

/* Old Telegram WebViews can retain the previous card markup with the new CSS. */
.game-card > .game-card-img {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.game-card > .game-card-badge {
    display: none;
}

.game-card > .game-card-name {
    display: grid;
    min-height: 62px;
    padding: 10px 11px 11px;
    align-content: center;
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
}

.game-card:hover img {
    transform: scale(1.025);
}

.game-card-body {
    display: grid;
    min-height: 62px;
    padding: 10px 11px 11px;
    align-content: center;
    gap: 3px;
}

.game-card-name {
    overflow: hidden;
    min-width: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card-type {
    color: var(--muted);
    font-size: 11px;
}

.empty-state {
    display: grid;
    min-height: 180px;
    place-items: center;
    align-content: center;
    gap: 6px;
    color: var(--muted);
    text-align: center;
}

.empty-state strong {
    color: var(--text);
    font-size: 16px;
}

.empty-state span {
    font-size: 13px;
}

.page-toolbar {
    display: grid;
    height: 44px;
    margin-bottom: 16px;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 8px;
    font-weight: 750;
    text-align: center;
}

.toolbar-spacer {
    width: 44px;
}

.icon-button {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 24px;
}

.game-summary,
.order-summary,
.profile-head {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.game-summary {
    margin-bottom: 18px;
}

.game-summary img,
.order-summary img {
    flex: 0 0 auto;
    width: 74px;
    height: 74px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
    object-fit: cover;
}

.game-summary div,
.order-summary div {
    min-width: 0;
}

.game-summary h1,
.order-summary h1 {
    overflow-wrap: anywhere;
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
}

.game-summary p {
    margin: 6px 0 0;
    color: var(--accent);
    font-size: 13px;
    font-weight: 650;
}

.notice {
    margin-bottom: 14px;
    padding: 11px 12px;
    border-left: 3px solid var(--warning);
    border-radius: 4px;
    background: #fff4e5;
    color: #74400a;
    font-size: 12px;
    line-height: 1.45;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.product-card {
    display: grid;
    overflow: hidden;
    min-height: 150px;
    padding: 12px;
    grid-template-rows: 56px minmax(36px, auto) auto;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    text-align: left;
}

.product-card:active {
    transform: scale(0.985);
}

.product-image {
    width: 56px;
    height: 56px;
    border-radius: 7px;
    background: var(--surface-2);
    object-fit: contain;
}

.product-placeholder {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 7px;
    background: var(--surface-2);
    color: var(--muted);
    font-weight: 800;
}

.product-name {
    overflow: hidden;
    font-size: 13px;
    font-weight: 720;
    line-height: 1.35;
}

.product-price {
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
}

.dynamic-order {
    max-width: 440px;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.dynamic-order > label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
}

.money-input {
    display: flex;
    height: 50px;
    padding: 0 14px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.money-input:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.money-input input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 17px;
    font-weight: 700;
}

.quick-row {
    display: grid;
    margin: 10px 0 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.quick-row button {
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.primary-button,
.secondary-button {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 750;
}

.primary-button {
    background: var(--accent);
    color: #ffffff;
}

.secondary-button {
    margin-top: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.order-summary {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.order-summary small {
    color: var(--muted);
    font-size: 12px;
}

.order-summary h1 {
    margin: 3px 0 6px;
    font-size: 17px;
}

.order-summary strong {
    color: var(--accent);
    font-size: 15px;
}

.order-form {
    display: grid;
    margin-top: 18px;
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 7px;
}

.form-group label,
.payment-fieldset legend {
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: 0;
    background: var(--surface);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.stepper {
    display: grid;
    width: 144px;
    height: 44px;
    grid-template-columns: 44px 56px 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.stepper button {
    background: transparent;
    font-size: 22px;
}

.stepper output {
    display: grid;
    place-items: center;
    border-right: 1px solid var(--border);
    border-left: 1px solid var(--border);
    font-weight: 800;
}

.payment-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.payment-fieldset legend {
    margin-bottom: 8px;
}

.payment-options {
    display: grid;
    gap: 8px;
}

.payment-option {
    display: grid;
    min-width: 0;
    min-height: 62px;
    padding: 8px 11px;
    grid-template-columns: 48px minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    text-align: left;
}

.payment-option.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.payment-option.unavailable {
    display: none;
}

.payment-logo {
    width: 46px;
    max-height: 28px;
    object-fit: contain;
}

.balance-logo {
    display: grid;
    height: 38px;
    place-items: center;
    border-radius: 7px;
    background: var(--text);
    color: var(--surface);
    font-weight: 800;
}

.payment-name {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.payment-name strong {
    font-size: 14px;
}

.payment-name small {
    color: var(--muted);
    font-size: 11px;
}

.payment-price {
    color: var(--text);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.radio-dot {
    width: 16px;
    height: 16px;
    border: 2px solid #aab2ba;
    border-radius: 50%;
}

.payment-option.selected .radio-dot {
    border: 5px solid var(--accent);
}

.checkout-total {
    display: flex;
    min-height: 52px;
    padding: 0 2px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--border);
}

.checkout-total span {
    color: var(--muted);
}

.checkout-total strong {
    font-size: 20px;
}

.purchase-button {
    min-height: 52px;
    font-size: 16px;
}

.section-heading {
    margin-bottom: 16px;
}

.section-heading.compact {
    margin-top: 22px;
}

.section-heading h2,
.modal-heading h2 {
    margin: 0;
    font-size: 19px;
}

.history-list {
    display: grid;
    gap: 8px;
}

.history-item {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.history-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.history-copy,
.history-side {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.history-side {
    justify-items: end;
}

.history-copy strong,
.history-side strong {
    overflow-wrap: anywhere;
    font-size: 13px;
}

.history-copy span,
.history-side time {
    color: var(--muted);
    font-size: 11px;
}

.status-badge {
    display: inline-flex;
    min-height: 24px;
    padding: 0 8px;
    align-items: center;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.status-completed {
    background: #dcf6e8;
    color: var(--success);
}

.status-failed,
.status-cancelled,
.status-expired {
    background: #fee4e2;
    color: var(--danger);
}

.status-processing,
.status-pending,
.status-awaiting_payment,
.status-review_required {
    background: #fff0d5;
    color: var(--warning);
}

.delivery-box {
    margin-top: 11px;
    padding: 10px;
    border: 1px dashed var(--accent);
    border-radius: 7px;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.profile-head {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.profile-avatar {
    display: grid;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 8px;
    background: var(--text);
    color: var(--surface);
    font-size: 23px;
    font-weight: 800;
}

.stats-grid {
    display: grid;
    margin-top: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.stat-item {
    display: grid;
    min-width: 0;
    min-height: 82px;
    padding: 13px 10px;
    align-content: center;
    gap: 6px;
    text-align: center;
}

.stat-item + .stat-item {
    border-left: 1px solid var(--border);
}

.stat-item small {
    color: var(--muted);
    font-size: 11px;
}

.stat-item strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.referral-row {
    display: flex;
    width: 100%;
    min-height: 68px;
    margin-top: 12px;
    padding: 12px 14px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    text-align: left;
}

.referral-row > span:first-child {
    display: grid;
    gap: 4px;
}

.referral-row small {
    color: var(--muted);
}

.referral-row > span:last-child {
    color: var(--muted);
    font-size: 25px;
}

.bottom-nav {
    position: fixed;
    z-index: 35;
    bottom: 0;
    left: 50%;
    display: grid;
    width: min(100%, 980px);
    height: calc(var(--nav-height) + env(safe-area-inset-bottom));
    padding: 7px 18px calc(7px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.97);
    transform: translateX(-50%);
    backdrop-filter: blur(14px);
}

.nav-item {
    display: grid;
    min-width: 0;
    place-items: center;
    align-content: center;
    gap: 3px;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
}

.nav-item svg {
    width: 21px;
    height: 21px;
}

.nav-item.active {
    color: var(--accent);
}

.modal {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: grid;
    align-items: end;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 18, 20, 0.56);
    backdrop-filter: blur(2px);
}

.modal-sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: 88vh;
    margin: 0 auto;
    padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-radius: 8px 8px 0 0;
    background: var(--surface);
    box-shadow: 0 -16px 50px rgba(21, 25, 30, 0.2);
}

.modal-handle {
    width: 34px;
    height: 4px;
    margin: 0 auto 15px;
    border-radius: 99px;
    background: var(--border);
}

.money-input.large {
    height: 58px;
    margin-top: 18px;
}

.money-input.large input {
    font-size: 22px;
}

.exact-payment-note,
.modal-status {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.copy-block {
    display: grid;
    width: 100%;
    min-height: 72px;
    margin-top: 10px;
    padding: 10px 12px;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    text-align: left;
}

.copy-block small {
    color: var(--muted);
}

.copy-block strong {
    grid-column: 1;
    font-size: 17px;
}

.copy-block span {
    grid-row: 1 / span 2;
    grid-column: 2;
    color: var(--accent);
    font-size: 12px;
    font-weight: 750;
}

.result-mark {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 10px auto 16px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-size: 30px;
}

.result-mark.error {
    background: var(--danger);
}

.result-mark.waiting {
    background: var(--accent-soft);
}

.result-mark.waiting span {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(15, 118, 110, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

.deposit-step > h2,
.payment-sheet h2 {
    margin: 0;
    text-align: center;
}

.deposit-step > p,
.payment-sheet > p {
    color: var(--muted);
    line-height: 1.5;
    text-align: center;
}

.payment-sheet {
    text-align: center;
}

.payment-modal-price {
    display: block;
    margin: 14px 0 18px;
    font-size: 23px;
}

.loading-overlay {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(244, 246, 248, 0.64);
    backdrop-filter: blur(2px);
}

.spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(15, 118, 110, 0.18);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

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

.toast {
    position: fixed;
    z-index: 120;
    bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 14px);
    left: 50%;
    width: min(calc(100% - 32px), 460px);
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--text);
    color: var(--surface);
    box-shadow: var(--shadow);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
    transform: translateX(-50%);
}

.toast.error {
    background: var(--danger);
    color: #ffffff;
}

.toast.success {
    background: var(--success);
    color: #ffffff;
}

.telegram-guard {
    min-height: 100vh;
    padding: 32px;
    place-items: center;
    align-content: center;
    gap: 8px;
    text-align: center;
}

.telegram-guard:not(.hidden) {
    display: grid;
}

.telegram-guard h1 {
    margin: 10px 0 0;
}

.telegram-guard p {
    margin: 0;
    color: var(--muted);
}

@media (min-width: 640px) {
    .main {
        padding-right: 26px;
        padding-left: 26px;
    }

    .games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .game-card > .game-card-img {
        height: 140px;
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .modal {
        align-items: center;
        padding: 24px;
    }

    .modal-sheet {
        border-radius: 8px;
    }
}

@media (min-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #101214;
        --surface: #181b1e;
        --surface-2: #22262a;
        --text: #f2f4f5;
        --muted: #9ca5ad;
        --border: #30363b;
        --accent: #2dd4bf;
        --accent-soft: #163d39;
        --warning: #f2b84b;
        --success: #4ade80;
        --shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    }

    .topbar {
        background: rgba(16, 18, 20, 0.96);
    }

    .bottom-nav {
        background: rgba(24, 27, 30, 0.97);
    }

    .notice {
        background: #33230f;
        color: #f1c27b;
    }

    .status-completed {
        background: #153923;
    }

    .status-failed,
    .status-cancelled,
    .status-expired {
        background: #421c1c;
    }

    .status-processing,
    .status-pending,
    .status-awaiting_payment,
    .status-review_required {
        background: #3c2c12;
    }

    .loading-overlay {
        background: rgba(16, 18, 20, 0.68);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
