:root {
    --bg: #061a2f;
    --bg-soft: #0b2a49;
    --panel: rgba(20, 38, 58, .84);
    --panel-strong: rgba(8, 23, 42, .97);
    --glass: rgba(255, 255, 255, .12);
    --line: rgba(255, 215, 128, .44);
    --line-soft: rgba(255, 255, 255, .16);
    --gold: #f6d47a;
    --gold-strong: #ffe59a;
    --gold-dark: #c99422;
    --text: #f8fafc;
    --muted: #b7c6d6;
    --muted-2: #e5edf7;
    --danger: #ef4444;
    --success: #22c55e;
    --shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

.ap-control-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 72px;
}

.ap-control-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.ap-control-head p,
.ap-control-head h2,
.ap-panel h3,
.ap-empty {
    margin: 0;
}

.ap-control-head p {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.ap-control-head h2 {
    margin-top: 4px;
    color: #fff5cd;
    font-size: 30px;
    line-height: 1.15;
}

.ap-refresh,
.ap-form button {
    display: inline-grid;
    min-height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 218, 124, .58);
    border-radius: 8px;
    padding: 0 14px;
    background: linear-gradient(180deg, rgba(255, 226, 140, .22), rgba(201, 148, 34, .24));
    color: #fff5cd;
    font-size: 13px;
    font-weight: 900;
}

.ap-alert,
.ap-panel {
    border: 1px solid rgba(255, 218, 124, .42);
    border-radius: 8px;
    background: rgba(8, 28, 50, .78);
    box-shadow: 0 16px 42px rgba(0, 0, 0, .24);
    backdrop-filter: blur(14px);
}

.ap-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    color: var(--gold-strong);
    font-weight: 800;
}

.ap-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 14px;
}

.ap-panel {
    padding: 16px;
}

.ap-panel h3 {
    margin-bottom: 14px;
    color: var(--gold-strong);
    font-size: 17px;
}

.ap-form {
    display: grid;
    gap: 12px;
}

.ap-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.ap-form .ap-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-2);
}

.ap-form .ap-check input {
    width: auto;
    min-height: 0;
}

.ap-form input,
.ap-form select {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, .09);
    color: var(--text);
}

.ap-form option {
    background: #f8fafc;
    color: #0f172a;
}

.ap-form button {
    width: 100%;
    margin-top: 4px;
}

.ap-device-list {
    display: grid;
    gap: 10px;
}

.ap-device {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding-bottom: 10px;
}

.ap-device:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ap-device strong,
.ap-device span,
.ap-device small {
    display: block;
}

.ap-device span,
.ap-device small,
.ap-empty {
    color: var(--muted);
    font-size: 12px;
}

.ap-device span {
    overflow-wrap: anywhere;
}

.ap-device small {
    grid-column: 1 / -1;
}

.ap-device-capabilities {
    display: grid;
    grid-column: 1 / -1;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    padding: 10px;
    background: rgba(15, 23, 42, .34);
}

.ap-device-capabilities > span {
    color: var(--gold-strong);
    font-size: 12px;
    font-weight: 900;
}

.ap-device-capabilities > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 6px 10px;
}

.ap-device-capabilities label {
    display: flex;
    min-height: 24px;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.ap-device-capabilities input {
    width: 14px;
    min-height: 14px;
}

.ap-device-capabilities button {
    justify-self: end;
    padding: 6px 12px;
    font-size: 12px;
}

.ap-device-action,
.ap-device-offline-note {
    grid-column: 1 / -1;
    justify-self: end;
}

.ap-device-action button {
    border-color: rgba(248, 113, 113, .45);
    background: rgba(127, 29, 29, .45);
    color: #fecaca;
    padding: 6px 12px;
    font-size: 12px;
}

.ap-device-enable-action button {
    border-color: rgba(34, 197, 94, .45);
    background: rgba(22, 101, 52, .45);
    color: #bbf7d0;
}

.ap-device-offline-note {
    color: #fecaca;
    font-size: 12px;
    font-weight: 800;
}

.ap-status {
    align-self: start;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 3px 8px;
    background: rgba(148, 163, 184, .18);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 900;
}

.ap-status-online,
.ap-status-done {
    background: rgba(34, 197, 94, .2);
    color: #bbf7d0;
}

.ap-status-busy,
.ap-status-running,
.ap-status-queued {
    background: rgba(246, 212, 122, .18);
    color: var(--gold-strong);
}

.ap-status-error {
    background: rgba(239, 68, 68, .2);
    color: #fecaca;
}

.ap-status-disabled {
    background: rgba(100, 116, 139, .2);
    color: #cbd5e1;
}

.ap-task-panel {
    margin-top: 14px;
}

.ap-table-wrap {
    overflow-x: auto;
}

.ap-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    font-size: 13px;
}

.ap-table th,
.ap-table td {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

.ap-table th {
    color: var(--gold);
    font-size: 12px;
}

.ap-table td {
    color: var(--muted-2);
}

.ap-table code {
    white-space: normal;
    overflow-wrap: anywhere;
}

.ap-result {
    display: grid;
    gap: 5px 10px;
    min-width: 260px;
    margin: 0;
}

.ap-result div {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px;
}

.ap-result dt {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

.ap-result dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.ap-result-wide {
    grid-template-columns: 62px minmax(260px, 1fr);
}

.ap-result-error {
    color: #fecaca;
}

.ap-result-error strong,
.ap-result-error small {
    display: block;
}

.ap-result-error strong {
    font-weight: 900;
}

.ap-result-error small {
    margin-top: 4px;
    color: rgba(254, 202, 202, .78);
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.ap-result-link {
    color: var(--gold-strong);
    font-weight: 900;
    text-decoration: underline;
}

@media (max-width: 760px) {
    .ap-control-head,
    .ap-grid {
        grid-template-columns: 1fr;
    }

    .ap-control-head {
        display: grid;
        align-items: start;
    }
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% -16%, rgba(255, 225, 148, .26), transparent 34rem),
        radial-gradient(circle at 86% 20%, rgba(54, 139, 235, .28), transparent 24rem),
        linear-gradient(180deg, #0c2a4a 0%, #071c33 46%, #02101f 100%);
}

.network-status-banner {
    position: fixed;
    z-index: 80;
    top: 12px;
    left: 50%;
    display: grid;
    gap: 2px;
    width: min(calc(100% - 28px), 520px);
    padding: 12px 14px;
    border: 1px solid rgba(255, 218, 124, .52);
    border-radius: 12px;
    background: rgba(24, 36, 52, .94);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
    transform: translateX(-50%);
}

.network-status-banner strong {
    color: var(--gold);
    font-size: 14px;
    font-weight: 900;
}

.network-status-banner span {
    color: #fff7dc;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.network-status-banner.is-offline {
    border-color: rgba(248, 113, 113, .56);
    background: rgba(78, 21, 29, .94);
}

body::before {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 235, 180, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 235, 180, .07) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 70%);
    content: "";
}

.asset-sparkle,
.asset-money {
    position: absolute;
    pointer-events: none;
    user-select: none;
}

.asset-sparkle {
    mix-blend-mode: screen;
    opacity: .36;
    filter: saturate(1.25) contrast(1.05);
}

.asset-money {
    mix-blend-mode: screen;
    opacity: .28;
    filter: saturate(.9) hue-rotate(18deg) blur(.2px);
}

button,
input,
select {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}

button {
    cursor: pointer;
}

button:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: .5;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-height: 100vh;
    flex-direction: column;
}

.locale-switcher {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    max-width: min(70vw, 360px);
}

.locale-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 6px;
    color: #fff;
    background: rgba(4, 20, 35, .72);
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
}

.locale-switcher a.is-active {
    border-color: rgba(255, 217, 107, .82);
    color: #ffe8a6;
}

.brand-head {
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(8, 28, 50, .88), rgba(5, 18, 34, .8));
    backdrop-filter: blur(16px);
}

.brand-logo {
    display: block;
    width: 64px;
    height: 52px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .36));
}

.brand-head p,
.brand-head h1,
.brand-head small {
    margin: 0;
}

.brand-head p {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

.brand-head h1 {
    margin-top: 2px;
    color: #fff5cd;
    font-size: clamp(22px, 6vw, 36px);
    font-weight: 900;
    line-height: 1.08;
    text-shadow: 0 2px 12px rgba(255, 218, 124, .26);
}

.brand-head small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.member-actions {
    display: flex;
    align-items: center;
    flex: 1 0 auto;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.member-display-name {
    max-width: 120px;
    overflow: hidden;
    color: #fff5cd;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-actions a,
.member-actions button {
    display: grid;
    min-height: 34px;
    place-items: center;
    padding: 0 12px;
    border: 1px solid rgba(255, 218, 124, .5);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

.member-actions form {
    margin: 0;
}

.member-actions .order-now-action {
    flex-shrink: 0;
    white-space: nowrap;
    border-color: rgba(255, 237, 168, .9);
    background: linear-gradient(135deg, #fff0aa 0%, #d9a537 54%, #ffd86a 100%);
    color: #0b0f19;
    box-shadow: 0 10px 24px rgba(255, 211, 97, .28);
}

.screen {
    width: 100%;
    min-width: 0;
    flex: 1;
}

.auth-shell,
.member-shell {
    width: min(100% - 36px, 980px);
    margin: 26px auto 118px;
}

.auth-panel,
.member-hero,
.member-card,
.member-alert {
    border: 1px solid rgba(255, 218, 124, .46);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07)),
        rgba(8, 28, 50, .72);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .22);
    backdrop-filter: blur(16px);
}

.auth-panel {
    display: grid;
    justify-items: center;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
    padding: 30px 22px;
    text-align: center;
}

.auth-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(255, 218, 124, .42));
}

.auth-panel p,
.member-hero p {
    margin: 0;
    color: var(--gold);
    font-weight: 900;
}

.auth-panel h2,
.member-hero h2,
.member-card h3 {
    margin: 0;
    color: #fff5cd;
    font-weight: 900;
}

.auth-panel span,
.member-hero span {
    color: var(--muted-2);
    font-weight: 800;
    line-height: 1.55;
}

.line-login-button {
    display: grid;
    width: 100%;
    min-height: 54px;
    place-items: center;
    border-radius: 999px;
    background: #06c755;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(6, 199, 85, .32);
}

.member-shell {
    display: grid;
    gap: 16px;
}

.member-hero {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 18px;
}

.member-hero img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, .08);
}

.member-alert {
    padding: 14px 16px;
    color: var(--gold);
    font-weight: 900;
}

.member-grid {
    display: grid;
    gap: 16px;
}

.page-member .member-grid {
    grid-template-columns: 1fr;
}

.member-card {
    padding: 18px;
}

.member-progress {
    display: grid;
    gap: 16px;
}

.member-progress p,
.member-section-note {
    margin: 8px 0 0;
    color: var(--muted-2);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.6;
}

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

.member-status-grid a {
    display: grid;
    gap: 4px;
    min-height: 70px;
    align-content: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
}

.member-status-grid a.is-done {
    border-color: rgba(52, 211, 153, .42);
    background: rgba(16, 185, 129, .1);
}

.member-status-grid a.is-todo {
    border-color: rgba(255, 218, 124, .42);
    background: rgba(255, 218, 124, .08);
}

.member-status-grid span,
.member-next-step span {
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 900;
}

.member-status-grid strong,
.member-next-step a {
    color: #fff5cd;
    font-weight: 900;
}

.member-next-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 218, 124, .42);
    border-radius: 12px;
    background: rgba(255, 218, 124, .1);
}

.member-verification-overview {
    display: grid;
    gap: 14px;
}

.member-verification-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.member-verification-heading p {
    margin: 8px 0 0;
    color: var(--muted-2);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.6;
}

.member-stage-badge {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(255, 218, 124, .42);
    border-radius: 999px;
    background: rgba(255, 218, 124, .1);
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.member-verification-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.member-verification-card {
    display: grid;
    min-height: 132px;
    align-content: start;
    gap: 7px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
}

.member-verification-card span {
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 900;
}

.member-verification-card strong {
    color: #fff5cd;
    font-size: 22px;
    font-weight: 900;
}

.member-verification-card em {
    color: #dbe7f3;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.55;
}

.member-verification-card.is-complete {
    border-color: rgba(52, 211, 153, .5);
    background: rgba(16, 185, 129, .12);
}

.member-verification-card.is-reviewing {
    border-color: rgba(96, 165, 250, .48);
    background: rgba(59, 130, 246, .12);
}

.member-verification-card.is-action-needed {
    border-color: rgba(255, 218, 124, .5);
    background: rgba(255, 218, 124, .1);
}

.member-verification-card.is-rejected {
    border-color: rgba(248, 113, 113, .54);
    background: rgba(185, 28, 28, .16);
}

.member-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 218, 124, .36);
    border-radius: 16px;
    background: rgba(8, 28, 50, .66);
    backdrop-filter: blur(12px);
}

.member-tabs button {
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--muted-2);
    font-weight: 900;
}

.member-tabs button.is-active {
    border-color: rgba(255, 218, 124, .56);
    background: rgba(255, 218, 124, .16);
    color: var(--gold);
}

.member-panel {
    display: none;
}

.member-panel.is-active {
    display: block;
}

.member-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.member-two-column.is-collapsed {
    display: none;
}

.member-verified-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(96, 211, 148, .46);
    border-radius: 12px;
    background: rgba(19, 83, 57, .34);
}

.member-verified-box strong,
.member-verified-box span {
    display: block;
}

.member-verified-box strong {
    color: #bbf7d0;
    font-weight: 900;
}

.member-verified-box span {
    margin-top: 4px;
    color: var(--muted-2);
    font-weight: 800;
}

.member-pending-box {
    display: grid;
    gap: 6px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 218, 124, .42);
    border-radius: 12px;
    background: rgba(255, 218, 124, .1);
}

.member-pending-box strong {
    color: var(--gold);
    font-weight: 900;
}

.member-pending-box span {
    color: var(--muted-2);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.6;
}

.member-verification-guide {
    display: grid;
    gap: 6px;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 218, 124, .36);
    border-radius: 12px;
    background: rgba(255, 218, 124, .08);
}

.member-verification-guide strong {
    color: var(--gold);
    font-weight: 900;
}

.member-verification-guide span {
    color: var(--muted-2);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.6;
}

.role-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.role-form label {
    color: var(--gold);
    font-weight: 900;
}

.role-form small {
    color: #fecaca;
    font-weight: 800;
}

.member-inline-status {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 218, 124, .32);
    border-radius: 10px;
    background: rgba(255, 218, 124, .08);
    color: var(--muted-2);
    font-size: 14px;
    font-weight: 900;
}

.member-inline-status.is-success {
    border-color: rgba(52, 211, 153, .42);
    background: rgba(16, 185, 129, .1);
    color: #bbf7d0;
}

.member-inline-status.is-error {
    border-color: rgba(248, 113, 113, .5);
    background: rgba(127, 29, 29, .28);
    color: #fecaca;
}

.checkout-referral {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 900;
}

.checkout-referral input {
    width: 100%;
    border: 1px solid rgba(255, 218, 124, .28);
    border-radius: 8px;
    padding: 12px;
    background: rgba(13, 10, 7, .62);
    color: var(--text);
    font: inherit;
}

.bank-search-results {
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow: auto;
    padding: 8px;
    border: 1px solid rgba(255, 218, 124, .24);
    border-radius: 8px;
    background: rgba(13, 10, 7, .62);
}

.bank-search-results button {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: flex-start;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
    text-align: left;
    touch-action: manipulation;
}

.bank-search-results p {
    margin: 0;
    color: var(--muted-2);
    font-size: 14px;
    font-weight: 800;
}

.role-list,
.order-history {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.role-list article,
.order-history a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
}

.role-list strong,
.role-list span,
.order-history strong,
.order-history span,
.order-history b,
.order-history em {
    display: block;
}

.role-list strong,
.order-history strong,
.order-history b {
    color: #fff5cd;
    font-weight: 900;
}

.role-list span,
.order-history span {
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 13px;
    font-weight: 800;
}

.role-list button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(239, 68, 68, .48);
    border-radius: 999px;
    background: rgba(239, 68, 68, .1);
    color: #fecaca;
    font-weight: 900;
}

.order-history em {
    margin-top: 3px;
    color: var(--gold);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

.order-history a.is-static {
    cursor: default;
}

.role-list p,
.order-history p {
    margin: 0;
    color: var(--muted-2);
    font-weight: 800;
}

.sell-shell {
    width: min(100% - 28px, 720px);
    margin: 18px auto 118px;
}

.flow-nav,
.sell-card {
    border: 1px solid rgba(255, 218, 124, .42);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07)),
        rgba(8, 28, 50, .74);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .22);
    backdrop-filter: blur(16px);
}

.flow-nav {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 18px;
}

.flow-nav a {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: var(--gold);
    font-size: 34px;
    font-weight: 400;
}

.flow-nav strong,
.flow-nav span {
    display: block;
}

.flow-nav strong {
    color: #fff5cd;
    font-size: 19px;
    font-weight: 900;
}

.flow-nav span {
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 800;
}

.product-flow-nav {
    width: 100%;
    margin-bottom: 18px;
}

.sell-flow {
    display: grid;
    gap: 14px;
}

.sell-card {
    display: grid;
    gap: 11px;
    padding: 18px;
    border-radius: 22px;
}

.sell-card h2 {
    margin: 0;
    color: #fff5cd;
    font-size: 19px;
    font-weight: 900;
}

.sell-card label {
    color: #dbe7f3;
    font-size: 14px;
    font-weight: 900;
}

.sell-card b {
    color: #f87171;
}

.sell-card small {
    color: #fecaca;
    font-weight: 800;
}

.sell-card input {
    border-color: rgba(255, 218, 124, .46);
    background: rgba(255, 255, 255, .08);
}

.estimate-box {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 16px;
    border: 1px solid rgba(255, 218, 124, .78);
    border-radius: 16px;
    background: rgba(6, 18, 34, .52);
    box-shadow: 0 0 18px rgba(255, 218, 124, .22);
}

.estimate-box span {
    color: #e9eef7;
    font-weight: 900;
}

.estimate-box strong {
    color: var(--gold-strong);
    font-size: 30px;
    font-weight: 900;
    text-shadow: 0 2px 0 rgba(75, 46, 5, .55), 0 8px 24px rgba(255, 218, 124, .3);
}

.sell-price-highlight strong {
    font-size: 36px;
}

.upload-dropzone {
    display: grid;
    min-height: 154px;
    place-items: center;
    gap: 7px;
    padding: 18px;
    border: 2px dashed rgba(107, 114, 128, .72);
    border-radius: 18px;
    background: #eef2f7;
    color: #1f2937;
    text-align: center;
    cursor: pointer;
}

.upload-dropzone span {
    font-size: 42px;
}

.upload-dropzone strong {
    max-width: 100%;
    color: #374151;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.upload-dropzone em {
    color: #6b7280;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.notice-inline {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(255, 218, 124, .42);
    border-radius: 14px;
    background: rgba(6, 18, 34, .42);
}

.notice-inline strong {
    color: var(--gold-strong);
    font-size: 17px;
    font-weight: 900;
}

.notice-inline span {
    color: #e9eef7;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

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

.mode-card {
    display: grid;
    gap: 8px;
    min-height: 148px;
    place-items: center;
    padding: 14px 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    color: var(--muted-2);
    text-align: center;
}

.mode-card span {
    font-size: 26px;
}

.mode-card strong {
    color: #fff5cd;
    font-size: 18px;
    font-weight: 900;
}

.mode-card em {
    color: var(--muted-2);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.35;
}

.mode-card.is-selected {
    border-color: var(--gold);
    background: linear-gradient(145deg, rgba(255, 226, 150, .24), rgba(255, 255, 255, .08));
    box-shadow: 0 0 0 3px rgba(255, 218, 124, .16), 0 0 22px rgba(255, 218, 124, .34);
}

.sell-next {
    width: 100%;
    margin-top: 4px;
}

.sell-next:disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: #d1d5db;
    box-shadow: none;
}

.sell-next-hint {
    margin: -4px 0 0;
    color: #fecaca;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.sell-next-hint.is-ready {
    color: #bbf7d0;
}

.section-band {
    display: grid;
    min-height: 170px;
    place-items: center;
    padding: 28px 20px;
    color: var(--text);
    text-align: center;
    font-size: 34px;
    font-weight: 900;
}

.content-pad {
    padding: 0 18px 116px;
}

h2,
h3,
p {
    letter-spacing: 0;
}

.content-pad h2,
.info-section h3,
.buy-form label {
    margin: 0;
    font-weight: 900;
    line-height: 1.2;
}

.content-pad h2,
.payment-header h2,
.product-hero h2 {
    color: var(--gold);
    font-size: 27px;
    font-weight: 900;
}

.content-pad h2 {
    margin-bottom: 16px;
}

.game-list {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.trade-choice-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 26px;
}

.trade-choice {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 110px;
    padding: 18px;
    border: 1px solid rgba(255, 218, 124, .46);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07)),
        rgba(8, 28, 50, .72);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .22);
    backdrop-filter: blur(16px);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.trade-choice.is-selected {
    border-color: var(--gold);
    background:
        linear-gradient(135deg, rgba(255, 226, 150, .3), rgba(255, 255, 255, .1)),
        rgba(8, 28, 50, .78);
    box-shadow: 0 0 0 3px rgba(255, 218, 124, .16), 0 0 28px rgba(255, 218, 124, .34), var(--shadow);
}

.trade-choice span {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, #fff8cf, var(--gold) 56%, var(--gold-dark));
    color: #08213a;
    font-size: 26px;
    font-weight: 900;
    box-shadow: 0 0 22px rgba(255, 218, 124, .48);
}

.trade-choice strong,
.trade-choice em {
    display: block;
}

.trade-choice strong {
    color: #fff5cd;
    font-size: 22px;
    font-weight: 900;
}

.trade-choice em {
    margin-top: 5px;
    color: var(--muted-2);
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
}

.catalog-subtitle {
    margin-top: 4px;
}

.trade-mode-hint {
    margin: -8px 0 14px;
    color: var(--muted-2);
    font-size: 14px;
    font-weight: 800;
}

.game-list.is-waiting-mode .game-card {
    opacity: .58;
}

.game-list.is-waiting-mode .game-card:hover,
.game-list.is-waiting-mode .game-card:focus-visible {
    background: transparent;
}

.selected-game-pill {
    display: inline-grid;
    grid-template-columns: 42px auto;
    gap: 10px;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 218, 124, .46);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.selected-game-pill img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: contain;
}

.selected-game-pill strong {
    min-width: 0;
    color: #fff5cd;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.sell-rate-note {
    width: fit-content;
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 218, 124, .12);
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
}

.sell-rate-highlight {
    border: 1px solid rgba(255, 218, 124, .62);
    box-shadow: 0 8px 24px rgba(255, 218, 124, .16);
}

.sell-rate-highlight strong {
    color: var(--gold-strong);
    font-size: 18px;
}

.sell-converter {
    display: grid;
    gap: 12px;
}

.converter-field {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: rgba(255, 255, 255, .07);
    cursor: text;
}

.converter-field.is-active {
    border-color: var(--gold);
    background: linear-gradient(145deg, rgba(255, 226, 150, .18), rgba(255, 255, 255, .08));
    box-shadow: 0 0 0 3px rgba(255, 218, 124, .12), 0 0 18px rgba(255, 218, 124, .2);
}

.converter-field span,
.converter-field em {
    display: block;
}

.converter-field span {
    color: #dbe7f3;
    font-size: 14px;
    font-weight: 900;
}

.converter-field em,
.estimate-box em {
    color: var(--muted-2);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.converter-field input {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: rgba(5, 18, 34, .42);
    color: #fff5cd;
    font-size: 22px;
    font-weight: 900;
}

.game-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 104px;
    padding: 16px;
    border-bottom: 1px solid var(--line-soft);
    transition: background .16s ease, transform .16s ease;
}

.game-card:last-child {
    border-bottom: 0;
}

.game-card:hover,
.game-card:focus-visible {
    background: rgba(230, 194, 122, .09);
    outline: 0;
}

.game-icon {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(255, 226, 150, .88);
    border-radius: 50%;
    background:
        radial-gradient(circle at 36% 28%, rgba(255, 255, 255, .22), transparent 35%),
        linear-gradient(145deg, #304259, #061525);
    color: var(--gold);
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 12px 28px rgba(0, 0, 0, .34), 0 0 22px rgba(255, 218, 124, .16);
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
}

.game-icon.small {
    width: 68px;
    height: 68px;
    font-size: 29px;
}

.game-icon.large {
    width: 112px;
    height: 112px;
    margin: 0 auto 16px;
    border-radius: 50%;
    font-size: 50px;
}

.game-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
}

.game-card p {
    margin: 3px 0;
    color: var(--muted-2);
    font-size: 14px;
    font-weight: 800;
}

.game-card p:first-of-type {
    color: var(--gold);
}

.catalog-rate-stack {
    display: grid;
    gap: 4px;
    margin-top: 6px;
}

.catalog-rate {
    margin: 0;
    color: var(--muted-2);
    font-weight: 900;
}

.catalog-rate strong {
    color: var(--gold-strong);
    font-size: 20px;
    text-shadow: 0 2px 14px rgba(255, 218, 124, .28);
}

.catalog-rate.member-rate strong {
    font-size: 23px;
}

.game-card span {
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.product-hero {
    padding: 34px 20px 28px;
    text-align: center;
}

.product-hero h2 {
    margin: 0;
}

.merchant-block,
.buy-form,
.checkout-scroll,
.payment-code,
.order-table,
.notice-box {
    width: calc(100% - 36px);
    max-width: 680px;
    margin-inline: auto;
}

.merchant-block {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.merchant-logo {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 16px;
    background: rgba(230, 194, 122, .16);
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
}

.merchant-block h3 {
    margin: 0 0 7px;
    font-size: 22px;
    font-weight: 900;
}

.merchant-block p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.merchant-block strong {
    color: var(--gold);
}

.buy-form {
    display: grid;
    gap: 16px;
    padding-bottom: 116px;
}

.buy-form label {
    font-size: 17px;
}

select,
input {
    width: 100%;
    min-height: 56px;
    border: 1px solid rgba(230, 194, 122, .36);
    border-radius: 14px;
    background: rgba(0, 0, 0, .24);
    color: var(--text);
}

select {
    padding: 0 16px;
    font-weight: 900;
}

option {
    background: #0f172a;
}

select:focus,
input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(230, 194, 122, .14);
    outline: 0;
}

.amount-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 10px;
    align-items: center;
}

.amount-step {
    display: grid;
    min-height: 52px;
    place-items: center;
    border: 1px solid rgba(230, 194, 122, .36);
    border-radius: 50%;
    background: rgba(230, 194, 122, .08);
    color: var(--gold);
    font-size: 24px;
    font-weight: 900;
}

.amount-display {
    display: grid;
    grid-template-columns: max-content minmax(6ch, max-content);
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    overflow: visible;
    padding: 4px 14px;
    border: 1px solid rgba(230, 194, 122, .36);
    border-radius: 18px;
    background: rgba(0, 0, 0, .24);
}

.amount-display span {
    color: var(--muted-2);
    font-size: 15px;
    font-weight: 900;
}

.amount-display input {
    width: 6ch;
    min-width: 6ch;
    border: 0;
    background: transparent;
    color: var(--gold);
    font-size: 30px;
    font-weight: 900;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.amount-display input:focus {
    box-shadow: none;
}

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

.quick-amounts button {
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .055);
    color: var(--text);
    font-weight: 900;
}

.quick-amounts button.is-selected {
    border-color: var(--gold);
    background: rgba(230, 194, 122, .16);
    color: var(--gold);
}

.rate-card,
.summary-list,
.checkout-card,
.payment-select,
.notice-box,
.order-table {
    border: 1px solid rgba(255, 218, 124, .46);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07)),
        rgba(8, 28, 50, .68);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .22);
    backdrop-filter: blur(16px);
}

.rate-card {
    display: grid;
    gap: 6px;
    padding: 18px;
}

.rate-card span,
.rate-card small,
.summary-list span,
.order-table span {
    color: var(--muted);
}

.rate-card strong {
    color: var(--gold);
    font-size: 22px;
}

.rate-card .rate-highlight {
    color: var(--gold-strong);
    font-size: 34px;
    line-height: 1.05;
    text-shadow: 0 2px 0 rgba(75, 46, 5, .55), 0 10px 30px rgba(255, 218, 124, .38);
}

.rate-card em {
    color: #bbf7d0;
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
}

.rate-card small {
    font-size: 14px;
    font-weight: 800;
}

.bottom-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 74px 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, .88);
    box-shadow: 0 -16px 42px rgba(0, 0, 0, .36);
    backdrop-filter: blur(18px);
}

.cart-tab {
    position: relative;
    display: grid;
    min-height: 58px;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 900;
}

.cart-tab em {
    position: absolute;
    right: 8px;
    top: 1px;
    display: none;
    min-width: 19px;
    height: 19px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    line-height: 19px;
}

.cart-tab.has-items em {
    display: block;
}

.bag-icon {
    width: 26px;
    height: 30px;
    border: 2px solid var(--gold);
    border-radius: 6px 6px 10px 10px;
}

.bag-icon::before {
    display: block;
    width: 13px;
    height: 10px;
    margin: -10px auto 0;
    border: 2px solid var(--gold);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    content: "";
}

.primary-action,
.secondary-action {
    display: grid;
    min-height: 52px;
    place-items: center;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 900;
    text-align: center;
}

.primary-action {
    border: 0;
    background: linear-gradient(135deg, var(--gold-strong), var(--gold-dark));
    color: #0b0f19;
    box-shadow: 0 14px 26px rgba(184, 134, 11, .28);
}

.secondary-action {
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
}

.ghost-action {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 218, 124, .45);
    border-radius: 999px;
    background: rgba(255, 218, 124, .08);
    color: var(--gold);
    font-weight: 900;
}

.wide {
    grid-column: 1 / -1;
}

.checkout-actions {
    grid-template-columns: 1fr;
}

.bottom-action-form {
    display: contents;
}

.inline-action-form {
    display: grid;
    width: min(100%, 320px);
}

.center-action {
    display: grid;
    justify-items: center;
}

.payment-header {
    width: calc(100% - 36px);
    max-width: 680px;
    margin: 24px auto 0;
    padding: 20px 14px;
    border: 1px solid rgba(255, 218, 124, .52);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .08)),
        rgba(7, 25, 45, .72);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .26);
    text-align: center;
    backdrop-filter: blur(16px);
}

.payment-header h2 {
    margin: 0 0 18px;
}

.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps::before {
    position: absolute;
    top: 16px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: rgba(255, 255, 255, .12);
    content: "";
}

.steps li {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    justify-items: center;
    color: var(--muted);
}

.steps span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.steps .is-active span,
.steps .is-done span {
    border-color: var(--gold);
    background: radial-gradient(circle at 35% 25%, #fff8cf, var(--gold) 56%, var(--gold-dark));
    color: #020617;
    box-shadow: 0 0 22px rgba(255, 218, 124, .58);
}

.steps .is-active b,
.steps .is-done b {
    color: var(--gold);
}

.steps b {
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
}

.checkout-scroll {
    padding-top: 22px;
    padding-bottom: 112px;
}

.screen-checkout,
.screen-complete {
    position: relative;
}

.checkout-sparkle,
.complete-sparkle {
    top: 74px;
    right: -240px;
    width: 520px;
    opacity: .28;
    transform: rotate(-18deg);
}

.checkout-items {
    display: grid;
    gap: 12px;
}

.cart-shell {
    width: min(100% - 36px, 760px);
    margin: 24px auto 116px;
}

.cart-heading {
    margin-bottom: 18px;
}

.cart-heading p {
    margin: 0 0 6px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
}

.cart-heading h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 900;
}

.cart-list {
    display: grid;
    gap: 12px;
}

.cart-product,
.cart-empty {
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)),
        rgba(15, 23, 42, .78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.cart-product {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
}

.cart-product-index {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: rgba(230, 194, 122, .16);
    color: var(--gold);
    font-weight: 900;
}

.cart-product h3,
.cart-product p {
    margin: 0;
}

.cart-product h3 {
    font-size: 18px;
    font-weight: 900;
}

.cart-product p {
    margin-top: 5px;
    color: var(--muted-2);
    font-size: 14px;
    font-weight: 800;
}

.cart-product strong,
.cart-product span {
    color: var(--gold);
}

.cart-product button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(239, 68, 68, .48);
    border-radius: 999px;
    background: rgba(239, 68, 68, .1);
    color: #fecaca;
    font-weight: 900;
}

.cart-empty {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.cart-empty strong {
    color: var(--gold);
    font-size: 20px;
}

.cart-empty p {
    margin: 0;
    color: var(--muted-2);
    line-height: 1.55;
}

.cart-actions {
    grid-template-columns: 1fr 1fr;
}

.info-section {
    margin-bottom: 18px;
}

.info-section h3 {
    margin: 0 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--gold);
    font-size: 19px;
}

.checkout-card {
    display: grid;
    grid-template-columns: 34px 66px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 16px;
}

.checkout-card p {
    margin: 4px 0;
    color: var(--muted-2);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.38;
}

.checkout-card strong {
    color: var(--danger);
}

.checkout-card span {
    color: var(--gold);
}

.checkout-rate-line span,
.checkout-subtotal-line span {
    color: var(--gold-strong);
    font-size: 18px;
    font-weight: 900;
}

.check-badge {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: var(--gold);
}

.check-badge::after {
    display: block;
    width: 11px;
    height: 7px;
    margin: 6px auto;
    border-left: 3px solid #020617;
    border-bottom: 3px solid #020617;
    transform: rotate(-45deg);
    content: "";
}

.summary-list {
    position: relative;
    overflow: hidden;
    padding: 4px 16px;
}

.summary-list > p {
    position: relative;
    z-index: 1;
}

.summary-money {
    right: -40px;
    bottom: -48px;
    width: 190px;
    opacity: .22;
}

.summary-list p,
.order-table p {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin: 0;
    padding: 13px 0;
    border-bottom: 1px dashed var(--line-soft);
    font-size: 14px;
    font-weight: 900;
}

.summary-list p:last-child,
.order-table p:last-child {
    border-bottom: 0;
}

.summary-list strong,
.order-table b {
    min-width: 0;
    color: var(--text);
    text-align: right;
    overflow-wrap: anywhere;
}

.summary-list p:last-child strong {
    color: var(--gold);
    font-size: 22px;
}

.summary-list .checkout-total-line strong {
    color: var(--gold-strong);
    font-size: 28px;
    text-shadow: 0 2px 0 rgba(75, 46, 5, .55), 0 8px 24px rgba(255, 218, 124, .28);
}

.payment-select {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 18px;
    gap: 5px 12px;
    align-items: center;
    width: 100%;
    padding: 16px;
    color: var(--text);
    text-align: left;
}

.selected-payment-logo {
    display: grid;
    grid-row: 1 / span 2;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
}

.selected-payment-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.payment-select span {
    grid-column: 2;
    color: var(--muted);
    font-weight: 900;
}

.payment-select .selected-payment-logo {
    grid-column: 1;
}

.payment-select strong {
    grid-column: 2;
    color: var(--gold);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.payment-select::after {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    color: var(--muted);
    content: ">";
    font-size: 22px;
}

.cash-store-picker {
    margin-top: 14px;
}

.cash-store-picker h3 {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 14px;
}

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

.cash-store-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 12px;
    border: 1px solid rgba(230, 194, 122, .35);
    border-radius: 10px;
    background: rgba(15, 23, 42, .58);
}

.cash-store-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

.cash-store-option span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.cash-store-option strong {
    color: var(--text);
    font-size: 14px;
}

.cash-store-option small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.warning {
    margin: 12px 0 0;
    color: var(--danger);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.45;
    text-align: right;
}

.checkout-fix-link {
    margin-top: 10px;
}

.payment-code {
    margin-top: 22px;
    padding: 26px 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(230, 194, 122, .13), rgba(15, 23, 42, .88));
    text-align: center;
    box-shadow: var(--shadow);
}

.payment-code p,
.payment-code span {
    margin: 0;
    color: var(--muted-2);
    font-weight: 800;
}

.payment-code-logo {
    display: block;
    width: 74px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 14px;
    background: #fff;
    object-fit: contain;
    padding: 7px;
}

.payment-code strong {
    display: block;
    margin: 12px 0;
    color: var(--gold);
    font-size: clamp(28px, 8vw, 40px);
    letter-spacing: 0;
}

.sell-receiver-card {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding: 22px 18px;
    border: 1px solid rgba(255, 218, 124, .86);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 218, 124, .18), rgba(15, 23, 42, .9));
    text-align: center;
    box-shadow: 0 0 0 3px rgba(255, 218, 124, .08), 0 0 28px rgba(255, 218, 124, .18);
}

.sell-receiver-card p,
.sell-receiver-card span {
    margin: 0;
    color: var(--muted-2);
    font-weight: 900;
}

.sell-receiver-card strong {
    display: block;
    color: var(--gold-strong);
    font-size: clamp(32px, 8vw, 46px);
    font-weight: 900;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 0 rgba(75, 46, 5, .4), 0 8px 26px rgba(255, 218, 124, .28);
}

.sell-receiver-card span {
    color: #fff5cd;
    font-size: 14px;
    line-height: 1.55;
}

.sell-transfer-action {
    display: grid;
    justify-items: center;
    text-align: center;
}

.sell-transfer-action form {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
}

.sell-transfer-action .primary-action {
    width: min(100%, 304px);
}

.order-table,
.notice-box {
    margin-top: 16px;
    padding: 18px;
}

.order-table h3,
.notice-box strong {
    display: block;
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 18px;
    font-weight: 900;
}

.notice-box p {
    margin: 0;
    color: var(--muted-2);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.65;
}

.trade-screenshot-list {
    display: grid;
    gap: 12px;
}

.trade-screenshot-list p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.trade-screenshot-list a {
    color: #ffe088;
    font-weight: 900;
}

.trade-screenshot-list small {
    display: block;
    margin-top: 2px;
    color: var(--muted-2);
    font-size: 12px;
}

.trade-screenshot-thumb {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 224, 136, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.trade-screenshot-thumb img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
}

.trade-screenshot-error {
    display: block;
    padding: 18px;
    color: var(--muted-2);
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.trade-screenshot-error[hidden] {
    display: none;
}

.trade-screenshot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, .78);
}

.trade-screenshot-lightbox[hidden] {
    display: none;
}

.trade-screenshot-lightbox figure {
    display: grid;
    gap: 10px;
    width: min(1100px, 100%);
    max-height: 92vh;
    margin: 0;
}

.trade-screenshot-lightbox img {
    display: block;
    width: 100%;
    max-height: calc(92vh - 48px);
    border: 1px solid rgba(255, 224, 136, .38);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    object-fit: contain;
}

.trade-screenshot-lightbox figcaption {
    color: #ffe088;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
}

.trade-screenshot-lightbox-close {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 224, 136, .45);
    border-radius: 50%;
    background: rgba(8, 22, 35, .92);
    color: #ffe088;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

body.has-trade-screenshot-lightbox {
    overflow: hidden;
}

.next-action-box {
    display: grid;
    gap: 14px;
}

.order-flow-line {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-flow-line li {
    display: grid;
    min-height: 44px;
    place-items: center;
    padding: 10px 8px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
}

.order-flow-line li.is-done {
    border-color: rgba(52, 211, 153, .38);
    background: rgba(16, 185, 129, .12);
    color: #d1fae5;
}

.order-flow-line li.is-active {
    border-color: rgba(255, 218, 124, .62);
    background: rgba(255, 218, 124, .16);
    color: var(--gold);
}

.coin-delivery-progress {
    display: grid;
    gap: 8px;
}

.coin-delivery-progress[hidden] {
    display: none;
}

.coin-delivery-progress-track {
    height: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 218, 124, .32);
    border-radius: 999px;
    background: rgba(3, 10, 25, .42);
}

.coin-delivery-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #34d399, #facc15);
    transition: width .55s ease;
}

.coin-delivery-progress p,
.coin-delivery-progress small {
    margin: 0;
}

.coin-delivery-progress p {
    color: #e5eefc;
    font-size: 13px;
    font-weight: 900;
}

.coin-delivery-progress small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.automation-error-mark {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 2px solid rgba(248, 113, 113, .92);
    border-radius: 50%;
    background: rgba(127, 29, 29, .36);
    color: #fecaca;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.automation-error-mark[hidden] {
    display: none;
}

.next-action-note {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.guild-verify {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.guild-verify label,
.guild-verify p {
    margin: 0;
}

.guild-verify label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.guild-verify button {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
}

.guild-verify button:disabled {
    cursor: wait;
    opacity: .72;
}

.guild-progress {
    overflow: hidden;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
}

.guild-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f6d47a, #86efac);
    transition: width .45s ease;
}

.guild-verify p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.guild-verify p strong,
.guild-verify p span {
    display: block;
}

.guild-verify p strong {
    color: var(--gold-strong);
    font-size: 13px;
}

.guild-verify p.is-success {
    color: #bbf7d0;
}

.guild-verify p.is-success strong {
    color: #86efac;
}

.guild-verify p.is-error {
    color: #fecaca;
}

.guild-verify p.is-error strong {
    color: #fca5a5;
}

.guild-recommendation {
    display: grid;
    gap: 5px;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid rgba(52, 211, 153, .42);
    border-radius: 12px;
    background: rgba(16, 185, 129, .1);
}

.guild-recommendation span {
    color: #bbf7d0;
    font-size: 12px;
    font-weight: 900;
}

.guild-recommendation strong {
    color: #fff5cd;
    font-size: 18px;
    font-weight: 900;
}

.guild-recommendation p {
    margin: 0;
    color: var(--muted-2);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

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

.proof-link {
    display: grid;
    min-height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 218, 124, .46);
    border-radius: 999px;
    color: var(--gold);
    font-weight: 900;
}

.store-list-link {
    display: inline-grid;
    min-height: 38px;
    place-items: center;
    margin-top: 10px;
    border: 1px solid rgba(255, 218, 124, .54);
    border-radius: 999px;
    padding: 0 14px;
    background: rgba(255, 218, 124, .12);
    color: var(--gold-strong);
    font-weight: 900;
}

.copy-account-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-top: 10px;
    border: 1px solid rgba(255, 218, 124, .54);
    border-radius: 999px;
    padding: 0;
    background: rgba(255, 218, 124, .12);
    color: var(--gold-strong);
}

.copy-account-button:disabled {
    cursor: wait;
    opacity: .72;
}

.copy-account-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cash-store-list p {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    margin: 10px 0 0;
    color: var(--muted-2);
}

.cash-store-list span {
    color: var(--gold);
    font-weight: 900;
}

.cash-store-list b {
    color: #fff5cd;
    overflow-wrap: anywhere;
}

.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    width: 100vw;
    max-width: 100vw;
    align-items: end;
    justify-items: stretch;
    overflow-x: hidden;
    background: rgba(0, 0, 0, .64);
    backdrop-filter: blur(4px);
}

.payment-sheet,
.confirm-modal {
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    max-height: 86vh;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 26px 26px 0 0;
    background: var(--panel-strong);
    box-shadow: 0 -26px 70px rgba(0, 0, 0, .58);
}

.payment-sheet {
    position: relative;
    padding: 24px 0 18px;
}

.sheet-close {
    position: absolute;
    right: 18px;
    top: 16px;
}

.payment-sheet h2,
.confirm-modal h2 {
    margin: 0 54px 22px;
    color: var(--text);
    text-align: center;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.payment-sheet h2 span {
    color: var(--muted);
}

.pay-option {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 28px;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 13px 18px;
    border-top: 1px dashed var(--line-soft);
    background: transparent;
}

.pay-option > span {
    min-width: 0;
}

.pay-option.is-selected {
    margin: 8px 12px;
    border: 1px solid var(--gold);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 226, 150, .24), rgba(255, 255, 255, .08));
}

.pay-option.is-disabled {
    color: #64748b;
    opacity: .55;
}

.pay-logo {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.pay-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.pay-option h3 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.pay-option p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.radio-mark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--muted);
    border-radius: 50%;
}

.pay-option.is-selected .radio-mark {
    border-color: var(--gold);
    background: radial-gradient(circle, var(--gold) 0 42%, transparent 46%);
}

.pay-option.is-selected .radio-mark::after {
    display: none;
}

.confirm-modal {
    position: relative;
    box-sizing: border-box;
    align-self: center;
    width: calc(100% - 32px);
    max-width: 560px;
    margin: 16px;
    border-radius: 24px;
    padding: 26px 0 22px;
}

.confirm-pokeball {
    display: block;
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .38));
}

.confirm-modal form {
    display: grid;
}

.confirm-modal label {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    margin: 0 16px;
    padding: 15px 0;
    border-top: 1px dashed var(--line-soft);
    color: var(--muted-2);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 800;
}

.confirm-modal label span {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.confirm-modal input[type="checkbox"] {
    width: 20px;
    min-height: 20px;
    accent-color: var(--gold);
}

.confirm-modal .primary-action {
    width: calc(100% - 32px);
    min-width: 0;
    margin: 18px 16px 0;
}

.primary-action.is-disabled {
    opacity: .42;
    cursor: not-allowed;
}

.browser-bar {
    position: sticky;
    top: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
    min-height: 74px;
    padding: 12px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .28);
    border-radius: 0 0 18px 18px;
    background:
        linear-gradient(180deg, rgba(235, 242, 248, .9), rgba(156, 170, 184, .72)),
        rgba(255, 255, 255, .72);
    color: #172033;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
    backdrop-filter: blur(18px) saturate(1.15);
}

.browser-bar div {
    min-width: 0;
    text-align: center;
}

.browser-bar strong,
.browser-bar span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-bar strong {
    font-size: 21px;
    font-weight: 900;
    line-height: 1.12;
}

.browser-bar span {
    margin-top: 2px;
    color: rgba(23, 32, 51, .68);
    font-size: 14px;
    font-weight: 700;
}

.icon-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #172033;
}

.chevron-down {
    display: block;
    width: 15px;
    height: 15px;
    border-left: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(45deg);
}

.close-button::before,
.close-button::after {
    grid-area: 1 / 1;
    display: block;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.close-button::before {
    transform: rotate(90deg);
}

.close-button::after {
    transform: rotate(0deg);
}

.page-product {
    background:
        radial-gradient(circle at 20% 16%, rgba(255, 217, 123, .25), transparent 17rem),
        radial-gradient(circle at 85% 12%, rgba(94, 178, 255, .28), transparent 24rem),
        linear-gradient(180deg, rgba(6, 31, 58, .45), rgba(2, 13, 25, .78));
}

.page-product::after {
    position: fixed;
    right: -10vw;
    bottom: 72px;
    left: -10vw;
    height: 170px;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 0, rgba(230, 194, 122, .38), transparent 58%),
        repeating-linear-gradient(100deg, transparent 0 42px, rgba(230, 194, 122, .15) 43px 45px),
        repeating-linear-gradient(0deg, transparent 0 24px, rgba(230, 194, 122, .12) 25px 26px);
    opacity: .58;
    transform: perspective(360px) rotateX(62deg);
    transform-origin: bottom;
    content: "";
}

.product-stage {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 24px 18px 116px;
}

.product-showcase,
.purchase-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 222, 147, .58);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .075)),
        radial-gradient(circle at 12% 12%, rgba(255, 225, 148, .26), transparent 18rem),
        rgba(26, 43, 61, .62);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .38);
    backdrop-filter: blur(18px);
}

.product-showcase::before,
.purchase-panel::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, .42), transparent 28%, transparent 70%, rgba(255, 222, 147, .22)),
        radial-gradient(circle at 50% 100%, rgba(255, 218, 124, .26), transparent 45%);
    content: "";
}

.product-sparkle {
    right: -46%;
    bottom: -30%;
    width: 150%;
    max-width: 760px;
    transform: rotate(-16deg);
}

.product-money {
    right: -108px;
    bottom: -62px;
    z-index: 0;
    width: 260px;
}

.product-showcase {
    display: grid;
    justify-items: start;
    min-height: 360px;
    padding: 26px 22px;
}

.casino-seal {
    position: relative;
    display: block;
    width: 86px;
    height: 86px;
    object-fit: contain;
    border: 0;
    border-radius: 50%;
    filter: drop-shadow(0 0 14px rgba(255, 218, 124, .5)) drop-shadow(0 10px 18px rgba(0, 0, 0, .45));
}

.casino-seal::after {
    display: none;
}

.product-showcase p {
    position: relative;
    margin: 18px 0 4px;
    color: var(--muted-2);
    font-size: 16px;
    font-weight: 900;
}

.product-showcase h2 {
    position: relative;
    margin: 0;
    color: var(--gold-strong);
    font-size: 36px;
    font-weight: 900;
    text-shadow: 0 2px 0 rgba(75, 46, 5, .55), 0 8px 28px rgba(255, 218, 124, .36);
}

.product-showcase h3 {
    position: relative;
    margin: 24px 0 14px;
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}

.featured-game {
    position: relative;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    width: 100%;
}

.featured-game .game-icon.large {
    width: 82px;
    height: 82px;
    margin: 0;
    border-radius: 50%;
    font-size: 34px;
}

.featured-game strong,
.featured-game span {
    display: block;
}

.featured-game strong {
    font-size: 22px;
    font-weight: 900;
}

.featured-game span {
    margin-top: 3px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
}

.mini-game-row {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.mini-game-row a {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.mini-game-row .game-icon.small {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    font-size: 24px;
}

.mini-game-row a.is-current .game-icon.small {
    box-shadow: 0 0 0 4px rgba(230, 194, 122, .16), 0 0 28px rgba(230, 194, 122, .28);
}

.mini-game-row span {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.purchase-panel {
    padding: 18px;
}

.purchase-panel > :not(.asset-money) {
    position: relative;
    z-index: 1;
}

.purchase-panel .merchant-block {
    width: 100%;
    margin: 0 0 18px;
    border-radius: 20px;
    background: rgba(2, 6, 23, .3);
    box-shadow: none;
}

.purchase-panel .buy-form {
    position: relative;
    width: 100%;
    margin: 0;
    padding-bottom: 0;
}

.role-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.role-label img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .28));
}

.purchase-panel select,
.purchase-panel .amount-display,
.purchase-panel .rate-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .11)),
        rgba(12, 29, 48, .42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 10px 24px rgba(0, 0, 0, .18);
}

.purchase-panel select {
    border-color: rgba(255, 224, 145, .88);
}

.purchase-panel .amount-display {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    justify-self: stretch;
}

.purchase-panel .amount-display span,
.purchase-panel .amount-display input {
    text-shadow: 0 3px 18px rgba(230, 194, 122, .28);
}

.purchase-panel .amount-display span {
    color: var(--gold);
    font-size: 25px;
}

.purchase-panel .amount-display input {
    color: var(--gold-strong);
    font-size: 36px;
}

.purchase-panel .amount-step {
    border: 0;
    background: transparent;
    color: var(--gold);
    font-size: 32px;
    box-shadow: none;
}

.purchase-panel .quick-amounts button {
    min-height: 42px;
    border-color: rgba(255, 255, 255, .28);
    background: linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .12));
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 8px 18px rgba(0, 0, 0, .16);
}

.purchase-panel .quick-amounts button.is-selected {
    background: linear-gradient(135deg, rgba(255, 230, 156, .44), rgba(255, 255, 255, .14));
    color: var(--gold-strong);
}

.purchase-panel .rate-card {
    border-color: rgba(230, 194, 122, .3);
}

.page-product .bottom-bar {
    background:
        linear-gradient(180deg, rgba(8, 30, 54, .92), rgba(3, 16, 31, .98));
}

.page-product .primary-action {
    color: #0b0f19;
    background: linear-gradient(135deg, #fff0aa 0%, #d9a537 52%, #ffd86a 100%);
    box-shadow: 0 12px 34px rgba(255, 211, 97, .42);
}

@media (max-width: 480px) {
    .purchase-panel .amount-row {
        grid-template-columns: 46px minmax(188px, 1fr) 46px;
        gap: 8px;
    }

    .purchase-panel .amount-display {
        padding-inline: 4px;
    }

    .purchase-panel .amount-display span {
        font-size: clamp(20px, 5.6vw, 25px);
    }

    .purchase-panel .amount-display input {
        width: 6ch;
        min-width: 6ch;
        font-size: clamp(30px, 8.4vw, 34px);
    }

    .purchase-panel .amount-step {
        font-size: 30px;
    }
}

@media (max-width: 370px) {
    .brand-head h1 {
        font-size: 20px;
    }

    .game-card {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .trade-choice {
        grid-template-columns: 50px minmax(0, 1fr);
        padding: 15px;
    }

    .trade-choice span {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .game-card span {
        grid-column: 2;
    }

    .game-icon.small {
        width: 60px;
        height: 60px;
    }

    .amount-row {
        grid-template-columns: 42px minmax(180px, 1fr) 42px;
        gap: 8px;
    }

    .purchase-panel .amount-display span {
        font-size: 20px;
    }

    .purchase-panel .amount-display input {
        font-size: 30px;
    }

    .bottom-bar {
        gap: 8px;
        padding-inline: 10px;
    }

    .brand-head {
        flex-wrap: wrap;
    }

    .member-actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .primary-action,
    .secondary-action {
        font-size: 14px;
    }

    .checkout-card {
        grid-template-columns: 28px 54px minmax(0, 1fr);
        gap: 10px;
    }

    .confirm-modal {
        width: calc(100% - 18px);
        margin: 9px;
        border-radius: 20px;
        padding: 20px 0 18px;
    }

    .confirm-modal h2 {
        margin-inline: 18px;
        font-size: 20px;
    }

    .confirm-modal label {
        margin-inline: 12px;
        font-size: 12px;
    }

    .confirm-modal .primary-action {
        width: calc(100% - 24px);
        margin-inline: 12px;
    }

    .mode-grid {
        grid-template-columns: 1fr;
    }

    .converter-field input {
        font-size: 20px;
    }
}

@media (max-width: 759px) {
    .member-status-grid,
    .member-verification-heading,
    .member-verification-cards,
    .member-two-column {
        grid-template-columns: 1fr;
    }

    .member-stage-badge {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .member-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-tabs button {
        min-height: 44px;
    }

    .order-flow-line {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payment-sheet {
        width: 100vw;
        max-width: 100vw;
        padding-top: 22px;
    }

    .payment-sheet h2,
    .confirm-modal h2 {
        margin-inline: 40px;
        font-size: 20px;
    }

    .pay-option {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
        min-height: 72px;
        padding: 12px 16px;
    }

    .pay-option.is-selected {
        margin-inline: 10px;
        padding-inline: 12px;
    }

    .pay-logo {
        width: 44px;
        height: 44px;
    }

    .radio-mark {
        display: none;
    }

    .confirm-modal {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        margin-inline: 16px;
    }

    .confirm-modal form {
        min-width: 0;
    }

    .confirm-modal label {
        grid-template-columns: 22px minmax(0, 1fr);
        margin-inline: 16px;
    }
}

@media (min-width: 760px) {
    body {
        background:
            radial-gradient(circle at 50% -16%, rgba(255, 225, 148, .24), transparent 36rem),
            radial-gradient(circle at 86% 20%, rgba(54, 139, 235, .22), transparent 28rem),
            linear-gradient(180deg, #0c2a4a 0%, #071c33 48%, #02101f 100%);
    }

    .app-shell {
        display: grid;
        min-height: 100vh;
        grid-template-rows: auto 1fr auto;
    }

    .brand-head {
        padding: 18px clamp(34px, 6vw, 96px);
    }

    .brand-logo {
        width: 74px;
        height: 60px;
    }

    .brand-head h1 {
        font-size: 34px;
    }

    .page-catalog .screen-catalog {
        display: grid;
        grid-template-columns: minmax(280px, 34vw) minmax(0, 1fr);
        min-height: calc(100vh - 96px);
    }

    .section-band {
        min-height: auto;
        align-content: center;
        border-right: 1px solid var(--line);
        background: rgba(230, 194, 122, .08);
        font-size: 42px;
    }

    .content-pad {
        align-self: start;
        padding: 54px clamp(34px, 5vw, 86px);
    }

    .content-pad h2 {
        font-size: 32px;
    }

    .game-list {
        max-width: 940px;
    }

    .trade-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 940px;
    }

    .sell-converter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-card {
        min-height: 118px;
        padding: 18px 22px;
    }

    .game-card h3 {
        font-size: 24px;
    }

    .page-product .screen-product {
        display: block;
        padding: 44px clamp(34px, 6vw, 96px);
    }

    .product-stage {
        width: min(1120px, 100%);
        grid-template-columns: minmax(320px, .86fr) minmax(380px, 1fr);
        align-items: stretch;
        gap: clamp(24px, 4vw, 48px);
        padding: 0;
    }

    .product-showcase {
        min-height: 590px;
        align-content: center;
        padding: 38px;
    }

    .purchase-panel {
        align-self: center;
        padding: 26px;
    }

    .product-showcase h2 {
        font-size: 44px;
    }

    .casino-seal {
        width: 92px;
        height: 92px;
    }

    .featured-game {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .featured-game .game-icon.large {
        width: 96px;
        height: 96px;
        font-size: 40px;
    }

    .mini-game-row .game-icon.small {
        width: 74px;
        height: 74px;
        font-size: 28px;
    }

    .bottom-bar {
        position: static;
        grid-template-columns: 100px minmax(180px, 250px) minmax(180px, 250px);
        justify-content: end;
        padding: 16px clamp(34px, 6vw, 96px);
    }

    .member-grid {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    }

    .page-member .member-grid {
        grid-template-columns: 1fr;
    }

    .member-progress {
        grid-template-columns: minmax(180px, .75fr) minmax(0, 1.5fr);
        align-items: start;
    }

    .member-next-step {
        grid-column: 1 / -1;
    }

    .page-checkout .screen-checkout,
    .page-complete .screen-complete {
        width: min(960px, calc(100% - 48px));
        margin: 0 auto;
        padding-bottom: 28px;
    }

    .payment-header,
    .checkout-scroll,
    .payment-code,
    .order-table,
    .notice-box {
        width: 100%;
        max-width: none;
    }

    .checkout-scroll {
        padding-bottom: 30px;
    }

    .checkout-actions {
        grid-template-columns: minmax(220px, 360px);
        justify-content: center;
        background: transparent;
        border-top: 0;
        box-shadow: none;
    }

    .payment-select {
        grid-template-columns: auto minmax(0, 1fr) 22px;
    }

    .payment-select strong {
        text-align: right;
    }

    .sheet-backdrop {
        place-items: center;
        align-items: center;
    }

    .payment-sheet {
        max-width: 680px;
        border-radius: 26px;
    }

    .confirm-modal {
        border-radius: 24px;
    }
}
