/* QingZhou Customer Portal — Linear / Vercel Dark Frosted Glass Design System */
:root {
  --bg: #07080d;
  --bg-elevated: rgba(16, 19, 30, 0.72);
  --bg-card: rgba(19, 23, 36, 0.76);
  --bg-card-hover: rgba(25, 30, 48, 0.86);
  --bg-input: rgba(10, 12, 20, 0.85);
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(129, 140, 248, 0.45);
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #818cf8;
  --accent-cyan: #38bdf8;
  --emerald: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-glow: 0 0 0 1px rgba(129, 140, 248, 0.35), 0 16px 40px rgba(79, 70, 229, 0.22);
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Subtle Linear-inspired ambient nebula + fine grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 42% at 50% -8%, rgba(99, 102, 241, 0.22), transparent 68%),
    radial-gradient(ellipse 46% 36% at 88% 14%, rgba(56, 189, 248, 0.11), transparent 65%),
    radial-gradient(ellipse 40% 34% at 10% 72%, rgba(99, 102, 241, 0.08), transparent 65%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 15%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 15%, #000 20%, transparent 80%);
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 8, 13, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.topbar-inner {
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.35));
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-cn {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.brand-en {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 12px;
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.nav-pill:hover {
  border-color: var(--border-strong);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
}

.user-chip {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: #cbd5e1;
}

/* Main container */
.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

/* Global Toast / Alert */
.toast-bar {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  max-width: min(520px, calc(100vw - 32px));
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(12, 24, 24, 0.92);
  backdrop-filter: blur(16px);
  color: #a7f3d0;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.alert-ok {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: #a7f3d0;
}

.alert-err {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: #fecdd3;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s, border-color 0.18s, box-shadow 0.18s, opacity 0.18s;
}

.btn:active:not(:disabled) { transform: scale(0.985); }
.btn:disabled { opacity: 0.48; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #090d16;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.btn-primary:hover:not(:disabled) {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.18);
}

.btn-accent {
  background: linear-gradient(135deg, #6366f1 0%, #38bdf8 100%);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.32);
}

.btn-accent:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(99, 102, 241, 0.44);
  filter: brightness(1.06);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: #e2e8f0;
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.085);
  border-color: var(--border-strong);
  color: #ffffff;
}

.btn-sm {
  min-height: 36px;
  padding: 6px 13px;
  font-size: 12.5px;
  border-radius: 8px;
}

.btn-lg {
  min-height: 52px;
  padding: 13px 24px;
  font-size: 15px;
  border-radius: 12px;
}

.btn-block { width: 100%; }

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-card);
}

/* ==================== GUEST / LANDING VIEW ==================== */
.guest-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 430px);
  gap: 56px;
  align-items: center;
  padding: 28px 0 64px;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.28);
  background: rgba(99, 102, 241, 0.1);
  color: #c7d2fe;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 22px;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.hero-title .grad {
  display: block;
  margin-top: 6px;
  background: linear-gradient(95deg, #e2e8f0 0%, #a5b4fc 50%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 0 34px;
  max-width: 490px;
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.highlights {
  display: grid;
  gap: 12px;
  max-width: 500px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s, background 0.2s;
}

.highlight-item:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
}

.highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.22);
  color: #a5b4fc;
}

.highlight-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 2px;
}

.highlight-item span {
  display: block;
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Auth Card */
.auth-card {
  padding: 28px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(8, 10, 18, 0.8);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.segmented button {
  padding: 8px 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}

.segmented button.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-head p {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.field {
  display: block;
  margin-bottom: 15px;
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 7px;
}

.input, .select {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.input:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
}

.input::placeholder { color: #475569; }

.input-row {
  display: flex;
  gap: 8px;
}

.input-row .input { flex: 1; min-width: 0; }

.code-btn {
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 104px;
}

.text-link {
  background: none;
  border: 0;
  padding: 2px 0;
  color: #a5b4fc;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 16px;
  display: inline-block;
}

.text-link:hover { color: #c7d2fe; text-decoration: underline; }

/* Section Header */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.sec-head h2, .sec-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.sec-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Pricing Grid */
.guest-plans {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

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

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.plan-card.featured {
  border-color: var(--border-accent);
  background: linear-gradient(165deg, rgba(49, 46, 129, 0.34) 0%, rgba(15, 20, 34, 0.88) 65%);
  box-shadow: var(--shadow-glow);
}

.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(56, 189, 248, 0.24));
  border: 1px solid rgba(129, 140, 248, 0.45);
  color: #e0e7ff;
}

.plan-tier {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.plan-quota {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.plan-quota small {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 3px;
}

.plan-price {
  margin: 12px 0 18px;
  font-size: 13px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.plan-price strong {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin-right: 4px;
}

.plan-specs {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.plan-specs li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #cbd5e1;
}

.plan-specs li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  flex-shrink: 0;
}

.plan-card .btn { margin-top: auto; }

/* ==================== DASHBOARD VIEW ==================== */
.dash-stack {
  display: grid;
  gap: 20px;
}

/* Top Overview Card */
.overview-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.overview-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.5), rgba(56, 189, 248, 0.5), transparent);
}

.overview-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.plan-heading-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.overview-eyebrow {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.overview-plan-name {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-active { color: var(--emerald); background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.28); }
.status-paused { color: var(--amber); background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.28); }
.status-danger { color: var(--rose); background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.28); }
.status-pending { color: var(--accent-cyan); background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.28); }

.overview-meta {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.countdown-box {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(8, 10, 18, 0.65);
  text-align: right;
  min-width: 210px;
}

.countdown-label {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.countdown-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.countdown-date {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Traffic Meter */
.meter-box {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(8, 10, 18, 0.55);
}

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

.meter-remaining {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.meter-remaining span {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 8px;
}

.meter-pct {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #a5b4fc;
}

.meter-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.meter-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1 0%, #38bdf8 65%, #34d399 100%);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.meter-fill.warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.meter-fill.full { background: linear-gradient(90deg, #f43f5e, #fb7185); }

.meter-foot {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

/* Claim Inline Banner */
.claim-card {
  padding: 20px 24px;
}

.claim-card h3 {
  margin: 0 0 4px;
  font-size: 15.5px;
  font-weight: 600;
}

.claim-card p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.claim-form {
  display: flex;
  gap: 10px;
}

.claim-form .input { flex: 1; }

/* Subscription Action Card */
.sub-card {
  padding: 26px 28px;
}

.sub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.sub-top h3 {
  margin: 0 0 3px;
  font-size: 17px;
  font-weight: 700;
}

.sub-top p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.client-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: rgba(8, 10, 18, 0.8);
  border: 1px solid var(--border);
}

.client-switch button {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.16s, color 0.16s;
}

.client-switch button.active {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
  font-weight: 600;
}

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

.sub-copy-main {
  flex: 1;
  min-width: 240px;
}

.sub-qr-panel {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(8, 10, 18, 0.65);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.sub-qr-panel figure {
  margin: 0;
  text-align: center;
}

.sub-qr-panel canvas {
  display: block;
  width: 168px;
  height: 168px;
  background: #ffffff;
  padding: 8px;
  border-radius: 12px;
}

.sub-qr-panel figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Collapsible Import Guide */
.guide-accordion {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: grid;
  gap: 8px;
}

.guide-accordion details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.18s;
}

.guide-accordion details[open] {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.035);
}

.guide-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e8f0;
}

.guide-accordion summary::-webkit-details-marker { display: none; }

.guide-accordion summary .chev {
  color: var(--text-secondary);
  font-size: 16px;
  transition: transform 0.2s;
}

.guide-accordion details[open] summary .chev { transform: rotate(45deg); }

.guide-body {
  padding: 0 15px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.guide-body ol {
  margin: 0 0 10px;
  padding-left: 18px;
}

.guide-dl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #93c5fd;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
}

.guide-dl:hover { text-decoration: underline; color: #bfdbfe; }

/* Lower Dashboard Split */
.dash-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.panel-card {
  padding: 24px;
}

.dash-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dash-plan-grid .plan-card {
  padding: 18px;
  background: rgba(11, 14, 24, 0.7);
}

.dash-plan-grid .plan-quota { font-size: 26px; }
.dash-plan-grid .plan-price strong { font-size: 22px; }
.dash-plan-grid .plan-badge { top: 12px; right: 12px; font-size: 10.5px; }

/* Traffic Add-on Collapsible */
.addon-details {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.addon-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #a5b4fc;
  list-style: none;
}

.addon-details summary::-webkit-details-marker { display: none; }

.addon-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.addon-pack-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(11, 14, 24, 0.78);
  color: #f8fafc;
  text-align: left;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s, background 0.18s;
}

.addon-pack-btn:hover:not(:disabled) {
  border-color: var(--border-accent);
  background: rgba(30, 36, 62, 0.72);
  transform: translateY(-1px);
}

.addon-pack-btn:active:not(:disabled) { transform: scale(0.985); }
.addon-pack-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.addon-pack-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e8f0;
}

.addon-pack-price {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #7dd3fc;
  white-space: nowrap;
}

.addon-rule {
  margin: 11px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Order List */
.order-list {
  display: grid;
  gap: 10px;
}

.order-empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

.order-item {
  padding: 13px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(10, 12, 20, 0.58);
}

.order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.order-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #f8fafc;
}

.order-status {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.order-meta {
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.order-id {
  font-family: var(--font-mono);
  color: #cbd5e1;
}

.order-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==================== WECHAT SUPPORT / CHECKOUT MODAL ==================== */
body.modal-open { overflow: hidden; }

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 11, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-dialog {
  position: relative;
  width: min(460px, 100%);
  max-height: min(92dvh, 760px);
  overflow-y: auto;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background: linear-gradient(165deg, rgba(22, 27, 44, 0.96) 0%, rgba(11, 14, 24, 0.98) 100%);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  outline: none;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.16s, color 0.16s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.modal-kicker {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #a5b4fc;
  text-transform: uppercase;
}

.modal-dialog h2 {
  margin: 6px 0 4px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.modal-plan-sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.wechat-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.11), rgba(10, 14, 24, 0.85));
  margin-bottom: 16px;
}

.wechat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.wechat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wechat-head strong {
  display: block;
  font-size: 14.5px;
  color: #ecfdf5;
}

.wechat-head span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
}

.wechat-id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 9, 16, 0.72);
  margin-bottom: 10px;
}

.wechat-id-val {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.summary-kv {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(8, 10, 18, 0.6);
  margin-bottom: 16px;
  font-size: 12.5px;
}

.summary-kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary-kv dt { color: var(--text-secondary); }
.summary-kv dd {
  margin: 0;
  font-weight: 600;
  color: #f8fafc;
  text-align: right;
  overflow-wrap: anywhere;
}

.qr-upload-box {
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(8, 10, 18, 0.65);
  margin: 12px 0;
}

.qr-upload-box img {
  width: 184px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #ffffff;
  padding: 6px;
}

.modal-actions {
  display: grid;
  gap: 10px;
}

/* Footer */
.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== RESPONSIVE (MOBILE SINGLE-COLUMN) ==================== */
@media (max-width: 960px) {
  .guest-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 12px 0 44px;
  }
  .dash-lower {
    grid-template-columns: 1fr;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .dash-plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .topbar-inner { padding: 0 16px; }
  .nav-pill-desktop { display: none; }
  .user-chip { max-width: 135px; }
  .page-shell { padding: 20px 16px 60px; }
  .auth-card, .overview-card, .sub-card, .panel-card, .modal-dialog { padding: 20px; }
  .countdown-box { width: 100%; text-align: left; }
  .claim-form { flex-direction: column; }
  .sub-top { flex-direction: column; align-items: flex-start; }
  .sub-copy-main { width: 100%; min-width: 0; }
  .sub-actions .btn { width: 100%; }
  .input-row { flex-direction: column; }
  .code-btn { width: 100%; }
  .addon-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; align-items: flex-start; padding: 18px 16px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
