/* Digital Rivers - Main Stylesheet — Emerald & Gold Theme */
@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:      #060e09;
  --bg-secondary:    #091510;
  --bg-card:         #0e1f17;
  --bg-card-hover:   #132a1e;
  --sidebar-bg:      #070d0a;
  --border:          #1c3327;
  --border-light:    #254436;
  --text-primary:    #eef7f2;
  --text-secondary:  #7ba893;
  --text-muted:      #4d6e5c;
  --accent:          #10b981;       /* emerald */
  --accent-light:    #34d399;
  --accent-gold:     #d97706;       /* amber gold */
  --accent-gold-lt:  #f59e0b;
  --accent-green:    #22c55e;
  --gradient-main:   linear-gradient(135deg, #059669, #d97706);
  --gradient-hero:   linear-gradient(135deg, #071a0e 0%, #060e09 40%, #0c1a0a 70%, #1a1100 100%);
  --gradient-gold:   linear-gradient(135deg, #d97706, #f59e0b);
  --shadow-glow:     0 0 40px rgba(16,185,129,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(6,14,9,0.96);
  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(5,150,105,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(5,150,105,0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(16,185,129,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-gold {
  background: var(--gradient-gold);
  color: #fff;
  box-shadow: 0 4px 20px rgba(217,119,6,0.3);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(217,119,6,0.45); }
.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 ===================== */
.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(16,185,129,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: 30%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(217,119,6,0.08) 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.06);
  border: 1px solid rgba(255,255,255,0.1);
  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); 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: var(--accent-light); }   /* emerald highlight */
.hero h1 .highlight-pink   { color: var(--accent-gold-lt); } /* gold highlight */
.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(9,21,16,0.92);
  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.05);
  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); background: rgba(16,185,129,0.05); }
.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: var(--accent-light); 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; }
.section-dark  { background: var(--bg-secondary); }
.section-darker{ background: #040a06; }

/* Categories */
.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);
  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 */
.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(16,185,129,0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 40px rgba(16,185,129,0.08);
}
.product-thumb {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #071a0e, #0c1f14);
  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; display: block; }
.product-thumb img.broken { display: none; }
.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: var(--accent-light);
  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.85rem; 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(--accent-light); }
.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, #071a0e 0%, #060e09 40%),
              radial-gradient(ellipse at bottom right, #0c1a06 0%, #060e09 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: rgba(9,21,16,0.97);
  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, #071a0e 0%, #060e09 60%, #0c1500 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.05);
  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: var(--text-muted); line-height: 1.6; }
.auth-note a { color: var(--accent-light); font-weight: 600; }
.auth-right  {
  padding: 50px 40px;
  background: rgba(6,14,9,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: var(--accent-light); }
.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 ===================== */
.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.04); color: var(--text-primary); }
.sidebar-nav-item.active {
  background: var(--gradient-main);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(5,150,105,0.25);
}
.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, #e6f5ec 0%, #fdf6e3 40%, #e8f5e9 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: #12261a;
  margin-bottom: 4px;
}
.dashboard-header p { font-size: 0.88rem; color: #4a6b58; }

.dash-card {
  background: rgba(255,255,255,0.78);
  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: #12261a;
  margin-bottom: 16px;
}
.dash-alert {
  background: rgba(255,250,220,0.85);
  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: #059669;
  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(5,150,105,0.3); }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: rgba(255,255,255,0.72);
  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: #12261a; }
.stat-card .stat-label { font-size: 0.78rem; color: #4a6b58; margin-top: 2px; }

/* ===================== ALERTS ===================== */
.alert         { padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.875rem; font-weight: 500; }
.alert-success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-error   { background: rgba(239,68,68,0.15);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.alert-info    { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25); color: #a7f3d0; }
.alert-success-dark { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); color: #065f46; }

/* ===================== 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(16,185,129,0.18) 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);
  background: rgba(16,185,129,0.1);
  color: var(--accent-light);
}
.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); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1rem; }

/* About / Blog / Contact */
.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(16,185,129,0.3); }
.blog-thumb      { height: 200px; background: linear-gradient(135deg, #071a0e, #0c1f14); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; position: relative; overflow: hidden; }
.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: var(--accent-light); 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(16,185,129,0.12); 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(16,185,129,0.15); color: #6ee7b7; }
.badge-warning   { background: rgba(245,158,11,0.15); color: #fde047; }
.badge-danger    { background: rgba(239,68,68,0.15);  color: #fca5a5; }
.badge-purple    { background: rgba(16,185,129,0.15); color: #a7f3d0; }

/* Mobile 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; }
}

/* Mobile nav */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4,10,6,0.98);
  z-index: 9998;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 40px;
}
.nav-links.open li   { list-style: none; }
.nav-links.open a    { font-size: 1.5rem; font-weight: 700; font-family: 'Sora', sans-serif; color: #fff; }
.nav-links.open a:hover { color: var(--accent-light); }
.nav-links.open .close-btn {
  position: fixed;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .nav-tagline { display: none !important; }
  .nav-brand span.brand-name { display: none !important; }
  .logo-icon { font-size: 1.6rem; }
  .mobile-menu-toggle { width: 42px; height: 42px; align-items: center; justify-content: center; font-size: 1.2rem; }
}

/* Admin table text */
.admin-table td, .admin-table th { color: #1f2937 !important; }
.admin-table td strong { color: #111827 !important; }
.admin-table td span   { color: #6b7280 !important; }
.badge  { font-size: 0.72rem !important; font-weight: 700 !important; padding: 3px 10px !important; border-radius: 20px !important; }
.badge-success { background: rgba(16,185,129,0.15) !important; color: #065f46 !important; }
.badge-warning { background: rgba(245,158,11,0.15) !important; color: #b45309 !important; }
.badge-danger  { background: rgba(239,68,68,0.15)  !important; color: #dc2626 !important; }
.badge-purple  { background: rgba(16,185,129,0.15) !important; color: #059669 !important; }

/* Product thumb with emoji fallback */
.product-thumb              { position: relative; }
.product-thumb .thumb-emoji { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; z-index: 1; }
.product-thumb img          { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }

/* ===================== NEWSLETTER POPUP ===================== */
#nlOverlay {
  display: none;
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}
#nlOverlay.visible { display: flex !important; }

/* ===================== FLOATING CHAT ===================== */
#chatBtn {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--gradient-main);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(5,150,105,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
#chatBtn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(5,150,105,0.6); }
#chatBtn::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(16,185,129,0.4);
  animation: chatPulse 2s ease-out infinite;
}
@keyframes chatPulse {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
