:root {
  color-scheme: dark;
  --ink: #f4f0e8;
  --muted: #92968f;
  --faint: #6f756f;
  --canvas: #111513;
  --canvas-2: #171c19;
  --panel: #1c221e;
  --panel-raised: #222923;
  --line: rgba(231, 224, 205, .1);
  --line-strong: rgba(231, 224, 205, .18);
  --gold: #d7ad63;
  --gold-light: #f1cf8c;
  --gold-dark: #8d7041;
  --gold-wash: rgba(215, 173, 99, .12);
  --green: #77b697;
  --green-wash: rgba(119, 182, 151, .12);
  --red: #dc8b78;
  --red-wash: rgba(220, 139, 120, .12);
  --blue: #86a9c3;
  --blue-wash: rgba(134, 169, 195, .12);
  --radius: 7px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .28);
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); min-height: 100vh; font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
button:disabled { opacity: .45; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.mono { font-family: 'DM Mono', monospace; letter-spacing: 0; }
.shell { min-height: 100vh; }
.login-body { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: radial-gradient(ellipse at top, #2b2a20, var(--canvas) 70%); }
.login-card { width: min(100%,440px); padding: 34px; }
.login-card .page-title { font-size: 25px; }
.login-card form { display: grid; gap: 20px; margin: 28px 0; }
.login-card .back-link { margin: 0; }
.login-card input { font-size: 16px; }
.connection-error { max-width: 600px; margin: 80px auto; padding: 28px; }
.qr-placeholder { color: #768279; text-align: center; font-size: 13px; line-height: 1.8; }
#password-form { display: grid; gap: 17px; }

/* Player surface */
.player-shell { min-height: 100vh; background: radial-gradient(ellipse at 82% 2%, rgba(122, 107, 64, .14), transparent 27%), var(--canvas); }
.player-header { height: 76px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; max-width: 1280px; margin: 0 auto; padding: 0 36px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 190px; }
.brand-mark { position: relative; width: 35px; height: 35px; display: grid; place-items: center; color: var(--gold-light); border: 1px solid rgba(215, 173, 99, .5); background: linear-gradient(135deg, rgba(215, 173, 99, .17), rgba(215, 173, 99, .02)); transform: rotate(45deg); }
.brand-mark svg { transform: rotate(-45deg); }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-family: 'Noto Sans SC', sans-serif; font-size: 15px; letter-spacing: 0; font-weight: 700; }
.brand-copy span { color: var(--faint); text-transform: uppercase; font-size: 9px; letter-spacing: 0; }
.player-nav { display: flex; align-items: center; height: 100%; gap: 6px; }
.nav-link { color: var(--muted); border: 0; background: none; height: 100%; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; position: relative; font-size: 13px; transition: color .18s ease; }
.nav-link:hover, .nav-link.active { color: var(--gold-light); }
.nav-link.active::after { content: ''; position: absolute; height: 2px; background: var(--gold); left: 16px; right: 16px; bottom: -1px; }
.header-right { display: flex; align-items: center; gap: 14px; }
.header-order { display: inline-flex; gap: 8px; align-items: center; background: transparent; border: 0; color: #b8bbb3; padding: 8px 10px; font-size: 12px; }
.header-order:hover { color: var(--gold-light); }
.header-divider { width: 1px; height: 24px; background: var(--line-strong); }
.avatar { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(215,173,99,.43); display: grid; place-items: center; color: var(--gold-light); background: var(--gold-wash); font-size: 11px; }
.player-main { max-width: 1200px; margin: 0 auto; padding: 48px 28px 70px; }
.page-kicker { display: flex; align-items: center; gap: 9px; color: var(--gold); font-size: 10px; font-weight: 600; letter-spacing: 0; text-transform: uppercase; margin: 0 0 14px; }
.page-kicker::before { content: ''; height: 1px; width: 22px; background: var(--gold-dark); }
.page-title { font-family: 'Noto Sans SC', sans-serif; font-size: 30px; line-height: 1.35; margin: 0; letter-spacing: 0; font-weight: 700; }
.page-subtitle { margin: 8px 0 0; max-width: 620px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.page-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 29px; }
.secure-note { display: inline-flex; align-items: center; gap: 7px; color: #adb0a8; font-size: 11px; white-space: nowrap; padding-bottom: 3px; }
.secure-note svg { color: var(--green); }
.exchange-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 30px; margin-bottom: 23px; color: #292215; background: linear-gradient(115deg, #f3d595, #dfb66b 60%, #c99c4d); border: 1px solid #f5dca8; border-radius: var(--radius); box-shadow: 0 8px 35px rgba(215,173,99,.12); }
.exchange-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 700; }
.exchange-banner h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 19px; margin: 0; font-family: 'DM Sans', 'Noto Sans SC', sans-serif; font-size: 46px; font-weight: 800; line-height: 1.2; }
.exchange-banner h2 > span { white-space: nowrap; }
.exchange-banner h2 small { margin-left: 7px; font-size: 22px; font-weight: 600; }
.exchange-banner h2 .exchange-equals { font-size: 30px; color: #6f562e; }
.exchange-banner-note { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.8; }
.exchange-banner-note span { font-size: 11px; color: #65502d; font-weight: 400; }
.exchange-preview { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border: 1px solid rgba(215,173,99,.25); background: var(--gold-wash); border-radius: 4px; margin-top: 14px; padding: 15px 17px; }
.exchange-preview > span { color: var(--gold-light); font-size: 12px; }
.exchange-preview > span small { display: block; color: #a99e83; font-size: 10px; margin-top: 5px; }
.exchange-preview strong { color: var(--gold-light); font-size: 26px; font-family: 'DM Sans', 'Noto Sans SC', sans-serif; overflow-wrap: anywhere; }
.exchange-preview strong small { font-size: 12px; margin-left: 6px; font-weight: 500; }
.summary-rice { color: var(--gold-light); font-size: 12px; }
.data-row.exchange-order-row strong { color: var(--gold-light); font-size: 14px; font-weight: 600; }
.audit-info-row.exchange-order-row strong { color: #315848; font-size: 14px; }
.player-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(255px, .72fr); gap: 22px; align-items: start; }
.panel { background: linear-gradient(145deg, rgba(31, 37, 32, .98), rgba(25, 30, 26, .98)); border: 1px solid var(--line); border-radius: var(--radius); }
.form-panel { padding: 25px 27px 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.section-heading h2, .section-heading h3 { margin: 0; font-family: 'Noto Sans SC', sans-serif; font-size: 15px; font-weight: 600; }
.step-tag { color: var(--gold); font-size: 10px; font-weight: 600; letter-spacing: 0; text-transform: uppercase; }
.form-section { padding-top: 26px; margin-top: 24px; border-top: 1px solid var(--line); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { color: #c1c2bb; font-size: 11px; font-weight: 500; }
.field label em { color: var(--red); font-style: normal; margin-left: 3px; }
.input-wrap { position: relative; }
.input, .select, .textarea { width: 100%; background: #151a17; border: 1px solid rgba(231,224,205,.14); border-radius: 4px; min-height: 43px; color: var(--ink); padding: 0 13px; font-size: 12px; transition: border .15s ease, background .15s ease; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(231,224,205,.3); }
.input::placeholder, .textarea::placeholder { color: #666d66; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold-dark); background: #171c19; outline: none; }
.select { appearance: none; padding-right: 36px; }
.select-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #8e948c; pointer-events: none; }
.helper { color: #737a72; font-size: 10px; line-height: 1.6; }
.amount-input-wrap { position: relative; display: flex; align-items: center; }
.amount-input-wrap > span { position: absolute; left: 17px; font-size: 25px; color: var(--gold-light); pointer-events: none; }
.amount-input-wrap .input { min-height: 65px; padding: 10px 45px; font-family: 'DM Sans', 'Noto Sans SC', sans-serif; font-size: 27px; color: var(--gold-light); }
.amount-input-wrap .input::placeholder { font-size: 14px; font-weight: 400; }
.amount-input-wrap > .amount-unit { left: auto; right: 17px; color: var(--muted); font-size: 12px; }
.input[aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-size: 11px; line-height: 1.6; }
.field-error:empty { display: none; }
.payment-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.payment-method { position: relative; display: flex; align-items: center; gap: 12px; padding: 17px 14px; border: 1px solid var(--line-strong); border-radius: 5px; background: #171c19; cursor: pointer; transition: border-color .18s, background .18s; min-width: 0; }
.payment-method:hover { border-color: rgba(215,173,99,.55); }
.payment-method:has(input:checked) { border-color: var(--gold); background: rgba(215,173,99,.08); }
.payment-method:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.payment-method input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.payment-method-icon { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.payment-method-icon.alipay { background: #1578d4; font-size: 24px; font-weight: 600; }
.payment-method-icon.wechat { background: #168a49; }
.payment-method-copy { display: grid; gap: 5px; }
.payment-method-copy strong { font-size: 13px; font-weight: 600; }
.payment-method-copy > span { color: var(--muted); font-size: 10px; }
.payment-method-check { margin-left: auto; width: 17px; height: 17px; border: 1px solid #657065; border-radius: 50%; display: grid; place-items: center; color: transparent; flex-shrink: 0; }
.payment-method:has(input:checked) .payment-method-check { color: #171c19; border-color: var(--gold); background: var(--gold); }
.payment-method.unavailable .payment-method-copy > span { color: var(--red); }
.pay-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); margin-top: 23px; padding-top: 19px; }
.summary-label { color: var(--muted); font-size: 11px; display: grid; gap: 5px; }
.summary-label strong { color: var(--gold-light); font-family: 'DM Sans', sans-serif; font-size: 21px; font-weight: 600; }
.summary-label small { color: #929a90; font-size: 10px; line-height: 1.6; }
.button { min-height: 42px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 0 16px; border-radius: 4px; font-weight: 600; font-size: 12px; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.button:active { transform: translateY(1px); }
.button-primary { border: 1px solid #d5aa5c; color: #1c1b16; background: linear-gradient(120deg, #e0bb78, #c9994c); box-shadow: 0 5px 16px rgba(176,132,61,.12); }
.button-primary:hover { background: linear-gradient(120deg, #edca8c, #d8ab60); }
.button-secondary { border: 1px solid var(--line-strong); background: rgba(255,255,255,.035); color: #d8d9d1; }
.button-secondary:hover { border-color: rgba(215,173,99,.5); color: var(--gold-light); }
.button-ghost { border: 0; background: transparent; color: #acb0a8; padding: 0 9px; }
.button-ghost:hover { color: var(--gold-light); background: rgba(215,173,99,.08); }
.side-stack { display: grid; gap: 13px; }
.trust-panel { overflow: hidden; padding: 21px; background: linear-gradient(145deg, #272822, #191e1a); }
.trust-art { height: 146px; border-radius: 4px; overflow: hidden; position: relative; margin-bottom: 19px; background: #20241d; }
.trust-art canvas { width: 100%; height: 100%; display: block; }
.trust-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,18,15,.87), rgba(15,18,15,.02) 70%); }
.art-caption { position: absolute; z-index: 1; left: 13px; right: 13px; bottom: 12px; display: flex; align-items: end; justify-content: space-between; }
.art-caption span { color: var(--gold-light); font-size: 9px; text-transform: uppercase; letter-spacing: 0; }
.art-caption strong { display: block; font-family: 'Noto Sans SC', sans-serif; font-size: 13px; margin-top: 5px; }
.art-emblem { width: 33px; height: 33px; border: 1px solid rgba(215,173,99,.6); display: grid; place-items: center; color: var(--gold-light); transform: rotate(45deg); background: rgba(18,22,19,.45); }
.art-emblem svg { transform: rotate(-45deg); }
.trust-list { display: grid; gap: 14px; }
.trust-item { display: flex; align-items: start; gap: 10px; }
.trust-icon { width: 27px; height: 27px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: rgba(119,182,151,.1); color: var(--green); }
.trust-item strong { display: block; font-size: 11px; font-weight: 600; margin: 1px 0 4px; }
.trust-item span { display: block; color: #858c83; font-size: 10px; line-height: 1.5; }
.help-panel { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.help-title { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.help-title svg { color: var(--gold); }
.help-panel button { border: 0; background: none; color: var(--gold-light); display: flex; align-items: center; gap: 5px; font-size: 10px; padding: 5px; white-space: nowrap; }
.player-footer { border-top: 1px solid var(--line); max-width: 1200px; margin: 0 auto; padding: 19px 28px 27px; display: flex; justify-content: space-between; align-items: center; color: #656c65; font-size: 10px; }
.footer-links { display: flex; gap: 18px; }
.footer-links button { color: #7b827a; font-size: 10px; border: 0; background: transparent; padding: 3px; }
.footer-links button:hover { color: var(--gold-light); }

/* Payment and order views */
.narrow-page { max-width: 920px; margin: 0 auto; }
.back-link { border: 0; background: none; padding: 0; display: inline-flex; align-items: center; gap: 7px; color: #a4aaa1; font-size: 11px; margin: 0 0 20px; }
.back-link:hover { color: var(--gold-light); }
.payment-grid { display: grid; grid-template-columns: minmax(270px, .82fr) minmax(0, 1.18fr); gap: 18px; align-items: start; }
.payment-card, .order-card { padding: 24px; }
.payment-card h2, .order-card h2 { font-family: 'Noto Sans SC', sans-serif; font-size: 15px; margin: 0 0 5px; font-weight: 600; }
.card-description { color: var(--muted); font-size: 10px; line-height: 1.65; margin: 0 0 18px; }
.price-display { display: flex; align-items: baseline; gap: 4px; color: var(--gold-light); border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.price-display span { font-size: 13px; }
.price-display strong { font-family: 'DM Sans', sans-serif; font-size: 31px; font-weight: 600; }
.data-rows { display: grid; margin: 2px 0 18px; }
.data-row { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid rgba(231,224,205,.07); font-size: 10px; }
.data-row span { color: #858c83; }
.data-row strong { font-weight: 500; color: #d9dbd4; text-align: right; overflow-wrap: anywhere; }
.copy-action { color: var(--gold-light); border: 0; padding: 0 0 0 7px; background: none; vertical-align: middle; }
.payment-instructions { color: #989e95; font-size: 10px; line-height: 1.7; border-left: 2px solid var(--gold-dark); padding: 5px 0 5px 11px; margin: 17px 0 0; }
.qr-card { padding: 24px; display: grid; justify-items: center; text-align: center; }
.qr-code-shell { padding: 12px; background: #fff; border: 0; border-radius: 2px; width: 217px; height: 217px; display: grid; place-items: center; box-shadow: 0 12px 34px rgba(0,0,0,.23); }
.qr-code-shell canvas, .qr-code-shell img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.qr-title { display: flex; justify-content: center; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; margin: 17px 0 5px; }
.qr-title svg { color: var(--green); }
.qr-caption { color: #858c83; font-size: 10px; margin: 0; line-height: 1.7; max-width: 280px; }
.demo-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(215,173,99,.23); color: #dbbd84; background: rgba(215,173,99,.09); padding: 5px 8px; border-radius: 3px; font-size: 9px; margin-top: 13px; }
.pay-steps { display: grid; grid-template-columns: repeat(3,1fr); margin: 22px 0 0; width: 100%; }
.pay-step { position: relative; color: #777e76; font-size: 9px; display: grid; justify-items: center; gap: 7px; }
.pay-step::before { content: ''; position: absolute; height: 1px; background: rgba(231,224,205,.15); left: calc(-50% + 12px); right: calc(50% + 12px); top: 11px; }
.pay-step:first-child::before { display: none; }
.pay-step-dot { height: 22px; width: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #5e665e; background: #1c211d; color: #98a097; font-size: 9px; position: relative; }
.pay-step.active { color: var(--gold-light); }
.pay-step.active .pay-step-dot { color: #1b1b16; border-color: var(--gold); background: var(--gold); }
.payment-actions { display: flex; gap: 10px; margin-top: 18px; width: 100%; }
.payment-actions .button { flex: 1; }
.status-banner { display: flex; align-items: flex-start; gap: 12px; padding: 17px; border: 1px solid rgba(215,173,99,.22); background: rgba(215,173,99,.07); border-radius: 4px; margin: 16px 0 20px; }
.status-banner.success { background: var(--green-wash); border-color: rgba(119,182,151,.25); }
.status-banner.error { background: var(--red-wash); border-color: rgba(220,139,120,.25); }
.status-banner-icon { width: 30px; height: 30px; border-radius: 50%; color: var(--gold-light); background: var(--gold-wash); display: grid; place-items: center; flex: 0 0 auto; }
.status-banner.success .status-banner-icon { color: var(--green); background: rgba(119,182,151,.13); }
.status-banner.error .status-banner-icon { color: var(--red); background: rgba(220,139,120,.13); }
.status-banner strong { display: block; font-size: 12px; font-weight: 600; margin: 2px 0 5px; }
.status-banner p { margin: 0; color: #9aa097; font-size: 10px; line-height: 1.7; }
.result-actions { display: flex; gap: 10px; margin-top: 17px; }
.orders-toolbar { display: flex; align-items: center; gap: 9px; margin: 20px 0 13px; flex-wrap: wrap; }
.orders-search { position: relative; flex: 1 1 230px; }
.orders-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #737a72; }
.orders-search .input { padding-left: 35px; }
.toolbar-select { min-width: 124px; width: auto; }
.table-wrap { overflow-x: auto; }
.orders-table { border-collapse: collapse; width: 100%; min-width: 680px; }
.orders-table th { text-align: left; color: #737a72; font-size: 9px; text-transform: uppercase; letter-spacing: 0; font-weight: 500; padding: 11px 13px; background: rgba(255,255,255,.025); border-bottom: 1px solid var(--line); }
.orders-table td { padding: 13px; border-bottom: 1px solid rgba(231,224,205,.07); color: #d3d5cd; font-size: 10px; vertical-align: middle; }
.orders-table tr:last-child td { border-bottom: 0; }
.orders-table tbody tr:hover { background: rgba(215,173,99,.045); }
.row-action { color: var(--gold-light); border: 0; background: none; font-size: 10px; padding: 4px; }
.empty-state { padding: 48px 15px; display: grid; justify-items: center; text-align: center; gap: 9px; color: #838a81; }
.empty-state svg { color: #737d72; }
.empty-state strong { color: #c9ccc4; font-size: 12px; font-weight: 600; }
.empty-state span { font-size: 10px; }

/* Admin console */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 234px minmax(0,1fr); background: #f3f4f2; color: #202622; color-scheme: light; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; background: #202723; color: #e9ebe6; padding: 21px 14px 16px; display: flex; flex-direction: column; z-index: 20; }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 1px 10px 23px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-brand .brand-mark { width: 31px; height: 31px; }
.admin-brand .brand-copy strong { font-family: 'DM Sans', sans-serif; font-size: 13px; letter-spacing: 0; }
.admin-brand .brand-copy span { color: #818c84; font-size: 8px; }
.admin-back { margin: 18px 0 24px; border: 1px solid rgba(215,173,99,.28); background: rgba(215,173,99,.07); color: #e3c788; border-radius: 4px; padding: 10px 11px; display: flex; align-items: center; gap: 9px; font-size: 10px; }
.admin-back:hover { background: rgba(215,173,99,.14); }
.side-label { color: #747f76; font-size: 9px; text-transform: uppercase; letter-spacing: 0; padding: 0 10px; margin: 0 0 8px; }
.admin-nav { display: grid; gap: 3px; }
.admin-nav button { width: 100%; text-align: left; display: flex; align-items: center; gap: 11px; color: #a9b0a9; background: transparent; border: 0; border-radius: 4px; min-height: 39px; padding: 0 11px; font-size: 11px; transition: .15s ease; }
.admin-nav button:hover { background: rgba(255,255,255,.055); color: #f3f2ed; }
.admin-nav button.active { color: #e9ca88; background: rgba(215,173,99,.12); box-shadow: inset 2px 0 0 var(--gold); }
.nav-count { margin-left: auto; min-width: 20px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 3px; color: #dfb985; background: rgba(215,173,99,.13); font-size: 9px; }
.admin-sidebar-bottom { margin-top: auto; border-top: 1px solid rgba(255,255,255,.09); padding: 14px 8px 0; }
.admin-profile { display: flex; align-items: center; gap: 9px; }
.admin-avatar { width: 29px; height: 29px; display: grid; place-items: center; color: #d7b777; background: #39453d; border-radius: 50%; font-size: 9px; }
.admin-profile strong { display: block; color: #e5e8e2; font-size: 10px; font-weight: 500; }
.admin-profile span { display: block; color: #849087; font-size: 9px; margin-top: 3px; }
.admin-content { min-width: 0; }
.admin-topbar { height: 62px; background: rgba(255,255,255,.89); border-bottom: 1px solid #e3e6e1; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; position: sticky; top: 0; z-index: 10; }
.admin-breadcrumbs { display: flex; align-items: center; gap: 9px; color: #858e86; font-size: 10px; }
.admin-breadcrumbs strong { color: #303933; font-weight: 600; }
.admin-top-actions { display: flex; align-items: center; gap: 14px; color: #68716a; font-size: 10px; }
.admin-mobile-exit { display: none; }
.admin-top-actions .icon-button { color: #68716a; }
.admin-top-avatar { width: 27px; height: 27px; border-radius: 50%; background: #e9ede8; display: grid; place-items: center; color: #63786b; font-size: 9px; }
.admin-main { max-width: 1420px; margin: 0 auto; padding: 31px 34px 50px; }
.admin-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-page-heading h1 { margin: 0; color: #202722; font-size: 21px; font-weight: 700; letter-spacing: 0; }
.admin-page-heading p { color: #778078; margin: 7px 0 0; font-size: 10px; line-height: 1.6; }
.admin-page-heading-actions { display: flex; align-items: center; gap: 8px; }
.admin-button { min-height: 35px; border-radius: 4px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 10px; font-weight: 600; transition: .15s ease; }
.admin-button-primary { color: #fff; background: #315848; border: 1px solid #315848; }
.admin-button-primary:hover { background: #264b3a; }
.admin-button-secondary { color: #4d5950; border: 1px solid #d8ded7; background: #fff; }
.admin-button-secondary:hover { border-color: #91a197; }
.admin-button-danger { background: #fff; color: #a65248; border: 1px solid #ead0cc; }
.admin-button-danger:hover { background: #fdf3f1; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 19px; }
.stat-card { position: relative; overflow: hidden; background: #fff; border: 1px solid #e5e8e4; border-radius: 5px; min-height: 116px; padding: 17px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-card::after { content: ''; position: absolute; right: -16px; bottom: -38px; width: 96px; height: 96px; border-radius: 50%; background: var(--tint, #eef4ef); }
.stat-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; color: #6e7970; font-size: 10px; }
.stat-icon { width: 27px; height: 27px; border-radius: 5px; display: grid; place-items: center; color: var(--stat-color, #47705b); background: var(--tint, #eef4ef); }
.stat-bottom { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 8px; }
.stat-value { color: #202823; font-family: 'DM Sans', sans-serif; font-size: 27px; font-weight: 700; }
.stat-unit { color: #808a81; font-size: 10px; }
.stat-meta { position: relative; z-index: 1; color: #869088; font-size: 9px; }
.admin-columns { display: grid; grid-template-columns: minmax(0,1.36fr) minmax(250px,.74fr); gap: 14px; align-items: start; }
.admin-panel { background: #fff; border: 1px solid #e4e8e3; border-radius: 5px; overflow: hidden; }
.admin-panel-header { min-height: 53px; border-bottom: 1px solid #edf0ec; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; }
.admin-panel-header h2 { margin: 0; font-size: 11px; font-weight: 700; color: #2a332d; }
.admin-panel-header p { margin: 4px 0 0; color: #8a938b; font-size: 9px; }
.admin-panel-header > button { border: 0; background: transparent; color: #557362; font-size: 9px; display: flex; align-items: center; gap: 5px; padding: 7px; }
.admin-panel-body { padding: 14px 16px; }
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th { text-align: left; color: #859087; font-size: 9px; font-weight: 500; border-bottom: 1px solid #edf0ec; padding: 9px 10px; }
.mini-table td { border-bottom: 1px solid #f0f2ef; padding: 10px; color: #4f5a52; font-size: 9px; }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table td strong { color: #313a34; font-size: 10px; font-weight: 600; }
.admin-scroll { overflow-x: auto; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 3px; padding: 4px 7px; font-size: 9px; white-space: nowrap; font-weight: 500; }
.status-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pending { color: #9b7225; background: #fcf5e6; }
.status-review { color: #3f7192; background: #edf6fb; }
.status-paid { color: #397757; background: #ebf5ee; }
.status-cancelled, .status-closed { color: #8b928b; background: #f1f3f1; }
.status-disabled { color: #a15a4f; background: #fbefed; }
.health-list { display: grid; gap: 14px; }
.health-row { display: flex; justify-content: space-between; gap: 15px; align-items: center; color: #657067; font-size: 10px; }
.health-row strong { color: #3c5f49; font-size: 9px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.health-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #61a17b; }
.health-foot { border-top: 1px solid #edf0ec; margin: 15px -16px -14px; padding: 12px 16px; color: #8a938b; font-size: 9px; background: #fafbf9; }
.admin-toolbar { display: flex; align-items: center; gap: 8px; padding: 13px 15px; border-bottom: 1px solid #edf0ec; flex-wrap: wrap; }
.admin-search { min-width: 180px; flex: 1 1 230px; position: relative; }
.admin-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #8a948d; }
.admin-input, .admin-select, .admin-textarea { border: 1px solid #dfe4de; border-radius: 4px; background: #fff; min-height: 34px; padding: 0 10px; font-size: 10px; color: #344039; width: 100%; }
.admin-search .admin-input { padding-left: 31px; }
.admin-input::placeholder, .admin-textarea::placeholder { color: #aab1aa; }
.admin-input:focus, .admin-select:focus, .admin-textarea:focus { outline: none; border-color: #72947f; box-shadow: 0 0 0 2px rgba(91,131,104,.12); }
.admin-select { min-width: 112px; width: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 740px; }
.admin-table th { text-align: left; background: #fafbf9; color: #79847b; border-bottom: 1px solid #e9ede8; padding: 11px 13px; font-size: 9px; font-weight: 600; white-space: nowrap; }
.admin-table td { border-bottom: 1px solid #edf0ec; padding: 11px 13px; font-size: 10px; color: #556159; vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #fbfcfa; }
.cell-primary { color: #303a33 !important; font-weight: 600; }
.cell-meta { display: block; color: #99a19a; font-size: 9px; font-weight: 400; margin-top: 4px; }
.table-actions { display: inline-flex; align-items: center; gap: 3px; }
.table-icon-btn { border: 0; background: transparent; width: 28px; height: 28px; border-radius: 4px; display: grid; place-items: center; color: #758078; }
.table-icon-btn:hover { background: #f0f4f0; color: #315848; }
.table-icon-btn.danger:hover { color: #a65248; background: #fbefed; }
.table-empty { text-align: center; padding: 50px 20px !important; color: #8a938b !important; }
.table-empty strong { color: #4f5c53; display: block; margin-bottom: 6px; }
.table-footer { padding: 11px 15px; border-top: 1px solid #edf0ec; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #89938b; font-size: 9px; }
.toggle { width: 30px; height: 17px; display: inline-flex; align-items: center; padding: 2px; background: #d8ddd8; border: 0; border-radius: 99px; vertical-align: middle; transition: background .16s ease; }
.toggle::after { content: ''; display: block; width: 13px; height: 13px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.14); transition: transform .16s ease; }
.toggle.on { background: #4c8162; }
.toggle.on::after { transform: translateX(13px); }
.admin-form-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(250px,.68fr); gap: 14px; align-items: start; }
.admin-form-card { background: #fff; border: 1px solid #e4e8e3; border-radius: 5px; padding: 19px; }
.admin-form-card h2 { font-size: 11px; margin: 0 0 5px; color: #313a34; }
.admin-form-card > p { color: #869087; font-size: 9px; margin: 0 0 17px; line-height: 1.6; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.admin-field { display: grid; gap: 7px; min-width: 0; }
.admin-field.full { grid-column: 1 / -1; }
.admin-field label { color: #59655c; font-size: 9px; font-weight: 600; }
.admin-field label .required { color: #bd685b; }
.admin-field .admin-textarea { min-height: 74px; resize: vertical; padding: 9px 10px; }
.admin-help { color: #9aa29b; font-size: 9px; line-height: 1.55; }
.upload-zone { position: relative; min-height: 177px; border: 1px dashed #c7d0c8; border-radius: 4px; background: #fafcf9; display: grid; place-items: center; overflow: hidden; transition: .15s ease; }
.upload-zone:hover { border-color: #689076; background: #f8fbf8; }
.upload-zone.has-image { border-style: solid; }
.upload-zone input { position: absolute; inset: 0; opacity: 0; z-index: 2; cursor: pointer; }
.upload-placeholder { display: grid; justify-items: center; gap: 7px; color: #829087; pointer-events: none; }
.upload-placeholder svg { color: #708d79; }
.upload-placeholder strong { color: #526257; font-size: 10px; }
.upload-placeholder span { font-size: 9px; }
.upload-preview { width: 142px; height: 142px; object-fit: contain; background: white; padding: 8px; box-shadow: 0 4px 16px rgba(31,44,34,.1); }
.upload-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: #8c968e; font-size: 9px; }
.qr-demo-preview { display: grid; justify-items: center; gap: 10px; padding: 19px 12px; border-radius: 4px; background: #f7f9f6; border: 1px solid #e7ece6; }
.qr-demo-preview .qr-code-shell { width: 178px; height: 178px; padding: 9px; box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.qr-demo-preview > span { color: #79857b; font-size: 9px; }
.admin-form-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 16px; margin-top: 17px; border-top: 1px solid #edf0ec; }
.admin-form-actions-right { display: flex; gap: 8px; }
.audit-layout { display: grid; grid-template-columns: minmax(0,1fr) 305px; gap: 13px; align-items: start; }
.audit-filter-strip { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid #edf0ec; }
.filter-chip { border: 1px solid #e0e5e0; background: #fff; color: #78847a; border-radius: 3px; padding: 6px 9px; font-size: 9px; }
.filter-chip:hover { border-color: #a9b8aa; }
.filter-chip.active { border-color: #8eaa95; background: #edf4ef; color: #3d674b; }
.audit-detail { background: #fff; border: 1px solid #e4e8e3; border-radius: 5px; position: sticky; top: 76px; overflow: hidden; }
.audit-detail-header { padding: 14px; border-bottom: 1px solid #edf0ec; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.audit-detail-header strong { color: #303a33; font-size: 11px; }
.audit-detail-body { padding: 15px; }
.audit-detail-placeholder { padding: 40px 15px; color: #99a29a; display: grid; justify-items: center; text-align: center; gap: 9px; font-size: 9px; line-height: 1.6; }
.audit-detail-placeholder svg { color: #9caaa0; }
.audit-info { display: grid; gap: 12px; }
.audit-info-row { display: flex; justify-content: space-between; gap: 10px; font-size: 9px; }
.audit-info-row span { color: #879189; }
.audit-info-row strong { color: #46534a; font-weight: 600; text-align: right; }
.audit-divider { border: 0; border-top: 1px solid #edf0ec; width: 100%; margin: 14px 0; }
.audit-qr-thumb { width: 88px; height: 88px; padding: 5px; background: #fff; border: 1px solid #e5e8e4; margin: 0 auto 12px; }
.audit-qr-thumb canvas, .audit-qr-thumb img { width: 100%; height: 100%; object-fit: contain; }
.audit-buttons { display: grid; gap: 7px; margin-top: 16px; }
.audit-buttons .admin-button { width: 100%; }
.log-list { display: grid; gap: 11px; }
.log-item { display: grid; grid-template-columns: 8px 1fr; gap: 8px; color: #768178; font-size: 9px; line-height: 1.5; }
.log-bullet { width: 6px; height: 6px; margin-top: 4px; border-radius: 50%; background: #7da187; }
.log-item strong { color: #526057; font-weight: 600; }
.mobile-admin-head { display: none; }

/* Shared overlays */
.icon-button { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid transparent; background: transparent; color: inherit; border-radius: 4px; }
.icon-button:hover { background: rgba(128,140,130,.1); }
.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(6,9,7,.63); backdrop-filter: blur(3px); }
.modal { width: min(100%, 420px); background: #202622; border: 1px solid rgba(231,224,205,.15); border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-family: 'Noto Sans SC', sans-serif; font-size: 13px; font-weight: 600; }
.modal-body { padding: 18px; color: #aeb4ac; font-size: 11px; line-height: 1.75; }
.modal-foot { padding: 13px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 220px; padding: 11px 14px; border-radius: 4px; color: #e7e9e3; background: #2a332d; border: 1px solid rgba(119,182,151,.3); box-shadow: 0 8px 25px rgba(0,0,0,.23); font-size: 11px; display: flex; align-items: center; gap: 8px; animation: toast-in .22s ease both; }
.toast svg { color: var(--green); flex: 0 0 auto; }
.toast.error { border-color: rgba(220,139,120,.34); }
.toast.error svg { color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.mobile-bottom-bar { display: none; }

@media (max-width: 1040px) {
  .player-main { padding-left: 24px; padding-right: 24px; }
  .player-header { padding: 0 24px; }
  .admin-shell { grid-template-columns: 205px minmax(0,1fr); }
  .admin-main { padding-left: 24px; padding-right: 24px; }
  .admin-topbar { padding: 0 24px; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .audit-layout { grid-template-columns: minmax(0,1fr) 270px; }
}
@media (max-width: 760px) {
  .player-header { height: 61px; padding: 0 17px; }
  .brand { min-width: auto; gap: 10px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy span { font-size: 8px; }
  .player-nav { gap: 0; }
  .nav-link { padding: 0 9px; font-size: 10px; gap: 5px; }
  .nav-link svg { width: 14px; height: 14px; }
  .nav-link.active::after { left: 9px; right: 9px; }
  .header-order { padding: 7px; font-size: 0; }
  .header-order svg { width: 17px; height: 17px; }
  .header-divider, .avatar { display: none; }
  .player-main { padding: 29px 16px 45px; }
  .page-title { font-size: 24px; }
  .page-subtitle { font-size: 11px; }
  .page-heading-row { align-items: flex-start; flex-direction: column; margin-bottom: 20px; gap: 10px; }
  .secure-note { font-size: 10px; }
  .exchange-banner { align-items: flex-start; flex-direction: column; gap: 12px; padding: 20px; margin-bottom: 17px; }
  .exchange-banner h2 { font-size: 38px; gap: 12px; }
  .exchange-banner h2 small { font-size: 18px; margin-left: 4px; }
  .exchange-banner h2 .exchange-equals { font-size: 24px; }
  .exchange-banner-note { font-size: 12px; }
  .player-grid { grid-template-columns: 1fr; gap: 13px; }
  .form-panel { padding: 20px 17px; }
  .side-stack { grid-template-columns: 1fr; }
  .trust-panel { padding: 15px; }
  .trust-art { height: 121px; margin-bottom: 13px; }
  .trust-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .trust-item { gap: 7px; }
  .trust-icon { width: 24px; height: 24px; }
  .trust-item strong { font-size: 10px; }
  .trust-item span { font-size: 9px; }
  .player-footer { padding: 16px; gap: 15px; flex-wrap: wrap; }
  .footer-links { gap: 9px; }
  .field-grid { gap: 11px; }
  .payment-method { gap: 9px; padding: 14px 11px; }
  .pay-summary { align-items: end; }
  .pay-summary .button { min-width: 152px; }
  .payment-grid { grid-template-columns: 1fr; }
  .payment-card, .order-card, .qr-card { padding: 18px; }
  .qr-card { order: -1; }
  .qr-code-shell { width: 195px; height: 195px; }
  .narrow-page .page-heading-row { margin-bottom: 16px; }
  .orders-toolbar { margin-top: 14px; }
  .orders-search { flex-basis: 100%; }
  .toolbar-select { flex: 1; min-width: 0; }
  .admin-shell { display: block; padding-bottom: 57px; }
  .admin-sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; padding: 0; background: #202723; border-top: 1px solid rgba(255,255,255,.1); }
  .admin-brand, .admin-back, .side-label, .admin-sidebar-bottom { display: none; }
  .admin-nav { grid-template-columns: repeat(4,1fr); gap: 0; }
  .admin-nav button { min-height: 55px; padding: 5px 2px; display: grid; justify-items: center; align-content: center; gap: 3px; border-radius: 0; font-size: 8px; }
  .admin-nav button.active { box-shadow: inset 0 2px 0 var(--gold); }
  .admin-nav button svg { width: 17px; height: 17px; }
  .nav-count { position: absolute; margin: -25px 0 0 20px; min-width: 16px; height: 14px; padding: 0 3px; font-size: 8px; }
  .admin-content { min-height: 100vh; }
  .admin-topbar { height: 55px; padding: 0 15px; }
  .admin-top-actions { gap: 7px; }
  .admin-mobile-exit { display: inline-grid; color: #557362 !important; }
  .admin-top-actions > span { display: none; }
  .admin-main { padding: 22px 14px 30px; }
  .admin-page-heading { margin-bottom: 17px; align-items: center; }
  .admin-page-heading h1 { font-size: 18px; }
  .admin-page-heading p { max-width: 245px; font-size: 9px; }
  .admin-page-heading-actions { flex-shrink: 0; }
  .admin-page-heading-actions .admin-button { width: 34px; padding: 0; font-size: 0; }
  .admin-page-heading-actions .admin-button svg { width: 15px; height: 15px; }
  .admin-page-heading-actions .admin-button-secondary { display: none; }
  .stat-grid { gap: 8px; margin-bottom: 12px; }
  .stat-card { min-height: 103px; padding: 12px; }
  .stat-top { font-size: 9px; }
  .stat-icon { width: 23px; height: 23px; }
  .stat-value { font-size: 22px; }
  .stat-meta { font-size: 8px; }
  .admin-columns, .admin-form-layout, .audit-layout { grid-template-columns: 1fr; }
  .admin-panel-header { min-height: 48px; padding: 0 12px; }
  .admin-panel-body { padding: 11px 12px; }
  .admin-panel-body .mini-table { min-width: 530px; }
  .admin-columns > .admin-panel:nth-child(2) { order: -1; }
  .admin-panel .admin-scroll { overflow-x: auto; }
  .admin-toolbar { padding: 10px; }
  .admin-search { flex-basis: 100%; }
  .admin-select { flex: 1; min-width: 0; }
  .admin-table { min-width: 690px; }
  .admin-table th, .admin-table td { padding-left: 10px; padding-right: 10px; }
  .admin-form-card { padding: 15px; }
  .admin-form-grid { gap: 11px; }
  .audit-detail { position: static; }
  .audit-layout > .admin-panel { order: 0; }
  .audit-detail { order: 1; }
  .audit-filter-strip { padding: 9px; }
  .filter-chip { padding: 6px 7px; }
  .toast-region { left: 12px; right: 12px; bottom: 68px; }
  .toast { width: 100%; }
}
@media (max-width: 420px) {
  .player-nav .nav-link span { display: none; }
  .player-nav .nav-link { width: 37px; justify-content: center; padding: 0; }
  .nav-link.active::after { left: 7px; right: 7px; }
  .player-grid { gap: 11px; }
  .exchange-banner { padding: 18px 15px; }
  .exchange-banner h2 { font-size: clamp(29px, 9vw, 36px); gap: 8px; }
  .exchange-banner h2 small { font-size: 15px; }
  .exchange-preview { padding: 12px; }
  .exchange-preview strong { font-size: 23px; }
  .payment-methods { gap: 9px; }
  .payment-method { gap: 8px; padding: 13px 9px; }
  .payment-method-icon { width: 31px; height: 31px; border-radius: 7px; }
  .payment-method-copy strong { font-size: 12px; }
  .form-panel { padding-left: 13px; padding-right: 13px; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .pay-summary { align-items: stretch; flex-direction: column; }
  .pay-summary .button { width: 100%; min-width: 0; padding: 0 11px; }
  .footer-links { width: 100%; }
  .admin-page-heading p { max-width: 190px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-field.full { grid-column: auto; }
  .admin-form-actions { align-items: stretch; flex-direction: column; }
  .admin-form-actions-right { justify-content: flex-end; }
}
