/* Digital Rivers - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --bg-primary: #080d18;
  --bg-secondary: #0d1421;
  --bg-card: #111827;
  --bg-card-hover: #161f32;
  --sidebar-bg: #0a0f1e;
  --border: #1e2d45;
  --border-light: #243047;
  --text-primary: #f0f4ff;
  --text-secondary: #8899b4;
  --text-muted: #5a6b85;
  --accent-purple: #7c3aed;
  --accent-pink: #ec4899;
  --accent-teal: #14b8a6;
  --accent-green: #22c55e;
  --gradient-main: linear-gradient(135deg, #7c3aed, #ec4899);
  --gradient-hero: linear-gradient(135deg, #0d2137 0%, #0b0f1a 40%, #1a0a2e 70%, #2d0a22 100%);
  --gradient-teal: linear-gradient(135deg, #0d2137, #0a1628);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-pill: 50px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --sidebar-width: 260px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }

/* ===================== PUBLIC NAV ===================== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
  background: rgba(8, 13, 24, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
}
.nav-brand .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-main);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 6px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent-purple);
  color: #a78bfa;
  background: rgba(124, 58, 237, 0.08);
}
.btn-green {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.25);
}
.btn-green:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4); }
.btn-teal {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
}
.btn-teal:hover { transform: translateY(-1px); }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; display: flex; }
.btn-outline-white {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255,255,255,0.2);
  font-size: 0.82rem;
  padding: 8px 16px;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }

/* ===================== HERO SECTION ===================== */
.hero {
  min-height: calc(100vh - 68px);
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: 30%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(236,72,153,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; background: var(--accent-green); border-radius: 50%; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.hero h1 .highlight-purple { color: #a78bfa; }
.hero h1 .highlight-pink { color: #f472b6; }
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 28px;
  line-height: 1.7;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
}
.hero-stat {
  padding: 18px 24px;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}
.hero-stat span { font-size: 0.78rem; color: var(--text-muted); }

/* Signup Card */
.signup-card {
  background: rgba(13,20,33,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  backdrop-filter: blur(20px);
}
.signup-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.signup-card p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 24px; }

/* ===================== FORM ELEMENTS ===================== */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.2s;
  outline: none;
}
.form-input:focus { border-color: var(--accent-purple); background: rgba(124,58,237,0.06); }
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { resize: vertical; min-height: 120px; }
.form-signin-link { font-size: 0.82rem; color: var(--text-muted); text-align: center; margin-top: 14px; }
.form-signin-link a { color: #a78bfa; font-weight: 600; }

/* ===================== SECTIONS ===================== */
.section { padding: 80px 40px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.2;
}
.section-sub { font-size: 1rem; color: var(--text-secondary); max-width: 560px; line-height: 1.7; }

/* Dark section */
.section-dark { background: var(--bg-secondary); }
.section-darker { background: #060b14; }

/* Categories grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s;
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--accent-purple);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.cat-icon { font-size: 1.8rem; margin-bottom: 14px; }
.cat-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.cat-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.step-card {
  background: var(--bg-card);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step-num {
  width: 32px; height: 32px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.step-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.testimonial-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-card strong { display: block; font-size: 0.9rem; color: var(--text-primary); }
.testimonial-card span { font-size: 0.8rem; color: var(--text-muted); }

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: rgba(124,58,237,0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 40px rgba(124,58,237,0.1);
}
.product-thumb {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #1a0a2e, #0d2137);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gradient-main);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 8px;
}
.product-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.35;
}
.product-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.product-price { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--text-primary); }
.product-price .original { font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; font-weight: 400; font-family: var(--font-body); }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 40px 30px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; margin-top: 14px; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.85rem; color: var(--text-secondary); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }

/* ===================== AUTH PAGES ===================== */
.auth-page {
  min-height: 100vh;
  background: radial-gradient(ellipse at top left, #0d2137 0%, #080d18 40%),
              radial-gradient(ellipse at bottom right, #1a0a2e 0%, #080d18 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: rgba(13,20,33,0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.auth-left {
  padding: 50px 40px;
  background: linear-gradient(160deg, #0d2137 0%, #080d18 60%, #160a2e 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-left .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; }
.auth-left .logo .logo-icon { width: 36px; height: 36px; background: var(--gradient-main); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.auth-left h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.auth-left p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 28px; max-width: 340px; }
.auth-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.auth-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  width: fit-content;
}
.auth-note { font-size: 0.8rem; color: #7c86a4; line-height: 1.6; }
.auth-note a { color: #a78bfa; font-weight: 600; }
.auth-right {
  padding: 50px 40px;
  background: rgba(8,13,24,0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-right h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.auth-right p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 28px; }
.auth-footer { text-align: center; padding-top: 20px; font-size: 0.78rem; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 20px; }
.auth-footer a { color: #a78bfa; }
.divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: 0.75rem; color: var(--text-muted); }

/* ===================== DASHBOARD LAYOUT ===================== */
.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 200;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 24px 24px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.sidebar-logo .logo-icon { width: 34px; height: 34px; background: var(--gradient-main); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.sidebar-logo .logo-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.sidebar-nav { padding: 8px 12px; flex: 1; }
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2px;
}
.sidebar-nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.sidebar-nav-item.active {
  background: var(--gradient-main);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}
.sidebar-nav-item .nav-icon { font-size: 1.1rem; }
.sidebar-bottom {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: rgba(255,255,255,0.03);
}
.sidebar-user-avatar {
  width: 34px; height: 34px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-user-info strong { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.sidebar-user-info span { font-size: 0.72rem; color: var(--text-muted); }
.dashboard-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  background: linear-gradient(135deg, #f0e6ff 0%, #ffe0f0 40%, #e8f0ff 100%);
}
.dashboard-content { padding: 40px 48px; max-width: 1100px; }
.dashboard-header { margin-bottom: 32px; }
.dashboard-header h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 4px;
}
.dashboard-header p { font-size: 0.88rem; color: #6b7280; }

/* Dashboard cards */
.dash-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
}
.dash-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
}
.dash-alert {
  background: rgba(255,250,230,0.8);
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: #78350f;
  line-height: 1.7;
}
.dash-alert strong { color: #92400e; }
.dash-promo {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: #374151;
}
.dash-promo .free-badge {
  background: var(--accent-green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.browse-link {
  text-align: center;
  padding: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e67e00;
  margin-bottom: 24px;
  display: block;
}
.browse-link:hover { text-decoration: underline; }

/* Plans table */
.plans-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.plans-table th {
  padding: 12px 16px;
  background: rgba(0,0,0,0.05);
  color: #4b5563;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}
.plans-table th:last-child, .plans-table th:nth-last-child(2) { text-align: center; }
.plans-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  color: #1f2937;
  vertical-align: middle;
}
.plans-table tr:last-child td { border-bottom: none; }
.plans-table .plan-name { font-weight: 700; font-size: 0.92rem; }
.plans-table .plan-desc { font-size: 0.78rem; color: #6b7280; margin-top: 2px; }
.plans-table .price { font-weight: 700; font-size: 1rem; color: #1f2937; }
.plans-table .btn-buy {
  background: var(--gradient-main);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-block;
  text-align: center;
  min-width: 90px;
}
.plans-table .btn-buy:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(124,58,237,0.35); }

/* Stats row for dashboard */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(8px);
}
.stat-card .stat-icon { font-size: 1.5rem; margin-bottom: 10px; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: #1a1a2e; }
.stat-card .stat-label { font-size: 0.78rem; color: #6b7280; margin-top: 2px; }

/* ===================== ALERT/FLASH ===================== */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.875rem;
  font-weight: 500;
}
.alert-success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.alert-error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-info { background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3); color: #c4b5fd; }
.alert-success-dark { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: #166534; }

/* ===================== PAGE HEADERS ===================== */
.page-hero {
  background: var(--gradient-hero);
  padding: 70px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
}
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 14px; position: relative; }
.page-hero p { font-size: 1rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto; position: relative; }

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent-purple);
  background: rgba(124,58,237,0.1);
  color: #a78bfa;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  max-width: 400px;
}
.search-input-wrap input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
}
.search-input-wrap input:focus { border-color: var(--accent-purple); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1rem; }

/* About / Blog / Contact pages */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-grid h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.about-grid p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 14px; }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.value-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.value-card .icon { font-size: 1.6rem; margin-bottom: 12px; }
.value-card h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.value-card p { font-size: 0.82rem; color: var(--text-secondary); }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; }
.blog-card:hover { transform: translateY(-3px); border-color: rgba(124,58,237,0.3); }
.blog-thumb { height: 180px; background: linear-gradient(135deg, #1a0a2e, #0d2137); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.blog-body { padding: 20px; }
.blog-date { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.blog-body h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.blog-body p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.blog-body a { font-size: 0.82rem; color: #a78bfa; font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.contact-info h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; margin-bottom: 14px; }
.contact-info p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 28px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-item .ci-icon { width: 42px; height: 42px; background: rgba(124,58,237,0.15); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-item strong { display: block; font-size: 0.85rem; color: var(--text-primary); margin-bottom: 2px; }
.contact-item span { font-size: 0.82rem; color: var(--text-secondary); }
.contact-form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.contact-form-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 24px; }

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 12px 16px; background: var(--bg-card); color: var(--text-secondary); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.badge { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 0.7rem; font-weight: 700; }
.badge-success { background: rgba(34,197,94,0.15); color: #86efac; }
.badge-warning { background: rgba(234,179,8,0.15); color: #fde047; }
.badge-danger { background: rgba(239,68,68,0.15); color: #fca5a5; }
.badge-purple { background: rgba(124,58,237,0.15); color: #c4b5fd; }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.1rem;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: auto; padding: 60px 24px; }
  .signup-card { max-width: 480px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-card { grid-template-columns: 1fr; max-width: 480px; }
  .auth-left { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .dashboard-content { padding: 24px; }
}

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .mobile-menu-toggle { display: flex; }
  .section { padding: 60px 20px; }
  .cat-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding: 40px 20px 24px; }
  .hero-stat-row { grid-template-columns: 1fr; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-stat:last-child { border-bottom: none; }
  .form-grid { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .dashboard-content { padding: 20px 16px; }
  .blog-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .plans-table { font-size: 0.8rem; }
  .page-hero { padding: 50px 20px 40px; }
}
