:root {
  --bg-page: #f6f8fc;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --border-light: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-shopee: rgba(238, 77, 45, 0.4);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --shopee-primary: #ee4d2d;
  --shopee-grad: linear-gradient(135deg, #ff6b35 0%, #ee4d2d 65%, #dc2626 100%);
  --amber-grad: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --violet-grad: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  --emerald-grad: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --emerald-text: #059669;
  --amber-text: #d97706;
  --violet-text: #6d28d9;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 10px 30px -6px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 20px 42px -8px rgba(15, 23, 42, 0.1), 0 8px 20px -4px rgba(238, 77, 45, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Anuphan', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(circle at 8% 0%, rgba(238, 77, 45, 0.07), transparent 36%),
    radial-gradient(circle at 92% 4%, rgba(124, 58, 237, 0.07), transparent 38%),
    radial-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 26px 26px;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 80px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-heading {
  font-family: 'Prompt', sans-serif;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.num-font {
  font-family: 'Plus Jakarta Sans', 'Prompt', sans-serif;
}

/* Floating Crisp White Glass Navigation */
.top-nav-wrap {
  position: sticky;
  top: 12px;
  z-index: 200;
  padding: 0 16px;
  margin-bottom: 28px;
}

.top-nav {
  max-width: 1240px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 32px -6px rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 8px 14px 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--shopee-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 6px 14px rgba(238, 77, 45, 0.3);
}

.brand-text {
  font-family: 'Prompt', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #0f172a;
}

.crown-pill {
  background: var(--amber-grad);
  color: #451a03;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.28);
}

.nav-switcher {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px;
  border-radius: 999px;
  flex-wrap: wrap;
}

.mode-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Prompt', sans-serif;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mode-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.7);
}

.mode-btn.active {
  background: var(--shopee-grad);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.3);
}

.user-wallet-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.user-wallet-pill:hover {
  background: #d1fae5;
  transform: translateY(-1px);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.view-section {
  display: none;
  animation: slideUpFade 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-section.active {
  display: block;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Bento Banner (Clean White + Subtle Warm Accent) */
.hero-bento {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #fffaf7 100%);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-xl);
  padding: 30px;
  margin-bottom: 26px;
}

.hero-bento::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(238, 77, 45, 0.1), transparent 70%);
  pointer-events: none;
}

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

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #c2410c;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.hero-top h1 {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
  color: #0f172a;
}

.text-gradient {
  background: linear-gradient(90deg, #ee4d2d, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.live-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.kpi-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.kpi-tile {
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.kpi-tile:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.kpi-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.kpi-number {
  font-family: 'Plus Jakarta Sans', 'Prompt', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}

.kpi-icon-orb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

/* Filter Bar & Search */
.toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-family: 'Prompt', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.filter-pill:hover {
  border-color: #94a3b8;
  color: #0f172a;
}

.filter-pill.active {
  background: #fff1ed;
  border-color: var(--shopee-primary);
  color: var(--shopee-primary);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.14);
}

.search-wrap {
  position: relative;
  min-width: 280px;
}

.search-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: inherit;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: all 0.2s;
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-input:focus {
  border-color: var(--shopee-primary);
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.12);
}

/* Clean White 2-Column Product Showcase Cards */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 26px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  border-color: rgba(238, 77, 45, 0.45);
  box-shadow: var(--shadow-hover);
}

/* Left Column: Studio Image Showcase */
.card-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .img-frame img {
  transform: scale(1.05);
}

.rank-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--shopee-grad);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 4px 11px;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(238, 77, 45, 0.35);
}

.ai-sample-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: #0f172a;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.quick-store-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-shopee, .btn-tiktok {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'Prompt', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.btn-shopee {
  background: var(--shopee-grad);
  color: #fff;
  box-shadow: 0 6px 16px rgba(238, 77, 45, 0.28);
}

.btn-shopee:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(238, 77, 45, 0.38);
}

.btn-tiktok {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
}

.btn-tiktok:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* Right Column: Content & AI Studio */
.card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.cat-chip {
  font-size: 0.75rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 8px;
}

.pill-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pill-badge.gem {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #6d28d9;
}

.pill-badge.fire {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
}

.pill-badge.gold {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}

.pill-badge.emerald {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 3px;
}

.product-fullname {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 4-Column Metrics Dashboard Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.metric-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.m-label {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.m-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.m-val {
  font-family: 'Plus Jakarta Sans', 'Prompt', sans-serif;
  font-size: 1.16rem;
  font-weight: 800;
  color: #0f172a;
}

.m-sub {
  font-size: 0.73rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.m-val.emerald { color: #059669; }
.m-val.gold { color: #d97706; }

.spark-svg {
  width: 56px;
  height: 24px;
  overflow: visible;
}

.conv-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  margin-top: 6px;
  overflow: hidden;
}

.conv-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 999px;
}

/* AI Content Studio Dock (Light Crisp Violet Accent) */
.ai-dock {
  background: #faf9ff;
  border: 1px solid #ddd6fe;
  border-radius: 16px;
  overflow: hidden;
  flex: 1;
}

.ai-dock-header {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: #f3f0ff;
  border-bottom: 1px solid #e9d5ff;
  overflow-x: auto;
}

.tk-tab {
  border: 1px solid transparent;
  background: transparent;
  color: #5b21b6;
  opacity: 0.75;
  font-family: 'Prompt', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}

.tk-tab:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.65);
}

.tk-tab.active {
  opacity: 1;
  background: #ffffff;
  color: #6d28d9;
  border-color: #c4b5fd;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(109, 40, 217, 0.08);
}

.tk-panel {
  display: none;
  padding: 14px;
}

.tk-panel.active {
  display: block;
}

.copy-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
}

.copy-card:last-child {
  margin-bottom: 0;
}

.copy-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.copy-title {
  font-size: 0.79rem;
  font-weight: 700;
  color: #334155;
}

.btn-copy {
  border: 1px solid #c4b5fd;
  background: #f5f3ff;
  color: #6d28d9;
  font-family: 'Prompt', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-copy:hover {
  background: var(--violet-grad);
  border-color: #6d28d9;
  color: #ffffff;
  transform: translateY(-1px);
}

.copy-body {
  font-size: 0.89rem;
  color: #1e293b;
  white-space: pre-wrap;
  line-height: 1.65;
}

.mono-prompt {
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: 0.84rem;
  color: #4c1d95;
  background: #f5f3ff;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd6fe;
}

/* =========================================================
   VIEW 2: AFFILIATE PARTNER SYSTEM (Light Emerald & Gold)
   ========================================================= */
.aff-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}

.aff-banner-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 70%);
  border: 1px solid #a7f3d0;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ref-box {
  margin-top: 20px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: var(--shadow-sm);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ref-url {
  font-family: 'Plus Jakarta Sans', monospace;
  font-weight: 800;
  color: #059669;
  font-size: 0.96rem;
}

.wallet-summary-card {
  background: linear-gradient(145deg, #fffbeb 0%, #ffffff 75%);
  border: 1px solid #fde68a;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wallet-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: #d97706;
  line-height: 1.1;
  margin: 8px 0;
}

.wallet-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn-emerald {
  background: var(--emerald-grad);
  color: #ffffff;
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  border: none;
  padding: 10px 18px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-emerald:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-outline-gold {
  background: #fffbeb;
  border: 1px solid #f59e0b;
  color: #b45309;
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 0.85rem;
}

.calc-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 24px;
}

.slider-input {
  width: 100%;
  accent-color: #ee4d2d;
  height: 8px;
  margin: 18px 0 12px;
  cursor: pointer;
}

.calc-result-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.calc-stat {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px;
}

/* =========================================================
   VIEW 3: CLEAN HIGH-CONVERTING SALES PAGE 199.-
   ========================================================= */
.sales-hero-v2 {
  text-align: center;
  padding: 52px 24px;
  background: radial-gradient(circle at 50% 0%, #fff1ed 0%, #ffffff 72%);
  border: 1px solid #fed7aa;
  box-shadow: var(--shadow-card);
  border-radius: 28px;
  margin-bottom: 28px;
}

.pricing-showcase {
  max-width: 540px;
  margin: 28px auto 0;
  background: #ffffff;
  border: 2px solid #ee4d2d;
  box-shadow: 0 24px 50px -12px rgba(238, 77, 45, 0.18);
  border-radius: 24px;
  padding: 32px;
  text-align: left;
}

.price-huge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3.4rem;
  font-weight: 800;
  color: #ee4d2d;
  line-height: 1;
}

.check-list {
  list-style: none;
  margin: 20px 0 26px;
}

.check-list li {
  padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.94rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-cta-pulse {
  width: 100%;
  border: none;
  background: var(--shopee-grad);
  color: #fff;
  font-family: 'Prompt', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  padding: 16px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(238, 77, 45, 0.35);
  transition: transform 0.2s;
}

.btn-cta-pulse:hover {
  transform: translateY(-2px);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.compare-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  border-radius: 20px;
  padding: 26px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 26px;
  right: 26px;
  background: #0f172a;
  color: #ffffff;
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.25);
  transform: translateY(110px);
  opacity: 0;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .product-card {
    grid-template-columns: 1fr;
  }
  .card-visual {
    max-width: 340px;
  }
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .aff-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-nav {
    border-radius: 20px;
    padding: 12px;
  }
  .hero-bento {
    padding: 20px;
  }
  .product-card {
    padding: 18px;
  }
}


/* =========================================================
   CSV IMPORTER IN ADMIN PANEL
   ========================================================= */
.csv-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  background: #f8fafc;
  transition: all 0.2s ease;
  cursor: pointer;
}

.csv-dropzone.dragover {
  border-color: #ee4d2d;
  background: #fff7ed;
  transform: scale(1.01);
}

.csv-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.csv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.csv-table th {
  text-align: left;
  padding: 11px 14px;
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.csv-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

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

.csv-table tr:hover td {
  background: #f8fafc;
}

.score-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  background: #ede9fe;
  color: #6d28d9;
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
}


/* =========================================================
   STEP 2: AUTH NAV, REFERRAL BANNER, PAYWALL & MODAL
   ========================================================= */
.auth-nav-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-family: 'Prompt', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.auth-nav-btn:hover {
  border-color: #ee4d2d;
  color: #ee4d2d;
  background: #fff7ed;
}

.auth-nav-btn.is-vip {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.ref-banner {
  background: linear-gradient(90deg, #059669, #10b981);
  color: #ffffff;
  padding: 10px 0;
  font-size: 0.86rem;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.18);
}

.ref-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ref-banner-cta {
  border: none;
  background: #ffffff;
  color: #047857;
  font-family: 'Prompt', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
  transition: transform 0.15s;
}

.ref-banner-cta:hover {
  transform: translateY(-1px);
}

.member-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-size: 0.87rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.member-mode-bar.is-guest {
  background: linear-gradient(90deg, #fff7ed, #ffffff);
  border-color: #fed7aa;
}

.member-mode-bar.is-vip {
  background: linear-gradient(90deg, #ecfdf5, #ffffff);
  border-color: #a7f3d0;
}

.mmb-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #334155;
}

.mmb-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.mmb-badge.free {
  background: #ffedd5;
  color: #c2410c;
}

.mmb-badge.vip {
  background: #d1fae5;
  color: #047857;
}

.mmb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-mmb-primary {
  border: none;
  background: linear-gradient(135deg, #ee4d2d, #f97316);
  color: #ffffff;
  font-family: 'Prompt', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(238, 77, 45, 0.25);
}

.btn-mmb-ghost {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-family: 'Prompt', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-mmb-ghost:hover {
  background: #f8fafc;
  color: #0f172a;
}

.pill-badge.free-gift {
  background: #d1fae5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

/* Locked VIP Card */
.locked-card {
  border-color: #fde68a;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf7 100%);
}

.blur-img-secret {
  filter: blur(14px) brightness(0.88);
  transform: scale(1.08);
  pointer-events: none;
  user-select: none;
}

.img-lock-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.65);
  pointer-events: none;
}

.lock-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.locked-title-mask {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vip-only-chip {
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 99px;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
  font-weight: 700;
}

.blur-text-secret {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.65;
}

.vip-paywall-box {
  margin-top: 14px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  border: 1.5px dashed #f59e0b;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.paywall-icon {
  font-size: 1.9rem;
  line-height: 1;
}

.paywall-copy h3 {
  font-size: 1.03rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.paywall-copy p {
  font-size: 0.86rem;
  color: #475569;
  max-width: 560px;
}

.paywall-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn-link-subtle {
  border: none;
  background: transparent;
  color: #6d28d9;
  font-family: 'Prompt', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 450px;
  background: #ffffff;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  border: 1px solid #e2e8f0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: #f1f5f9;
  color: #475569;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
}

.modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-tabs {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 18px;
  margin-right: 32px;
}

.modal-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 9px;
  font-family: 'Prompt', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.modal-tab.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.modal-panel {
  display: none;
}

.modal-panel.active {
  display: block;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 5px;
}

.modal-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: 'Anuphan', sans-serif;
  font-size: 0.9rem;
  outline: none;
}

.modal-input:focus {
  border-color: #ee4d2d;
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.12);
}

.modal-ref-pill {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.pay-method-box {
  margin: 14px 0 16px;
}

.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.87rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.pay-opt.active {
  border-color: #059669;
  background: #ecfdf5;
  color: #047857;
}


/* =========================================================
   PROMPTPAY 199.- QR CHECKOUT & 1-CLICK ADMIN APPROVAL
   ========================================================= */
.pp-qr-card {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}
.pp-qr-header {
  background: #0f294a;
  color: #ffffff;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
}
.pp-qr-header strong {
  color: #fb923c;
  font-size: 0.98rem;
}
.pp-qr-body {
  display: flex;
  gap: 14px;
  padding: 12px;
  align-items: center;
}
.pp-qr-img-wrap {
  flex: 0 0 132px;
  background: #ffffff;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.pp-qr-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.pp-qr-info {
  flex: 1;
  min-width: 0;
}
.pp-acc-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}
.pp-acc-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
}
.pp-acc-id {
  font-size: 0.76rem;
  color: #475569;
  margin-top: 2px;
  word-break: break-all;
}
.pp-acc-note {
  font-size: 0.74rem;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 5px 8px;
  margin-top: 7px;
}
.btn-pp-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-pp-mini:hover {
  border-color: #ee4d2d;
  color: #ee4d2d;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.slip-upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border: 1.5px dashed #94a3b8;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.slip-upload-box:hover {
  border-color: #059669;
  background: #ecfdf5;
  color: #047857;
}
.slip-preview-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
}
.slip-preview-wrap img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #6ee7b7;
}

/* Admin Payment Queue KPIs & Actions */
.admin-pay-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.admin-kpi-mini {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-kpi-mini span {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
}
.admin-kpi-mini strong {
  font-size: 1.15rem;
  font-weight: 800;
}
.btn-view-slip {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-view-slip:hover {
  background: #dbeafe;
}
.btn-approve-1click {
  background: #059669;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-approve-1click:hover {
  background: #047857;
}
.btn-reject-1click {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.slip-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}
.slip-status.pending {
  background: #fef3c7;
  color: #b45309;
}
.slip-status.approved {
  background: #d1fae5;
  color: #047857;
}
.slip-status.rejected {
  background: #fee2e2;
  color: #b91c1c;
}
.ref-code-tag {
  display: inline-block;
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 0.75rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .pp-qr-body {
    flex-direction: column;
    text-align: center;
  }
  .pp-qr-img-wrap {
    flex: 0 0 auto;
    width: 168px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .admin-pay-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}
