:root {
  --bg: #070b10;
  --bg-soft: #0a1118;
  --surface: #0f171f;
  --surface-2: #131d26;
  --surface-3: #17232d;
  --border: #22303b;
  --border-soft: #1b2832;
  --line-input: #263844;
  --text: #e9f0f6;
  --muted: #8ea2b4;
  --dim: #6f8395;
  --hint: #7f93a4;
  --accent: #3ddc97;
  --accent-strong: #1fae9b;
  --accent-ink: #04170f;
  --accent-soft: #10261f;
  --accent-border: #2a5a47;
  --blue: #58c8ff;
  --warn: #ffcf6e;
  --warn-soft: #291f10;
  --warn-border: #5a4520;
  --danger: #ff7b7b;
  --danger-soft: #2a1414;
  --danger-border: #6d3434;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans Mono", monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
::selection { background: rgba(61, 220, 151, .28); color: var(--text); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  background:
    radial-gradient(900px 460px at 88% -12%, rgba(88, 200, 255, .10), transparent 62%),
    radial-gradient(760px 420px at -10% 4%, rgba(61, 220, 151, .10), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #8ff3c8; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
p { margin: 0; }
code { font-family: var(--mono); }

.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(7, 11, 16, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 70px; padding: 10px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--text); font-weight: 800; font-size: 16px; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(61, 220, 151, .18), rgba(88, 200, 255, .14));
  border: 1px solid var(--accent-border); color: var(--accent);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav-link {
  padding: 7px 10px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--accent); background: var(--accent-soft); }
.nav-cta {
  padding: 8px 14px; border-radius: 10px; color: var(--accent-ink); font-weight: 800; font-size: 13px;
  background: linear-gradient(135deg, #2bd391, #1fae9b); box-shadow: 0 4px 14px rgba(61, 220, 151, .16);
}
.nav-cta:hover { color: var(--accent-ink); filter: brightness(1.05); }
.nav-note { margin-left: auto; color: var(--hint); font-size: 11.5px; font-weight: 700; }
.nav-user { display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px; color: var(--muted); font-size: 12.5px; }
.nav-user-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-mini {
  width: 26px; height: 26px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-3); border: 1px solid var(--border); color: var(--accent); font-size: 12px; font-weight: 800; flex: none;
}
.avatar-mini img { width: 100%; height: 100%; object-fit: cover; }
.inline-form { display: inline-flex; align-items: center; gap: 8px; margin: 0; flex-wrap: wrap; }
.link-btn {
  border: 0; background: transparent; color: var(--muted); padding: 6px 4px; cursor: pointer; font-size: 12.5px; font-weight: 600;
}
.link-btn:hover { color: var(--danger); }

.page { padding: 30px 0 70px; min-height: calc(100vh - 200px); }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 7px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); display: inline-block; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.accent { color: var(--accent) !important; }
.hr { border: 0; border-top: 1px dashed var(--border-soft); margin: 18px 0; }
.link { color: var(--accent); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 16px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: 14px; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: transform .12s, border-color .15s, background .15s, filter .15s;
  white-space: nowrap;
}
.btn:hover { color: var(--text); border-color: #354a5b; background: var(--surface-3); }
.btn:active { transform: scale(.98); }
.btn.primary {
  border: 0; color: var(--accent-ink); background: linear-gradient(135deg, #2bd391, #1fae9b);
  box-shadow: 0 6px 18px rgba(45, 211, 145, .22);
}
.btn.primary:hover { color: var(--accent-ink); filter: brightness(1.04); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.block { display: flex; width: 100%; }
.btn.btn-lg { padding: 14px 20px; font-size: 15px; border-radius: 12px; }
.btn.tiny { padding: 5px 9px; font-size: 11.5px; border-radius: 7px; gap: 4px; }
.btn.danger { color: #ffd2d2; background: var(--danger-soft); border-color: var(--danger-border); }
.btn.disabled, .btn:disabled { opacity: .45; pointer-events: none; }
.btn.copy-btn { color: var(--muted); }
.btn.copy-btn.copied { color: var(--accent); border-color: var(--accent-border); }

/* ---------------------------------------------------------------- forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.form.compact { gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); }
.field .optional { color: var(--dim); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; background: #0a1219; border: 1px solid var(--line-input); color: var(--text);
  border-radius: 10px; padding: 11px 12px; font-size: 15px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { font-size: 13px; line-height: 1.6; resize: vertical; min-height: 80px; font-family: var(--mono); }
.field input::placeholder, .field textarea::placeholder { color: #556877; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #2f7a63; box-shadow: 0 0 0 3px rgba(61, 220, 151, .10);
}
.field select {
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7d92a3 50%), linear-gradient(135deg, #7d92a3 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px;
}
.field select option { background: #0f171f; color: var(--text); }
.help { font-size: 11.5px; line-height: 1.55; color: var(--hint); }
.check-row { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.check-row input { accent-color: var(--accent); width: 16px; height: 16px; margin: 2px 0 0; flex: none; }
.check-stack { display: flex; flex-direction: column; gap: 10px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.form-errors {
  background: var(--danger-soft); border: 1px solid var(--danger-border); color: #ffd2d2;
  border-radius: 11px; padding: 10px 13px; font-size: 12.5px; line-height: 1.6;
}
.form-errors p + p { margin-top: 4px; }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.optional { font-size: 11px; }
.static-note { color: var(--hint); font-size: 12px; line-height: 1.6; padding-top: 4px; }

/* ---------------------------------------------------------------- alerts */
.flash-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.alert {
  display: flex; align-items: flex-start; gap: 9px; padding: 11px 14px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 13px;
}
.alert-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 7px; background: var(--blue); flex: none; }
.alert-success { border-color: var(--accent-border); background: var(--accent-soft); }
.alert-success .alert-dot { background: var(--accent); }
.alert-warning { border-color: var(--warn-border); background: var(--warn-soft); color: #ffe6b0; }
.alert-warning .alert-dot { background: var(--warn); }
.alert-error { border-color: var(--danger-border); background: var(--danger-soft); color: #ffd2d2; }
.alert-error .alert-dot { background: var(--danger); }
.alert-info .alert-dot { background: var(--blue); }
.notice {
  border-radius: 11px; padding: 10px 13px; font-size: 12.5px; line-height: 1.65;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
}
.notice-info { border-color: #25485a; background: #0c1d27; color: #a9d9ee; }
.notice-warning { border-color: var(--warn-border); background: var(--warn-soft); color: #ffe6b0; }
.notice + .btn { margin-top: 12px; }

/* ---------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); white-space: nowrap;
}
.badge-ok { color: #8ff3c8; background: var(--accent-soft); border-color: var(--accent-border); }
.badge-warn { color: #ffe6b0; background: var(--warn-soft); border-color: var(--warn-border); }
.badge-accent { color: var(--blue); background: #0e2130; border-color: #285269; }
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px; align-items: center; padding: 42px 0 50px;
}
.hero-copy h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.06; margin: 14px 0 18px; }
.gradient-text {
  background: linear-gradient(100deg, #eafff7 4%, #8df3c8 52%, #6ccfff 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 34em; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; gap: 1px; }
.hero-stat strong { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.hero-stat span { font-size: 11px; color: var(--hint); }
.hero-visual { position: relative; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.hero-glow {
  position: absolute; inset: 12% 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 220, 151, .18), transparent 66%);
  filter: blur(24px); z-index: 0;
}
.ticket {
  position: relative; z-index: 1; width: min(330px, 100%);
  border-radius: 20px; padding: 22px; transform: rotate(-3deg);
  background: linear-gradient(150deg, #15241f, #0e1a20 62%);
  border: 1px solid #2b5143; box-shadow: 0 26px 60px rgba(0, 0, 0, .38);
}
.ticket-top { display: flex; justify-content: space-between; align-items: center; color: #82dcbb; font-size: 10px; letter-spacing: .16em; font-weight: 800; }
.ticket-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.ticket-code { font-family: var(--mono); font-size: 23px; font-weight: 700; color: #c4ffe4; letter-spacing: .04em; margin: 34px 0 30px; }
.ticket-cut { border-top: 1px dashed rgba(61, 220, 151, .35); position: relative; }
.ticket-cut::before, .ticket-cut::after {
  content: ""; position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg);
}
.ticket-cut::before { left: -31px; }
.ticket-cut::after { right: -31px; }
.ticket-bottom { display: flex; justify-content: space-between; color: var(--hint); font-size: 11px; padding-top: 18px; }

/* ---------------------------------------------------------------- sections */
.section { padding: 24px 0 10px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 22px; }
.section-head p { margin-top: 5px; font-size: 12.5px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.category-card {
  display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border);
  transition: border-color .18s, transform .18s, box-shadow .18s; min-width: 0;
}
.category-card:hover { border-color: #315244; transform: translateY(-2px); box-shadow: var(--shadow); }
.category-card.is-empty { opacity: .72; }
.category-top { display: flex; justify-content: space-between; align-items: center; }
.category-index { font-family: var(--mono); font-size: 11px; color: var(--dim); font-weight: 700; letter-spacing: .08em; }
.category-card h3 { font-size: 19px; }
.category-desc { color: var(--muted); font-size: 12.5px; line-height: 1.7; min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.category-meta { display: flex; gap: 18px; padding: 11px 0; border-top: 1px dashed var(--border-soft); border-bottom: 1px dashed var(--border-soft); }
.category-meta div { display: flex; flex-direction: column; gap: 1px; }
.category-meta span { font-size: 10.5px; color: var(--hint); }
.category-meta strong { font-size: 15px; font-weight: 800; }
.category-note { font-size: 11.5px; color: var(--accent); }
.category-actions { margin-top: auto; padding-top: 6px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.step { padding: 20px; border-radius: var(--radius); border: 1px solid var(--border-soft); background: rgba(15, 23, 31, .55); }
.step-num { font-family: var(--mono); font-size: 11px; color: var(--accent); font-weight: 800; letter-spacing: .1em; }
.step h3 { font-size: 15px; margin: 9px 0 5px; }
.step p { font-size: 12px; color: var(--muted); line-height: 1.65; }

/* ---------------------------------------------------------------- page heads */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(28px, 4vw, 38px); margin: 7px 0 6px; }
.page-sub { color: var(--muted); font-size: 13px; max-width: 52em; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 12px; margin-bottom: 16px; }
.breadcrumb a { color: var(--hint); }

/* ---------------------------------------------------------------- panels */
.panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  margin-bottom: 18px; min-width: 0;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { font-size: 16px; }
.panel-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.claim-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 16px; align-items: start; }
.claim-panel { padding: 24px; }
.claim-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.claim-stats div { padding: 12px; border-radius: var(--radius-sm); background: #0b141b; border: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 2px; }
.claim-stats span { font-size: 10.5px; color: var(--hint); }
.claim-stats strong { font-size: 22px; font-weight: 800; }
.rule-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.rule-list li + li { margin-top: 6px; }
.rule-list strong { color: var(--text); }
.rule-note { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border-soft); color: var(--accent); font-size: 12px; }

/* ---------------------------------------------------------------- results */
.result-shell { display: flex; justify-content: center; padding: 30px 0 10px; }
.result-card {
  width: min(620px, 100%); text-align: center; padding: 34px 24px;
  border-radius: 22px; border: 1px solid var(--accent-border);
  background: radial-gradient(500px 240px at 50% 0%, rgba(61, 220, 151, .12), transparent 70%), linear-gradient(180deg, #101c1a, #0c1419);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
}
.success-mark {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  background: rgba(61, 220, 151, .12); border: 1px solid var(--accent-border); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.success-mark svg { width: 28px; height: 28px; }
.result-card h1 { font-size: 28px; margin: 8px 0 6px; }
.result-sub { color: var(--muted); font-size: 12.5px; }
.code-display {
  margin: 24px 0 20px; padding: 18px 14px; border-radius: 14px;
  background: #07110d; border: 1px dashed #2f6a52;
  font-family: var(--mono); font-size: clamp(19px, 5vw, 26px); font-weight: 800; color: #b9ffe0;
  letter-spacing: .04em; word-break: break-all;
}
.result-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.result-note { color: var(--hint); font-size: 11.5px; line-height: 1.7; margin-top: 18px; }
.result-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border-soft); color: var(--dim); font-size: 11px; }

/* ---------------------------------------------------------------- lists */
.claim-list { display: flex; flex-direction: column; gap: 8px; }
.claim-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); min-width: 0;
}
.claim-row:hover { border-color: #315244; }
.claim-main { min-width: 0; }
.claim-cat { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.claim-code { margin-top: 6px; font-family: var(--mono); font-size: 14px; color: #b9ffe0; overflow-wrap: anywhere; }
.claim-actions { display: flex; gap: 6px; flex: none; }
.empty-state { text-align: center; padding: 56px 20px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); background: rgba(15, 23, 31, .4); }
.empty-icon { font-size: 28px; color: var(--dim); margin-bottom: 8px; }
.empty-state h3 { color: var(--text); font-size: 17px; margin-bottom: 6px; }
.empty-state p { font-size: 12.5px; margin-bottom: 16px; }
.empty-mini { color: var(--hint); font-size: 12.5px; padding: 18px 4px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 20px; }
.page-link { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 600; }
.page-link:hover { color: var(--text); background: var(--surface-2); }
.page-link.disabled { opacity: .35; pointer-events: none; }
.page-info { color: var(--dim); font-size: 11.5px; }

/* ---------------------------------------------------------------- auth */
.auth-shell { width: min(560px, 100%); margin: 30px auto 10px; }
.auth-card {
  padding: 28px; border-radius: 22px; border: 1px solid var(--border);
  background: linear-gradient(180deg, #121c25, #0e161d); box-shadow: var(--shadow);
}
.auth-kicker { color: var(--accent); font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.auth-card h1 { font-size: 27px; margin: 8px 0 7px; }
.auth-sub { color: var(--muted); font-size: 12.5px; line-height: 1.7; margin-bottom: 18px; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; font-size: 12px; color: var(--hint); }
.auth-foot { color: var(--hint); font-size: 11.5px; margin-top: 14px; line-height: 1.6; }
.auth-foot.center { text-align: center; }
.auth-details { margin-top: 18px; border-top: 1px dashed var(--border-soft); padding-top: 12px; }
.auth-details summary { color: var(--hint); font-size: 12px; cursor: pointer; }
.auth-details .form { margin-top: 12px; }
.divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; color: var(--dim); font-size: 11px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--border-soft); }
.qq-btn { border-color: #2b4a63; background: #0f2230; color: #bce8ff; }
.qq-btn:hover { color: #e2f7ff; background: #132b3c; }
.qq-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; background: #1b4b6b; color: #bfeaff; font-size: 9px; font-weight: 900; letter-spacing: -.04em; }
.notice-info + .btn { margin-top: 12px; }

/* ---------------------------------------------------------------- account */
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.avatar-large {
  width: 64px; height: 64px; border-radius: 18px; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: var(--accent);
  background: var(--surface-3); border: 1px solid var(--border);
}
.avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.profile-head h2 { font-size: 20px; }
.profile-head p { margin: 2px 0 7px; font-size: 12px; }
.detail-list { display: flex; flex-direction: column; gap: 9px; margin: 0; }
.detail-list div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--border-soft); padding-bottom: 8px; }
.detail-list dt { color: var(--hint); font-size: 11.5px; }
.detail-list dd { margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.detail-list-inline { flex-direction: row; flex-wrap: wrap; gap: 22px; margin-bottom: 16px; }
.detail-list-inline div { flex-direction: column; border-bottom: 0; padding: 0; gap: 1px; }
.detail-list-inline dd { text-align: left; }

/* ---------------------------------------------------------------- admin */
.admin-shell { min-height: 60vh; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-head h1 { font-size: clamp(28px, 4vw, 38px); margin: 7px 0 0; }
.admin-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-head-actions form { display: inline-flex; margin: 0; }
.actions-stack form { display: inline-flex; margin: 0; }
.admin-tabs {
  display: flex; gap: 4px; align-items: center; margin-bottom: 20px; padding: 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  overflow-x: auto; scrollbar-width: thin;
}
.admin-tab { padding: 9px 13px; border-radius: 8px; color: var(--muted); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.admin-tab:hover { color: var(--text); background: var(--surface-2); }
.admin-tab.active { color: var(--accent); background: var(--accent-soft); }
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card {
  padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.stat-card > span { color: var(--hint); font-size: 11px; }
.stat-card strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.stat-card small { color: var(--dim); font-size: 10.5px; }
.stat-grid-4 .stat-card strong { font-size: 19px; }
.admin-two-col { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 16px; align-items: start; }
.admin-two-col-wide { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.mini-list { display: flex; flex-direction: column; gap: 5px; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 9px; border: 1px solid transparent; color: var(--text); }
.mini-row:hover { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.mini-row strong { display: block; font-size: 13px; }
.mini-row small { display: block; color: var(--dim); font-size: 11px; margin-top: 1px; }
.mini-value { color: var(--accent); font-size: 12px; font-weight: 700; white-space: nowrap; }
.batch-row { align-items: center; }
.batch-main { min-width: 0; flex: 1; }
.batch-actions { display: flex; gap: 5px; flex: none; }

.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-hint { display: none; color: var(--dim); font-size: 11px; margin: 0 0 8px; }
.code-mobile-list { display: none; }
.code-mobile-row {
  padding: 11px 12px; margin-bottom: 8px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface);
}
.code-mobile-row:last-child { margin-bottom: 0; }
.code-mobile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.code-mobile-code { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.code-mobile-code code { color: #b9ffe0; font-size: 13px; word-break: break-all; }
.code-mobile-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; color: var(--hint); font-size: 11px; line-height: 1.5; }
.code-mobile-meta .accent { color: var(--accent); }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 640px; }
.data-table th {
  text-align: left; font-size: 10.5px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .06em;
  padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td { padding: 11px 10px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; color: var(--muted); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: rgba(23, 35, 45, .45); }
.data-table strong { color: var(--text); font-weight: 700; }
.table-title { color: var(--text); font-weight: 700; font-size: 13px; }
.actions-col { text-align: right; white-space: nowrap; }
.actions-col .btn { margin-left: 3px; }
.actions-stack { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.actions-stack form { display: inline-flex; margin: 0; }
.code-inline {
  display: inline-block; padding: 2px 6px; border-radius: 6px; border: 1px solid #1e3540; background: #0c1820;
  color: #93ecc6; font-size: 12px; word-break: break-all;
}
.filter-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filter-form input, .filter-form select {
  background: #0a1219; border: 1px solid var(--line-input); color: var(--text); border-radius: 9px;
  padding: 8px 11px; font-size: 13px; outline: none; min-width: 0;
}
.filter-form input[type="search"] { min-width: 200px; flex: 1; max-width: 320px; }
.filter-form select { min-width: 140px; }
.filter-form-wide input[type="search"] { max-width: none; }
.form-panel { max-width: 820px; }
.inline-form input[type="email"], .inline-form input[type="text"] {
  background: #0a1219; border: 1px solid var(--line-input); color: var(--text); border-radius: 9px;
  padding: 9px 11px; font-size: 13px; outline: none; min-width: 0; flex: 1 1 160px;
}
.callback-box {
  display: flex; flex-direction: column; gap: 5px; padding: 11px 13px; margin-bottom: 14px;
  border: 1px dashed var(--border); border-radius: 10px; background: #0b141b;
}
.callback-box span { font-size: 11px; color: var(--hint); }
.callback-box code { font-size: 11.5px; color: #93ecc6; word-break: break-all; }
.file-picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.file-picker input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-picker-btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px;
  border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer;
}
.file-picker-btn:hover { border-color: #315244; background: var(--surface-3); }
.file-picker-name { color: var(--hint); font-size: 11.5px; word-break: break-all; }
.settings-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.settings-nav a { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 11.5px; color: var(--muted); }
.settings-nav a:hover { color: var(--text); border-color: #315244; }

/* ---------------------------------------------------------------- generators */
.generator-tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 16px; }
.gen-tab { padding: 8px 14px; border-radius: 9px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.gen-tab:hover { color: var(--text); background: var(--surface-2); }
.gen-tab.active { color: var(--accent); background: var(--accent-soft); }
.generator-form { max-width: 900px; }
.generator-form .panel { display: flex; flex-direction: column; gap: 14px; }
.generator-form .panel > .panel-head { margin-bottom: 0; }
.generator-form .mode-pane { margin-top: 0; }
.generator-form .check-grid { margin: 0; }
.mode-pane { margin-top: 12px; }
input[type="file"] { color: var(--muted); font-size: 12px; padding: 9px 11px; }
input[type="file"]::file-selector-button {
  margin-right: 10px; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer;
}
input[type="file"]::file-selector-button:hover { border-color: #315244; background: var(--surface-3); }
.generator-submit { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 6px 0 28px; }
.notice + .generator-form { margin-top: 10px; }

/* ---------------------------------------------------------------- error */
.error-shell { display: flex; justify-content: center; padding: 50px 0; }
.error-card { width: min(520px, 100%); text-align: center; padding: 36px 24px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); }
.error-code { font-family: var(--mono); font-size: 64px; font-weight: 800; color: var(--accent); line-height: 1; opacity: .8; }
.error-card h1 { font-size: 24px; margin: 12px 0 8px; }
.error-card p { color: var(--muted); font-size: 13px; }
.error-actions { display: flex; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--border-soft); padding: 24px 0 30px; color: var(--dim); font-size: 11.5px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand { color: var(--muted); font-weight: 700; }
.footer-sep { margin: 0 5px; opacity: .5; }
.footer-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--hint); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 26px; }
  .hero-visual { display: none; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-two-col, .admin-two-col-wide { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 24px); }
  .site-header { position: static; }
  .header-inner { flex-wrap: wrap; gap: 6px 14px; min-height: 0; padding: 12px 0; }
  .main-nav { width: 100%; justify-content: flex-start; gap: 2px; margin-left: 0; }
  .nav-user-name { display: none; }
  .nav-link { padding: 6px 8px; font-size: 12.5px; }
  .page { padding-top: 20px; }
  .hero { padding: 20px 0 30px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-stats { gap: 20px; }
  .steps { grid-template-columns: 1fr; margin-top: 28px; }
  .category-grid { grid-template-columns: 1fr; }
  .claim-layout { grid-template-columns: 1fr; }
  .claim-stats { grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
  .claim-stats div { padding: 10px; }
  .claim-stats strong { font-size: 18px; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .auth-shell { margin-top: 12px; }
  .auth-card { padding: 22px; }
  .account-grid { grid-template-columns: 1fr; }
  .stat-grid, .stat-grid-4 { grid-template-columns: 1fr 1fr; }
  .stat-card strong { font-size: 21px; }
  .claim-row { flex-direction: column; align-items: stretch; }
  .claim-actions { justify-content: flex-end; }
  .data-table { min-width: 560px; }
  .page-head { align-items: flex-start; }
  .admin-head { align-items: flex-start; }
  .admin-tabs { border-radius: 10px; flex-wrap: wrap; overflow: visible; }
  .admin-tab { padding: 8px 10px; font-size: 12px; }
  .table-hint { display: block; }
  .code-mobile-list { display: block; }
  .code-table-desktop { display: none; }
  .responsive-table { min-width: 0; }
  .responsive-table thead { display: none; }
  .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; }
  .responsive-table tr {
    padding: 11px 13px; margin-bottom: 8px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); background: var(--surface);
  }
  .responsive-table tr:last-child { margin-bottom: 0; }
  .responsive-table tr:hover td { background: transparent; }
  .responsive-table td {
    display: block; position: relative; padding: 6px 0 6px 82px;
    border-bottom: 1px dashed var(--border-soft); text-align: right; color: var(--muted);
  }
  .responsive-table td:last-child { border-bottom: 0; padding-bottom: 0; }
  .responsive-table td::before {
    content: attr(data-label); position: absolute; left: 0; top: 6px; width: 68px;
    color: var(--hint); font-size: 11px; font-weight: 600; text-align: left;
  }
  .responsive-table td.cell-title { text-align: left; padding: 0 0 7px; }
  .responsive-table td.cell-title::before { display: none; }
  .responsive-table td.actions-col { text-align: left; padding: 9px 0 0; }
  .responsive-table td.actions-col::before { display: none; }
  .responsive-table td.actions-col .btn { margin: 0 4px 4px 0; }
  .responsive-table td.actions-col .btn + .btn { margin-left: 0; }
  .responsive-table td.actions-col form { display: inline-flex; margin: 0 4px 4px 0; }
  .responsive-table .actions-stack { justify-content: flex-start; }
  .responsive-table td .muted.small { text-align: right; }
  .responsive-table td.cell-title .muted.small { text-align: left; }
  .mini-row.batch-row { flex-direction: column; align-items: stretch; gap: 7px; }
  .batch-row .batch-actions { justify-content: flex-end; }
  .result-card { padding: 26px 16px; }
  .footer-inner { justify-content: center; text-align: center; }
  .detail-list-inline { gap: 14px; }
}
@media (max-width: 420px) {
  .nav-user { display: none; }
  .hero-copy h1 { font-size: 31px; }
  .hero-sub { font-size: 13.5px; }
  .hero-stats { gap: 16px; }
  .hero-stat strong { font-size: 19px; }
  .btn { padding: 10px 13px; font-size: 13px; }
  .btn.btn-lg { padding: 13px 16px; font-size: 14px; }
  .nav-user { padding: 4px 2px; }
  .claim-stats strong { font-size: 16px; }
  .stat-card { padding: 12px; }
  .stat-card strong { font-size: 19px; }
}

/* ---------------------------------------------------------------- guide */
.guide-card { padding: 26px; }
.guide-content { color: var(--muted); font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.guide-content > :first-child { margin-top: 0; }
.guide-content > :last-child { margin-bottom: 0; }
.guide-content h1, .guide-content h2, .guide-content h3, .guide-content h4 { color: var(--text); margin: 26px 0 10px; }
.guide-content h1 { font-size: 26px; }
.guide-content h2 { font-size: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--border-soft); }
.guide-content h3 { font-size: 16px; margin-top: 20px; }
.guide-content h4 { font-size: 14px; }
.guide-content p { margin: 0 0 12px; }
.guide-content ul, .guide-content ol { margin: 0 0 16px; padding-left: 22px; }
.guide-content li + li { margin-top: 6px; }
.guide-content li::marker { color: var(--accent); }
.guide-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.guide-content strong { color: var(--text); }
.guide-content code {
  padding: 2px 6px; border-radius: 6px; background: #0b141b; border: 1px solid var(--border-soft);
  color: #9ceec9; font-family: var(--mono); font-size: .92em;
}
.guide-content pre {
  margin: 14px 0; padding: 14px; overflow-x: auto; border-radius: 12px;
  background: #071017; border: 1px solid var(--border); color: #b9ffe0; font-family: var(--mono); font-size: 12px; line-height: 1.6;
}
.guide-content pre code { padding: 0; border: 0; background: transparent; color: inherit; }
.guide-content blockquote {
  margin: 16px 0; padding: 10px 16px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); color: #b7e9d5; border-radius: 0 10px 10px 0;
}
.guide-content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 12.5px; }
.guide-content th, .guide-content td { padding: 8px 10px; border: 1px solid var(--border); text-align: left; }
.guide-content th { color: var(--text); background: var(--surface-2); }
.guide-content img { max-width: 100%; height: auto; border-radius: 10px; }
.guide-content hr { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }
.guide-lead { color: var(--text); font-size: 15px; line-height: 1.8; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 8px; }
.guide-step {
  padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: #0b141b;
}
.guide-step h3 { margin: 7px 0 4px; font-size: 15px; border: 0; padding: 0; }
.guide-step p { margin: 0; font-size: 12.5px; line-height: 1.7; }
.guide-num { font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--accent); }
.guide-faq {
  margin: 8px 0; border: 1px solid var(--border-soft); border-radius: 10px;
  background: #0b141b; padding: 0 13px;
}
.guide-faq summary { padding: 11px 0; color: var(--text); font-weight: 700; font-size: 13px; cursor: pointer; }
.guide-faq summary:hover { color: var(--accent); }
.guide-faq p { padding: 0 0 12px; margin: 0; font-size: 12.5px; }
.guide-content .notice { margin: 18px 0 0; }
.editor-textarea {
  min-height: 220px; font-family: var(--mono) !important; font-size: 12px !important;
  line-height: 1.65 !important; tab-size: 2;
}
@media (max-width: 760px) {
  .guide-card { padding: 18px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-content h2 { font-size: 18px; }
  .editor-textarea { min-height: 180px; }
}

/* ---------------------------------------------------------------- theme switch */
.theme-switcher { position: relative; display: inline-flex; align-items: center; margin-left: 2px; }
.theme-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 9px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface); color: var(--muted); font: inherit; font-size: 11.5px;
  font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.theme-button:hover { color: var(--text); border-color: var(--accent-border); background: var(--surface-2); }
.theme-icon { color: var(--accent); font-size: 15px; line-height: 1; }
.theme-label { white-space: nowrap; }
.theme-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 80; min-width: 142px;
  padding: 5px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow); display: none;
}
.theme-switcher.is-open .theme-menu { display: block; }
.theme-choice {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 9px;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  font: inherit; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer;
}
.theme-choice:hover { color: var(--text); background: var(--surface-2); }
.theme-choice.active { color: var(--accent); background: var(--accent-soft); }
.theme-choice .check { margin-left: auto; opacity: 0; color: var(--accent); font-weight: 800; }
.theme-choice.active .check { opacity: 1; }
.header-inner.setup .theme-switcher { margin-left: auto; }
@media (max-width: 760px) {
  .header-inner { position: relative; }
  .theme-switcher { position: absolute; top: 12px; right: 0; margin: 0; z-index: 60; }
  .theme-button { width: 32px; height: 32px; padding: 0; border-radius: 50%; }
  .theme-label { display: none; }
}

/* ---------------------------------------------------------------- light theme */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7f4;
  --bg-soft: #edf3ee;
  --surface: #ffffff;
  --surface-2: #f7faf7;
  --surface-3: #edf4ef;
  --border: #d7e2da;
  --border-soft: #e4ece6;
  --line-input: #c9d8cf;
  --text: #17251f;
  --muted: #53685d;
  --dim: #6c8074;
  --hint: #647a6d;
  --accent: #087a56;
  --accent-strong: #066448;
  --accent-ink: #ffffff;
  --accent-soft: #e6f5ee;
  --accent-border: #a9d8c4;
  --blue: #08779e;
  --warn: #8a5c00;
  --warn-soft: #fff5dc;
  --warn-border: #e8d29b;
  --danger: #b23b3b;
  --danger-soft: #fdeeee;
  --danger-border: #e8b9b9;
  --shadow: 0 18px 50px rgba(24, 46, 34, .09);
}
:root[data-theme="dark"] { color-scheme: dark; }

:root[data-theme="light"] body {
  background:
    radial-gradient(900px 460px at 88% -12%, rgba(8, 119, 158, .07), transparent 62%),
    radial-gradient(760px 420px at -10% 4%, rgba(8, 122, 86, .07), transparent 62%),
    var(--bg);
}
:root[data-theme="light"] ::selection { background: rgba(8, 122, 86, .18); color: var(--text); }
:root[data-theme="light"] .site-header {
  background: rgba(248, 251, 248, .9);
  border-bottom-color: var(--border-soft);
}
:root[data-theme="light"] .brand-mark {
  background: linear-gradient(135deg, #e6f5ee, #eef7f2);
  border-color: var(--accent-border);
}
:root[data-theme="light"] .nav-link.active { color: var(--accent); background: var(--accent-soft); }
:root[data-theme="light"] .nav-link:hover { color: var(--text); background: var(--surface-2); }
:root[data-theme="light"] .nav-cta { color: #fff; }
:root[data-theme="light"] .avatar-mini { background: var(--surface-3); border-color: var(--border); }
:root[data-theme="light"] .footer-brand { color: var(--muted); }

:root[data-theme="light"] .hero-sub { color: var(--muted); }
:root[data-theme="light"] .hero-stat span { color: var(--hint); }
:root[data-theme="light"] .gradient-text {
  background: linear-gradient(100deg, #123d2e 4%, #087a56 52%, #08779e 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="light"] .hero-glow {
  background: radial-gradient(circle, rgba(8, 122, 86, .12), transparent 66%);
}
:root[data-theme="light"] .ticket {
  background: linear-gradient(150deg, #f2fbf6, #e9f5ee 62%);
  border-color: #b8ddca;
  box-shadow: 0 26px 60px rgba(24, 46, 34, .13);
}
:root[data-theme="light"] .ticket-top { color: #2c7a5b; }
:root[data-theme="light"] .ticket-code { color: #0b6046; }
:root[data-theme="light"] .ticket-cut { border-color: rgba(8, 122, 86, .3); }
:root[data-theme="light"] .ticket-cut::before,
:root[data-theme="light"] .ticket-cut::after { background: var(--bg); }
:root[data-theme="light"] .ticket-bottom { color: var(--hint); }

:root[data-theme="light"] .btn { background: var(--surface-2); border-color: var(--border); }
:root[data-theme="light"] .btn:hover { border-color: #b9cdc1; background: var(--surface-3); }
:root[data-theme="light"] .btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #0a8a60, #087a56);
  box-shadow: 0 6px 18px rgba(8, 122, 86, .18);
}
:root[data-theme="light"] .btn.danger { color: #8a2f2f; background: var(--danger-soft); border-color: var(--danger-border); }
:root[data-theme="light"] .link:hover { color: var(--accent-strong); }

:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea { background-color: #fff; color: var(--text); border-color: var(--line-input); }
:root[data-theme="light"] .field input::placeholder,
:root[data-theme="light"] .field textarea::placeholder { color: #8a9c91; }
:root[data-theme="light"] .field select {
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, #6c8074 50%), linear-gradient(135deg, #6c8074 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
:root[data-theme="light"] .field select option { background: #fff; color: var(--text); }
:root[data-theme="light"] .field input:focus,
:root[data-theme="light"] .field select:focus,
:root[data-theme="light"] .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(8, 122, 86, .12); }
:root[data-theme="light"] .filter-form input,
:root[data-theme="light"] .filter-form select,
:root[data-theme="light"] .inline-form input[type="email"],
:root[data-theme="light"] .inline-form input[type="text"] { background-color: #fff; color: var(--text); border-color: var(--line-input); }
:root[data-theme="light"] .form-errors { color: #8a2f2f; background: var(--danger-soft); border-color: var(--danger-border); }
:root[data-theme="light"] .help { color: var(--hint); }

:root[data-theme="light"] .alert-warning { color: #6e4a00; }
:root[data-theme="light"] .alert-error { color: #8a2f2f; }
:root[data-theme="light"] .notice-info { border-color: #b9dceb; background: #eaf6fb; color: #245a70; }
:root[data-theme="light"] .notice-warning { color: #6e4a00; }
:root[data-theme="light"] .badge-ok { color: #076348; background: var(--accent-soft); border-color: var(--accent-border); }
:root[data-theme="light"] .badge-warn { color: #765000; background: var(--warn-soft); border-color: var(--warn-border); }
:root[data-theme="light"] .badge-accent { color: #0b6b8c; background: #eaf6fb; border-color: #b9dceb; }
:root[data-theme="light"] .badge { color: var(--muted); background: var(--surface-2); border-color: var(--border); }

:root[data-theme="light"] .category-card:hover { border-color: var(--accent-border); }
:root[data-theme="light"] .step { background: rgba(255, 255, 255, .62); }
:root[data-theme="light"] .empty-state { background: rgba(255, 255, 255, .55); }

:root[data-theme="light"] .claim-stats div { background: #f7faf7; border-color: var(--border-soft); }
:root[data-theme="light"] .claim-code { color: #076348; }
:root[data-theme="light"] .claim-row:hover { border-color: var(--accent-border); }
:root[data-theme="light"] .result-card {
  background: radial-gradient(500px 240px at 50% 0%, rgba(8, 122, 86, .10), transparent 70%), linear-gradient(180deg, #ffffff, #f1f8f3);
  border-color: var(--accent-border);
  box-shadow: 0 24px 60px rgba(24, 46, 34, .12);
}
:root[data-theme="light"] .success-mark { background: var(--accent-soft); border-color: var(--accent-border); }
:root[data-theme="light"] .code-display {
  background: #f0faf5; border-color: var(--accent-border); color: #075c42;
}
:root[data-theme="light"] .result-note { color: var(--hint); }
:root[data-theme="light"] .result-meta { color: var(--dim); border-color: var(--border-soft); }

:root[data-theme="light"] .auth-card {
  background: linear-gradient(180deg, #fff, #f3f9f5);
  border-color: var(--border);
}
:root[data-theme="light"] .auth-sub { color: var(--muted); }
:root[data-theme="light"] .qq-btn { border-color: #b9d6e8; background: #edf7ff; color: #155b7a; }
:root[data-theme="light"] .qq-btn:hover { color: #0d435c; background: #e1f1fb; }
:root[data-theme="light"] .qq-mark { background: #cfe9f7; color: #155b7a; }

:root[data-theme="light"] .admin-tab:hover { color: var(--text); background: var(--surface-2); }
:root[data-theme="light"] .admin-tab.active { color: var(--accent); background: var(--accent-soft); }
:root[data-theme="light"] .data-table tr:hover td { background: rgba(8, 122, 86, .045); }
:root[data-theme="light"] .code-inline { border-color: #c6e3d5; background: #f0faf5; color: #076348; }
:root[data-theme="light"] .code-mobile-code code { color: #076348; }
:root[data-theme="light"] .callback-box { background: #f7faf7; }
:root[data-theme="light"] .callback-box code { color: #076348; }
:root[data-theme="light"] .file-picker-btn:hover { border-color: var(--accent-border); }
:root[data-theme="light"] .settings-nav a:hover { border-color: var(--accent-border); }
:root[data-theme="light"] .batch-row .btn { background: var(--surface); }

:root[data-theme="light"] .guide-step { background: #f7faf7; }
:root[data-theme="light"] .guide-faq { background: #f7faf7; }
:root[data-theme="light"] .guide-content code { background: #f0faf5; border-color: #d2e7db; color: #076348; }
:root[data-theme="light"] .guide-content pre { background: #f3f8f4; border-color: var(--border); color: #184c39; }
:root[data-theme="light"] .guide-content blockquote { color: #1e5c46; }
:root[data-theme="light"] .guide-content th { background: var(--surface-2); }

/* ---------------------------------------------------------------- QQ status */
.qq-status { margin-top: 10px; min-height: 1.2em; }
.qq-status-error { color: var(--danger) !important; }
.qq-btn.is-loading { opacity: .72; pointer-events: none; }
