:root {
  color-scheme: dark;
  --orange: #ff6414;
  --orange-soft: #ff8a3d;
  --ink: #0b0b0b;
  --panel: #151515;
  --line: #363636;
  --muted: #aaa49e;
  --white: #fffdf9;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--white); }
button, input, textarea { font: inherit; }
a { color: inherit; }

.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center;
  justify-content: space-between; min-height: 56px; padding: 0 24px;
  background: rgba(8, 8, 8, .92); border-bottom: 1px solid #292929; backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 0; }
.brand-mark { width: 10px; height: 28px; background: var(--orange); }
.topbar a { color: #d8d8d8; text-decoration: none; font-size: 14px; }
.topbar a:hover { color: white; }

.hero { width: min(1280px, 100%); margin: 0 auto; padding: 20px 20px 0; }
.hero-banner { display: block; width: 100%; height: auto; max-height: 430px; object-fit: contain; }
.eyebrow { color: var(--orange-soft); font-weight: 800; font-size: 14px; }
h1 { margin: 10px 0 14px; max-width: 720px; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: 0; }
.lead { max-width: 650px; margin: 0; color: #e8e5e0; font-size: 18px; line-height: 1.6; }

.page { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0 72px; }
.layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr); gap: 44px; align-items: start; }
.section-title { margin: 0 0 18px; font-size: 26px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fact { min-height: 98px; padding: 18px 16px 16px 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact:nth-child(even) { padding-left: 22px; }
.fact-label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.fact strong { font-size: 17px; line-height: 1.45; }
.description { color: #cfcbc6; line-height: 1.8; margin: 24px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border: 1px solid #4b4b4b; padding: 7px 10px; font-size: 13px; color: #e2ded8; }

.form-panel { position: sticky; top: 80px; background: var(--panel); border: 1px solid var(--line); padding: 24px; }
.deposit { display: flex; align-items: end; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.deposit span { color: var(--muted); font-size: 14px; }
.deposit strong { font-size: 38px; color: var(--orange); }
.notice { margin: 16px 0 20px; color: #e7e2da; line-height: 1.65; font-size: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { color: #c9c4bd; font-size: 13px; }
.field input, .field textarea {
  width: 100%; border: 1px solid #484848; border-radius: 0; background: #0d0d0d; color: white;
  padding: 12px 13px; outline: none;
}
.field textarea { min-height: 78px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--orange); }
.primary {
  width: 100%; min-height: 48px; border: 0; background: var(--orange); color: #111;
  font-weight: 900; cursor: pointer;
}
.primary:hover { background: #ff7b33; }
.primary:disabled { opacity: .55; cursor: wait; }
.small-print { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 12px 0 0; }
.message { display: none; margin-top: 14px; padding: 12px; border: 1px solid #71411e; background: #21150e; color: #ffd9bd; line-height: 1.5; }
.message.show { display: block; }
.message.success { border-color: #34785a; background: #102219; color: #8ce0b2; }
.status-lookup { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.subsection-title { font-size: 17px; font-weight: 800; }
.secondary {
  width: 100%; min-height: 44px; border: 1px solid #686868; background: transparent; color: var(--white);
  font-weight: 800; cursor: pointer;
}
.secondary:hover { border-color: var(--orange); color: var(--orange-soft); }
.secondary:disabled { opacity: .55; cursor: wait; }

.status-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.status-box { width: min(520px, 100%); border-top: 4px solid var(--orange); background: var(--panel); padding: 28px; }
.status-box h1 { font-size: 32px; line-height: 1.2; }
.status-box p { color: #d0cbc4; line-height: 1.7; }
.button-link { display: inline-flex; justify-content: center; min-height: 44px; padding: 0 18px; align-items: center; background: var(--orange); color: #111; text-decoration: none; font-weight: 800; }

.admin { width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 72px; }
.admin-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-head h1 { font-size: 34px; margin: 0; }
.admin-summary { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; min-width: 980px; border-collapse: collapse; background: #101010; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid #2f2f2f; vertical-align: top; }
th { color: #b9b3ac; font-size: 12px; background: #181818; }
td { font-size: 14px; }
.badge { display: inline-flex; padding: 4px 7px; border: 1px solid #4b4b4b; color: #ddd; font-size: 12px; white-space: nowrap; }
.badge.paid, .badge.refunded { border-color: #34785a; color: #73d8a5; }
.badge.pending_manual { border-color: #9a631c; color: #ffbd63; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 230px; }
.mini { border: 1px solid #555; background: transparent; color: #eee; padding: 7px 9px; cursor: pointer; font-size: 12px; }
.mini:hover { border-color: var(--orange); }
.mini.important { background: var(--orange); border-color: var(--orange); color: #111; font-weight: 800; }
.mini.danger { border-color: #7a3333; color: #ff9d9d; }
.mini.danger:hover { border-color: #d84b4b; color: #ffd2d2; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

@media (max-width: 800px) {
  .topbar { padding: 0 16px; }
  .hero { padding: 14px 14px 0; }
  .hero-content, .page { width: min(100% - 28px, 1120px); }
  h1 { font-size: 34px; }
  .lead { font-size: 17px; }
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .form-panel { position: static; }
  .facts { grid-template-columns: 1fr; }
  .fact:nth-child(odd) { border-right: 0; }
  .fact:nth-child(even) { padding-left: 0; }
}
