/* ============================================================
   八戒数据库 / Bajie Database — design system
   minimal · dark · amber accent
   ============================================================ */
:root {
  --bg: #0a0b0d;
  --bg-soft: #0d0f12;
  --surface: #12151a;
  --surface-2: #171b21;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --text: #eceef1;
  --muted: #949ba3;
  --dim: #6b737b;
  --accent: #f2b25c;
  --accent-2: #e08a38;
  --accent-soft: rgba(242, 178, 92, .12);
  --ok: #5fd18b;
  --ok-soft: rgba(95, 209, 139, .12);
  --err: #ee7474;
  --err-soft: rgba(238, 116, 116, .12);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .8);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; }
button { font: inherit; }
::selection { background: var(--accent); color: #101010; }

.glow {
  position: fixed;
  inset: -30% 0 auto 0;
  height: 620px;
  background:
    radial-gradient(560px 300px at 22% 0%, rgba(242, 178, 92, .13), transparent 70%),
    radial-gradient(520px 260px at 82% 8%, rgba(120, 140, 255, .07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.narrow { max-width: 780px; }
.tiny { max-width: 460px; }

/* ---------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 24px;
  background: rgba(10, 11, 13, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; }
.brand img { border-radius: 9px; display: block; }
.brand em { font-style: normal; color: var(--dim); font-size: 11px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; display: block; margin-top: -2px; }
.brand span { display: flex; flex-direction: column; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 7px 12px; border-radius: var(--r-sm); color: var(--muted);
  font-size: 14px; transition: .18s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-right form { margin: 0; }
.lang {
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
  padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--muted); transition: .18s;
}
.lang:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .16s, background .18s, border-color .18s, opacity .18s;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(180deg, #f7c178, var(--accent));
  color: #17120a; box-shadow: 0 8px 24px -12px rgba(242, 178, 92, .8);
}
.btn.primary:hover { background: linear-gradient(180deg, #ffcf8e, #f5b866); }
.btn.ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.subtle { color: var(--muted); background: rgba(255, 255, 255, .03); border-color: transparent; }
.btn.subtle:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.btn.sm { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.danger { color: var(--err); border-color: rgba(238, 116, 116, .3); background: transparent; }
.btn.danger:hover { background: var(--err-soft); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------------------------------------------------------- typography */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.lead { color: var(--muted); font-size: 16.5px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: -.01em; }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---------------------------------------------------------- hero */
.hero { padding: 96px 0 72px; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 64px);
  font-weight: 600; letter-spacing: -.035em; margin: 18px 0 0;
}
.hero h1 span { color: var(--accent); }
.hero .lead { margin-top: 18px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

.stat-row { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 54px;
  padding-top: 26px; border-top: 1px solid var(--line); }
.stat b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.stat span { font-size: 12px; color: var(--dim); letter-spacing: .04em; }

/* terminal-ish preview card */
.preview {
  border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px;
  border-bottom: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #2b3038; }
.dot:first-child { background: #4a3a28; }
.preview-body { padding: 18px 18px 22px; font-family: var(--mono); font-size: 12.5px; line-height: 2; }
.preview-body i { font-style: normal; color: var(--dim); }
.preview-body b { color: var(--accent); font-weight: 500; }
.preview-body .ok { color: var(--ok); }
.preview-body .row { display: flex; justify-content: space-between; gap: 16px;
  border-bottom: 1px dashed rgba(255,255,255,.05); padding: 2px 0; }

/* ---------------------------------------------------------- sections */
.section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 520px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.feature {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.018), transparent);
  transition: .2s;
}
.feature:hover { border-color: var(--line-2); background: var(--surface); }
.feature .ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.feature h3 { font-size: 15.5px; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 13.8px; }

/* ---------------------------------------------------------- plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  transition: .2s;
}
.plan:hover { border-color: var(--line-2); transform: translateY(-2px); }
.plan.hot { border-color: rgba(242, 178, 92, .45); background:
  linear-gradient(180deg, rgba(242,178,92,.07), var(--bg-soft) 60%); }
.plan .tag {
  position: absolute; top: -1px; right: 22px; transform: translateY(-50%);
  background: var(--accent); color: #17120a; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; letter-spacing: .04em;
}
.plan h3 { font-size: 17px; }
.plan .sub { color: var(--muted); font-size: 13.5px; min-height: 42px; margin-top: 6px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.price b { font-size: 40px; font-weight: 600; letter-spacing: -.03em; }
.price em { font-style: normal; color: var(--dim); font-size: 13px; }
.price-alt { font-size: 12.5px; color: var(--dim); font-family: var(--mono); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 9px; }
.plan li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.8px; color: var(--muted); }
.plan li::before { content: "✓"; color: var(--accent); font-size: 12px; margin-top: 2px; }
.plan .buy { margin-top: auto; }
.pay-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pay-pick input { position: absolute; opacity: 0; pointer-events: none; }
.pay-pick label {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px; border: 1px solid var(--line-2); border-radius: 9px;
  font-size: 12.5px; color: var(--muted); cursor: pointer; transition: .16s;
}
.pay-pick label:hover { border-color: var(--line-2); color: var(--text); }
.pay-pick input:checked + label {
  border-color: var(--accent); color: var(--accent); background: var(--accent-soft);
}

/* ---------------------------------------------------------- cards / list */
.card {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 26px;
}
.card-tight { padding: 18px 20px; }

.res-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  transition: .18s;
}
.res-item:hover { border-color: var(--line-2); background: var(--surface-2); }
.res-item + .res-item { margin-top: 10px; }
.res-ico {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; display: grid;
  place-items: center; background: rgba(255,255,255,.04); color: var(--accent);
}
.res-main { min-width: 0; flex: 1; }
.res-main h4 { font-size: 14.5px; font-weight: 500; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.res-meta { display: flex; gap: 12px; color: var(--dim); font-size: 12px; margin-top: 3px; }
.res-act { display: flex; align-items: center; gap: 8px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
  border-radius: 999px; font-size: 11.5px; font-weight: 500;
  background: rgba(255,255,255,.05); color: var(--muted); white-space: nowrap;
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--accent-soft); color: var(--accent); }
.badge.err { background: var(--err-soft); color: var(--err); }
.badge.solid { background: var(--accent); color: #17120a; }

/* ---------------------------------------------------------- forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.input, input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], select, textarea {
  width: 100%; padding: 11px 13px; background: var(--bg-soft);
  border: 1px solid var(--line-2); border-radius: 9px; color: var(--text);
  font-family: inherit; font-size: 14px; transition: .16s; outline: none;
}
textarea { resize: vertical; min-height: 80px; }
.input:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 178, 92, .13);
}
input[type=file] { font-size: 13px; color: var(--muted); }
input[type=file]::file-selector-button {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2);
  border-radius: 7px; padding: 8px 13px; margin-right: 12px; cursor: pointer;
}
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.form-note { font-size: 12.5px; color: var(--dim); margin-top: 6px; }

.flash {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r);
  font-size: 13.5px; margin-bottom: 22px; border: 1px solid var(--line-2);
}
.flash.ok { background: var(--ok-soft); border-color: rgba(95,209,139,.25); color: #b8f0cd; }
.flash.err { background: var(--err-soft); border-color: rgba(238,116,116,.25); color: #ffc9c9; }
.flash.warn { background: var(--accent-soft); border-color: rgba(242,178,92,.25); color: #ffdda8; }

/* ---------------------------------------------------------- order page */
.order-grid { display: grid; grid-template-columns: 380px 1fr; gap: 26px; align-items: start; }
.qr-box { background: #fff; padding: 14px; border-radius: var(--r); display: grid; place-items: center; }
.qr-box svg { width: 220px; height: 220px; display: block; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row .val {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; font-family: var(--mono); font-size: 12.5px;
}
.amount-hero { font-family: var(--mono); font-size: 30px; letter-spacing: -.02em; color: var(--accent); }
.countdown { font-family: var(--mono); color: var(--muted); }
.status-line { display: flex; align-items: center; gap: 8px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(242,178,92,.5); animation: pulse 1.8s infinite; }
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(242,178,92,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,178,92,0); }
}
.steps { counter-reset: s; display: grid; gap: 14px; margin-top: 6px; }
.steps li { list-style: none; display: flex; gap: 12px; font-size: 13.5px; color: var(--muted); }
.steps li::before {
  counter-increment: s; content: counter(s); flex: 0 0 22px; height: 22px;
  border-radius: 50%; background: rgba(255,255,255,.05); color: var(--accent);
  font-size: 11px; display: grid; place-items: center; margin-top: 2px;
}

/* ---------------------------------------------------------- tables */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 13.2px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--dim); font-weight: 500; background: rgba(255,255,255,.02); }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,.015); }
td .btn { padding: 5px 9px; font-size: 12px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.inline-form input { width: 110px; padding: 5px 8px; font-size: 12.5px; }

/* ---------------------------------------------------------- admin shell */
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side {
  border-right: 1px solid var(--line); padding: 22px 16px; background: var(--bg-soft);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side .brand { padding: 0 8px 20px; }
.side nav { display: grid; gap: 3px; }
.side nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
  color: var(--muted); font-size: 13.5px; transition: .16s;
}
.side nav a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.side nav a.active { background: var(--accent-soft); color: var(--accent); }
.side .sep { height: 1px; background: var(--line); margin: 14px 6px; }
.side-foot { margin-top: 22px; font-size: 12px; color: var(--dim); padding: 0 8px; }
.admin-main { padding: 30px 34px 60px; min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-head h1 { font-size: 24px; }
.admin-head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px;
  margin-bottom: 26px; }
.kpi { border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
  background: var(--surface); }
.kpi span { font-size: 12px; color: var(--dim); }
.kpi b { display: block; font-size: 26px; font-weight: 600; margin-top: 4px; letter-spacing: -.02em; }

/* ---------------------------------------------------------- misc */
.hr { height: 1px; background: var(--line); margin: 28px 0; border: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stack { display: grid; gap: 14px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 34px; } .mb-2 { margin-bottom: 16px; }
.pill-link { color: var(--accent); }

.empty { text-align: center; padding: 56px 20px; color: var(--dim); }
.empty h3 { color: var(--text); margin-bottom: 8px; font-size: 16px; }

.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 34px 0 40px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--dim); font-size: 12.5px; }

details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { cursor: pointer; font-size: 14.5px; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--accent); }
details.faq[open] summary::after { content: "−"; }
details.faq p { color: var(--muted); font-size: 13.5px; margin-top: 10px; }

.auth-shell { min-height: 72vh; display: grid; place-items: center; padding: 40px 0; }

@media (max-width: 900px) {
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .order-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .admin-main { padding: 22px 18px 50px; }
  .stat-row { gap: 24px; }
}

/* ---------- DataExtractorPro 风格窗口（首页 access.check 预览） ---------- */
.dex-window {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: #060b14;
  box-shadow: 0 26px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  max-width: 420px;
  margin-left: auto;
}
.dex-titlebar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #101827, #0a111c);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.dex-dot { width: 9px; height: 9px; border-radius: 50%; background: #2a3446; }
.dex-dot.r { background: #ff5f57; }
.dex-dot.y { background: #febc2e; }
.dex-dot.g { background: #28c840; }
.dex-title {
  margin-left: 8px; font-size: 10.5px; letter-spacing: .16em;
  color: #7f8ea3; text-transform: uppercase;
}
.dex-body { padding: 20px 18px 16px; }
.dex-brand {
  font-size: 14px; letter-spacing: .22em; color: #e8eef7; text-transform: uppercase;
}
.dex-sub { margin-top: 6px; font-size: 11px; color: #5f6f85; line-height: 1.55; }
.dex-rows { margin-top: 16px; border-top: 1px solid rgba(255,255,255,.06); }
.dex-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 12px;
}
.dex-row i {
  color: #5f6f85; font-style: normal; text-transform: uppercase;
  letter-spacing: .09em; font-size: 10.5px; white-space: nowrap;
}
.dex-row span { color: #cfd8e6; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dex-row span.ok { color: #4ade80; }
.dex-term { margin-top: 14px; font-size: 11px; color: #7f8ea3; line-height: 1.75; }
.dex-term b { color: #f2b25c; font-weight: 500; }
.dex-btn {
  display: block; margin-top: 16px; width: 100%; padding: 12px;
  border: 0; border-radius: 8px; text-align: center; text-decoration: none;
  background: linear-gradient(180deg, #f2b25c, #d99436); color: #1a1206;
  font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  transition: filter .16s;
}
.dex-btn:hover { filter: brightness(1.08); }
@media (max-width: 860px) { .dex-window { margin: 0 auto; } }

/* ---------- 提取器页面 ---------- */
.dex-field { margin-top: 14px; }
.dex-field label {
  display: block; font-size: 10.5px; letter-spacing: .12em;
  color: #5f6f85; text-transform: uppercase; margin-bottom: 6px;
}
.dex-input {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1); background: #0a111c; color: #cfd8e6;
  font-family: inherit; font-size: 12.5px; outline: none;
}
.dex-input:focus { border-color: rgba(242,178,92,.5); }
.dex-area { min-height: 150px; resize: vertical; line-height: 1.6; }
.dex-kwrow { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.dex-file {
  display: inline-block; padding: 8px 14px; border-radius: 7px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.14); color: #cfd8e6; font-size: 11.5px;
}
.dex-file:hover { border-color: rgba(242,178,92,.5); }
.dex-fname { font-size: 11px; color: #5f6f85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dex-checks { display: flex; gap: 18px; margin-top: 14px; font-size: 12px; color: #8b9bb1; }
.dex-checks label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.dex-stat { margin-top: 14px; font-size: 11.5px; color: #f2b25c; min-height: 16px; }
.dex-block { margin-top: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; overflow: hidden; }
.dex-blockhead {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: #0c1522; font-size: 11px; color: #8b9bb1; text-transform: uppercase; letter-spacing: .1em;
}
.dex-mini {
  background: transparent; border: 1px solid rgba(255,255,255,.14); color: #cfd8e6;
  border-radius: 5px; padding: 3px 8px; font-size: 10.5px; cursor: pointer; margin-left: 6px;
}
.dex-mini:hover { border-color: rgba(242,178,92,.5); color: #f2b25c; }
.dex-pre {
  margin: 0; padding: 12px; max-height: 320px; overflow: auto;
  background: #060b14; color: #93a4ba; font-size: 11.5px; line-height: 1.7;
  font-family: ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-all;
}
.dex-empty { margin-top: 14px; font-size: 12px; color: #5f6f85; }

.dex-filelist { margin-top: 8px; max-height: 150px; overflow: auto; }
.dex-frow {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 11px; color: #6f7f95; padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.dex-frow span { color: #4f5f75; white-space: nowrap; }

/* ---------- v2.1 theme: breathing glow + shine ---------- */
.dex-window { position: relative; animation: dexBreath 4.5s ease-in-out infinite; }
@keyframes dexBreath {
  0%, 100% { box-shadow: 0 24px 60px rgba(0,0,0,.60), 0 0 0 rgba(242,178,92,0); }
  50%      { box-shadow: 0 24px 70px rgba(0,0,0,.65), 0 0 34px rgba(242,178,92,.16); }
}
.dex-window::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 12px;
  background: radial-gradient(120% 80% at 50% -20%, rgba(242,178,92,.10), transparent 60%);
}
.dex-ver { margin-left: auto; font-size: 10px; color: #4a5a70; letter-spacing: .12em; }
.dex-head { padding-bottom: 2px; }
.dex-guide {
  margin-top: 14px; padding: 14px 16px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(242,178,92,.07), rgba(242,178,92,.02));
  border: 1px solid rgba(242,178,92,.18);
}
.dex-guide ol { margin: 0; padding-left: 18px; }
.dex-guide li { font-size: 12px; color: #9fb0c6; line-height: 1.95; }
.dex-guide .mono { color: #e0c79b; }
.dex-note {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(242,178,92,.18);
  font-size: 11px; color: #74859c;
}
.dex-btn { position: relative; overflow: hidden; }
.dex-btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
  transform: translateX(-160%); animation: dexShine 3.8s ease-in-out infinite;
}
@keyframes dexShine {
  0% { transform: translateX(-160%); }
  55% { transform: translateX(330%); }
  100% { transform: translateX(330%); }
}
.dex-btn-glow { display: none; }
.dex-btn:disabled { filter: saturate(.5) brightness(.8); animation: none; }
.dex-admin { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.dex-admin label {
  display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #5f6f85; margin-bottom: 6px;
}
.dex-input:focus { box-shadow: 0 0 0 3px rgba(242,178,92,.10); }
.dex-file:hover { box-shadow: 0 0 18px rgba(242,178,92,.10); }

/* ---------- v2.2 layout: no titlebar, dual-color pickers ---------- */
.dex-body {
  padding: 26px 22px 20px;
  background: radial-gradient(120% 100% at 50% 0%, #0b1424 0%, #070c15 58%);
}
.dex-brand {
  font-size: 17px; letter-spacing: .26em; font-weight: 600;
  background: linear-gradient(90deg, #f2b25c, #ffd89b 55%, #f2b25c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dex-sub { color: #6f8098; margin-top: 6px; }
.dex-pickrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.dex-pick {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 16px 14px; border-radius: 11px; cursor: pointer;
  border: 1px solid; transition: .18s;
}
.dex-pick.amber {
  border-color: rgba(242,178,92,.34);
  background: linear-gradient(180deg, rgba(242,178,92,.10), rgba(242,178,92,.02));
}
.dex-pick.amber:hover { border-color: rgba(242,178,92,.68); box-shadow: 0 0 24px rgba(242,178,92,.16); transform: translateY(-1px); }
.dex-pick.teal {
  border-color: rgba(56,189,178,.32);
  background: linear-gradient(180deg, rgba(56,189,178,.10), rgba(56,189,178,.02));
}
.dex-pick.teal:hover { border-color: rgba(56,189,178,.64); box-shadow: 0 0 24px rgba(56,189,178,.15); transform: translateY(-1px); }
.dex-pick-ico { font-size: 16px; color: #f2b25c; line-height: 1; }
.dex-pick.teal .dex-pick-ico { color: #38bdb2; }
.dex-pick-t { font-size: 13px; color: #dbe4f0; font-weight: 600; }
.dex-pick-s { font-size: 10.5px; color: #6b7c93; letter-spacing: .02em; }
.dex-fbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.dex-checks { gap: 10px; margin-top: 16px; }
.dex-chip {
  display: flex; align-items: center; gap: 6px; padding: 6px 13px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02); color: #8b9bb1;
  font-size: 11.5px; cursor: pointer; transition: .16s;
}
.dex-chip.on { border-color: rgba(242,178,92,.48); background: rgba(242,178,92,.10); color: #f0c98a; }
.dex-chip input { accent-color: #f2b25c; }
.dex-adminrow { display: flex; gap: 8px; }
.dex-blockhead em { font-style: normal; color: #f2b25c; margin-left: 6px; }
@media (max-width: 620px) { .dex-pickrow { grid-template-columns: 1fr; } }

/* ---------- v2.3 two-column layout: guide outside, app window ---------- */
.dex-layout {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px; align-items: start;
}
@media (max-width: 900px) { .dex-layout { grid-template-columns: 1fr; } }

.dex-side-card {
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
}
.dex-steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.dex-steps li { display: flex; gap: 12px; font-size: 12.5px; color: #9fb0c6; line-height: 1.7; }
.dex-steps b {
  flex: 0 0 auto; color: #f2b25c; font-family: ui-monospace, Consolas, monospace;
  font-size: 10.5px; letter-spacing: .1em; padding-top: 2px;
}
.dex-tip {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,.10);
  font-size: 11.5px; color: #6f8098; line-height: 1.85;
}

.dex-app {
  border: 1px solid rgba(242,178,92,.20); border-radius: 14px; background: #070c15;
  box-shadow: 0 26px 60px rgba(0,0,0,.55); overflow: hidden;
  animation: dexBreath 4.5s ease-in-out infinite;
}
.dex-appbody { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.dex-blockrow { display: flex; flex-direction: column; gap: 8px; }
.dex-lbl { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #6f8098; }
.dex-sep { height: 1px; background: rgba(255,255,255,.07); margin: 2px 0; }
.dex-adminrow { display: flex; gap: 8px; }
.dex-btn { height: 54px; border-radius: 10px; font-size: 13px; }
.dex-pick { min-height: 78px; justify-content: center; }
.dex-checks { display: flex; gap: 10px; flex-wrap: wrap; }
.dex-fbar { margin-top: 2px; }

/* ---------- v2.4: app on the left, guide on the right, solid colored buttons ---------- */
.dex-layout { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 900px) {
  .dex-layout { grid-template-columns: 1fr; }
  .dex-side { order: 2; }
}
.dex-appbar {
  display: flex; align-items: center; gap: 9px; padding: 11px 16px;
  background: linear-gradient(180deg, #101827, #0a111c);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.dex-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 9px rgba(74,222,128,.75);
}
.dex-appname { font-size: 10.5px; letter-spacing: .18em; color: #7f8ea3; }
.dex-appstate { margin-left: auto; font-size: 9.5px; letter-spacing: .14em; color: #4ade80; }
.dex-appbody { padding: 18px; gap: 14px; }
.dex-panel {
  border: 1px solid rgba(255,255,255,.07); border-radius: 10px;
  background: rgba(255,255,255,.015); padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.dex-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-amber, .btn-teal, .btn-ghost {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; border-radius: 9px; cursor: pointer; font-size: 12.5px;
  font-weight: 700; letter-spacing: .04em; transition: .16s;
  border: 1px solid; user-select: none;
}
.btn-amber {
  background: linear-gradient(180deg, #f7c477, #e0a244); color: #241603;
  border-color: #b9812c; box-shadow: 0 8px 20px rgba(242,178,92,.18);
}
.btn-amber:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-teal {
  background: linear-gradient(180deg, #4fd1c0, #239e92); color: #03211e;
  border-color: #1c8378; box-shadow: 0 8px 20px rgba(56,189,178,.16);
}
.btn-teal:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: #cfd8e6; border-color: rgba(255,255,255,.16);
  height: auto; padding: 0 14px; white-space: nowrap;
}
.btn-ghost:hover { border-color: rgba(242,178,92,.55); color: #f2b25c; }
.dex-adminrow { display: flex; gap: 8px; align-items: stretch; }

/* ---------- v2.5: usage badge + progress bar ---------- */
.dex-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dex-badge {
  font-size: 11.5px; padding: 5px 11px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12); color: #8b9bb1;
}
.dex-badge.ok { color: #4ade80; border-color: rgba(74,222,128,.35); background: rgba(74,222,128,.08); }
.dex-badge.warn { color: #f2b25c; border-color: rgba(242,178,92,.35); background: rgba(242,178,92,.08); }
.dex-prog { height: 6px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.dex-prog-fill {
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, #f2b25c, #ffd89b);
  transition: width .2s ease;
}
.dex-prog.indet .dex-prog-fill { width: 35%; animation: dexIndet 1.1s ease-in-out infinite; }
@keyframes dexIndet {
  0%   { margin-left: -35%; }
  100% { margin-left: 100%; }
}

/* ---------- v2.6 hero typography hierarchy ---------- */
.hero h1.hero-title {
  margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px;
  font-weight: 400;
}
.hero h1 span.ht-main {
  font-size: clamp(32px, 4.8vw, 52px); font-weight: 700;
  letter-spacing: -.035em; line-height: 1.12; color: #eef3fa;
}
.hero h1 span.ht-sub {
  font-size: clamp(15px, 1.9vw, 20px); font-weight: 500;
  letter-spacing: .02em; line-height: 1.45; color: #8fa1b8;
}
.hero-badge {
  display: inline-flex; align-items: center; margin-top: 18px;
  padding: 8px 15px; border-radius: 999px;
  font-size: 12.5px; letter-spacing: .05em;
  color: #f2b25c; background: rgba(242,178,92,.08);
  border: 1px solid rgba(242,178,92,.26);
}
@media (max-width: 900px) {
  .hero h1.hero-title { gap: 8px; }
}

/* ---------- contact admin banner ---------- */
.support-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 16px; font-size: 12.5px; letter-spacing: .02em;
  color: #1a1206; text-decoration: none;
  background: linear-gradient(90deg, #f2b25c, #ffd89b 50%, #f2b25c);
  border-bottom: 1px solid rgba(0,0,0,.10);
}
.support-bar b { font-weight: 700; }
.support-bar:hover { filter: brightness(1.05); }
.sb-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #7a2e00;
  box-shadow: 0 0 0 0 rgba(122,46,0,.55);
  animation: sbPulse 1.9s infinite;
}
@keyframes sbPulse {
  0%   { box-shadow: 0 0 0 0 rgba(122,46,0,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(122,46,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(122,46,0,0); }
}
.sb-arrow { font-weight: 700; }
@media (max-width: 620px) {
  .support-bar { font-size: 11.5px; gap: 7px; padding: 9px 12px; }
}
