:root {
  --bg: #eef3f0;
  --bg-soft: #f7f8f5;
  --ink: #17211c;
  --muted: #5d6661;
  --line: rgba(34, 55, 45, .12);
  --card: rgba(255, 255, 255, .9);
  --card-strong: rgba(255, 255, 255, .96);
  --brand: #b84232;
  --brand-2: #e28a54;
  --deep: #14241e;
  --deep-2: #1d2e25;
  --olive: #246b5d;
  --ok: #1f7a64;
  --warn: #a14b22;
  --danger: #b23a22;
  --shadow: 0 24px 60px rgba(28, 48, 38, .12);
}

.admin-login-body {
  min-height: 100vh;
}

.admin-login-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-shell {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  margin: 0 auto;
}

.admin-login-card {
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 30px;
  border: 1px solid rgba(34, 55, 45, .14);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(250, 252, 249, .94)),
    radial-gradient(circle at top right, rgba(36, 107, 93, .12), transparent 34%);
  box-shadow: 0 26px 70px rgba(28, 48, 38, .16);
}

.admin-login-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.admin-login-card-head a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.admin-login-title {
  display: grid;
  gap: 10px;
  margin: 6px 0 8px;
  text-align: center;
}

.admin-login-title .eyebrow {
  color: var(--brand-2);
}

.admin-login-title h1 {
  margin: 0;
  color: var(--deep);
  font-size: 34px;
  line-height: 1.08;
}

.admin-login-title p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-login-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--olive);
  font-weight: 800;
  background: rgba(36, 107, 93, .1);
}

.admin-login-error {
  padding: 12px 14px;
  border: 1px solid rgba(178, 58, 34, .2);
  border-radius: 14px;
  color: var(--danger);
  background: rgba(178, 58, 34, .07);
  font-weight: 700;
}

.admin-login-submit {
  width: 100%;
  min-height: 58px;
  justify-content: center;
}

.admin-login-remember {
  justify-content: flex-start;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-login-submit:disabled {
  cursor: wait;
  opacity: .7;
}

@media (max-width: 560px) {
  .admin-login-card {
    padding: 24px;
  }

  .admin-login-title h1 {
    font-size: 30px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Segoe UI Variable Display", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(184, 66, 50, .16), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(36, 107, 93, .18), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, #fbfcfa 50%, var(--bg-soft) 100%);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.page-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(72px);
  opacity: .42;
  pointer-events: none;
}

.page-glow-left {
  width: 360px;
  height: 360px;
  left: -120px;
  bottom: -120px;
  background: rgba(184, 66, 50, .18);
}

.page-glow-right {
  width: 380px;
  height: 380px;
  top: -80px;
  right: -120px;
  background: rgba(36, 107, 93, .22);
}

.layout {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 30px 26px;
  border-radius: 30px;
  color: #eef9f4;
  background:
    linear-gradient(180deg, rgba(29, 46, 37, .97), rgba(20, 34, 28, .97)),
    linear-gradient(135deg, rgba(255, 255, 255, .04), transparent);
  box-shadow: 0 28px 80px rgba(24, 38, 31, .24);
  overflow: hidden;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .03), transparent 36%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .02) 1px, transparent 1px, transparent 18px);
  pointer-events: none;
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.sidebar-eyebrow {
  color: #f3b18c;
}

.sidebar h1 {
  margin: 14px 0 0;
  font-size: 34px;
  line-height: 1.08;
}

.progress-list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.progress-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .04);
  transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}

.progress-index {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  background: rgba(255, 255, 255, .08);
}

.progress-item h2,
.mini-card h3,
.panel-head h2,
.hero-card h2,
.receipt-card h3 {
  margin: 0;
}

.progress-item h2 {
  font-size: 18px;
}

.progress-item p,
.mini-card p,
.hero-card p,
.receipt-card p {
  margin: 6px 0 0;
  line-height: 1.6;
}

.progress-item p {
  color: rgba(238, 249, 244, .72);
}

.progress-item.is-current {
  border-color: rgba(220, 185, 143, .56);
  background: rgba(220, 185, 143, .12);
}

.progress-item.is-current .progress-index,
.progress-item.is-done .progress-index {
  color: #fff7eb;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.progress-item.is-done {
  border-color: rgba(96, 165, 140, .38);
  background: rgba(82, 138, 118, .14);
}

.progress-item.is-locked {
  opacity: .58;
}

.shortcut-box,
.status-card {
  display: grid;
  gap: 12px;
}

.status-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .08);
}

.status-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.block-status .status-line {
  border-bottom-color: rgba(31, 40, 31, .08);
}

.status-line:last-child {
  border-bottom: none;
}

.status-line span,
.status-line strong {
  min-width: 0;
  word-break: break-word;
}

.main {
  display: grid;
  gap: 18px;
}

.main-toolbar {
  display: flex;
  justify-content: flex-end;
}

.locale-switch {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(26, 48, 37, .08);
  backdrop-filter: blur(12px);
}

.locale-button {
  min-width: 64px;
  min-height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #53615b;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.locale-button.is-active {
  color: #fff7ec;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.hero-card,
.panel,
.notice {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(87, 67, 42, .1);
  box-shadow: 0 24px 60px rgba(80, 56, 27, .12);
}

.hero-card,
.panel {
  background: var(--card);
  backdrop-filter: blur(14px);
}

.hero-card {
  padding: 28px 30px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.hero-card::after,
.panel::after {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 76px;
  font-weight: 900;
  color: rgba(92, 72, 45, .05);
  pointer-events: none;
}

.hero-card::after {
  content: "VIP";
  font-size: 90px;
  top: 20px;
}

.hero-eyebrow {
  color: var(--brand);
}

.hero-card h2 {
  margin-top: 10px;
  font-size: 34px;
}

.hero-card p {
  max-width: 680px;
  color: var(--muted);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(36, 107, 93, .1);
  color: #21483f;
  font-size: 13px;
  font-weight: 800;
}

.notice {
  padding: 16px 20px;
  background: rgba(255, 255, 255, .86);
}

.notice strong {
  display: block;
  margin-bottom: 6px;
}

.notice p {
  margin: 0;
  line-height: 1.6;
  white-space: pre-line;
}

.notice-success {
  background: rgba(70, 129, 110, .14);
  border-color: rgba(70, 129, 110, .22);
}

.notice-error {
  background: rgba(176, 90, 43, .14);
  border-color: rgba(176, 90, 43, .22);
}

.notice-info {
  background: rgba(79, 132, 111, .1);
  border-color: rgba(79, 132, 111, .16);
}

.notice-warn {
  background: rgba(220, 185, 143, .18);
  border-color: rgba(220, 185, 143, .42);
  color: #8a5a14;
}

.panel {
  padding: 28px 30px 30px;
}

.panel-olive {
  background: linear-gradient(135deg, rgba(239, 247, 243, .96), rgba(255, 255, 255, .9));
}

.panel::after {
  content: attr(data-step);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.panel-eyebrow {
  color: var(--olive);
}

.panel-head h2 {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.18;
}

.check-grid,
.prepare-grid,
.submit-grid,
.receipt-grid,
.refresh-tool-grid,
.session-block {
  position: relative;
  z-index: 1;
}

.check-grid {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.prepare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.submit-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.receipt-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.1fr);
  gap: 18px;
}

.refresh-tool-grid {
  display: grid;
  grid-template-columns: minmax(280px, .92fr) minmax(0, 1.08fr);
  gap: 18px;
  margin-top: 18px;
}

.block,
.mini-card,
.receipt-card {
  padding: 22px;
  border-radius: 24px;
  background: var(--card-strong);
  border: 1px solid rgba(34, 55, 45, .08);
}

.block label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
}

.block-tip {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.block-status {
  background: linear-gradient(180deg, rgba(36, 107, 93, .08), rgba(255, 255, 255, .92));
}

.mini-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.mini-card-action {
  justify-content: space-between;
}

.mini-card-hint {
  background: rgba(255, 248, 236, .96);
}

.mini-card ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
  color: #5f4c38;
}

.mini-badge {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--deep);
  color: #fff5e8;
  font-weight: 900;
}

.mini-card-actions {
  display: flex;
  margin-top: auto;
  padding-top: 4px;
}

.prepare-note {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: #5f4c38;
  font-size: 13px;
  line-height: 1.7;
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(34, 55, 45, .18);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

input[type="text"],
input[type="password"] {
  min-height: 56px;
  letter-spacing: .04em;
}

textarea {
  min-height: 230px;
  resize: vertical;
  line-height: 1.65;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
.card-input-shell:focus-within {
  border-color: rgba(184, 66, 50, .42);
  box-shadow: 0 0 0 4px rgba(184, 66, 50, .08);
  transform: translateY(-1px);
}

.card-input-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border-radius: 18px;
  border: 1px solid rgba(34, 55, 45, .18);
  background: #fff;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.card-input-shell input[type="text"] {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.input-prefix {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 16px;
  background: rgba(36, 107, 93, .1);
  color: var(--olive);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  border-right: 1px solid rgba(34, 55, 45, .1);
}

.analysis-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 14px 0 18px;
  color: #5f4c38;
  font-size: 13px;
}

.analysis-bar strong {
  color: var(--olive);
}

.action-row,
.stack-actions,
.btn-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.action-row {
  margin-top: 18px;
}

.stack-actions {
  margin-top: 20px;
}

.action-panel {
  min-height: 210px;
}

.btn,
.text-button {
  appearance: none;
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  text-decoration: none;
}

.btn:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.btn:disabled,
.text-button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
  box-shadow: none;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.btn-primary {
  color: #fff7ec;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 30px rgba(176, 90, 43, .24);
}

.btn-soft {
  color: var(--ink);
  background: #f6e7d0;
}

.btn-ghost {
  color: #f7ead3;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}

.btn-dark {
  color: #fff7ec;
  background: var(--deep);
}

.panel-lock {
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  background: rgba(241, 234, 222, .82);
  backdrop-filter: blur(2px);
  z-index: 3;
  display: none;
  place-items: center;
  color: #735740;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
  padding: 0 18px;
}

.panel.is-locked .panel-lock {
  display: grid;
}

.result-box,
.raw-box {
  margin-top: 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(83, 64, 39, .08);
  background: rgba(255, 255, 255, .82);
}

.result-box {
  padding: 14px 16px;
  color: var(--muted);
  line-height: 1.65;
}

.result-box.success {
  color: var(--ok);
  background: rgba(70, 129, 110, .12);
}

.result-box.error {
  color: var(--danger);
  background: rgba(184, 66, 50, .1);
}

.raw-box-head {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 900;
  color: #705b44;
  border-bottom: 1px solid rgba(83, 64, 39, .08);
}

.raw-box pre {
  max-height: 360px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  color: #24322b;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.subscription-result {
  margin-top: 22px;
  padding: 28px;
  border-radius: 24px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(245, 249, 247, .92));
  border: 1px solid rgba(34, 55, 45, .08);
  box-shadow: 0 18px 44px rgba(34, 55, 45, .08);
}

.subscription-result-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-align: left;
}

.subscription-result-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: var(--olive);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(36, 107, 93, .18);
  grid-row: span 2;
}

.subscription-result h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.subscription-result p {
  width: 100%;
  margin: 0;
  color: var(--muted);
  text-align: left;
  font-size: 14px;
  line-height: 1.7;
}

.subscription-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(34, 55, 45, .08);
}

.subscription-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.subscription-table th,
.subscription-table td {
  padding: 18px;
  text-align: left;
  border-bottom: 1px solid rgba(34, 55, 45, .08);
  white-space: nowrap;
}

.subscription-table th {
  color: #705b44;
  font-size: 14px;
  font-weight: 900;
  background: rgba(248, 244, 236, .88);
}

.subscription-table tbody tr:last-child td {
  border-bottom: none;
}

.subscription-table td {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.subscription-account-badge {
  display: inline-flex;
  max-width: 360px;
  min-height: 42px;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(36, 107, 93, .08);
  color: #1f342b;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subscription-plan-badge {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--olive);
  background: rgba(36, 107, 93, .1);
  border: 1px solid rgba(36, 107, 93, .16);
  font-size: 14px;
}

.btn-subscription-close {
  width: 100%;
  margin-top: 28px;
  min-height: 52px;
  justify-content: center;
  color: var(--olive);
  background: rgba(36, 107, 93, .08);
  border: 1px solid rgba(36, 107, 93, .18);
  box-shadow: none;
}

.receipt-card-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.refresh-guide-card {
  background: linear-gradient(180deg, rgba(250, 244, 232, .96), rgba(255, 255, 255, .94));
}

.refresh-guide-card h3 {
  margin: 6px 0 0;
  font-size: 22px;
  line-height: 1.35;
}

.refresh-section-copy {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.refresh-section-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #5f4c38;
  line-height: 1.8;
}

.refresh-form-block {
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(245, 249, 247, .92));
}

.refresh-form-label {
  margin-top: 18px;
}

.refresh-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tone-idle {
  background: linear-gradient(180deg, rgba(79, 91, 115, .1), rgba(255, 255, 255, .92));
}

.tone-ok {
  background: linear-gradient(180deg, rgba(70, 129, 110, .16), rgba(255, 255, 255, .9));
}

.tone-warn {
  background: linear-gradient(180deg, rgba(220, 185, 143, .28), rgba(255, 255, 255, .92));
}

.tone-danger {
  background: linear-gradient(180deg, rgba(176, 90, 43, .16), rgba(255, 255, 255, .92));
}

.receipt-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.receipt-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(83, 64, 39, .08);
}

.receipt-list div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.receipt-list dt {
  color: #705b44;
  font-size: 13px;
}

.receipt-list dd {
  margin: 8px 0 0;
  font-weight: 800;
  line-height: 1.55;
  word-break: break-word;
}

.receipt-empty {
  padding: 40px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .66);
  border: 1px dashed rgba(108, 84, 55, .24);
  color: #6d5b48;
  text-align: center;
}

.flow-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 28, 23, .42);
  backdrop-filter: blur(6px);
}

.flow-modal-card {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 80px rgba(15, 28, 23, .28);
}

.flow-modal-content h2 {
  margin: 8px 0;
  font-size: 24px;
  line-height: 1.2;
}

.flow-modal-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.flow-modal-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(36, 107, 93, .12);
}

.flow-modal-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 3px solid rgba(36, 107, 93, .24);
  border-top-color: var(--olive);
  animation: spin .9s linear infinite;
}

.flow-modal-icon-alert {
  background: rgba(184, 66, 50, .12);
}

.flow-modal-icon-alert::before {
  content: "!";
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: none;
  color: var(--danger);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  animation: none;
}

.alert-modal {
  z-index: 90;
}

.alert-modal-card {
  grid-template-columns: 58px minmax(0, 1fr);
}

.alert-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.flow-progress {
  grid-column: 1 / -1;
  height: 8px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(36, 107, 93, .12);
}

.flow-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--olive), var(--brand-2));
  transform-origin: left center;
  animation: flow-progress 16s linear infinite;
}

.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 40px));
}

.toast {
  padding: 13px 15px;
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.5;
}

.toast.success {
  color: var(--ok);
}

.toast.error {
  color: var(--danger);
}

.toast.warn {
  color: var(--warn);
}

.flow-modal.is-locked .gpt-result-modal-card {
  cursor: default;
}

.flow-modal.is-locked #resultCloseButton {
  min-width: 150px;
}

#resultCloseButton:disabled,
#resultCloseButton[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Query page */
.dealer-shell {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.dealer-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.brand-mark {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--deep);
  color: #f7fff9;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
}

.dealer-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.dealer-hero {
  padding: 28px 30px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-radius: 30px;
  border: 1px solid rgba(87, 67, 42, .1);
  color: #eef9f4;
  background:
    linear-gradient(180deg, rgba(29, 46, 37, .97), rgba(20, 34, 28, .97)),
    linear-gradient(135deg, rgba(255, 255, 255, .04), transparent);
  box-shadow: 0 28px 80px rgba(24, 38, 31, .24);
}

.dealer-hero h1 {
  margin: 10px 0 0;
  font-size: 34px;
  line-height: 1.08;
}

.dealer-hero-copy {
  max-width: 620px;
  margin: 10px 0 0;
  color: rgba(238, 249, 244, .78);
  line-height: 1.6;
}

.dealer-link {
  text-decoration: none;
}

.dealer-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.dealer-pills span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #f7fff9;
  font-size: 13px;
  font-weight: 800;
}

.query-grid {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
}

.result-list {
  display: grid;
  gap: 16px;
}

.query-table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid rgba(34, 55, 45, .08);
  background: rgba(255, 255, 255, .92);
}

.query-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  table-layout: fixed;
}

.query-table th,
.query-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(34, 55, 45, .08);
  vertical-align: middle;
}

.query-table th {
  color: #705b44;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  background: rgba(248, 244, 236, .88);
}

.query-table tbody tr:last-child td {
  border-bottom: none;
}

.query-table td {
  color: var(--ink);
  font-size: 14px;
}

.query-table th:nth-child(1),
.query-table td:nth-child(1) {
  width: 72px;
}

.query-table th:nth-child(3),
.query-table td:nth-child(3) {
  width: 126px;
}

.query-table th:nth-child(4),
.query-table td:nth-child(4) {
  width: 160px;
  white-space: nowrap;
}

.query-table th:nth-child(5),
.query-table td:nth-child(5) {
  width: 180px;
}

.query-table-code {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
  padding-right: 12px;
}

.query-result-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(34, 55, 45, .08);
}

.query-result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.query-code {
  font-weight: 900;
  word-break: break-word;
}

.status-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-unused {
  color: #1d5c50;
  background: rgba(36, 107, 93, .12);
}

.status-used {
  color: #9c372b;
  background: rgba(184, 66, 50, .12);
}

.status-unknown {
  color: #7b5b2a;
  background: rgba(220, 185, 143, .34);
}

.query-result-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.query-result-body strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
}

.dls-inline-actions {
  margin-top: 0;
}

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

.dls-grid-two {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 18px;
}

.dls-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.dls-checkbox-item {
  margin-top: 18px;
}

.simple-recharge-shell {
  max-width: 1280px;
}

.simple-hero {
  align-items: flex-start;
}

.simple-platform-switch {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.simple-page-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.simple-page-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(34, 55, 45, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.simple-page-link:hover {
  transform: translateY(-1px);
}

.simple-page-link.is-active {
  color: #fff7ec;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 30px rgba(176, 90, 43, .2);
}

.simple-platform-tab {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(34, 55, 45, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.simple-platform-tab:hover {
  transform: translateY(-1px);
}

.simple-platform-tab.is-active {
  color: #fff7ec;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 30px rgba(176, 90, 43, .2);
}

.simple-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr);
  gap: 22px;
  align-items: start;
}

.simple-layout-gpt {
  grid-template-columns: minmax(320px, .92fr) minmax(0, 1.08fr);
}

.gpt-recharge-stage {
  display: grid;
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.gpt-stage-sidebar {
  position: sticky;
  top: 24px;
  align-self: stretch;
  display: grid;
  gap: 18px;
  padding: 26px 22px;
  border-radius: 30px;
  color: #eef9f4;
  background:
    linear-gradient(180deg, rgba(29, 46, 37, .98), rgba(20, 34, 28, .98)),
    linear-gradient(135deg, rgba(255, 255, 255, .04), transparent);
  box-shadow: 0 28px 80px rgba(24, 38, 31, .24);
  overflow: hidden;
}

.gpt-stage-sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .03), transparent 36%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .02) 1px, transparent 1px, transparent 18px);
  pointer-events: none;
}

.gpt-stage-sidebar > * {
  position: relative;
  z-index: 1;
}

.gpt-stage-sidebar-top {
  display: grid;
  gap: 10px;
}

.gpt-stage-sidebar-top h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.08;
}

.gpt-stage-sidebar-top p:not(.eyebrow) {
  margin: 0;
  color: rgba(238, 249, 244, .74);
  line-height: 1.7;
}

.gpt-stage-sidebar .simple-page-nav {
  margin-bottom: 0;
}

.gpt-stage-sidebar .simple-page-link {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .1);
  color: rgba(238, 249, 244, .82);
}

.gpt-stage-sidebar .simple-page-link.is-active {
  color: #fff7ec;
}

.gpt-guide-list {
  gap: 12px;
}

.gpt-guide-list .simple-guide-item {
  padding: 16px;
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .05);
}

.gpt-guide-list .simple-guide-item h3 {
  color: #f7fff9;
}

.gpt-guide-list .simple-guide-item p {
  color: rgba(238, 249, 244, .72);
}

.gpt-guide-list .simple-guide-action {
  background: rgba(255, 255, 255, .12);
  color: #fff7ec;
}

.simple-guide-action-strong {
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 14px 24px rgba(8, 18, 14, .18);
}

.gpt-stage-main {
  min-width: 0;
  display: grid;
}

.gpt-stage-main-inner {
  display: grid;
  gap: 18px;
  min-height: 100%;
}

.gpt-form-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px 30px 28px;
}

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

.gpt-form-field {
  display: grid;
  gap: 10px;
}

.dynamic-form-empty,
.dynamic-form-ready {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.dynamic-form-wrap {
  display: grid;
  gap: 10px;
}

.dynamic-channel-label,
.dynamic-form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.dynamic-channel-label {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(36, 107, 93, .1);
  color: #1f6f5d;
  font-weight: 800;
}

.dynamic-product-summary {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(36, 107, 93, .18);
  background: rgba(36, 107, 93, .08);
}

.dynamic-product-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dynamic-product-summary strong {
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.dynamic-form-wrap label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.dynamic-form-wrap input,
.dynamic-form-wrap textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.dynamic-form-wrap textarea {
  resize: vertical;
}

.dynamic-form-wrap input:focus,
.dynamic-form-wrap textarea:focus {
  border-color: rgba(36, 107, 93, .55);
  box-shadow: 0 0 0 4px rgba(36, 107, 93, .12);
}

.dynamic-product-link {
  color: #1f6f5d;
  font-weight: 800;
}

.gpt-credential-warning {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(161, 75, 34, .24);
  color: #8a451d;
  background: linear-gradient(135deg, rgba(220, 185, 143, .24), rgba(255, 255, 255, .9));
  font-size: 13px;
  line-height: 1.6;
}

.gpt-credential-warning strong {
  color: var(--warn);
  font-size: 13px;
  font-weight: 900;
}

.gpt-form-actions {
  margin-top: 22px;
}

.gpt-result-modal-card {
  width: min(760px, 100%);
  grid-template-columns: 58px minmax(0, 1fr);
}

.gpt-result-modal-meta,
.gpt-result-modal-body {
  grid-column: 1 / -1;
}

.gpt-result-modal-meta {
  display: grid;
  gap: 0;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(247, 248, 245, .92);
  border: 1px solid rgba(34, 55, 45, .08);
}

.gpt-result-modal-body {
  margin-top: 2px;
}

.gpt-result-icon-ok {
  background: rgba(70, 129, 110, .12);
}

.gpt-result-icon-ok::before {
  content: "✓";
  width: auto;
  height: auto;
  border: none;
  color: var(--ok);
  font-size: 24px;
  font-weight: 900;
  animation: none;
}

.gpt-result-icon-warn {
  background: rgba(220, 185, 143, .18);
}

.gpt-result-icon-warn::before {
  content: "…";
  width: auto;
  height: auto;
  border: none;
  color: var(--warn);
  font-size: 28px;
  font-weight: 900;
  animation: none;
}

.simple-main-column,
.simple-side-column {
  display: grid;
  gap: 18px;
}

.simple-recharge-result-block {
  margin-top: 18px;
}

.simple-guide-card,
.simple-form-card,
.simple-status-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(245, 249, 247, .92));
}

.simple-card-head {
  margin-bottom: 18px;
}

.simple-guide-list {
  display: grid;
  gap: 14px;
}

.simple-guide-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(34, 55, 45, .08);
  background: rgba(255, 255, 255, .82);
}

.simple-guide-item span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
}

.simple-guide-item h3 {
  margin: 0;
  font-size: 16px;
}

.simple-guide-item p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.simple-guide-item-blue span {
  background: linear-gradient(135deg, #3668d8, #5f8bff);
}

.simple-guide-item-green span {
  background: linear-gradient(135deg, #1f7a64, #35a17f);
}

.simple-guide-item-emerald span {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.simple-guide-item-amber span {
  background: linear-gradient(135deg, #b55a2a, #e19a3f);
}

.simple-guide-action-row {
  display: flex;
  margin-top: 12px;
}

.simple-guide-action {
  min-height: 40px;
  padding: 0 16px;
}

.simple-analysis-bar {
  min-height: 20px;
}

.cards-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(300px, .95fr);
  gap: 18px;
}

.cards-option-grid,
.cards-toolbar {
  display: grid;
  gap: 14px;
}

.cards-option-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

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

.option-field span {
  color: #705b44;
  font-size: 13px;
  font-weight: 800;
}

select,
input[type="number"] {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(34, 55, 45, .18);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

select:focus,
input[type="number"]:focus {
  border-color: rgba(184, 66, 50, .42);
  box-shadow: 0 0 0 4px rgba(184, 66, 50, .08);
  transform: translateY(-1px);
}

.checkbox-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.checkbox-item {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(34, 55, 45, .1);
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.checkbox-item input {
  accent-color: var(--brand);
}

.cards-top-space {
  margin-top: 18px;
}

.cards-helper-text {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.cards-legacy-toggle {
  margin-top: 14px;
}

.cards-summary,
.cards-stats {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.cards-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cards-summary article,
.cards-stats article {
  min-height: 84px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(36, 107, 93, .08), rgba(255, 255, 255, .92));
  border: 1px solid rgba(34, 55, 45, .08);
}

.cards-summary span,
.cards-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cards-summary strong,
.cards-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
}

.cards-toolbar {
  grid-template-columns: minmax(280px, 1fr) repeat(5, minmax(130px, 170px)) auto;
  align-items: end;
}

.cards-toolbar-field {
  min-width: 0;
}

.cards-toolbar-field textarea {
  min-height: 92px;
  resize: vertical;
}

.cards-toolbar-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.cards-regenerate-rule {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(34, 55, 45, .08);
  background: linear-gradient(180deg, rgba(36, 107, 93, .07), rgba(255, 255, 255, .88));
}

.cards-regenerate-rule-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.cards-regenerate-rule-head h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.cards-regenerate-rule-head p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
  text-align: right;
}

.cards-regenerate-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.cards-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cards-select-all-filtered {
  min-width: 280px;
}

.cards-selected-count {
  color: #705b44;
  font-size: 13px;
  font-weight: 900;
}

.cards-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(31, 40, 32, .42);
  backdrop-filter: blur(8px);
}

.cards-modal-card {
  width: min(1080px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(34, 55, 45, .12);
  background: linear-gradient(180deg, rgba(255, 252, 244, .98), rgba(250, 246, 235, .96));
  box-shadow: 0 28px 90px rgba(33, 36, 29, .32);
}

.cards-modal-head,
.cards-modal-rule {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.cards-modal-head h2 {
  margin: 2px 0 8px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.1;
}

.cards-modal-head p,
.cards-modal-rule p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.cards-modal-rule {
  align-items: end;
  margin-top: 18px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(34, 55, 45, .08);
}

.cards-modal-rule .option-field {
  min-width: min(300px, 100%);
}

.cards-modal-rule p {
  max-width: 620px;
  text-align: right;
}

.cards-modal-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  color: #705b44;
  background: rgba(225, 154, 63, .12);
  border: 1px solid rgba(225, 154, 63, .22);
  font-size: 13px;
  font-weight: 800;
}

.cards-modal-status.success {
  color: #1f6d45;
  background: rgba(63, 143, 91, .12);
  border-color: rgba(63, 143, 91, .22);
}

.cards-modal-table-wrap {
  max-height: 300px;
}

.cards-modal-output {
  margin-top: 14px;
  min-height: 120px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.cards-modal-actions {
  justify-content: flex-end;
}

.cards-import-result {
  margin-top: 16px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(34, 55, 45, .08);
  background: linear-gradient(180deg, rgba(36, 107, 93, .06), rgba(255, 255, 255, .88));
}

.cards-import-result-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.cards-import-result-head h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.cards-import-result-table-wrap {
  max-height: 260px;
}

.cards-table-wrap {
  margin-top: 18px;
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(34, 55, 45, .08);
  background: rgba(255, 255, 255, .9);
}

.cards-preview-table-wrap {
  margin-top: 16px;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(34, 55, 45, .08);
  background: rgba(255, 255, 255, .88);
}

.cards-preview-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.cards-preview-table th,
.cards-preview-table td {
  padding: 11px 12px;
  border-top: 1px solid rgba(34, 55, 45, .08);
  text-align: left;
  font-size: 12px;
  line-height: 1.45;
  vertical-align: top;
}

.cards-preview-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  border-top: 0;
  color: #705b44;
  font-weight: 900;
  background: rgba(247, 248, 245, .98);
  white-space: nowrap;
}

.cards-preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 0 6px 6px 0;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.cards-preview-badge.ok {
  color: #1f6d45;
  background: rgba(63, 143, 91, .12);
  border: 1px solid rgba(63, 143, 91, .18);
}

.cards-preview-badge.warn {
  color: #9a4c1c;
  background: rgba(225, 154, 63, .16);
  border: 1px solid rgba(225, 154, 63, .24);
}

.cards-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

.cards-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 16px;
  text-align: left;
  color: #705b44;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  background: rgba(247, 248, 245, .98);
  border-bottom: 1px solid rgba(34, 55, 45, .08);
  white-space: nowrap;
}

.cards-table tbody td {
  padding: 14px 16px;
  vertical-align: top;
  border-top: 1px solid rgba(34, 55, 45, .08);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.cards-table tbody tr:first-child td {
  border-top: none;
}

.cards-select-column {
  width: 46px;
  min-width: 46px;
  text-align: center !important;
}

.cards-select-column input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.cards-pagination {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(120px, 150px) minmax(110px, 140px) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.cards-page-info {
  margin: 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  color: #705b44;
  font-size: 14px;
  font-weight: 900;
}

.cards-page-size,
.cards-page-jump {
  min-width: 0;
}

.cards-pagination-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.cards-table-empty {
  padding: 34px 20px !important;
  color: #6d5b48 !important;
  text-align: center;
}

.cards-table-cell-code {
  font-weight: 900;
  word-break: break-word;
}

.cards-table-cell-muted,
.cards-table-cell-note {
  color: var(--muted) !important;
}

.cards-table-cell-note {
  min-width: 200px;
  word-break: break-word;
}

.cards-table-cell-actions {
  min-width: 260px;
}

.cards-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-outline {
  color: var(--olive);
  background: rgba(36, 107, 93, .08);
  border: 1px solid rgba(36, 107, 93, .16);
}

/* Admin log viewer */
.logs-shell {
  width: min(1500px, calc(100% - 40px));
}

.logs-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(130px, 160px) minmax(150px, 180px) minmax(110px, 140px) auto;
  gap: 14px;
  align-items: end;
}

.logs-toolbar-field textarea {
  min-height: 78px;
  resize: vertical;
}

.logs-toolbar-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.logs-table {
  min-width: 1380px;
}

.logs-row-selected td {
  background: rgba(36, 107, 93, .08);
}

.logs-detail-panel {
  margin-top: 18px;
}

.logs-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.logs-detail-item {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(34, 55, 45, .08);
}

.logs-detail-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.logs-detail-item strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.logs-raw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.logs-raw-grid .raw-box {
  margin-top: 0;
}

.logs-raw-grid pre {
  max-height: 460px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes flow-progress {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 880px) {
  .hero-card,
  .prepare-grid,
  .submit-grid,
  .receipt-grid,
  .refresh-tool-grid,
  .query-grid,
  .dls-stats-grid,
  .dls-grid-two,
  .dls-inline-grid,
  .simple-layout,
  .gpt-recharge-stage,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .dealer-hero,
  .dealer-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .dealer-nav-actions,
  .dealer-pills,
  .hero-pills {
    width: 100%;
    justify-content: flex-start;
  }

  .gpt-stage-sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 640px) {
  .layout,
  .dealer-shell {
    width: min(100% - 20px, 100%);
    padding-top: 16px;
  }

  .sidebar,
  .hero-card,
  .dealer-hero,
  .panel {
    border-radius: 24px;
  }

  .sidebar,
  .hero-card,
  .dealer-hero,
  .panel,
  .notice {
    padding-left: 18px;
    padding-right: 18px;
  }

  .sidebar {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .locale-switch,
  .btn {
    width: 100%;
  }

  .locale-button {
    flex: 1;
  }

  .dealer-nav-actions,
  .stack-actions,
  .action-row,
  .refresh-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dealer-link,
  .btn {
    justify-content: center;
  }

  .flow-modal-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .cards-option-grid,
  .cards-summary,
  .cards-stats,
  .cards-toolbar,
  .cards-regenerate-options,
  .cards-pagination,
  .logs-toolbar,
  .logs-detail-grid,
  .logs-raw-grid {
    grid-template-columns: 1fr;
  }

  .cards-regenerate-rule-head {
    display: grid;
  }

  .cards-regenerate-rule-head p:last-child {
    text-align: left;
  }

  .cards-modal-head,
  .cards-modal-rule,
  .cards-import-result-head {
    display: grid;
  }

  .cards-modal-rule p {
    text-align: left;
  }

  .hero-card h2,
  .dealer-hero h1,
  .panel-head h2 {
    font-size: 24px;
  }

  .sidebar h1 {
    font-size: 30px;
  }

  .block,
  .mini-card,
  .receipt-card {
    padding: 18px;
  }

  .panel-lock {
    inset: 14px;
  }

  .query-result-body {
    grid-template-columns: 1fr;
  }
}

/* GPT page extras */
.gpt-stock-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
  min-height: 26px;
}

.gpt-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(36, 107, 93, .08);
  color: var(--olive);
  border: 1px solid rgba(36, 107, 93, .14);
}

.gpt-stock-pill.is-loading {
  background: rgba(108, 84, 55, .08);
  color: #705b44;
  border-color: rgba(108, 84, 55, .14);
}

.gpt-stock-pill.is-warn {
  background: rgba(220, 185, 143, .22);
  color: #8a5a14;
  border-color: rgba(220, 185, 143, .42);
}

.gpt-stock-pill.is-empty {
  background: rgba(184, 66, 50, .1);
  color: var(--danger);
  border-color: rgba(184, 66, 50, .2);
}

.simple-analysis-bar.tone-ok {
  color: var(--ok);
}

.simple-analysis-bar.tone-warn {
  color: var(--warn);
}

.simple-analysis-bar.tone-danger {
  color: var(--danger);
}

.gpt-confirm-modal-meta .status-line strong[data-flag="ok"] {
  color: var(--ok);
}

.gpt-confirm-modal-meta .status-line strong[data-flag="warn"] {
  color: var(--warn);
}

.gpt-confirm-modal-meta .status-line strong[data-flag="danger"] {
  color: var(--danger);
}

.btn-danger-strong {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-danger-strong:hover {
  filter: brightness(1.08);
}

/* GPT2 unified channel */
.gpt2-shell {
  max-width: 1240px;
}

.gpt2-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.gpt2-side {
  display: grid;
  gap: 12px;
}

.gpt2-step {
  min-height: 92px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(34, 55, 45, .08);
  background: rgba(255, 255, 255, .78);
  color: var(--muted);
}

.gpt2-step span {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(36, 107, 93, .1);
  color: var(--olive);
  font-weight: 900;
}

.gpt2-step b {
  display: block;
  color: var(--ink);
}

.gpt2-step p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.gpt2-step.is-active {
  border-color: rgba(36, 107, 93, .3);
  box-shadow: 0 18px 40px rgba(36, 107, 93, .12);
}

.gpt2-step.is-done span {
  background: rgba(70, 129, 110, .16);
  color: var(--ok);
}

.gpt2-card {
  min-width: 0;
}

.gpt2-stage {
  align-items: stretch;
}

.gpt-stock-strip.gpt2-stock-strip {
  justify-content: space-between;
  margin-top: 0;
}

.gpt2-stock-strip .gpt-stock-strip-bar {
  justify-content: flex-end;
}

.gpt2-stock-strip .gpt-stock-pill {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.gpt2-product-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(34, 55, 45, .08);
  background: rgba(255, 255, 255, .72);
}

.gpt-form-grid .gpt2-product-card,
.gpt-form-grid .gpt2-target-panel {
  min-width: 0;
}

.gpt2-product-card b {
  display: block;
  color: var(--ink);
}

.gpt2-product-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.gpt2-target-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.gpt2-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gpt2-subscription {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(34, 55, 45, .08);
  background: rgba(255, 255, 255, .82);
}

.gpt2-subscription-head {
  margin-bottom: 14px;
}

.gpt2-subscription-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

@media (max-width: 920px) {
  .gpt2-stock-strip .gpt-stock-strip-bar {
    justify-content: flex-start;
  }
}

.gpt-repeat-confirm {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(220, 185, 143, .14);
  border: 1px solid rgba(220, 185, 143, .35);
}

.gpt-repeat-confirm-copy {
  color: #8a5a14;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 12px;
  white-space: pre-line;
}

.gpt-repeat-confirm-actions {
  margin-top: 0;
}

.result-box.warn {
  color: var(--warn);
  background: rgba(220, 185, 143, .18);
}

button[aria-disabled="true"] {
  pointer-events: none;
}

/* GPT stock strip — prominent top placement */
.gpt-stock-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 6px 0 22px;
  padding: 16px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(36, 107, 93, .08), rgba(36, 107, 93, .03));
  border: 1px solid rgba(36, 107, 93, .18);
  box-shadow: 0 6px 18px -12px rgba(36, 107, 93, .35);
}

.gpt-stock-strip-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
  min-width: 120px;
}

.gpt-stock-strip-header .eyebrow {
  font-size: 11px;
  margin: 0;
  color: var(--olive);
  letter-spacing: .12em;
  font-weight: 700;
  text-transform: uppercase;
}

.gpt-stock-strip-header h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--olive);
}

.gpt-stock-strip-bar {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 36px;
  align-items: center;
}

.gpt-stock-strip-bar .gpt-stock-pill {
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
}

@media (max-width: 720px) {
  .gpt-stock-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
  }
  .gpt-stock-strip-header {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }
  .gpt-stock-strip-header h2 {
    font-size: 17px;
  }

  .recharge-stock-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .recharge-stock-hero-value {
    justify-content: flex-start;
  }

  .recharge-stock-hero-value b {
    font-size: 34px;
  }
}

/* Confirm-overlay warnings list */
.gpt-confirm-warnings {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(220, 185, 143, .16);
  border: 1px solid rgba(220, 185, 143, .42);
}

.gpt-confirm-warnings-title {
  margin: 0 0 6px;
  color: #8a5a14;
  font-weight: 700;
  font-size: 13px;
}

.gpt-confirm-warnings ul {
  margin: 0;
  padding-left: 20px;
  color: #8a5a14;
  font-size: 13px;
  line-height: 1.6;
}

.gpt-confirm-warnings li + li {
  margin-top: 2px;
}

.force-recharge-option {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(185, 28, 28, .2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(254, 242, 242, .95), rgba(255, 247, 237, .92));
  color: #7f1d1d;
  cursor: pointer;
}

.force-recharge-option[hidden] {
  display: none !important;
}

.force-recharge-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #dc2626;
  flex: 0 0 auto;
}

.force-recharge-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.force-recharge-copy strong {
  font-size: 13px;
  line-height: 1.2;
}

.force-recharge-copy em {
  font-style: normal;
  color: #991b1b;
  font-size: 12px;
  line-height: 1.55;
}

/* Recharge user-facing card pattern (mirrors 6661231.xyz style) */
.recharge-shell {
  width: min(680px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.recharge-stock-hero {
  width: min(680px, 100%);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid rgba(36, 107, 93, .2);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(36, 107, 93, .12), rgba(36, 107, 93, .04)),
    rgba(255, 255, 255, .9);
  box-shadow: 0 18px 42px -28px rgba(24, 38, 31, .35);
}

.recharge-stock-hero-copy {
  display: grid;
  gap: 4px;
}

.recharge-stock-hero-copy .eyebrow {
  color: var(--olive);
  letter-spacing: .12em;
}

.recharge-stock-hero-copy h2 {
  margin: 0;
  color: var(--deep);
  font-size: 20px;
  line-height: 1.2;
}

.recharge-stock-hero-value {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.recharge-stock-hero-value b {
  color: var(--deep);
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.recharge-stock-hero-value .recharge-stock-sku {
  font-size: 13px;
  font-weight: 800;
  color: var(--olive);
}

.recharge-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.recharge-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 18px;
  background: var(--card-strong);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px -14px rgba(28, 48, 38, .35);
}

.recharge-trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(36, 107, 93, .1);
  flex: 0 0 auto;
}

.recharge-trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.recharge-trust-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--deep);
}

.recharge-trust-sub {
  font-size: 12px;
  color: var(--muted);
}

.recharge-card {
  padding: 26px 28px 28px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(250, 252, 249, .94)),
    radial-gradient(circle at top right, rgba(36, 107, 93, .12), transparent 40%);
  border: 1px solid var(--line);
  box-shadow: 0 26px 60px -28px rgba(28, 48, 38, .35);
}

.recharge-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.recharge-card-head h2 {
  margin: 0;
  font-size: 22px;
  color: var(--deep);
}

.recharge-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.recharge-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.recharge-field input,
.recharge-field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.recharge-field input:focus,
.recharge-field textarea:focus {
  border-color: rgba(36, 107, 93, .55);
  box-shadow: 0 0 0 4px rgba(36, 107, 93, .12);
}

.recharge-stock-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.recharge-stock-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #b8bcb6;
  flex: 0 0 auto;
}

.recharge-stock-dot.is-ok {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(31, 122, 100, .18);
}

.recharge-stock-dot.is-empty {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(178, 58, 34, .18);
}

.recharge-stock-dot.is-warn {
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(161, 75, 34, .18);
}

.recharge-stock-line b {
  color: var(--deep);
  font-weight: 800;
}

.recharge-stock-sku {
  color: var(--muted);
  font-size: 12px;
}

.recharge-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.recharge-hint a {
  color: var(--olive);
  font-weight: 700;
  text-decoration: none;
}

.recharge-hint a:hover {
  text-decoration: underline;
}

.recharge-analysis {
  margin: 6px 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(36, 107, 93, .06);
  border: 1px solid rgba(36, 107, 93, .14);
  font-size: 13px;
  color: var(--muted);
}

.recharge-analysis.tone-ok {
  background: rgba(31, 122, 100, .1);
  border-color: rgba(31, 122, 100, .28);
  color: var(--ok);
  font-weight: 700;
}

.recharge-analysis.tone-warn {
  background: rgba(220, 185, 143, .18);
  border-color: rgba(220, 185, 143, .42);
  color: #8a5a14;
  font-weight: 700;
}

.recharge-analysis.tone-danger {
  background: rgba(178, 58, 34, .08);
  border-color: rgba(178, 58, 34, .25);
  color: var(--danger);
  font-weight: 700;
}

.recharge-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.recharge-submit {
  flex: 1 1 auto;
  min-height: 52px;
  font-size: 16px;
  justify-content: center;
}

.recharge-clear {
  min-height: 52px;
  flex: 0 0 auto;
}

.recharge-faq {
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
}

.recharge-faq h3 {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--deep);
}

.recharge-faq-item + .recharge-faq-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.recharge-faq-item b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--deep);
  margin-bottom: 4px;
}

.recharge-faq-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.recharge-faq-item p a {
  color: var(--olive);
  font-weight: 700;
  text-decoration: none;
}

.claude-recharge-page {
  --claude-card: rgba(255, 255, 255, .9);
  --claude-line: var(--line);
  --claude-accent: var(--olive);
  --claude-accent-strong: #21483f;
  --claude-text: var(--deep);
  --claude-muted: var(--muted);
}

.claude-recharge-page .page-glow-left {
  background: rgba(184, 66, 50, .18);
}

.claude-recharge-page .page-glow-right {
  background: rgba(36, 107, 93, .22);
}

.claude-hero {
  position: relative;
  overflow: hidden;
  align-items: stretch;
  border-color: rgba(87, 67, 42, .1);
  color: #eef9f4;
  background:
    linear-gradient(180deg, rgba(29, 46, 37, .97), rgba(20, 34, 28, .97)),
    linear-gradient(135deg, rgba(255, 255, 255, .04), transparent);
  box-shadow: 0 28px 80px rgba(24, 38, 31, .24);
}

.claude-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .08), transparent 38%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .035) 1px, transparent 1px, transparent 18px);
  pointer-events: none;
}

.claude-hero > * {
  position: relative;
  z-index: 1;
}

.claude-hero-copy {
  display: grid;
  align-content: center;
  gap: 0;
  min-width: 0;
}

.claude-logo-mark {
  width: 42px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 999px;
  color: #fff7ec;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 1px solid rgba(255, 255, 255, .24);
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(24, 38, 31, .22);
}

.claude-hero .sidebar-eyebrow {
  color: #f3b18c;
}

.claude-hero .dealer-hero-copy {
  color: rgba(238, 249, 244, .78);
}

.claude-hero-stats {
  min-width: 320px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: center;
}

.claude-stat {
  min-height: 54px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
}

.claude-stat span {
  width: 28px;
  height: 28px;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: 14px;
}

.claude-stat strong {
  color: #f7fff9;
  font-size: 13px;
  line-height: 1.1;
}

.claude-stat em {
  color: rgba(238, 249, 244, .68);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.claude-plan-panel {
  width: 100%;
  margin: 0 auto;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--claude-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(245, 249, 247, .92)),
    radial-gradient(circle at top right, rgba(36, 107, 93, .12), transparent 40%);
  box-shadow: 0 26px 60px -28px rgba(28, 48, 38, .35);
}

.claude-plan-panel-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.claude-plan-panel-head .eyebrow {
  color: var(--claude-accent);
  letter-spacing: .12em;
}

.claude-plan-panel-head h2 {
  margin: 0;
  color: var(--claude-text);
  font-size: 22px;
  line-height: 1.2;
}

.claude-plan-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(36, 107, 93, .08);
  border: 1px solid rgba(36, 107, 93, .12);
}

.claude-plan-tab {
  min-width: 0;
  min-height: 116px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 14px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--claude-muted);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.claude-plan-tab:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .64);
}

.claude-plan-tab.is-active {
  color: var(--claude-accent-strong);
  background: rgba(255, 255, 255, .96);
  border-color: rgba(36, 107, 93, .34);
  box-shadow: 0 10px 22px rgba(36, 107, 93, .14);
}

.claude-plan-name {
  color: var(--claude-text);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.claude-plan-desc {
  color: var(--claude-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.claude-plan-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #9a5a20;
  background: rgba(245, 158, 11, .16);
  font-size: 11px;
  font-weight: 900;
}

.claude-plan-badge.is-ok {
  color: #0f6b4f;
  background: rgba(31, 122, 100, .14);
}

.claude-plan-badge.is-empty {
  color: #8f3f2a;
  background: rgba(178, 58, 34, .14);
}

.claude-plan-badge.is-loading,
.claude-plan-badge.is-warn {
  color: #9a5a20;
  background: rgba(245, 158, 11, .16);
}

.claude-plan-detail {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(36, 107, 93, .16);
  color: var(--claude-muted);
  background: rgba(36, 107, 93, .06);
  line-height: 1.65;
}

.claude-plan-detail strong {
  display: block;
  margin-bottom: 3px;
  color: var(--claude-text);
}

.claude-recharge-page .recharge-stock-hero,
.claude-recharge-page .recharge-trust-item,
.claude-recharge-page .recharge-card,
.claude-recharge-page .recharge-faq,
.claude-benefit-card {
  border-color: var(--claude-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(245, 249, 247, .92));
  box-shadow: 0 22px 54px -32px rgba(28, 48, 38, .35);
}

.claude-recharge-page .recharge-stock-hero {
  width: 100%;
  margin-top: 0;
  background:
    linear-gradient(135deg, rgba(36, 107, 93, .12), rgba(36, 107, 93, .04)),
    rgba(255, 255, 255, .9);
}

.claude-recharge-page .recharge-shell {
  width: 100%;
}

.claude-recharge-page .recharge-stock-hero-copy .eyebrow,
.claude-recharge-page .recharge-stock-hero-value .recharge-stock-sku,
.claude-recharge-page .recharge-faq-item p a {
  color: var(--claude-accent);
}

.claude-recharge-page .recharge-stock-hero-copy h2,
.claude-recharge-page .recharge-stock-hero-value b,
.claude-recharge-page .recharge-card-head h2,
.claude-recharge-page .recharge-trust-title,
.claude-recharge-page .recharge-faq h3,
.claude-recharge-page .recharge-faq-item b {
  color: var(--claude-text);
}

.claude-recharge-page .recharge-trust-sub,
.claude-recharge-page .recharge-faq-item p,
.claude-recharge-page .recharge-field label,
.claude-recharge-page .dynamic-channel-label,
.claude-recharge-page .dynamic-form-hint {
  color: var(--claude-muted);
}

.claude-recharge-page .recharge-trust-icon {
  background: rgba(36, 107, 93, .1);
}

.claude-recharge-page .recharge-field input,
.claude-recharge-page .dynamic-form-wrap input,
.claude-recharge-page .dynamic-form-wrap textarea {
  border-color: var(--line);
  background: #fff;
}

.claude-recharge-page .recharge-field input:focus,
.claude-recharge-page .dynamic-form-wrap input:focus,
.claude-recharge-page .dynamic-form-wrap textarea:focus {
  border-color: rgba(36, 107, 93, .55);
  box-shadow: 0 0 0 4px rgba(36, 107, 93, .12);
}

.claude-recharge-page .dynamic-product-summary,
.claude-recharge-page .recharge-analysis {
  border-color: rgba(36, 107, 93, .14);
  background: rgba(36, 107, 93, .06);
}

.claude-recharge-page .dynamic-channel-label {
  background: rgba(36, 107, 93, .1);
  color: #1f6f5d;
}

.claude-recharge-page .btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 30px rgba(176, 90, 43, .24);
}

.claude-recharge-page .btn-soft {
  background: #f6e7d0;
}

.claude-benefit-card {
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid var(--claude-line);
}

.claude-benefit-card h3 {
  margin: 0 0 12px;
  color: var(--claude-text);
  font-size: 15px;
}

.claude-benefit-list {
  display: grid;
  gap: 8px;
  color: var(--claude-muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .recharge-stock-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }
  .recharge-stock-hero-value {
    justify-content: flex-start;
  }
  .recharge-stock-hero-value b {
    font-size: 34px;
  }
  .recharge-trust {
    grid-template-columns: 1fr;
  }
  .recharge-card {
    padding: 22px 20px;
  }
  .recharge-card-head h2 {
    font-size: 19px;
  }
  .recharge-actions {
    flex-direction: column;
  }
  .recharge-clear {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .claude-hero {
    display: grid;
  }
  .claude-hero-stats {
    min-width: 0;
  }
  .claude-plan-tabs {
    grid-template-columns: 1fr;
  }
  .claude-plan-tab {
    min-height: 86px;
  }
}

@media (max-width: 560px) {
  .claude-logo-mark {
    width: 38px;
    height: 28px;
    border-radius: 999px;
    font-size: 14px;
  }
  .claude-hero-stats {
    grid-template-columns: 1fr;
  }
  .claude-plan-panel {
    padding: 18px;
  }
  .claude-plan-panel-head h2 {
    font-size: 19px;
  }
}

/* 必填字段红色星号标记 */
.required-mark {
  color: #b84232;
  margin-left: 4px;
  font-weight: 600;
}
