:root {
  --bg: #f4efe5;
  --panel: rgba(255, 252, 247, 0.92);
  --panel-strong: #fffdf8;
  --ink: #10231d;
  --muted: #5f6d67;
  --line: rgba(16, 35, 29, 0.12);
  --accent: #c46b2b;
  --accent-dark: #86430f;
  --success: #1f7a54;
  --danger: #b84034;
  --shadow: 0 30px 80px rgba(48, 33, 18, 0.12);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(196, 107, 43, 0.24), transparent 28%),
    radial-gradient(circle at bottom right, rgba(16, 35, 29, 0.12), transparent 24%),
    linear-gradient(135deg, #f5ecdf 0%, #efe5d6 45%, #f8f3ea 100%);
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 32px auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
}

.hero-panel,
.app-panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-panel {
  padding: 32px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, rgba(196, 107, 43, 0.2), rgba(196, 107, 43, 0));
  border-radius: 50%;
}

.hero-mark,
.eyebrow {
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
}

.hero-panel h1,
.panel-header h2,
.section-head h3 {
  margin: 12px 0 0;
  line-height: 1.08;
}

.hero-panel h1 {
  font-size: clamp(30px, 5vw, 46px);
}

.hero-copy {
  margin: 18px 0 28px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.hero-stats {
  display: grid;
  gap: 14px;
  margin: 0;
}

.hero-stats div {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(16, 35, 29, 0.08);
}

.hero-stats dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero-stats dd {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.app-panel {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.panel-header,
.section-head,
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 24px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(196, 107, 43, 0.08);
  border: 1px solid rgba(196, 107, 43, 0.12);
}

.status-strip[data-tone="success"] {
  background: rgba(31, 122, 84, 0.08);
  border-color: rgba(31, 122, 84, 0.18);
}

.status-strip[data-tone="danger"] {
  background: rgba(184, 64, 52, 0.08);
  border-color: rgba(184, 64, 52, 0.18);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.status-strip[data-tone="success"] .status-dot {
  background: var(--success);
}

.status-strip[data-tone="danger"] .status-dot {
  background: var(--danger);
}

.withdraw-form {
  display: grid;
  gap: 24px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 14px;
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  color: var(--ink);
}

.field input:focus {
  outline: 2px solid rgba(196, 107, 43, 0.16);
  border-color: rgba(196, 107, 43, 0.4);
}

.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.full-span {
  grid-column: 1 / -1;
}

.ghost-button,
.primary-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.ghost-button {
  padding: 12px 18px;
  background: rgba(16, 35, 29, 0.06);
  color: var(--ink);
}

.ghost-button.compact {
  padding-inline: 14px;
}

.primary-button {
  padding: 15px 24px;
  background: linear-gradient(135deg, var(--accent), #df8a46);
  color: white;
  font-weight: 700;
}

.ghost-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
}

.ghost-button:disabled,
.primary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.bank-picker,
.config-panel,
.response-panel {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(16, 35, 29, 0.08);
}

.settings-form {
  display: grid;
  gap: 18px;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.bank-count {
  color: var(--muted);
  font-size: 14px;
}

.selected-bank {
  min-height: 88px;
  margin: 16px 0;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(16, 35, 29, 0.16);
  background: rgba(255, 253, 248, 0.7);
}

.selected-bank-body,
.bank-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.selected-bank-placeholder,
.empty-state {
  color: var(--muted);
}

.selected-bank img,
.bank-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  background: white;
  padding: 6px;
  border: 1px solid rgba(16, 35, 29, 0.08);
}

.selected-bank p,
.selected-bank small {
  margin: 4px 0 0;
  color: var(--muted);
}

.bank-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.bank-item {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(16, 35, 29, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  text-align: left;
}

.bank-item[data-active="true"] {
  border-color: rgba(196, 107, 43, 0.55);
  box-shadow: inset 0 0 0 1px rgba(196, 107, 43, 0.3);
  background: rgba(255, 245, 235, 0.95);
}

.bank-item span {
  display: grid;
  gap: 4px;
}

.bank-item small {
  color: var(--muted);
}

.response-panel pre {
  margin: 16px 0 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #141a18;
  color: #ecf5f0;
  overflow: auto;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    margin: 10px auto;
  }

  .hero-panel,
  .app-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .field-grid,
  .inline-field,
  .bank-list,
  .panel-header,
  .section-head,
  .form-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .bank-list {
    display: grid;
  }
}
