/* ═══════════════════════════════════════════════════════════════
   DigiRush Web — Design System
   Digital Marketing for B2C
   Colors: Blue #0088CC | Orange #FF9900 | Dark Premium Theme
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ────────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --brand-blue: #0088CC;
  --brand-blue-light: #00A8E8;
  --brand-blue-dark: #006699;
  --brand-orange: #FF9900;
  --brand-orange-light: #FFB347;
  --brand-orange-dark: #E67E00;

  /* Dark Theme Surfaces */
  --bg-primary: #0A0E1A;
  --bg-secondary: #111827;
  --bg-tertiary: #1A2035;
  --bg-card: #161B2E;
  --bg-card-hover: #1E2540;
  --bg-input: #0F1424;

  /* Glassmorphism */
  --glass-bg: rgba(22, 27, 46, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;

  /* Text Colors */
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-brand: #00A8E8;
  --text-orange: #FFB347;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #0088CC 0%, #00A8E8 50%, #FF9900 100%);
  --gradient-blue: linear-gradient(135deg, #006699 0%, #0088CC 50%, #00A8E8 100%);
  --gradient-orange: linear-gradient(135deg, #FF9900 0%, #FFB347 100%);
  --gradient-glow: linear-gradient(135deg, rgba(0,136,204,0.15), rgba(255,153,0,0.15));
  --gradient-hero: radial-gradient(ellipse at top left, rgba(0,136,204,0.12), transparent 50%),
                   radial-gradient(ellipse at bottom right, rgba(255,153,0,0.08), transparent 50%),
                   #0A0E1A;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow-blue: 0 0 30px rgba(0,136,204,0.3);
  --shadow-glow-orange: 0 0 30px rgba(255,153,0,0.3);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);

  /* Borders */
  --border-subtle: rgba(255,255,255,0.06);
  --border-default: rgba(255,255,255,0.1);
  --border-brand: rgba(0,136,204,0.3);
  --border-orange: rgba(255,153,0,0.3);

  /* Status Colors */
  --success: #10B981;
  --success-bg: rgba(16,185,129,0.12);
  --warning: #F59E0B;
  --warning-bg: rgba(245,158,11,0.12);
  --danger: #EF4444;
  --danger-bg: rgba(239,68,68,0.12);
  --info: #3B82F6;
  --info-bg: rgba(59,130,246,0.12);

  /* Sizing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --sidebar-width: 260px;
  --header-height: 72px;
  --max-width: 1280px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Aliases (used by leaderboard/table components) */
  --surface: var(--bg-card);
  --surface-elevated: var(--bg-tertiary);
  --border: var(--border-default);
}

/* ── Light Theme Overrides ─────────────────────────────────────────── */
[data-theme="light"] {
  --bg-primary: #F0F4FA;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #E8EEF6;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F4F8FE;
  --bg-input: #F7FAFD;

  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(0, 0, 0, 0.08);

  --text-primary: #0F1B2D;
  --text-secondary: #4A5B73;
  --text-muted: #7B8DA6;
  --text-brand: #0077B6;
  --text-orange: #E67E00;

  --gradient-hero: radial-gradient(ellipse at top left, rgba(0,136,204,0.10), transparent 50%),
                   radial-gradient(ellipse at bottom right, rgba(255,153,0,0.07), transparent 50%),
                   #F0F4FA;

  --shadow-sm: 0 2px 8px rgba(15,27,45,0.08);
  --shadow-md: 0 4px 20px rgba(15,27,45,0.10);
  --shadow-lg: 0 8px 40px rgba(15,27,45,0.14);
  --shadow-glow-blue: 0 0 30px rgba(0,136,204,0.18);
  --shadow-glow-orange: 0 0 30px rgba(255,153,0,0.18);
  --shadow-card: 0 4px 24px rgba(15,27,45,0.08), inset 0 1px 0 rgba(255,255,255,0.6);

  --border-subtle: rgba(15,27,45,0.07);
  --border-default: rgba(15,27,45,0.12);
  --border-brand: rgba(0,136,204,0.3);
  --border-orange: rgba(255,153,0,0.3);

  --success-bg: rgba(16,185,129,0.12);
  --warning-bg: rgba(245,158,11,0.14);
  --danger-bg: rgba(239,68,68,0.10);
  --info-bg: rgba(59,130,246,0.10);

  /* Aliases */
  --surface: var(--bg-card);
  --surface-elevated: var(--bg-tertiary);
  --border: var(--border-default);
}

/* Smooth theme transition */
body, .sidebar, .topbar, .auth-card, .bg-animated,
.campaign-card, .stat-card, .wallet-card, .profile-card,
.leaderboard-table-wrap, .notif-dropdown, .modal, .toast {
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

/* ── Theme Toggle Switch ───────────────────────────────────────────── */
.theme-toggle {
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: 30px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 4px;
  transition: var(--transition);
  flex-shrink: 0;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 0 12px rgba(0,136,204,0.25);
}

.theme-toggle-thumb {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  left: 3px;
}

/* Dark mode (default): thumb on left showing moon */
.theme-toggle-thumb::after { content: "🌙"; }

/* Light mode: thumb slides right showing sun */
[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(26px);
}
[data-theme="light"] .theme-toggle-thumb::after { content: "☀️"; }

.theme-toggle-landing {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-color: var(--glass-border);
}

/* ── Reset & Base ─────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(0,136,204,0.3);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-blue); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Animated Background ──────────────────────────────────────── */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--gradient-hero);
  overflow: hidden;
}

.bg-animated::before,
.bg-animated::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

.bg-animated::before {
  width: 500px; height: 500px;
  background: var(--brand-blue);
  top: -200px; left: -100px;
}

.bg-animated::after {
  width: 400px; height: 400px;
  background: var(--brand-orange);
  bottom: -150px; right: -100px;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, 30px) scale(1.1); }
  66% { transform: translate(-30px, 50px) scale(0.95); }
}

/* ── Utility Classes ──────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hidden { display: none !important; }
.text-center { text-align: center; }
.text-brand { color: var(--text-brand); }
.text-orange { color: var(--text-orange); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 4px 20px rgba(0,136,204,0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,136,204,0.45);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--brand-blue);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-brand);
  border: 1.5px solid var(--brand-blue);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(0,136,204,0.1);
  box-shadow: var(--shadow-glow-blue);
}

.btn-orange {
  background: var(--gradient-orange);
  color: #1a1a1a;
  box-shadow: 0 4px 20px rgba(255,153,0,0.3);
}

.btn-orange:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,153,0,0.45);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: #DC2626;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { width: 100%; }

/* ── Logo ─────────────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0,136,204,0.28));
  transition: var(--transition);
}

.logo:hover img {
  filter: drop-shadow(0 0 20px rgba(0,136,204,0.45));
  transform: scale(1.03);
}

.logo-text {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-text .digi { color: var(--brand-blue-light); }
.logo-text .rush { color: var(--brand-orange-light); }

.logo-sm img { height: 44px; }
.logo-lg img { height: 72px; }

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES (Login / Register / Forgot)
   ═══════════════════════════════════════════════════════════════ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.auth-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.auth-card.wide { max-width: 560px; }

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.auth-logo img {
  height: 72px;
  width: auto;
  filter: drop-shadow(0 0 18px rgba(0,136,204,0.3));
  transition: var(--transition);
}

.auth-logo:hover img {
  filter: drop-shadow(0 0 26px rgba(0,136,204,0.5));
  transform: scale(1.04);
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 32px;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0,136,204,0.15);
  background: var(--bg-card);
}

.form-input::placeholder { color: var(--text-muted); }

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 40px;
}

.input-icon-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
}

.input-icon-group .form-input {
  padding-left: 46px;
}

.form-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-error {
  background: var(--danger-bg);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: #FCA5A5;
  margin-bottom: 20px;
  display: none;
}

.form-error.show { display: block; }

.form-success {
  background: var(--success-bg);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: #6EE7B7;
  margin-bottom: 20px;
  display: none;
}

.form-success.show { display: block; }

/* Role Selector */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.role-option {
  padding: 20px 16px;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-input);
}

.role-option:hover {
  border-color: var(--brand-blue);
  background: var(--bg-card);
}

.role-option.selected {
  border-color: var(--brand-blue);
  background: rgba(0,136,204,0.08);
  box-shadow: var(--shadow-glow-blue);
}

.role-option.selected.owner {
  border-color: var(--brand-orange);
  background: rgba(255,153,0,0.08);
  box-shadow: var(--shadow-glow-orange);
}

.role-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.role-label {
  font-weight: 600;
  font-size: 15px;
}

.role-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Demo credentials box */
.demo-box {
  background: var(--bg-input);
  border: 1px dashed var(--border-brand);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 24px;
}

.demo-box-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-brand);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-cred {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.demo-cred:hover { color: var(--text-brand); }
.demo-cred:last-child { border-bottom: none; }

.demo-cred .cred-role {
  color: var(--text-muted);
  font-size: 12px;
}

.demo-cred .cred-email {
  font-family: 'Courier New', monospace;
}

.auth-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--text-brand);
  font-weight: 600;
  transition: var(--transition);
}

.auth-footer a:hover { color: var(--brand-orange); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   APP LAYOUT (Dashboard, Campaigns, Wallet, etc.)
   ═══════════════════════════════════════════════════════════════ */

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: var(--transition);
}

.sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-header img { height: 44px; }

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 12px 12px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 4px;
  position: relative;
}

.nav-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(0,136,204,0.15), transparent);
  color: var(--text-brand);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--gradient-brand);
  border-radius: 0 3px 3px 0;
}

.nav-item .nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.nav-badge {
  margin-left: auto;
  background: var(--brand-orange);
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-user:hover { background: var(--bg-tertiary); }

.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.sidebar-user-info {
  overflow: hidden;
}

.sidebar-user-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: capitalize;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Bar */
.topbar {
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title {
  font-size: 20px;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notif-bell {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 18px;
}

.notif-bell:hover {
  background: var(--bg-card-hover);
  color: var(--text-brand);
}

.notif-bell .notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  background: var(--brand-orange);
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
  display: none;
}

.notif-bell .notif-dot.show { display: block; }

.notif-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 360px;
  max-height: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 200;
}

.notif-dropdown.show { display: flex; }

.notif-dropdown-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-dropdown-header h4 { font-size: 16px; }

.notif-list {
  overflow-y: auto;
  flex: 1;
}

.notif-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  gap: 12px;
}

.notif-item:hover { background: var(--bg-tertiary); }
.notif-item.unread { background: rgba(0,136,204,0.05); }

.notif-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.notif-item-content { flex: 1; }
.notif-item-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.notif-item-msg { font-size: 13px; color: var(--text-secondary); }
.notif-item-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.notif-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

/* Content Area */
.content-area {
  flex: 1;
  padding: 28px;
}

.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-default);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Stat Cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.15;
}

.stat-card.blue::before { background: var(--brand-blue); }
.stat-card.orange::before { background: var(--brand-orange); }
.stat-card.green::before { background: var(--success); }
.stat-card.purple::before { background: #A855F7; }

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-value {
  font-size: 30px;
  font-weight: 800;
  margin-top: 4px;
}

.stat-value.gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-trend {
  font-size: 13px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Profile Card (Dashboard) ─────────────────────────────────── */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: var(--gradient-brand);
  opacity: 0.15;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  border: 3px solid var(--bg-card);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-glow-blue);
}

.profile-info { flex: 1; position: relative; z-index: 1; }
.profile-name { font-size: 20px; font-weight: 700; }
.profile-role-badge {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 6px;
  font-weight: 600;
}
.profile-role-badge.customer { background: var(--info-bg); color: #60A5FA; }
.profile-role-badge.owner { background: var(--warning-bg); color: #FBBF24; }
.profile-role-badge.admin { background: rgba(168,85,247,0.15); color: #C084FC; }
.profile-meta { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ── Wallet Card ──────────────────────────────────────────────── */
.wallet-card {
  background: var(--gradient-blue);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  color: white;
  min-width: 200px;
}

.wallet-card::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,153,0,0.2);
}

.wallet-label {
  font-size: 13px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-amount {
  font-size: 32px;
  font-weight: 800;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.wallet-currency { font-size: 20px; font-weight: 600; opacity: 0.9; }

.wallet-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.wallet-mini-btn {
  padding: 6px 14px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.wallet-mini-btn:hover {
  background: rgba(255,255,255,0.25);
}

/* ── Dashboard Layout Grid ────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 300px;
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-grid .col-main { grid-column: span 1; }
.dashboard-grid .col-side { grid-column: span 1; }

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

/* ── Campaign Cards ───────────────────────────────────────────── */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.campaign-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.campaign-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-brand);
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
}

.campaign-banner {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg-tertiary);
}

.campaign-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.campaign-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--info-bg);
  color: #60A5FA;
  margin-bottom: 10px;
  align-self: flex-start;
}

.campaign-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.campaign-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.campaign-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.campaign-meta-item {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.campaign-meta-item strong { color: var(--text-primary); }

.campaign-reward {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 22px;
  font-weight: 800;
}

.campaign-progress {
  margin-bottom: 14px;
}

.progress-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.campaign-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.campaign-owner {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Current Campaign Hero (Customer Dashboard) ───────────────── */
.current-campaign {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}

.current-campaign-banner {
  width: 100%;
  height: 200px;
  object-fit: cover;
  position: relative;
}

.current-campaign-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--bg-card));
}

.current-campaign-body { padding: 24px; }

.current-campaign-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 16px;
}

.current-campaign-title {
  font-size: 22px;
  font-weight: 700;
}

.day-chips {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.day-chip {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.day-chip.completed {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(16,185,129,0.3);
}

.day-chip.current {
  background: var(--gradient-brand);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-glow-blue);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,136,204,0.3); }
  50% { box-shadow: 0 0 30px rgba(0,136,204,0.6); }
}

/* ── Quick Actions ────────────────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.quick-action {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.quick-action:hover {
  border-color: var(--brand-blue);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.quick-action-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.quick-action-label {
  font-size: 13px;
  font-weight: 600;
}

/* ── Transaction List ─────────────────────────────────────────── */
.txn-list { display: flex; flex-direction: column; gap: 2px; }

.txn-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.txn-item:last-child { border-bottom: none; }

.txn-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.txn-icon.credit { background: var(--success-bg); color: var(--success); }
.txn-icon.debit { background: var(--danger-bg); color: var(--danger); }

.txn-info { flex: 1; }
.txn-desc { font-size: 14px; font-weight: 500; }
.txn-date { font-size: 12px; color: var(--text-muted); }

.txn-amount {
  font-size: 16px;
  font-weight: 700;
}

.txn-amount.credit { color: var(--success); }
.txn-amount.debit { color: var(--danger); }

/* ── Tables (Admin) ───────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead {
  background: var(--bg-tertiary);
}

th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

td {
  padding: 14px 18px;
  border-top: 1px solid var(--border-subtle);
  white-space: nowrap;
}

tbody tr {
  transition: var(--transition);
}

tbody tr:hover {
  background: var(--bg-tertiary);
}

/* ── Status Badges ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-active { background: var(--success-bg); color: var(--success); }
.badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-rejected { background: var(--danger-bg); color: var(--danger); }
.badge-approved { background: var(--success-bg); color: var(--success); }
.badge-completed { background: var(--info-bg); color: #60A5FA; }
.badge-banned { background: var(--danger-bg); color: var(--danger); }
.badge-paused { background: var(--warning-bg); color: var(--warning); }

/* ── Empty State ──────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.empty-state-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
}

/* ── Loading Spinner ──────────────────────────────────────────── */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--bg-tertiary);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-lg { width: 48px; height: 48px; border-width: 4px; }

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

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,14,26,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  display: none;
}

.loading-overlay.show { display: flex; }

/* ── Toast Notifications ──────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  min-width: 280px;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--brand-blue);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

.toast-icon { font-size: 20px; }
.toast-msg { flex: 1; font-size: 14px; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── Tabs ─────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab:hover { color: var(--text-primary); }

.tab.active {
  color: var(--text-brand);
  border-bottom-color: var(--brand-blue);
}

/* ── Modal ────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,14,26,0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 24px;
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title { font-size: 20px; font-weight: 700; }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
  transition: var(--transition);
  border: none;
}

.modal-close:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ── Landing Page v2 ─────────────────────────────────────────────────────────── */
.landing-body { background: var(--bg-main); color: var(--text-primary); }

.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid transparent;
  padding: 14px 0; transition: all .3s ease;
}
.landing-nav.scrolled {
  background: var(--bg-glass-strong); border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.landing-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.landing-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.landing-nav-logo img { height: 40px; width: auto; }
.landing-nav-links { display: flex; align-items: center; gap: 28px; }
.landing-nav-links a {
  color: var(--text-secondary); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color .2s;
}
.landing-nav-links a:hover { color: var(--text-primary); }
.landing-nav-actions { display: flex; align-items: center; gap: 14px; }
.btn-ghost {
  color: var(--text-primary); background: transparent; border: 1px solid var(--border-default);
  padding: 10px 22px; border-radius: var(--radius-md); font-weight: 600; font-size: 15px;
  text-decoration: none; transition: var(--transition); cursor: pointer;
}
.btn-ghost:hover { border-color: var(--border-brand); color: var(--text-brand); }
.landing-mobile-toggle {
  display: none; background: none; border: none; color: var(--text-primary);
  font-size: 26px; cursor: pointer; padding: 4px;
}

/* ── Hero ── */
.hero {
  position: relative; padding: 130px 24px 80px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -180px; right: -120px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(0,136,204,.22), transparent 70%); filter: blur(30px); z-index: 0;
}
.hero::after {
  content: ''; position: absolute; bottom: -160px; left: -100px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(255,153,0,.18), transparent 70%); filter: blur(30px); z-index: 0;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  max-width: var(--max-width); margin: 0 auto; position: relative; z-index: 1;
}
.hero-text { max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
  background: var(--glass-bg); border: 1px solid var(--border-brand); border-radius: 30px;
  font-size: 13px; font-weight: 600; color: var(--text-brand); margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-orange);
  box-shadow: 0 0 0 0 rgba(255,153,0,.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,153,0,.6); }
  70% { box-shadow: 0 0 0 12px rgba(255,153,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,153,0,0); }
}
.hero h1 {
  font-size: 58px; font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 22px;
}
.hero h1 .text-gradient {
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 .text-orange { color: var(--accent-orange); }
.hero-sub {
  font-size: 19px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 34px; max-width: 540px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 34px; font-size: 16px; font-weight: 700;
  background: var(--gradient-brand); color: #fff; border: none; border-radius: var(--radius-md);
  text-decoration: none; box-shadow: 0 10px 30px rgba(0,136,204,.4); transition: var(--transition); cursor: pointer;
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(0,136,204,.5); }
.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; font-size: 16px; font-weight: 700;
  color: var(--text-primary); background: var(--bg-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); text-decoration: none; transition: var(--transition); cursor: pointer;
}
.btn-hero-secondary:hover { border-color: var(--border-brand); transform: translateY(-3px); }
.hero-trust { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.hero-trust-item .check-icon {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(16,185,129,.18);
  display: flex; align-items: center; justify-content: center; color: #10B981; font-size: 13px; font-weight: 800;
}
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-glow {
  position: absolute; inset: 40px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,136,204,.3), rgba(255,153,0,.15) 60%, transparent 75%);
  filter: blur(40px); z-index: 0;
}
.hero-phone-img {
  position: relative; z-index: 1; max-width: 460px; width: 100%; height: auto;
  border-radius: 30px; box-shadow: 0 30px 70px rgba(0,0,0,.45);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
.hero-float-card {
  position: absolute; z-index: 2; background: var(--bg-glass-strong); backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); display: flex; align-items: center; gap: 12px; font-size: 13px;
}
.hero-float-card.fc-1 { top: 8%; left: -4%; animation: floaty 5s ease-in-out infinite; }
.hero-float-card.fc-2 { bottom: 12%; right: -6%; animation: floaty 7s ease-in-out infinite .5s; }
.float-icon {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.float-icon.blue { background: rgba(0,136,204,.2); }
.float-icon.green { background: rgba(16,185,129,.2); }
.hero-float-card .fc-title { font-weight: 700; color: var(--text-primary); }
.hero-float-card .fc-sub { color: var(--text-muted); font-size: 11px; }

/* ── Hero Stats ── */
.hero-stats {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px 70px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; position: relative; z-index: 1;
}
.hero-stat {
  text-align: center; padding: 28px 16px; background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); transition: var(--transition);
}
.hero-stat:hover { border-color: var(--border-brand); transform: translateY(-4px); }
.hero-stat-num {
  font-size: 38px; font-weight: 800; background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1;
}
.hero-stat-label { margin-top: 8px; font-size: 14px; color: var(--text-secondary); }

/* ── Trust bar ── */
.trust-bar { padding: 40px 24px; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.trust-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.trust-label { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1.5px; }
.trust-logos { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.trust-logo { font-size: 20px; font-weight: 800; color: var(--text-muted); opacity: .7; letter-spacing: -.5px; }

/* ── Sections ── */
.section { padding: 90px 24px; }
.section-alt { background: var(--bg-secondary); }
.container { max-width: var(--max-width); margin: 0 auto; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block; padding: 6px 16px; background: rgba(0,136,204,.12); color: var(--text-brand);
  border-radius: 20px; font-size: 13px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px;
}
.section-title { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; line-height: 1.15; }
.section-sub { font-size: 18px; color: var(--text-secondary); line-height: 1.6; }
.text-orange { color: var(--accent-orange); }

/* ── How it works steps ── */
.steps-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; position: relative;
}
.step-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 40px 32px; text-align: center; position: relative; transition: var(--transition);
}
.step-card:hover { border-color: var(--border-brand); transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-number {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 18px rgba(0,136,204,.4);
}
.step-icon {
  width: 64px; height: 64px; border-radius: var(--radius-md); margin: 12px auto 22px;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.step-icon.blue { background: rgba(0,136,204,.14); }
.step-icon.orange { background: rgba(255,153,0,.14); }
.step-icon.green { background: rgba(16,185,129,.14); }
.step-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.step-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

/* ── Instagram Agent ── */
.agent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.agent-text h2 { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin-bottom: 18px; line-height: 1.15; }
.agent-text .lead { font-size: 18px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 28px; }
.agent-features { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.agent-feature { display: flex; gap: 16px; align-items: flex-start; }
.agent-feature-icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(0,136,204,.14);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; color: var(--text-brand);
}
.agent-feature h4 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.agent-feature p { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.agent-visual { position: relative; }
.agent-img {
  width: 100%; max-width: 480px; border-radius: var(--radius-xl); margin: 0 auto; display: block;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.agent-status-card {
  position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%); width: 88%;
  background: var(--bg-glass-strong); backdrop-filter: blur(16px); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 18px 22px; box-shadow: 0 14px 40px rgba(0,0,0,.3);
}
.agent-status-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.agent-status-row + .agent-status-row { border-top: 1px solid var(--border-subtle); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 10px; }
.status-dot.green { background: #10B981; box-shadow: 0 0 0 4px rgba(16,185,129,.2); }
.status-badge {
  padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700;
}
.status-badge.ok { background: rgba(16,185,129,.16); color: #10B981; }
.status-badge.pending { background: rgba(245,158,11,.16); color: #F59E0B; }

/* ── Features (shop owners) ── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 32px; transition: var(--transition);
}
.feature-card:hover { border-color: var(--border-brand); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md); display: flex; align-items: center;
  justify-content: center; font-size: 26px; margin-bottom: 20px;
}
.feature-icon.blue { background: rgba(0,136,204,.15); }
.feature-icon.orange { background: rgba(255,153,0,.15); }
.feature-icon.green { background: rgba(16,185,129,.15); }
.feature-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.feature-desc { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

/* ── Earnings calculator ── */
.calc-card {
  max-width: 820px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-xl); padding: 44px; box-shadow: var(--shadow-md);
}
.calc-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-bottom: 32px; }
.calc-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--text-secondary); }
.calc-field .calc-val { font-size: 22px; font-weight: 800; color: var(--text-brand); margin-bottom: 10px; }
.calc-field input[type=range] {
  -webkit-appearance: none; width: 100%; height: 8px; border-radius: 8px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange)); outline: none;
}
.calc-field input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  border: 3px solid var(--accent-blue); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.calc-field input[type=range]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--accent-blue);
  cursor: pointer;
}
.calc-result {
  text-align: center; padding: 28px; background: var(--gradient-glow); border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
}
.calc-result-label { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.calc-result-amount { font-size: 48px; font-weight: 800; background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.calc-result-note { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* ── Testimonials ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 24px; }
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 32px; transition: var(--transition);
}
.testimonial-card:hover { border-color: var(--border-brand); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stars { color: #F59E0B; font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { color: var(--text-secondary); font-size: 15px; line-height: 1.65; margin-bottom: 22px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-brand);
}
.testimonial-name { font-weight: 700; font-size: 15px; }
.testimonial-role { color: var(--text-muted); font-size: 13px; }

/* ── FAQ ── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); margin-bottom: 14px; overflow: hidden; transition: var(--transition); }
.faq-item.active { border-color: var(--border-brand); }
.faq-q {
  width: 100%; text-align: left; background: var(--bg-card); border: none; padding: 20px 24px;
  font-size: 16px; font-weight: 600; color: var(--text-primary); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q:hover { background: var(--bg-tertiary); }
.faq-icon { font-size: 22px; color: var(--text-brand); transition: transform .3s; flex-shrink: 0; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--text-secondary); font-size: 15px; line-height: 1.65; }

/* ── Final CTA ── */
.final-cta { padding: 90px 24px; }
.final-cta-box {
  max-width: 880px; margin: 0 auto; text-align: center; padding: 64px 40px;
  background: var(--gradient-glow); border: 1px solid var(--border-default); border-radius: var(--radius-xl);
  position: relative; overflow: hidden;
}
.final-cta-box::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,136,204,.25), transparent 70%); filter: blur(30px);
}
.final-cta-box h2 { font-size: 38px; font-weight: 800; margin-bottom: 16px; position: relative; }
.final-cta-box p { font-size: 18px; color: var(--text-secondary); margin-bottom: 32px; position: relative; }
.final-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── Footer ── */
.landing-footer { border-top: 1px solid var(--border-subtle); padding: 64px 24px 28px; background: var(--bg-secondary); }
.footer-grid { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .footer-logo { height: 44px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 14px; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text-brand); }
.footer-bottom {
  max-width: var(--max-width); margin: 36px auto 0; padding-top: 24px; border-top: 1px solid var(--border-subtle);
  text-align: center; color: var(--text-muted); font-size: 13px;
}

/* ── Landing responsive ── */
@media (max-width: 968px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { max-width: 100%; margin: 0 auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .agent-grid { grid-template-columns: 1fr; gap: 70px; }
  .calc-controls { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section-title { font-size: 32px; }
  .hero h1 { font-size: 44px; }
}
@media (max-width: 640px) {
  .landing-nav-links { display: none; }
  .landing-mobile-toggle { display: block; }
  .landing-nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-glass-strong); padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--border-subtle);
  }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .hero-stats { grid-template-columns: 1fr; }
  .section { padding: 60px 20px; }
  .section-title { font-size: 27px; }
  .calc-card { padding: 28px 20px; }
  .calc-result-amount { font-size: 38px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-float-card { display: none; }
}

/* ── Leaderboard ──────────────────────────────────────────────── */
.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.leaderboard-row:hover { background: var(--bg-tertiary); }

.rank {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.rank-1 { background: var(--gradient-orange); color: #1a1a1a; }
.rank-2 { background: linear-gradient(135deg, #94A3B8, #CBD5E1); color: #1a1a1a; }
.rank-3 { background: linear-gradient(135deg, #B45309, #D97706); color: white; }
.rank-other { background: var(--bg-tertiary); color: var(--text-muted); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .landing-hero h1 { font-size: 36px; }
  .landing-hero p { font-size: 16px; }
  .auth-card { padding: 32px 24px; }
  .content-area { padding: 18px; }
  .topbar { padding: 0 18px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .mobile-menu-btn { display: flex !important; }
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  border: none;
  color: var(--text-primary);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

.sidebar-overlay.show { display: block; }

/* ── Section Spacing ──────────────────────────────────────────── */
.section { margin-bottom: 32px; }
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Avatar ───────────────────────────────────────────────────── */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.avatar-lg { width: 80px; height: 80px; font-size: 30px; }
.avatar-sm { width: 32px; height: 32px; font-size: 13px; }

/* ── Divider ──────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 24px 0;
}

/* ── Info Row ─────────────────────────────────────────────────── */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-secondary); font-size: 14px; }
.info-value { font-weight: 600; font-size: 14px; }

/* ── Form Sections (create-campaign) ── */
.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}
.form-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-orange));
  border-radius: 2px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-row .form-group { margin-bottom: 0; }
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── Leaderboard Podium ── */
.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.podium-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.podium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.podium-gold {
  border-color: rgba(255,215,0,0.4);
  background: linear-gradient(180deg, rgba(255,215,0,0.08), var(--surface));
  order: 2;
  transform: scale(1.05);
}
.podium-silver {
  border-color: rgba(192,192,192,0.3);
  background: linear-gradient(180deg, rgba(192,192,192,0.06), var(--surface));
  order: 1;
}
.podium-bronze {
  border-color: rgba(205,127,50,0.3);
  background: linear-gradient(180deg, rgba(205,127,50,0.06), var(--surface));
  order: 3;
}
.podium-medal {
  font-size: 40px;
  margin-bottom: 12px;
}
.podium-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
  color: #fff;
  font-weight: 800;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.podium-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.podium-handle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.podium-earnings {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-orange);
  margin-bottom: 6px;
}
.podium-stats {
  font-size: 12px;
  color: var(--text-secondary);
}
@media (max-width: 700px) {
  .podium { grid-template-columns: 1fr; }
  .podium-gold { transform: none; order: 1; }
  .podium-silver { order: 2; }
  .podium-bronze { order: 3; }
}

/* ── Leaderboard Table ── */
.leaderboard-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-secondary);
}
.badge-orange {
  background: rgba(255,153,0,0.15);
  color: var(--brand-orange);
  border: 1px solid rgba(255,153,0,0.3);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
