:root {
  --bg-dark: #0f1419;
  --bg-card: #1a2332;
  --gold: #f5c542;
  --gold-dark: #d4a017;
  --text: #f0f0f0;
  --muted: #9aa4b2;
  --danger: #ff6b6b;
  --success: #4ade80;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #eef1f5;
  color: #222;
  min-height: 100vh;
}

.page {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f5f6f8;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
}

.header {
  background: linear-gradient(180deg, #121820 0%, #1a2332 100%);
  color: var(--text);
  padding: 12px 16px 20px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #fff 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex: 1;
  text-align: center;
}

.balance-pill {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1a1200;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  min-width: 90px;
  text-align: center;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.nav-link.active {
  color: var(--gold);
  font-weight: 600;
}

.header-nav {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding-top: 4px;
}

.content {
  padding: 16px;
  padding-bottom: 32px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.section-title .icon {
  font-size: 20px;
}

.actions-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.btn-ghost {
  flex: 1;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}

.account-card {
  background: linear-gradient(135deg, #ffe082 0%, #ffb300 55%, #ff8f00 100%);
  border-radius: var(--radius);
  padding: 16px;
  color: #3e2723;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(255, 143, 0, 0.25);
}

.account-card .label {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 8px;
}

.account-card .bank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.bank-badge {
  background: rgba(255, 255, 255, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
}

.account-no {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.account-name {
  font-size: 14px;
  opacity: 0.9;
}

.copy-btn {
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  color: #3e2723;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.field-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.amount-input-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #eee;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 8px;
}

.amount-input-wrap:focus-within {
  border-color: var(--gold);
}

.amount-input {
  flex: 1;
  border: none;
  font-size: 24px;
  font-weight: 700;
  outline: none;
  width: 100%;
}

.amount-suffix {
  color: #999;
  font-size: 14px;
  margin-left: 8px;
}

.hint {
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.quick-grid button {
  background: linear-gradient(180deg, #ffe082, #ffc107);
  border: none;
  border-radius: 8px;
  padding: 12px 4px;
  font-weight: 700;
  font-size: 13px;
  color: #4a3800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 193, 7, 0.35);
}

.quick-grid button:active {
  transform: scale(0.98);
}

.btn-clear {
  width: 100%;
  background: #fff;
  border: 1px dashed #ccc;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 20px;
  color: #666;
  cursor: pointer;
}

.dev-panel {
  border: 1px dashed #c9a227;
  border-radius: var(--radius);
  background: #fffdf5;
  padding: 14px;
  margin-bottom: 20px;
}

.dev-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: #8a6d1d;
  margin-bottom: 6px;
}

.dev-hint {
  margin: 0 0 12px;
}

.dev-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-dev {
  border: 1px solid #d4b84a;
  background: #fff;
  color: #6b5416;
  border-radius: 8px;
  padding: 10px 8px;
  font-size: 13px;
  cursor: pointer;
}

.btn-dev.warn {
  border-color: #e8a87c;
  color: #a0522d;
}

.btn-dev:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.upload-zone {
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  background: #fffef5;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.upload-zone.has-image {
  padding: 0;
  border-style: solid;
}

.upload-zone.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  border-color: #ccc;
  background: #f0f0f0;
}

.upload-zone.disabled .upload-placeholder {
  color: #aaa;
}

.upload-zone input {
  display: none;
}

.upload-placeholder {
  text-align: center;
  color: #888;
  padding: 24px;
}

.upload-placeholder .big {
  font-size: 32px;
  margin-bottom: 8px;
}

.upload-preview {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  display: block;
}

.footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-cancel {
  background: #1a2332;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn-confirm {
  background: linear-gradient(135deg, #ffe082, #ff8f00);
  color: #3e2723;
  border: none;
  border-radius: 999px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 143, 0, 0.4);
}

.btn-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-bar {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  display: none;
}

.status-bar.show {
  display: block;
}

.status-bar.info {
  background: #e3f2fd;
  color: #1565c0;
}

.status-bar.success {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-bar.error {
  background: #ffebee;
  color: #c62828;
}

.config-panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #eee;
}

.config-panel h3 {
  font-size: 14px;
  margin-bottom: 12px;
  color: #333;
}

.config-panel label {
  display: block;
  font-size: 12px;
  color: #666;
  margin: 10px 0 4px;
}

.config-panel input,
.config-panel select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.order-info {
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.6;
  border-left: 4px solid var(--gold);
}

.order-info strong {
  color: #333;
}

.withdraw-form .field {
  margin-bottom: 14px;
}

.withdraw-form input,
.withdraw-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
}

.sim-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed #ccc;
}

.sim-section h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: #555;
}

.sim-section p {
  font-size: 12px;
  color: #888;
  margin-bottom: 12px;
}
