:root {
  --bg-page: #f3f6fb;
  --bg-surface: #ffffff;
  --bg-navy: #081020;
  --bg-navy-2: #0f1b33;
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --border-card: #dde4ee;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --emerald: #059669;
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;
  --radius-lg: 16px;
  --shadow-card: 0 6px 20px -4px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 20px 36px -8px rgba(15, 23, 42, 0.14), 0 6px 14px -3px rgba(37, 99, 235, 0.09);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Inter", "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 16, 32, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.45);
  border: 1px solid rgba(255,255,255,0.22);
}
.brand-text b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
}
.brand-text b span.pro {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.3);
}
.brand-text small {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: #fff; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.token-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-variant-numeric: tabular-nums;
}
.token-pill.guest {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.38);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-ghost-dark {
  background: rgba(255,255,255,0.08);
  color: #e2e8f0;
  border-color: rgba(255,255,255,0.15);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(37, 99, 235, 0.24), transparent 70%),
    radial-gradient(800px 380px at 82% 10%, rgba(245, 158, 11, 0.14), transparent 70%),
    linear-gradient(180deg, var(--bg-navy) 0%, var(--bg-navy-2) 100%);
  color: #fff;
  padding: 46px 24px 38px;
  overflow: hidden;
  border-bottom: 1px solid #1e293b;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 1440px; margin: 0 auto; }
.hero-top { max-width: 920px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 99px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #bfdbfe;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.hero h1 .hl {
  background: linear-gradient(90deg, #60a5fa 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: #94a3b8;
  font-size: 15px;
  max-width: 760px;
  margin: 0 auto 22px;
  line-height: 1.65;
}

/* Funnel Steps Pill Bar inside Hero */
.funnel-steps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 8px 16px;
  margin-bottom: 22px;
  font-size: 12.5px;
  color: #e2e8f0;
}
.funnel-steps .arr { color: #64748b; font-weight: 700; }
.funnel-steps b { color: #93c5fd; }

/* Search */
.search-wrap { max-width: 700px; margin: 0 auto 14px; }
.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  padding: 5px 5px 5px 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  color: #0f172a;
  height: 38px;
}
.search-btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}

/* Filter Bar */
.filter-bar-wrap {
  position: sticky;
  top: 68px;
  z-index: 85;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.filter-bar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.region-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.region-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 35px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s;
}
.region-tab:hover { background: #f1f5f9; color: var(--text-main); }
.region-tab.active { background: #0f172a; color: #fff; }
.region-tab .cnt {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(100, 116, 139, 0.14);
}
.region-tab.active .cnt { background: rgba(255, 255, 255, 0.2); color: #fff; }

.right-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg-group {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
}
.seg-btn {
  border: none;
  background: transparent;
  color: var(--text-sub);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
}
.seg-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.mask-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-sub);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
}

/* Gallery */
.gallery-section { max-width: 1440px; margin: 0 auto; padding: 22px 24px 64px; }
.gallery-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.result-info { font-size: 13.5px; color: var(--text-sub); }
.cost-banner {
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--primary-soft);
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-weight: 600;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.cards-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tpl-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease, border-color 0.2s ease;
}
.tpl-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: #93c5fd;
}

.doc-stage {
  position: relative;
  background: linear-gradient(180deg, #e6ecf5 0%, #dde5f0 100%);
  padding: 18px 20px 0;
  aspect-ratio: 1 / 1.18;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
}
.paper-stack { position: relative; width: 100%; height: 100%; }
.paper-stack.multi::before,
.paper-stack.multi::after {
  content: "";
  position: absolute;
  left: 6px;
  right: -6px;
  top: 6px;
  bottom: 0;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px 6px 0 0;
  z-index: 1;
}
.paper-stack.multi::after {
  left: 3px;
  right: -3px;
  top: 3px;
  background: #ffffff;
  z-index: 2;
}
.a4-sheet {
  position: relative;
  z-index: 3;
  width: 100%;
  background: #ffffff;
  border-radius: 6px 6px 0 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.tpl-card:hover .a4-sheet { transform: translateY(-8%) scale(1.015); }
.a4-sheet img.thumb-img { width: 100%; height: auto; display: block; }

.privacy-blur {
  position: absolute;
  z-index: 4;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background: rgba(241, 245, 249, 0.44);
  border: 1px dashed rgba(100, 116, 139, 0.35);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.privacy-blur span {
  font-size: 9.5px;
  font-weight: 700;
  color: #475569;
  background: rgba(255, 255, 255, 0.86);
  padding: 1px 5px;
  border-radius: 3px;
}
body.hide-privacy-mask .privacy-blur { opacity: 0; pointer-events: none; }

.card-watermark {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='130'%3E%3Cg transform='rotate(-26 90 65)'%3E%3Ctext x='10' y='62' font-family='sans-serif' font-size='11.5' font-weight='700' fill='%230f172a' fill-opacity='0.10'%3E免费填表试看 · 扣币去水印%3C/text%3E%3C/g%3E%3C/svg%3E");
}

.stage-badges-top {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 7;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.badge-hot {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.badge-pages {
  margin-left: auto;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
}
.stage-region-pill {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 7;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 7px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
  transition: opacity 0.18s;
}
.tpl-card:hover .stage-region-pill { opacity: 0; }

.stage-hover-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  padding: 28px 14px 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.85) 60%, rgba(15, 23, 42, 0.95) 100%);
  display: flex;
  gap: 8px;
  transform: translateY(102%);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.tpl-card:hover .stage-hover-dock { transform: translateY(0); }
.dock-btn {
  flex: 1;
  height: 36px;
  border-radius: 8px;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.dock-btn-fill { background: #2563eb; color: #fff; }
.dock-btn-dl { background: #f59e0b; color: #fff; }

.card-body { padding: 15px 18px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-title-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.card-title { font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-tag { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 5px; flex-shrink: 0; }
.cat-tag.bank { background: #eff6ff; color: #1d4ed8; }
.cat-tag.utility { background: #f0fdf4; color: #15803d; }
.card-desc {
  font-size: 12.5px;
  color: var(--text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 37px;
}
.card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}
.fmt-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.fmt-pill { background: #f1f5f9; color: #475569; padding: 2px 6px; border-radius: 4px; font-weight: 600; font-size: 10.5px; }
.cost-tag { font-weight: 700; color: var(--primary); }

/* ================= SPLIT WORKBENCH (填表 + 实时预览) ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 16, 32, 0.76);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.modal-backdrop.open { display: flex; }

.wb-shell {
  width: 98vw;
  height: 95vh;
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 28px 70px rgba(0,0,0,0.55);
}
.wb-header {
  height: 52px;
  background: #081020;
  color: #f8fafc;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.wb-h-left, .wb-h-right { display: flex; align-items: center; gap: 9px; }
.wb-select {
  height: 34px;
  background: #1e293b;
  color: #fff;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  max-width: 300px;
}
.wb-body {
  flex: 1;
  display: flex;
  min-height: 0;
}
.wb-form-sidebar {
  width: 350px;
  background: #ffffff;
  border-right: 1px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: margin-left 0.22s ease;
}
.wb-form-sidebar.collapsed { margin-left: -350px; }
.wb-form-head {
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.wb-form-head h4 { font-size: 14.5px; color: #0f172a; margin-bottom: 4px; }
.wb-form-head p { font-size: 12px; color: #64748b; }
.wb-field-filter {
  margin-top: 8px;
  width: 100%;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 0 10px;
  font-size: 12.5px;
}
.wb-fields-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wb-f-item label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 3px;
}
.wb-f-item input,
.wb-f-item textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 12.5px;
  color: #0f172a;
  font-family: inherit;
  outline: none;
}
.wb-f-item input:focus,
.wb-f-item textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.12);
}
.wb-canvas-area {
  flex: 1;
  background: #334155;
  position: relative;
}
.wb-iframe { width: 100%; height: 100%; border: none; background: #e2e8f0; }

/* Standard Dialogs (Auth / Recharge / Promo / User Center) */
.dialog-card {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}
.dialog-card.wide { max-width: 760px; }
.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 18px;
  cursor: pointer;
}
.dialog-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.dialog-card .sub { font-size: 13px; color: var(--text-sub); margin-bottom: 18px; }

.tabs-nav {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.tabs-nav button {
  flex: 1;
  height: 34px;
  border: none;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}
.tabs-nav button.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 700; color: #334155; margin-bottom: 5px; }
.form-control {
  width: 100%;
  height: 42px;
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}
.form-control:focus { border-color: var(--primary); }

/* 图形/邮箱验证码行 */
.captcha-row { display: flex; gap: 8px; align-items: stretch; }
.captcha-row .form-control { flex: 1; }
.captcha-img {
  height: 42px;
  width: 132px;
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
  cursor: pointer;
  background: #eef2f7;
  object-fit: cover;
}
.captcha-row .btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* 充值币种/链联动选择器 */
.chan-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.chan-btn {
  border: 2px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
  transition: 0.15s;
}
.chan-btn small { display: block; font-size: 11px; font-weight: 600; color: #64748b; margin-top: 2px; }
.chan-btn:hover { border-color: #93c5fd; }
.chan-btn.active { border-color: var(--primary); background: #eff6ff; color: var(--primary); }
.chan-btn.active small { color: #3b82f6; }
.chan-info {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 13px;
}

/* Recharge Packages */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.pkg-item {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
}
.pkg-item.active {
  border-color: var(--primary);
  background: #eff6ff;
}
.pkg-item .p-tokens { font-size: 19px; font-weight: 900; color: #0f172a; }
.pkg-item .p-price { font-size: 15px; font-weight: 800; color: var(--primary); margin: 4px 0; }
.pkg-item .p-bonus { font-size: 11px; color: var(--emerald); font-weight: 700; }

.table-mini { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table-mini th, .table-mini td { padding: 9px 10px; border-bottom: 1px solid #e2e8f0; text-align: left; }
.table-mini th { background: #f8fafc; color: #475569; font-weight: 700; }

/* Commercial Recharge & Footer Section on Homepage */
.home-packages { background: #fff; border-top: 1px solid #e2e8f0; padding: 56px 24px; }
.home-pkg-inner { max-width: 1160px; margin: 0 auto; }
.sec-title { text-align: center; margin-bottom: 36px; }
.sec-title h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.sec-title p { color: var(--text-sub); font-size: 14.5px; }
.home-pkg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.h-pkg-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.h-pkg-card.pop { border: 2px solid var(--primary); box-shadow: 0 16px 36px -10px rgba(37,99,235,0.16); }
.h-pkg-card .pop-badge {
  position: absolute;
  top: -11px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 99px;
}

.footer { background: #081020; color: #94a3b8; padding: 36px 24px; font-size: 13px; }
.footer-inner { max-width: 1440px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  z-index: 600;
  background: #0f172a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 1100px) {
  .cards-grid, .cards-grid.cols-4, .home-pkg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .wb-form-sidebar { width: 290px; }
}
@media (max-width: 720px) {
  .cards-grid, .cards-grid.cols-4, .home-pkg-cards, .pkg-grid { grid-template-columns: 1fr; }
  .wb-form-sidebar { display: none; }
}
