:root {
  --navy-950: #0a1128;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-50: #eff6ff;
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --yellow-600: #ca8a04;
  --emerald-600: #16a34a;
  --emerald-500: #10b981;
  --emerald-50: #ecfdf5;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.14);
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--slate-50);
  color: var(--navy-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* =========================================================================
   DEMO SWITCHER BAR (TOP STRIP)
   ========================================================================= */
.demo-switcher-bar {
  background: var(--navy-950);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 900;
}

.demo-switcher-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-switcher-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-300);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--yellow-400);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.2);
}

.demo-switcher-tabs {
  display: flex;
  gap: 6px;
}

.demo-tab {
  background: rgba(255, 255, 255, 0.08);
  color: var(--slate-300);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.demo-tab:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.demo-tab.active {
  background: var(--yellow-400);
  color: var(--navy-950);
  border-color: var(--yellow-400);
  font-weight: 700;
}

/* =========================================================================
   VIEW MANAGEMENT
   ========================================================================= */
.view-section {
  display: none;
}

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

/* =========================================================================
   VIEW 1: PAGE LUAR (LANDING PAGE PENDAFTARAN)
   ========================================================================= */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}

.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-900);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue-600), var(--navy-900));
  color: var(--yellow-400);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.text-accent {
  color: var(--blue-600);
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--slate-500);
  font-weight: 600;
}

.btn-gmail-nav {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  color: var(--navy-900);
  border: 1.5px solid var(--slate-300);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}

.btn-gmail-nav:hover {
  border-color: var(--blue-600);
  background: var(--blue-50);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  padding: 56px 0 72px;
  background:
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.08), transparent 36%),
    radial-gradient(circle at 88% 24%, rgba(250, 204, 21, 0.14), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-600);
}

.hero-heading {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--navy-900);
  margin-bottom: 18px;
}

.highlight-blue {
  color: var(--blue-600);
  position: relative;
}

.hero-description {
  font-size: 1.06rem;
  color: var(--slate-600);
  margin-bottom: 28px;
  max-width: 580px;
}

/* 3 Steps List */
.steps-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 15px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--navy-900);
  color: var(--yellow-400);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-info h3 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 3px;
}

.step-info p {
  font-size: 0.86rem;
  color: var(--slate-600);
}

.step-info code {
  background: var(--slate-100);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.8rem;
  color: var(--blue-700);
  font-weight: 600;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--slate-700);
}

/* Pricing & Registration Card */
.pricing-card {
  background: var(--white);
  border: 2px solid var(--blue-600);
  border-radius: var(--radius-xl);
  padding: 32px 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.pricing-card-ribbon {
  position: absolute;
  top: -13px;
  right: 24px;
  background: linear-gradient(135deg, var(--yellow-400), var(--yellow-500));
  color: var(--navy-950);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(234, 179, 8, 0.3);
}

.pricing-header {
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.pricing-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.pricing-subtitle {
  font-size: 0.86rem;
  color: var(--slate-500);
  margin-bottom: 16px;
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-display .currency {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-900);
}

.price-display .amount {
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--blue-600);
  letter-spacing: -0.03em;
}

.price-display .period {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-500);
}

.price-note {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--emerald-600);
  font-weight: 700;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--slate-700);
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--emerald-50);
  color: var(--emerald-600);
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-features code {
  background: var(--slate-100);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--blue-700);
}

.pricing-cta-box {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.gmail-only-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.79rem;
  color: var(--slate-600);
  background: var(--slate-100);
  padding: 7px 12px;
  border-radius: 8px;
}

.btn-google-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--white);
  color: var(--navy-900);
  border: 2px solid var(--slate-300);
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-google-primary:hover {
  border-color: var(--blue-600);
  background: var(--blue-50);
}

.google-g-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-pay-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  border: none;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.45);
}

.btn-pay-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -5px rgba(37, 99, 235, 0.55);
}

.payment-methods-strip {
  margin-top: 6px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--slate-500);
}

.payment-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.pay-badge {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 600;
  color: var(--slate-700);
}

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  padding: 20px 0;
  text-align: center;
  font-size: 0.83rem;
  color: var(--slate-500);
}

.footer-note {
  font-size: 0.76rem;
  margin-top: 4px;
  color: var(--slate-500);
}

/* =========================================================================
   VIEW 2: PAGE DALAM (DASHBOARD AHLI & DATABASE SUMBER TRAFIK)
   ========================================================================= */
.dash-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  padding: 16px 0;
}

.dash-header-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  display: block;
  line-height: 1.1;
}

.dash-brand-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-user-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sub-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--emerald-50);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #065f46;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.status-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-500);
}

.sub-expiry {
  color: #047857;
  font-size: 0.76rem;
}

.user-gmail-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--slate-100);
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--slate-200);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  font-weight: 800;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-gmail-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-gmail-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-900);
}

.user-gmail-address {
  font-size: 0.72rem;
  color: var(--slate-500);
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--slate-300);
  color: var(--slate-700);
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-logout:hover {
  border-color: #ef4444;
  color: #dc2626;
  background: #fef2f2;
}

/* Dashboard Main Grid */
.dash-main {
  padding-top: 28px;
  padding-bottom: 64px;
}

.dash-top-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  margin-bottom: 24px;
}

.dash-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.dash-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.dash-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-900);
}

.dash-card-subtitle {
  font-size: 0.83rem;
  color: var(--slate-500);
  margin-top: 3px;
}

.saved-indicator {
  background: var(--emerald-50);
  color: var(--emerald-600);
  border: 1px solid rgba(22, 163, 74, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Form Tetapan Username & WhatsApp */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--slate-700);
}

.req {
  color: #ef4444;
}

.input-with-prefix {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--slate-300);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-with-prefix:focus-within {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.input-prefix {
  background: var(--slate-100);
  color: var(--slate-600);
  padding: 10px 12px;
  font-weight: 700;
  font-size: 0.9rem;
  border-right: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
}

.input-with-prefix input {
  width: 100%;
  border: none;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-900);
  font-family: inherit;
  outline: none;
}

.field-hint {
  font-size: 0.74rem;
  color: var(--slate-500);
}

/* Pratonton Link & UTM */
.link-preview-box {
  background: var(--slate-50);
  border: 1px dashed var(--slate-300);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
}

.link-preview-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.preview-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-600);
}

.preview-url {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 4px 10px;
  border-radius: 6px;
  word-break: break-all;
}

.btn-copy-sm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--white);
  border: 1px solid var(--slate-300);
  color: var(--navy-900);
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.btn-copy-sm:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.utm-quick-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--slate-200);
}

.utm-helper-label {
  font-size: 0.74rem;
  color: var(--slate-500);
  font-weight: 600;
}

.utm-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.utm-chip {
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.utm-chip:hover {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.config-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.wa-preview-tag {
  font-size: 0.82rem;
  color: var(--slate-600);
}

.wa-preview-tag strong {
  color: var(--emerald-600);
}

.btn-save-config {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-600);
  color: var(--white);
  border: none;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-save-config:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
}

/* KAD 2: Ringkasan Trafik & Prospek */
.total-leads-badge {
  background: var(--navy-900);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 12px;
  text-align: right;
}

.total-leads-label {
  display: block;
  font-size: 0.7rem;
  color: var(--slate-300);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.total-leads-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--yellow-400);
  line-height: 1.1;
}

.traffic-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.traffic-stat-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.traffic-stat-box:hover {
  border-color: var(--blue-600);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.traffic-stat-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}

.source-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-tiktok { background: #ec4899; }
.dot-fb { background: #2563eb; }
.dot-wa { background: #16a34a; }
.dot-google { background: #f59e0b; }

.traffic-stat-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate-700);
}

.traffic-stat-count {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.15;
  margin-bottom: 8px;
}

.traffic-stat-bar {
  height: 6px;
  background: var(--slate-200);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.traffic-stat-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.fill-tiktok { background: linear-gradient(90deg, #111827, #ec4899); }
.fill-fb { background: #2563eb; }
.fill-wa { background: #16a34a; }
.fill-google { background: #f59e0b; }

.traffic-stat-pct {
  font-size: 0.73rem;
  color: var(--slate-500);
  font-weight: 600;
}

.traffic-insight-strip {
  background: var(--blue-50);
  color: var(--blue-700);
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 0.79rem;
  font-weight: 600;
}

/* =========================================================================
   JADUAL DATABASE PENDAFTARAN PROSPEK
   ========================================================================= */
.database-section {
  padding: 26px;
}

.db-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.db-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-add-lead {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--navy-900);
  color: var(--white);
  border: none;
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.btn-add-lead:hover {
  background: var(--navy-800);
}

.btn-export-csv {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  color: var(--navy-900);
  border: 1.5px solid var(--slate-300);
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.btn-export-csv:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.db-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.search-box {
  flex: 1;
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  padding: 9px 14px;
  border-radius: 10px;
}

.search-box:focus-within {
  border-color: var(--blue-600);
  background: var(--white);
}

.search-box input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  color: var(--navy-900);
}

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-selects select {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

.filter-selects select:focus {
  border-color: var(--blue-600);
}

.table-responsive {
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.leads-table thead {
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
}

.leads-table th {
  padding: 13px 16px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-600);
  white-space: nowrap;
}

.leads-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-800);
  vertical-align: middle;
}

.leads-table tbody tr:hover {
  background: #f8fafc;
}

.text-right {
  text-align: right;
}

.lead-name-cell {
  font-weight: 700;
  color: var(--navy-900);
}

.lead-phone-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate-700);
}

.lead-date-cell {
  font-size: 0.81rem;
  color: var(--slate-500);
  white-space: nowrap;
}

/* Lencana Sumber Trafik */
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-tiktok {
  background: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
}

.badge-facebook {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-whatsapp {
  background: #ecfdf5;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

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

.badge-direct {
  background: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
}

/* Status Select dalam Jadual */
.status-select-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid transparent;
  font-family: inherit;
  cursor: pointer;
}

.status-baru {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

.status-dihubungi {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.status-selesai {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

/* Butang Tindakan WhatsApp */
.action-cell-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-wa-lead {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #16a34a;
  color: var(--white);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.77rem;
  font-weight: 700;
  transition: background 0.15s ease;
}

.btn-wa-lead:hover {
  background: #15803d;
}

.btn-delete-lead {
  background: transparent;
  border: 1px solid var(--slate-200);
  color: var(--slate-500);
  width: 28px;
  height: 28px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-delete-lead:hover {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.db-footer-info {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--slate-500);
  font-weight: 600;
}

/* =========================================================================
   MODALS (LOGIN GMAIL, PEMBAYARAN RM99, TAMBAH PROSPEK)
   ========================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--white);
  width: 100%;
  max-width: 460px;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--slate-100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--slate-600);
}

.google-modal-header,
.payment-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.google-modal-header h3,
.payment-modal-header h3 {
  font-size: 1.22rem;
  font-weight: 800;
  margin-top: 8px;
  color: var(--navy-900);
}

.google-modal-header p,
.payment-modal-header p {
  font-size: 0.84rem;
  color: var(--slate-500);
  margin-top: 4px;
}

.google-account-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.google-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.google-account-item:hover {
  border-color: var(--blue-600);
  background: var(--blue-50);
}

.g-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-blue { background: var(--blue-600); }
.bg-emerald { background: var(--emerald-600); }

.g-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.g-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-900);
}

.g-email {
  font-size: 0.76rem;
  color: var(--slate-500);
}

.g-tag-active {
  font-size: 0.68rem;
  font-weight: 700;
  background: #dcfce7;
  color: #166534;
  padding: 3px 8px;
  border-radius: 999px;
}

.g-tag-new {
  font-size: 0.68rem;
  font-weight: 700;
  background: #fef3c7;
  color: #92400e;
  padding: 3px 8px;
  border-radius: 999px;
}

.divider-text {
  text-align: center;
  font-size: 0.76rem;
  color: var(--slate-500);
  margin: 14px 0;
  position: relative;
}

.custom-gmail-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-gmail-form input,
.custom-gmail-form select {
  padding: 10px 12px;
  border: 1.5px solid var(--slate-300);
  border-radius: 9px;
  font-size: 0.88rem;
  font-family: inherit;
}

.error-msg {
  color: #dc2626;
  font-size: 0.75rem;
  min-height: 16px;
}

.btn-continue-gmail,
.btn-confirm-pay {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue-600);
  color: var(--white);
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.btn-continue-gmail:hover,
.btn-confirm-pay:hover {
  background: var(--blue-700);
}

/* Payment Modal Specifics */
.step-pill {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.payment-summary-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.pay-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.pay-sub {
  font-size: 0.76rem;
  color: var(--slate-500);
}

.payment-summary-box hr {
  border: none;
  border-top: 1px solid var(--slate-200);
  margin: 10px 0;
}

.pay-total {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0;
}

.total-rm {
  color: var(--blue-600);
}

.pay-method-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pay-method-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--slate-200);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy-900);
  color: var(--white);
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.25s ease;
  z-index: 1200;
}

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

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .dash-top-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-row-2col,
  .traffic-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   DASHBOARD SUB-NAVIGATION TABS (3 Tab Bersebelahan: Utama | Training | Resources)
   ========================================================================= */
.dash-subnav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--slate-200);
  border: 1.5px solid var(--slate-300);
  padding: 6px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
}

.dash-subnav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white);
  color: var(--slate-600);
  border: 1.5px solid var(--slate-300);
  border-bottom: 3px solid var(--slate-300);
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
  text-align: left;
}

.dash-subnav-btn:hover {
  border-color: var(--blue-600);
  color: var(--navy-900);
  transform: translateY(-1px);
}

.dash-subnav-btn.active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
  border-bottom: 4px solid var(--yellow-400);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
}

.subnav-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--slate-100);
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-subnav-btn.active .subnav-icon-wrap {
  background: rgba(250, 204, 21, 0.18);
  color: var(--yellow-400);
}

.dash-subnav-btn.active svg {
  stroke: var(--yellow-400);
}

.subnav-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.subnav-main-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: inherit;
}

.subnav-sub-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate-500);
  margin-top: 2px;
}

.dash-subnav-btn.active .subnav-sub-label {
  color: var(--yellow-400);
}

.dash-subview {
  display: none;
}

.dash-subview.active {
  display: block;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* =========================================================================
   SUB-TAB 2: TRAINING (MODUL VIDEO LATIHAN)
   ========================================================================= */
.training-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.training-header-left {
  max-width: 640px;
}

.training-header-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.training-progress-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 10px 16px;
  min-width: 210px;
}

.tp-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 6px;
  color: var(--slate-600);
}

.tp-top strong {
  color: var(--emerald-600);
}

.tp-bar {
  height: 7px;
  background: var(--slate-200);
  border-radius: 999px;
  overflow: hidden;
}

.tp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--emerald-500));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.training-layout-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.video-player-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy-950);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.video-stage-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.35), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(250, 204, 21, 0.2), transparent 50%),
    linear-gradient(135deg, #0a1128 0%, #0f172a 100%);
  position: relative;
}

.play-circle-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--yellow-400);
  color: var(--navy-950);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 16px;
  box-shadow: 0 0 0 10px rgba(250, 204, 21, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-circle-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 0 0 14px rgba(250, 204, 21, 0.28);
}

.video-stage-tag {
  background: rgba(255, 255, 255, 0.12);
  color: var(--yellow-400);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.video-stage-title {
  font-size: 1.2rem;
  font-weight: 800;
  max-width: 520px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.video-stage-sub {
  font-size: 0.82rem;
  color: var(--slate-300);
}

.video-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.video-cat-badge {
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
}

.video-duration-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-500);
}

.active-video-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.active-video-desc {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 16px;
}

.video-key-points {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.video-key-points h4 {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.video-key-points ul {
  padding-left: 18px;
  font-size: 0.84rem;
  color: var(--slate-700);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.video-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-mark-watched {
  background: var(--emerald-600);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s ease;
}

.btn-mark-watched.watched {
  background: var(--emerald-50);
  color: var(--emerald-600);
  border: 1.5px solid var(--emerald-500);
}

/* Playlist Card */
.playlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--slate-200);
}

.playlist-header h3 {
  font-size: 1rem;
  font-weight: 800;
}

.playlist-header span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-500);
}

.playlist-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.playlist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid var(--slate-200);
  background: var(--slate-50);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

.playlist-item:hover {
  border-color: var(--blue-600);
  background: var(--white);
}

.playlist-item.active {
  border-color: var(--blue-600);
  background: var(--blue-50);
}

.pl-num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--slate-200);
  color: var(--slate-700);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.playlist-item.active .pl-num {
  background: var(--blue-600);
  color: var(--white);
}

.playlist-item.done .pl-num {
  background: var(--emerald-600);
  color: var(--white);
}

.pl-body {
  flex: 1;
}

.pl-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.3;
  margin-bottom: 4px;
}

.pl-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--slate-500);
  font-weight: 600;
}

.pl-watched-tag {
  color: var(--emerald-600);
  font-weight: 800;
}

/* =========================================================================
   SUB-TAB 3: RESOURCES (PDF, GAMBAR & POSTER)
   ========================================================================= */
.resources-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.resources-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.res-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.res-tab {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  color: var(--slate-700);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.res-tab:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.res-tab.active {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}

.res-search-box {
  max-width: 340px;
  background: var(--white);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.res-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.res-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.res-thumb {
  height: 195px;
  position: relative;
  overflow: hidden;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.res-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.res-pdf-cover {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.pdf-icon-badge {
  background: #ef4444;
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.35);
}

.res-poster-cover {
  width: 100%;
  height: 100%;
  padding: 20px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.res-type-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}

.pill-pdf {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.pill-poster {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.pill-gambar {
  background: #ecfdf5;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.res-size-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.res-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.res-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.res-desc {
  font-size: 0.82rem;
  color: var(--slate-600);
  margin-bottom: 16px;
  flex: 1;
}

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

.btn-res-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--blue-600);
  color: var(--white);
  border: none;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.btn-res-primary:hover {
  background: var(--blue-700);
}

.btn-res-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--slate-100);
  color: var(--navy-900);
  border: 1px solid var(--slate-300);
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.btn-res-secondary:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.resource-preview-modal-card {
  max-width: 680px;
}

@media (max-width: 980px) {
  .training-layout-grid {
    grid-template-columns: 1fr;
  }
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* =========================================================================
   SUIS PAPARAN PERANTI (DESKTOP / TABLET / MOBILE SIMULATOR)
   ========================================================================= */
.demo-device-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.device-btn {
  background: transparent;
  color: var(--slate-300);
  border: none;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.device-btn:hover {
  color: var(--white);
}

.device-btn.active {
  background: var(--blue-600);
  color: var(--white);
}

/* Simulasi Frame Mobile (390px) & Tablet (768px) */
body.viewport-mobile,
body.viewport-tablet {
  background: #0f172a;
}

body.viewport-mobile .view-section.active {
  max-width: 412px;
  margin: 20px auto 40px;
  background: var(--slate-50);
  border-radius: 32px;
  border: 8px solid #1e293b;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  overflow-x: hidden;
}

body.viewport-tablet .view-section.active {
  max-width: 780px;
  margin: 20px auto 40px;
  background: var(--slate-50);
  border-radius: 24px;
  border: 6px solid #1e293b;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  overflow-x: hidden;
}

/* Susun Atur Mobile View (Apabila butang Mobile View diaktifkan) */
body.viewport-mobile .container {
  padding-left: 18px;
  padding-right: 18px;
}

body.viewport-mobile .site-header,
body.viewport-mobile .dash-header {
  padding: 20px 0 18px;
}

body.viewport-mobile .dash-header-inner {
  gap: 12px;
}

body.viewport-mobile .dash-user-bar {
  width: 100%;
  justify-content: space-between;
  gap: 10px;
}

body.viewport-mobile .sub-status-pill {
  width: 100%;
  justify-content: space-between;
  padding: 9px 14px;
  border-radius: 12px;
}

body.viewport-mobile .user-gmail-chip {
  flex: 1;
}

body.viewport-mobile .dash-main {
  padding-top: 22px;
  padding-bottom: 48px;
}

body.viewport-mobile .hero-section {
  padding: 28px 0 40px;
  min-height: auto;
}

body.viewport-mobile .hero-grid,
body.viewport-mobile .dash-top-grid,
body.viewport-mobile .training-layout-grid,
body.viewport-mobile .resources-grid,
body.viewport-mobile .form-row-2col,
body.viewport-mobile .traffic-stats-grid,
body.viewport-tablet .hero-grid,
body.viewport-tablet .dash-top-grid,
body.viewport-tablet .training-layout-grid {
  grid-template-columns: 1fr;
}

body.viewport-tablet .resources-grid {
  grid-template-columns: repeat(2, 1fr);
}

body.viewport-mobile .hero-heading {
  font-size: 1.75rem;
}

body.viewport-mobile .pricing-card {
  padding: 22px 18px;
}

body.viewport-mobile .dash-subnav {
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
}

body.viewport-mobile .dash-subnav-btn {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  padding: 10px 6px;
}

body.viewport-mobile .subnav-icon-wrap {
  width: 30px;
  height: 30px;
}

body.viewport-mobile .subnav-main-label {
  font-size: 0.8rem;
}

body.viewport-mobile .subnav-sub-label {
  font-size: 0.65rem;
}

@media (max-width: 640px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .site-header,
  .dash-header {
    padding: 20px 0 18px;
  }
  .dash-header-inner {
    gap: 12px;
  }
  .dash-user-bar {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .sub-status-pill {
    width: 100%;
    justify-content: space-between;
    padding: 9px 14px;
    border-radius: 12px;
  }
  .user-gmail-chip {
    flex: 1;
  }
  .dash-main {
    padding-top: 22px;
    padding-bottom: 48px;
  }
  .dash-subnav {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 5px;
  }
  .dash-subnav-btn {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
    padding: 10px 6px;
  }
  .subnav-icon-wrap {
    width: 30px;
    height: 30px;
  }
  .subnav-main-label {
    font-size: 0.8rem;
  }
  .subnav-sub-label {
    font-size: 0.65rem;
  }
}

body.viewport-mobile .header-inner {
  height: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

/* Susunan Mobile View Sahaja: Butang Simpan Tetapan terus selepas Username & Nombor WhatsApp (Hanya untuk #profileConfigForm) */
body.viewport-mobile #profileConfigForm {
  display: flex;
  flex-direction: column;
}

body.viewport-mobile #profileConfigForm .form-row-2col {
  order: 1;
}

body.viewport-mobile #profileConfigForm .config-form-footer {
  order: 2;
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 18px;
}

body.viewport-mobile #profileConfigForm .btn-save-config {
  width: 100%;
  justify-content: center;
}

body.viewport-mobile #profileConfigForm .wa-preview-tag {
  text-align: center;
}

body.viewport-mobile #profileConfigForm .link-preview-box {
  order: 3;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  #profileConfigForm {
    display: flex;
    flex-direction: column;
  }
  #profileConfigForm .form-row-2col {
    order: 1;
  }
  #profileConfigForm .config-form-footer {
    order: 2;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 18px;
  }
  #profileConfigForm .btn-save-config {
    width: 100%;
    justify-content: center;
  }
  #profileConfigForm .wa-preview-tag {
    text-align: center;
  }
  #profileConfigForm .link-preview-box {
    order: 3;
    margin-bottom: 0;
  }
}

/* =========================================================================
   VIEW 3: ADMIN PANEL UTAMA WOWNIAGA.COM (SUPER ADMIN CONTROL CENTER)
   ========================================================================= */
.admin-switcher-tab.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #0f172a !important;
  font-weight: 800 !important;
}

.admin-header-bar {
  background: linear-gradient(135deg, #090e1f 0%, #1e293b 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-brand-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
}

.admin-badge-tag {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.admin-gateway-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.admin-gateway-status-pill strong {
  color: #ffffff;
}

.btn-admin-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-admin-header-action:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-admin-header-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.btn-admin-header-portal:hover {
  background: #1d4ed8;
}

/* KPI Grid Admin */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.admin-kpi-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  min-width: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.admin-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-500);
}

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

.admin-kpi-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--slate-500);
}

.admin-kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.kpi-blue { background: #eff6ff; }
.kpi-emerald { background: #ecfdf5; }
.kpi-amber { background: #fffbeb; }
.kpi-purple { background: #f5f3ff; }

.admin-kpi-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.15;
  margin-bottom: 4px;
}

.admin-kpi-sub {
  font-size: 0.78rem;
  color: var(--slate-500);
  font-weight: 600;
}

/* 4-Tab Admin Navigation */
.admin-subnav-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* 2-Column Layout for Admin Upload & List */
.admin-2col-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  width: 100%;
}

.admin-2col-layout > *,
#adminView .dash-card,
#adminView .form-group,
#adminView .form-row-2col {
  min-width: 0;
  max-width: 100%;
}

.admin-text-input,
.admin-select-input,
.admin-textarea-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1.5px solid var(--slate-300);
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--navy-900);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-text-input:focus,
.admin-select-input:focus,
.admin-textarea-input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.mono-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
}

.admin-url-detect-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.81rem;
  font-weight: 700;
  margin-top: 8px;
  word-break: break-word;
}

.admin-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--slate-100);
}

/* Dropzone Upload Fail */
.admin-file-dropzone {
  border: 2px dashed #93c5fd;
  background: #f8fafc;
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  word-break: break-word;
}

.admin-file-dropzone:hover,
.admin-file-dropzone.has-file {
  background: #eff6ff;
  border-color: #2563eb;
}

.dropzone-icon {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.dropzone-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 3px;
}

.dropzone-sub {
  font-size: 0.75rem;
  color: var(--slate-500);
}

/* Senarai Kandungan di Kanan Admin */
.admin-content-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 680px;
  overflow-y: auto;
  padding-right: 2px;
  min-width: 0;
}

.admin-item-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  min-width: 0;
  max-width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-item-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.admin-item-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.admin-item-badge {
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.src-gdrive {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.src-youtube {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.src-mp4 {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.admin-item-info {
  flex: 1;
  min-width: 0;
}

.admin-item-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 3px;
  word-break: break-word;
}

.admin-item-meta {
  font-size: 0.76rem;
  color: var(--slate-500);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 5px;
}

.admin-item-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 7px;
  border-radius: 5px;
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-admin-sm {
  background: var(--white);
  border: 1px solid var(--slate-300);
  color: var(--slate-700);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-admin-sm:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.btn-admin-sm.danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Payment Gateway Cards (Billplz & Stripe) */
.admin-payment-general-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
  background: var(--slate-50);
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--slate-200);
}

.gateway-config-card {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
}

.billplz-card {
  border-top: 4px solid #0284c7;
}

.stripe-card {
  border-top: 4px solid #6366f1;
}

.gateway-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--slate-100);
}

.gateway-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.gateway-logo-badge {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffffff;
  flex-shrink: 0;
}

.billplz-logo {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.stripe-logo {
  background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
}

.gateway-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 2px;
}

.gateway-sub {
  font-size: 0.77rem;
  color: var(--slate-500);
  margin: 0;
}

.gateway-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--emerald-600);
  background: #ecfdf5;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
  cursor: pointer;
  flex-shrink: 0;
}

.secret-input-group {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

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

.btn-toggle-secret {
  background: var(--slate-100);
  border: 1.5px solid var(--slate-300);
  color: var(--slate-700);
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  flex-shrink: 0;
}

.btn-toggle-secret:hover {
  background: var(--slate-200);
}

.gateway-test-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--slate-200);
}

.gateway-test-status {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-600);
}

.gateway-test-status.ok {
  color: #15803d;
}

/* Jadual User Monitoring */
.user-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.user-status-active {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.user-status-inactive {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.user-leads-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 8px;
}

/* =========================================================================
   RESPONSIVE TABLET & MOBILE VIEW UNTUK ADMIN PANEL & PORTAL
   ========================================================================= */
@media (max-width: 980px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-subnav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .admin-2col-layout,
  .admin-payment-general-bar {
    grid-template-columns: minmax(0, 1fr);
  }
}

body.viewport-tablet .admin-kpi-grid,
body.viewport-tablet .admin-subnav-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.viewport-tablet .admin-2col-layout,
body.viewport-tablet .admin-payment-general-bar {
  grid-template-columns: minmax(0, 1fr);
}

/* MOBILE VIEW OPTIMIZATION (body.viewport-mobile & skrin telefon sebenar) */
body.viewport-mobile .admin-kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.viewport-mobile .admin-kpi-card {
  padding: 13px 12px;
}

body.viewport-mobile .admin-kpi-value {
  font-size: 1.2rem;
}

body.viewport-mobile .admin-kpi-sub {
  font-size: 0.7rem;
}

body.viewport-mobile .admin-subnav-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px;
}

body.viewport-mobile .admin-2col-layout,
body.viewport-mobile .admin-payment-general-bar,
body.viewport-mobile #adminView .form-row-2col {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px;
}

body.viewport-mobile #adminView .dash-card,
body.viewport-mobile .gateway-config-card {
  padding: 16px 14px;
  border-radius: 14px;
}

body.viewport-mobile #adminView .dash-card-header,
body.viewport-mobile #adminView .db-header-bar {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

body.viewport-mobile #adminView .db-action-buttons,
body.viewport-mobile #adminView .filter-selects {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}

body.viewport-mobile #adminView .db-action-buttons button,
body.viewport-mobile #adminView .filter-selects select {
  width: 100%;
  justify-content: center;
}

body.viewport-mobile .admin-gateway-status-pill {
  width: 100%;
  justify-content: center;
  font-size: 0.73rem;
  text-align: center;
}

body.viewport-mobile .btn-admin-header-action,
body.viewport-mobile .btn-admin-header-portal {
  flex: 1;
  font-size: 0.75rem;
  padding: 8px 10px;
}

body.viewport-mobile .admin-form-actions {
  flex-direction: column;
  align-items: stretch;
}

body.viewport-mobile .admin-form-actions .btn-save-config,
body.viewport-mobile .admin-form-actions .btn-res-secondary {
  width: 100%;
  justify-content: center;
  text-align: center;
  white-space: normal;
  padding: 12px 14px;
}

body.viewport-mobile .admin-item-card {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
}

body.viewport-mobile .admin-item-actions {
  width: 100%;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--slate-200);
}

body.viewport-mobile .admin-item-actions .btn-admin-sm {
  flex: 1;
  text-align: center;
}

body.viewport-mobile .gateway-card-top {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

body.viewport-mobile .gateway-test-bar {
  flex-direction: column;
  align-items: stretch;
}

body.viewport-mobile .gateway-test-bar button {
  width: 100%;
}

@media (max-width: 640px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .admin-kpi-card {
    padding: 13px 12px;
  }
  .admin-kpi-value {
    font-size: 1.2rem;
  }
  .admin-kpi-sub {
    font-size: 0.7rem;
  }
  .admin-subnav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px;
  }
  .admin-2col-layout,
  .admin-payment-general-bar,
  #adminView .form-row-2col {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px;
  }
  #adminView .dash-card,
  .gateway-config-card {
    padding: 16px 14px;
    border-radius: 14px;
  }
  #adminView .dash-card-header,
  #adminView .db-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  #adminView .db-action-buttons,
  #adminView .filter-selects {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  #adminView .db-action-buttons button,
  #adminView .filter-selects select {
    width: 100%;
    justify-content: center;
  }
  .admin-gateway-status-pill {
    width: 100%;
    justify-content: center;
    font-size: 0.73rem;
    text-align: center;
  }
  .btn-admin-header-action,
  .btn-admin-header-portal {
    flex: 1;
    font-size: 0.75rem;
    padding: 8px 10px;
  }
  .admin-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-form-actions .btn-save-config,
  .admin-form-actions .btn-res-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    padding: 12px 14px;
  }
  .admin-item-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }
  .admin-item-actions {
    width: 100%;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid var(--slate-200);
  }
  .admin-item-actions .btn-admin-sm {
    flex: 1;
    text-align: center;
  }
  .gateway-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .gateway-test-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .gateway-test-bar button {
    width: 100%;
  }
}

/* Google OAuth 2.0 Integration Styles */
.google-auth-card {
  border-top: 4px solid #ea4335;
  margin-bottom: 20px;
}

.google-logo {
  background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%);
}

.btn-google-official-mock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  background: #ffffff;
  border: 1.5px solid #dadce0;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #3c4043;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
}

.btn-google-official-mock:hover {
  background: #f8fafd;
  border-color: #4285f4;
  box-shadow: 0 2px 6px rgba(66, 133, 244, 0.2);
}

.google-setup-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
}

.google-setup-box ol {
  margin: 8px 0 0 18px;
  padding: 0;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.55;
}

.google-setup-box ol li {
  margin-bottom: 6px;
}

.google-setup-box code {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.76rem;
  color: #0f172a;
}

