/* =====================================================
   IQ RESTOCK — Shared Stylesheet
   Color scheme & design system
   ===================================================== */
:root {
  --primary: #0f766e;
  --primary-dark: #0d5f58;
  --primary-light: #14b8a6;
  --primary-50: #f0fdfa;
  --navy: #0f172a;
  --navy-light: #1e293b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: #ffffff;
  color: var(--gray-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}
.btn-ghost { background: transparent; color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  background: white;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ========== TOP NAV ========== */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
}
.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.4px;
}
.logo-text span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

.nav-cta { display: flex; gap: 10px; align-items: center; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--navy);
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #134e4a 100%);
  color: white;
  padding: 56px 40px 48px;
  text-align: center;
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: white; }

/* ========== SECTIONS ========== */
.section {
  padding: 64px 40px;
}
.section-gray { background: var(--gray-50); }
.section-navy { background: var(--navy); color: white; }
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.section-navy .section-title h2 { color: white; }
.section-title p {
  color: var(--gray-500);
  font-size: 15px;
}
.section-navy .section-title p { color: rgba(255,255,255,0.65); }

/* ========== CARDS & FEATURES ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.feature-card .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 40px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px;
}
.footer-brand .logo-text { color: white; margin-bottom: 12px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.footer-trust {
  display: flex;
  gap: 24px;
}
.footer-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.form-hint {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ========== AUTH PAGES ========== */
.auth-page {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  padding: 40px 20px;
}
.auth-card {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}
.auth-card h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  text-align: center;
}
.auth-card .subtitle {
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 28px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--gray-400);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray-500);
}
.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

/* ========== MEMBERS LAYOUT ========== */
.members-layout {
  display: flex;
  min-height: calc(100vh - 60px);
}
.members-sidebar {
  width: 220px;
  background: var(--navy);
  color: white;
  padding: 20px 0;
  flex-shrink: 0;
}
.members-sidebar .sidebar-logo {
  padding: 0 16px 20px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 12px;
}
.members-sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: all 0.15s;
}
.members-sidebar .nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}
.members-sidebar .nav-item.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
}
.members-sidebar .badge {
  margin-left: auto;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}
.members-main {
  flex: 1;
  background: var(--gray-50);
  padding: 24px;
  overflow-x: auto;
}
.members-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.members-header h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: white;
  border-radius: 10px;
  padding: 16px 18px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.kpi-card .label {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.kpi-card .value {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}
.kpi-card .delta {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}
.kpi-card .delta.up { color: var(--success); }
.card {
  background: white;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.card-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.card-body { padding: 16px; }

/* ========== PRICING ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.pricing-card {
  background: white;
  border-radius: 16px;
  border: 1.5px solid var(--gray-200);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}
.pricing-card .badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.pricing-card .plan-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.pricing-card .price {
  font-size: 40px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1px;
}
.pricing-card .price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-500);
}
.pricing-card .period {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 24px;
}
.pricing-card ul {
  text-align: left;
  margin-bottom: 28px;
}
.pricing-card li {
  font-size: 14px;
  color: var(--gray-600);
  padding: 7px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pricing-card li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ========== POPUP / MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: white;
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(12px);
  transition: transform 0.25s;
}
.modal-overlay.active .modal {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--gray-100);
}
.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}
.modal-close {
  background: var(--gray-100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--gray-200); }
.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.modal-subscribe {
  padding: 28px 24px;
  border-right: 1px solid var(--gray-100);
}
.modal-subscribe h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.modal-subscribe p {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 18px;
  line-height: 1.5;
}
.modal-video {
  padding: 28px 24px;
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
}
.modal-video h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.tiktok-placeholder {
  flex: 1;
  background: #000;
  border-radius: 12px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.tiktok-placeholder .play-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
}
.tiktok-placeholder p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 0 20px;
}
.tiktok-placeholder .tiktok-note {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ========== SEO / MISC ========== */
.seo-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-700);
}
.seo-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 12px;
}
.seo-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 8px;
}
.seo-content p { margin-bottom: 14px; }
.seo-content ul {
  margin: 12px 0 16px 20px;
  list-style: disc;
}
.seo-content li { margin-bottom: 6px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .modal-body { grid-template-columns: 1fr; }
  .modal-subscribe { border-right: none; border-bottom: 1px solid var(--gray-100); }
}

@media (max-width: 768px) {
  .top-nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .page-hero { padding: 40px 20px; }
  .page-hero h1 { font-size: 26px; }
  .section { padding: 48px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .members-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
