/* ============================================================
   YUMZIP AFFILIATE PORTAL - Main Stylesheet
   ============================================================ */

:root {
  --primary: #6C47FF;
  --primary-dark: #5236CC;
  --primary-light: #EEE9FF;
  --accent: #FF6B35;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --dark: #0F0A1E;
  --dark-2: #1A1230;
  --dark-3: #241B3A;
  --text: #1E1B2E;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --bg: #F8F7FF;
  --white: #FFFFFF;
  --card-shadow: 0 4px 24px rgba(108,71,255,0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-md {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(108,71,255,0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 6px 24px rgba(108,71,255,0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-dark:hover { background: var(--dark-2); color: #fff; }

.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-warning {
  background: var(--warning);
  color: #fff;
}

.btn-sm { padding: 0.4rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 1.75rem;
  border: 1px solid rgba(108,71,255,0.06);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(108,71,255,0.07);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(108,71,255,0.12); }

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-icon.purple { background: var(--primary-light); }
.stat-icon.green  { background: #DCFCE7; }
.stat-icon.orange { background: #FFF7ED; }
.stat-icon.blue   { background: #EFF6FF; }

.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; margin-bottom: 0.25rem; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-sub   { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,71,255,0.12);
}
.form-control::placeholder { color: var(--text-muted); }

.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }

.input-group {
  position: relative;
  display: flex;
}
.input-group .form-control {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  flex: 1;
}
.input-group .btn {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  white-space: nowrap;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.alert-success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.alert-error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.alert-info    { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.alert-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-success  { background: #DCFCE7; color: #166534; }
.badge-danger   { background: #FEE2E2; color: #991B1B; }
.badge-warning  { background: #FFFBEB; color: #92400E; }
.badge-info     { background: #EFF6FF; color: #1E40AF; }
.badge-primary  { background: var(--primary-light); color: var(--primary-dark); }
.badge-gray     { background: #F3F4F6; color: #6B7280; }

/* ============================================================
   TABLE
   ============================================================ */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-sm); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead th {
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg); }

/* ============================================================
   LANDING NAVBAR
   ============================================================ */
.navbar {
  background: rgba(15,10,30,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(108,71,255,0.15);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}
.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* ============================================================
   LANDING - HERO
   ============================================================ */
.hero {
  background: var(--dark);
  color: #fff;
  padding: 6rem 0 4rem;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(108,71,255,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(108,71,255,0.2);
  border: 1px solid rgba(108,71,255,0.4);
  color: #C4B5FD;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #A78BFA, #6C47FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat-value { font-size: 1.75rem; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

.hero-visual {
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.hero-card-mockup {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  backdrop-filter: blur(20px);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mockup-dot.red { background: #EF4444; }
.mockup-dot.yellow { background: #F59E0B; }
.mockup-dot.green { background: #22C55E; }

.mockup-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.mockup-stat {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1rem;
}
.mockup-stat-label { font-size: 0.7rem; color: rgba(255,255,255,0.45); font-weight: 500; }
.mockup-stat-val { font-size: 1.3rem; font-weight: 800; color: #fff; margin-top: 0.2rem; }
.mockup-stat-val.green { color: var(--success); }
.mockup-stat-val.purple { color: #A78BFA; }

.mockup-bar {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}
.mockup-bar-fill {
  height: 4px;
  border-radius: 2px;
  background: var(--primary);
  margin-top: 0.4rem;
}

/* ============================================================
   LANDING - SECTIONS
   ============================================================ */
.section { padding: 5rem 0; }
.section-dark { background: var(--dark); color: #fff; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.55); }

/* Benefits */
.benefit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(108,71,255,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(108,71,255,0.14); }

.benefit-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

/* Steps */
.steps { display: flex; gap: 2rem; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 2.5rem; left: calc(16.66% + 1rem);
  right: calc(16.66% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #A78BFA);
  z-index: 0;
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 20px rgba(108,71,255,0.4);
}
.step-title { font-weight: 700; margin-bottom: 0.5rem; color: #fff; }
.step-desc { font-size: 0.9rem; color: rgba(255,255,255,0.55); }

/* Commission table */
.commission-table {
  max-width: 500px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 5rem 0;
  text-align: center;
  color: #fff;
}
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 1.1rem; }

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: #fff; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}
.auth-logo .logo-mark {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.75rem;
  font-weight: 800;
}
.auth-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 0.3rem; }
.auth-subtitle { color: var(--text-muted); font-size: 0.9rem; text-align: center; margin-bottom: 1.75rem; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 1rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s;
}

.sidebar-logo {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-logo .logo { font-size: 1.2rem; }

.sidebar-nav { flex: 1; padding: 1.25rem 0; }

.nav-section {
  padding: 0 0.75rem;
  margin-bottom: 0.25rem;
}
.nav-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  padding: 0.5rem 0.75rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.85rem;
  border-radius: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
  margin-bottom: 0.15rem;
}
.nav-item .nav-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.nav-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); }
.nav-item.active { background: rgba(108,71,255,0.25); color: #fff; }
.nav-item.active .nav-icon { color: #A78BFA; }

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #A78BFA);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.user-name { font-size: 0.85rem; font-weight: 600; color: #fff; line-height: 1.2; }
.user-role { font-size: 0.72rem; color: rgba(255,255,255,0.4); }

.main-content {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.topbar-title { font-size: 1.15rem; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 0.75rem; }

.page-content { padding: 2rem; flex: 1; }

/* ============================================================
   REFERRAL LINK BOX
   ============================================================ */
.ref-link-box {
  background: linear-gradient(135deg, var(--primary-light), #F5F3FF);
  border: 1.5px solid rgba(108,71,255,0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.ref-link-label { font-size: 0.82rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 0.75rem; }
.ref-link-url {
  background: #fff;
  border: 1.5px solid rgba(108,71,255,0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 600;
  word-break: break-all;
  margin-bottom: 0.75rem;
  font-family: 'Courier New', monospace;
}

/* ============================================================
   PAYOUT FORM
   ============================================================ */
.payout-info {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.payout-balance { font-size: 2rem; font-weight: 800; color: var(--primary-dark); }
.payout-balance-label { font-size: 0.8rem; color: var(--primary); font-weight: 500; }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .steps { flex-direction: column; }
  .steps::before { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .sidebar {
    transform: translateX(-100%);
    z-index: 200;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .menu-toggle { display: block; }
  .topbar { padding: 0.9rem 1.25rem; }
  .page-content { padding: 1.25rem; }

  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0 3rem; }
  .auth-card { padding: 2rem 1.5rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
}

/* ============================================================
   LOADING & TRANSITIONS
   ============================================================ */
.page-fade { animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 0.75rem; opacity: 0.4; }
.empty-state-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
