:root {
  --green: #16ad59;
  --green-dark: #0d8e47;
  --ink: #202b40;
  --muted: #838a96;
  --line: #dfe3e8;
  --canvas: #f2f3f4;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--canvas); }
button, input, textarea, select { font: inherit; }
.account-header { position: sticky; top: 0; z-index: 20; height: 78px; border-bottom: 1px solid #e1e4e8; background: rgb(255 255 255 / 96%); backdrop-filter: blur(15px); }
.account-header-inner { width: min(1180px, calc(100% - 40px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.account-mark { display: flex; align-items: center; gap: 16px; color: #111317; text-decoration: none; }
.account-mark strong { font-size: 28px; font-weight: 950; font-style: italic; letter-spacing: -2px; transform: skew(-7deg); }
.account-mark i { width: 1px; height: 30px; background: #d4d8dd; }
.account-mark span { color: #2b3548; font-size: 19px; font-weight: 750; }
.account-header nav { display: flex; align-items: center; gap: 10px; }
.account-header nav a, .account-header nav button { height: 36px; padding: 0 13px; display: inline-flex; align-items: center; border: 0; border-radius: 7px; color: #3e4859; font-size: 13px; font-weight: 650; text-decoration: none; cursor: pointer; background: transparent; }
.account-header nav a.primary { color: #fff; background: var(--green); }
.account-header nav form { margin: 0; }
.account-main { width: min(980px, calc(100% - 32px)); margin: 36px auto 60px; }
.account-flash { margin-bottom: 16px; padding: 13px 16px; border: 1px solid #bde7ce; border-radius: 9px; color: #137440; background: #f1fbf5; }
.account-flash.error { border-color: #f0cccc; color: #a13c3c; background: #fff5f5; }
.auth-wrap { min-height: calc(100vh - 174px); display: grid; place-items: center; }
.auth-card, .account-card { border: 1px solid #e0e4e8; border-radius: 13px; background: #fff; box-shadow: 0 24px 65px rgb(30 50 42 / 9%); }
.auth-card { width: min(100%, 500px); padding: 34px; }
.auth-card .eyebrow, .page-eyebrow { margin: 0 0 7px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.auth-card h1, .page-heading h1 { margin: 0; color: var(--ink); font-size: 27px; font-weight: 780; }
.auth-card .lead, .page-heading p { margin: 9px 0 26px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; margin-bottom: 7px; color: #4c5667; font-size: 12px; font-weight: 700; }
.form-field input, .form-field textarea, .form-field select { width: 100%; border: 1px solid #dce1e6; border-radius: 8px; color: #273247; outline: none; background: #fff; transition: .15s ease; }
.form-field input, .form-field select { height: 44px; padding: 0 12px; }
.form-field textarea { min-height: 96px; padding: 11px 12px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgb(22 173 89 / 10%); }
.field-hint { display: block; margin-top: 5px; color: #959ba4; font-size: 11px; }
.check-row { display: flex; align-items: flex-start; gap: 8px; color: #6f7783; font-size: 12px; line-height: 1.6; }
.check-row input { margin-top: 2px; accent-color: var(--green); }
.form-error { margin: 0 0 16px; padding: 11px 13px; border-radius: 8px; color: #a13c3c; font-size: 13px; background: #fff1f1; }
.submit-button { width: 100%; height: 44px; margin-top: 8px; border: 0; border-radius: 8px; color: #fff; font-weight: 750; cursor: pointer; background: var(--green); }
.submit-button:hover { background: var(--green-dark); }
.auth-switch { margin: 20px 0 0; color: #7c8490; font-size: 13px; text-align: center; }
.auth-switch a { color: var(--green-dark); font-weight: 700; text-decoration: none; }
.demo-login-box { margin-top: 14px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #bde7ce; border-radius: 9px; background: #f3fbf6; }
.demo-login-box strong, .demo-login-box small { display: block; }
.demo-login-box strong { color: #167441; font-size: 13px; }
.demo-login-box small { margin-top: 3px; color: #748078; font-size: 10px; }
.demo-login-box button { height: 34px; padding: 0 12px; border: 0; border-radius: 7px; color: #fff; font-size: 11px; font-weight: 750; cursor: pointer; background: var(--green); }
.page-heading { margin-bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.page-heading p { margin-bottom: 0; }
.action-link { min-height: 40px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; background: var(--green); }
.account-card { margin-bottom: 18px; overflow: hidden; box-shadow: none; }
.account-card-header { min-height: 62px; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e5e8eb; }
.account-card-header h2 { margin: 0; font-size: 16px; }
.account-card-header small { color: #8d939d; }
.account-card-body { padding: 20px; }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.account-stat { padding: 18px; border: 1px solid #e0e4e8; border-radius: 10px; background: #fff; }
.account-stat small { color: #858c97; font-size: 12px; }
.account-stat strong { display: block; margin-top: 7px; color: #273247; font-size: 25px; }
.account-stat.green strong { color: var(--green-dark); }
.order-list { display: grid; gap: 10px; }
.order-row { padding: 15px 17px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(120px, .8fr) 105px 82px; align-items: center; gap: 14px; border: 1px solid #e2e5e9; border-radius: 9px; color: #303b4e; text-decoration: none; transition: .15s ease; }
.order-row:hover { border-color: #a9dcbc; transform: translateY(-1px); }
.order-row strong { display: block; font-size: 14px; }
.order-row small { display: block; margin-top: 4px; color: #9096a0; font-size: 11px; }
.order-amount { font-weight: 750; }
.order-status { display: inline-flex; min-height: 26px; padding: 0 9px; align-items: center; justify-content: center; border-radius: 999px; font-size: 11px; font-weight: 750; }
.order-status.pending { color: #8a651c; background: #fff3d6; }
.order-status.confirmed { color: #28688f; background: #e9f5fc; }
.order-status.completed { color: #127344; background: #e9f8ef; }
.order-status.cancelled { color: #7d838c; background: #eef0f2; }
.order-status.bet-pending { color: #8a651c; background: #fff3d6; }
.order-status.bet-won { color: #127344; background: #e9f8ef; }
.order-status.bet-lost { color: #7c4b4b; background: #f8eaea; }
.order-status.bet-void { color: #7d838c; background: #eef0f2; }
.balance-card { margin-bottom: 18px; padding: 22px 24px; display: flex; align-items: center; gap: 18px; border: 1px solid #bde7ce; border-radius: 11px; background: linear-gradient(135deg,#f5fcf7,#fff); }
.balance-card small { color: #647269; font-size: 12px; }
.balance-card strong { color: var(--green-dark); font-size: 27px; }
.balance-card span { margin-left: auto; padding: 6px 10px; border-radius: 999px; color: #137440; font-size: 11px; font-weight: 750; background: #e7f7ed; }
.balance-card.compact { margin-bottom: 14px; }
.lottery-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lottery-choice label { position: relative; }
.lottery-choice input { position: absolute; opacity: 0; }
.lottery-choice span { height: 48px; display: grid; place-items: center; border: 1px solid #dce1e6; border-radius: 8px; color: #465064; font-size: 13px; font-weight: 700; cursor: pointer; background: #fff; }
.lottery-choice input:checked + span { border-color: var(--green); color: var(--green-dark); background: #f2fbf5; box-shadow: 0 0 0 3px rgb(22 173 89 / 9%); }
.issue-display { margin-top: 14px; padding: 15px; display: flex; align-items: center; justify-content: space-between; border-radius: 8px; background: #f4f5f6; }
.issue-display small { color: #7e8691; }
.issue-display strong { color: #283347; }
.number-bet-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 9px; }
.number-bet-grid label { position: relative; }
.number-bet-grid input { position: absolute; opacity: 0; }
.number-bet-grid span { min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid #dce1e6; border-radius: 8px; color: #2c374a; font-size: 15px; font-weight: 800; cursor: pointer; background: #fff; }
.number-bet-grid span small { color: #949aa4; font-size: 9px; font-weight: 650; }
.number-bet-grid input:checked + span { border-color: var(--green); color: #fff; background: var(--green); box-shadow: 0 6px 15px rgb(22 173 89 / 20%); }
.number-bet-grid input:checked + span small { color: rgb(255 255 255 / 78%); }
.zodiac-bet-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.zodiac-bet-grid label { position: relative; }
.zodiac-bet-grid input { position: absolute; opacity: 0; }
.zodiac-bet-grid span { min-height: 88px; padding: 11px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid #dce1e6; border-radius: 9px; color: #2c374a; cursor: pointer; background: #fff; }
.zodiac-bet-grid strong { font-size: 20px; }
.zodiac-bet-grid small { color: #8c939d; font-size: 10px; line-height: 1.4; text-align: center; }
.zodiac-bet-grid em { color: var(--green-dark); font-size: 10px; font-style: normal; font-weight: 750; }
.zodiac-bet-grid input:checked + span { border-color: var(--green); color: #fff; background: var(--green); box-shadow: 0 6px 15px rgb(22 173 89 / 20%); }
.zodiac-bet-grid input:checked + span small,
.zodiac-bet-grid input:checked + span em { color: rgb(255 255 255 / 82%); }
.selection-summary { padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #dfe3e8; border-radius: 8px; color: #657080; font-size: 13px; background: #fafbfb; }
.selection-summary strong { color: #263247; font-size: 18px; }
.bet-payout { padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #dfe3e8; border-radius: 8px; color: #657080; font-size: 13px; background: #fafbfb; }
.bet-payout b { color: var(--green-dark); }
.bet-payout strong { color: #263247; font-size: 18px; }
.demo-disclaimer { margin: 14px 0 0; color: #9399a2; font-size: 11px; text-align: center; line-height: 1.6; }
.submit-button:disabled { cursor: not-allowed; opacity: .45; }
.bet-result-hero { min-height: 140px; padding: 24px; display: flex; align-items: center; justify-content: center; gap: 18px; border-bottom: 1px solid #edf0f2; }
.bet-number-large { width: 72px; height: 72px; display: grid; place-items: center; border: 6px solid var(--green); border-radius: 50%; color: #253146; font-size: 24px; font-weight: 850; }
.bet-result-hero small, .bet-result-hero strong { display: block; }
.bet-result-hero small { margin-bottom: 5px; color: #9298a1; }
.bet-result-hero strong { color: #263247; }
.bet-result-summary { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-bottom: 1px solid #edf0f2; background: #fafbfb; }
.bet-result-summary div { padding: 14px 16px; border: 1px solid #e2e6e9; border-radius: 9px; background: #fff; }
.bet-result-summary small,
.bet-result-summary strong { display: block; }
.bet-result-summary small { margin-bottom: 5px; color: #8b929d; font-size: 11px; }
.bet-result-summary strong { color: #263247; font-size: 18px; }
.bet-selection-list { padding: 14px 20px; display: grid; gap: 8px; border-bottom: 1px solid #edf0f2; }
.bet-selection-row { min-height: 70px; padding: 11px 14px; display: grid; grid-template-columns: 110px repeat(3,minmax(90px,1fr)) 78px; align-items: center; gap: 12px; border: 1px solid #e1e5e8; border-radius: 9px; }
.bet-selection-row small,
.bet-selection-row strong { display: block; }
.bet-selection-row small { margin-bottom: 4px; color: #9097a1; font-size: 10px; }
.bet-selection-row strong { color: #2b3649; font-size: 13px; }
.bet-selection-row .selection-name strong { color: var(--green-dark); font-size: 19px; }
.empty-state { padding: 34px 18px; color: #858c97; text-align: center; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.product-option { position: relative; }
.product-option input { position: absolute; opacity: 0; }
.product-box { min-height: 126px; padding: 18px; display: block; border: 1px solid #dfe3e8; border-radius: 10px; cursor: pointer; background: #fff; }
.product-box strong { display: block; color: #293448; font-size: 15px; }
.product-box em { display: block; margin-top: 8px; color: var(--green-dark); font-size: 21px; font-style: normal; font-weight: 800; }
.product-box small { display: block; margin-top: 8px; color: #8a919c; line-height: 1.5; }
.product-option input:checked + .product-box { border-color: var(--green); box-shadow: 0 0 0 3px rgb(22 173 89 / 10%); }
.order-summary { padding: 16px; border: 1px solid #dfe3e8; border-radius: 9px; background: #fafbfb; }
.order-summary-row { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #687181; font-size: 13px; }
.order-summary-row strong { color: #273247; }
.order-summary-row.total { margin-top: 7px; padding-top: 12px; border-top: 1px solid #e0e4e8; }
.order-summary-row.total strong { color: var(--green-dark); font-size: 22px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.detail-item { min-height: 70px; padding: 14px 18px; border-bottom: 1px solid #edf0f2; }
.detail-item:nth-child(odd) { border-right: 1px solid #edf0f2; }
.detail-item small { display: block; margin-bottom: 6px; color: #8b929d; font-size: 11px; }
.detail-item strong { color: #2b3649; font-size: 14px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; min-height: 62px; padding: 0 0 20px 30px; color: #566071; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px #eaf8f0; }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 1px; background: #dfe3e8; }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; margin-top: 5px; color: #989ea7; font-size: 11px; }
.danger-button { height: 38px; padding: 0 15px; border: 1px solid #e4bcbc; border-radius: 8px; color: #a33f3f; font-weight: 700; cursor: pointer; background: #fff; }

@media (max-width: 680px) {
  .account-header { height: 64px; }
  .account-header-inner { width: calc(100% - 24px); }
  .account-mark { gap: 9px; }
  .account-mark strong { font-size: 20px; }
  .account-mark i { height: 23px; }
  .account-mark span { font-size: 14px; }
  .account-header nav { gap: 3px; }
  .account-header nav a, .account-header nav button { height: 32px; padding: 0 8px; font-size: 11px; }
  .account-header nav > a:first-child { display: none; }
  .account-main { width: calc(100% - 20px); margin: 20px auto 36px; }
  .auth-wrap { min-height: calc(100vh - 104px); }
  .auth-card { padding: 24px 18px; }
  .auth-card h1, .page-heading h1 { font-size: 23px; }
  .page-heading { align-items: center; }
  .page-heading p { display: none; }
  .account-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .account-stat:last-child { grid-column: 1 / -1; }
  .order-row { grid-template-columns: minmax(0, 1fr) 84px; gap: 8px; }
  .order-row .order-amount { text-align: right; }
  .order-row > div:nth-child(2) { display: none; }
  .order-row .order-status { justify-self: start; }
  .order-row > small { justify-self: end; }
  .product-grid { grid-template-columns: 1fr; }
  .number-bet-grid { grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
  .number-bet-grid span { min-height: 49px; border-radius: 6px; font-size: 12px; }
  .zodiac-bet-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
  .zodiac-bet-grid span { min-height: 80px; padding: 8px 5px; }
  .zodiac-bet-grid strong { font-size: 18px; }
  .selection-summary { align-items: flex-start; flex-direction: column; }
  .balance-card { padding: 16px; flex-wrap: wrap; gap: 8px 12px; }
  .balance-card strong { font-size: 22px; }
  .balance-card span { margin-left: 0; }
  .bet-payout { align-items: flex-start; flex-direction: column; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-item:nth-child(odd) { border-right: 0; }
  .bet-result-summary { grid-template-columns: 1fr; padding: 14px; }
  .bet-selection-list { padding: 10px; }
  .bet-selection-row { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .bet-selection-row .selection-name { grid-row: span 2; }
  .bet-selection-row .order-status { justify-self: start; }
}

@media (max-width: 560px) {
  .account-mark i,
  .account-mark span { display: none; }
}
