/* ============================================================
   RETURNKART — GLOBAL DESIGN SYSTEM
   Premium Professional Light Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,600&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* ── Surface / Background Palette ── */
  --page-bg:        #F7F8FC;   /* Main page background — cool off-white */
  --surface:        #FFFFFF;   /* Card & panel surface */
  --surface-alt:    #EEF1F8;   /* Alternate section background */
  --surface-inset:  #E4E7F2;   /* Inset / nested areas */

  /* ── Border Palette ── */
  --border-subtle:  #D8DCE8;   /* Default subtle border */
  --border-strong:  #B8BFCF;   /* Emphasized / interactive border */

  /* ── Brand / CTA ── */
  --brand:          #2563EB;   /* Primary CTA — vivid indigo-blue */
  --brand-hover:    #1D4ED8;   /* CTA hover */
  --brand-dark:     #1E40AF;   /* CTA pressed / deep */
  --brand-light:    #EEF3FE;   /* Brand tinted background */
  --brand-border:   #BFCFFA;   /* Brand tinted border */

  /* ── Accent (Amber) ── */
  --accent:         #D97706;   /* Warm amber — badges, labels, highlights */
  --accent-hover:   #B45309;   /* Amber hover */
  --accent-light:   #FEF3C7;   /* Amber tinted background */
  --accent-border:  #FCD34D;   /* Amber tinted border */

  /* ── Text Hierarchy ── */
  --text-primary:   #0F172A;   /* Headings, strongest text */
  --text-secondary: #1E293B;   /* Sub-headings, card titles */
  --text-body:      #475569;   /* Body paragraphs */
  --text-muted:     #64748B;   /* Captions, meta, placeholders */
  --text-disabled:  #94A3B8;   /* Disabled states */

  /* ── Semantic Colors ── */
  --success:        #059669;
  --success-light:  #D1FAE5;
  --success-border: #6EE7B7;
  --warning:        #D97706;
  --warning-light:  #FEF3C7;
  --warning-border: #FCD34D;
  --error:          #DC2626;
  --error-light:    #FEE2E2;
  --error-border:   #FCA5A5;
  --info:           #0284C7;
  --info-light:     #E0F2FE;
  --info-border:    #7DD3FC;

  /* ── Neutral Shades (for legacy/internal use) ── */
  --slate-900:      #0F172A;
  --slate-800:      #1E293B;
  --slate-700:      #334155;
  --slate-600:      #475569;
  --slate-500:      #64748B;
  --slate-400:      #94A3B8;
  --slate-300:      #CBD5E1;
  --slate-200:      #E2E8F0;
  --slate-100:      #F1F5F9;
  --slate-50:       #F8FAFC;

  /* ── Footer ── */
  --footer-bg:      #0F172A;
  --footer-border:  rgba(255,255,255,0.08);

  /* ── Typography ── */
  --font-sans:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'Menlo', 'Monaco', 'Consolas', monospace;

  /* ── Spacing ── */
  --space-xs:     4px;
  --space-sm:     8px;
  --space-md:     16px;
  --space-lg:     24px;
  --space-xl:     40px;
  --space-2xl:    64px;
  --space-3xl:    96px;

  /* ── Radius ── */
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    18px;
  --radius-xl:    26px;
  --radius-full:  999px;

  /* ── Shadows — clean, cool-toned ── */
  --shadow-xs:    0 1px 2px rgba(15,23,42,0.05);
  --shadow-sm:    0 2px 8px rgba(15,23,42,0.07), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:    0 4px 16px rgba(15,23,42,0.09), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg:    0 8px 32px rgba(15,23,42,0.11), 0 4px 8px rgba(15,23,42,0.05);
  --shadow-xl:    0 16px 56px rgba(15,23,42,0.13), 0 8px 16px rgba(15,23,42,0.06);
  --shadow-brand: 0 4px 14px rgba(37,99,235,0.25);

  /* ── Transitions ── */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:     150ms;
  --dur-mid:      250ms;
  --dur-slow:     400ms;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--page-bg);
  color: var(--text-secondary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
.display-xl { font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; color: var(--text-primary); }
.display-lg { font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.1;  font-weight: 800; letter-spacing: -0.03em;  color: var(--text-primary); }
.display-md { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; color: var(--text-primary); }
.heading-lg { font-size: clamp(1.35rem, 2.5vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }
.heading-md { font-size: clamp(1.05rem, 2vw, 1.4rem);   font-weight: 600; letter-spacing: -0.015em; color: var(--text-primary); }
.heading-sm { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text-secondary); }
.body-lg    { font-size: 1.075rem; line-height: 1.75; color: var(--text-body); font-weight: 400; }
.body-md    { font-size: 0.95rem;  line-height: 1.7;  color: var(--text-body); font-weight: 400; }
.body-sm    { font-size: 0.85rem;  line-height: 1.65; color: var(--text-muted); font-weight: 400; }
.label      { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.italic     { font-style: italic; font-weight: 300; letter-spacing: -0.01em; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }
.container-sm { max-width: 860px;  margin: 0 auto; padding: 0 var(--space-lg); }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-lg); }
.section      { padding: var(--space-3xl) 0; }
.section-sm   { padding: var(--space-2xl) 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.text-center { text-align: center; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--dur-mid) var(--ease);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 var(--space-lg); height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.25rem;
  color: var(--text-primary); letter-spacing: -0.04em;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--brand);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37,99,235,0.30);
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text-body);
  transition: all var(--dur-fast) var(--ease);
}
.nav-links a:hover { background: var(--surface-alt); color: var(--text-primary); }
.nav-links a.active { background: var(--brand-light); color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: var(--space-sm); }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease);
}
.nav-hamburger:hover { background: var(--surface-alt); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--dur-mid) var(--ease);
}
.nav-mobile {
  display: none; position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-md);
  flex-direction: column; gap: var(--space-xs);
  z-index: 999; box-shadow: var(--shadow-lg);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text-secondary);
  transition: background var(--dur-fast) var(--ease);
}
.nav-mobile a:hover { background: var(--surface-alt); color: var(--text-primary); }
.nav-mobile a.active { background: var(--brand-light); color: var(--brand); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 28px;
  border-radius: var(--radius-full);
  font-size: 0.9rem; font-weight: 700; letter-spacing: -0.01em;
  transition: all var(--dur-mid) var(--ease-bounce);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
  border: 1.5px solid var(--brand);
}
.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.32);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
  box-shadow: 0 4px 14px rgba(217,119,6,0.22);
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217,119,6,0.28);
}
/* Keep btn-gold as alias for btn-accent */
.btn-gold {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
  box-shadow: 0 4px 14px rgba(217,119,6,0.22);
}
.btn-gold:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217,119,6,0.28);
}
.btn-outline {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  color: var(--text-secondary);
}
.btn-outline:hover {
  background: var(--surface-alt);
  border-color: var(--slate-400);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 13px 20px;
  border: 1.5px solid transparent;
}
.btn-ghost:hover { background: var(--surface-alt); color: var(--text-primary); }
.btn-brand-outline {
  background: var(--brand-light);
  border: 1.5px solid var(--brand-border);
  color: var(--brand);
}
.btn-brand-outline:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-1px); }
.btn-sm  { padding: 9px 20px; font-size: 0.85rem; }
.btn-lg  { padding: 16px 36px; font-size: 1rem; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: var(--radius-full); flex-shrink: 0; }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-mid) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-ivory { background: var(--page-bg); }
.card-cream  { background: var(--surface-alt); border-color: var(--border-strong); }
.card-flat   { box-shadow: none; }
.card-flat:hover { box-shadow: var(--shadow-sm); }

/* ── BADGES & TAGS ───────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
}
.badge-gold    { background: var(--accent-light);   color: var(--accent);   border: 1px solid var(--accent-border); }
.badge-success { background: var(--success-light);  color: var(--success);  border: 1px solid var(--success-border); }
.badge-warning { background: var(--warning-light);  color: var(--warning);  border: 1px solid var(--warning-border); }
.badge-error   { background: var(--error-light);    color: var(--error);    border: 1px solid var(--error-border); }
.badge-info    { background: var(--info-light);     color: var(--info);     border: 1px solid var(--info-border); }
.badge-neutral { background: var(--surface-alt);    color: var(--text-body); border: 1px solid var(--border-subtle); }
.badge-brand   { background: var(--brand-light);    color: var(--brand);    border: 1px solid var(--brand-border); }

/* ── STATUS PILLS ────────────────────────────────────────── */
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.success { background: var(--success); box-shadow: 0 0 0 3px var(--success-light); }
.status-dot.warning { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-light); }
.status-dot.error   { background: var(--error);   box-shadow: 0 0 0 3px var(--error-light); }
.status-dot.info    { background: var(--info);    box-shadow: 0 0 0 3px var(--info-light); }

/* ── SECTION HEADER ──────────────────────────────────────── */
.section-header { margin-bottom: var(--space-2xl); }
.section-header.center { text-align: center; }
.section-tag {
  display: inline-block; padding: 6px 16px;
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: var(--space-md);
}
.section-desc { color: var(--text-body); font-size: 1.05rem; line-height: 1.75; max-width: 580px; }
.section-header.center .section-desc { margin: 0 auto; }

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border-subtle); margin: var(--space-2xl) 0; }

/* ── IMAGE CONTAINERS ────────────────────────────────────── */
.img-rounded { border-radius: var(--radius-lg); overflow: hidden; }
.img-shadow  { box-shadow: var(--shadow-xl); }
.img-bordered { border: 1px solid var(--border-subtle); }

/* ── FORMS ───────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.01em; color: var(--text-secondary); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: 0.925rem;
  color: var(--text-secondary);
  background: var(--surface);
  transition: all var(--dur-fast) var(--ease);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-input:hover, .form-select:hover, .form-textarea:hover {
  border-color: var(--slate-400);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-disabled); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.form-error-msg { font-size: 0.78rem; color: var(--error); font-weight: 600; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.75);
  padding: var(--space-3xl) 0 var(--space-xl);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-2xl); }
.footer-brand .nav-logo { color: #fff; margin-bottom: var(--space-md); }
.footer-brand .nav-logo .logo-icon { background: var(--brand); box-shadow: 0 2px 8px rgba(37,99,235,0.4); }
.footer-brand p { font-size: 0.9rem; line-height: 1.75; color: rgba(255,255,255,0.5); max-width: 260px; }
.footer-heading { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: var(--space-md); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color var(--dur-fast) var(--ease); }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-md); }
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.3); }
.footer-socials { display: flex; gap: var(--space-sm); }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 0.85rem;
  transition: all var(--dur-fast) var(--ease);
}
.footer-socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }

/* ── PROGRESS STEPS ──────────────────────────────────────── */
.progress-steps { display: flex; align-items: flex-start; gap: 0; }
.step-item { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.step-item::before {
  content: ''; position: absolute;
  top: 20px; right: 0; left: 50%;
  height: 2px; background: var(--border-subtle); z-index: 0;
}
.step-item:last-child::before { display: none; }
.step-item.completed::before { background: var(--success); }
.step-item.active::before { background: var(--brand-border); }
.step-circle {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--surface-alt);
  border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700;
  color: var(--text-muted); z-index: 1;
  transition: all var(--dur-mid) var(--ease);
}
.step-item.completed .step-circle { background: var(--success);  border-color: var(--success);  color: #fff; }
.step-item.active    .step-circle { background: var(--brand);    border-color: var(--brand);    color: #fff; box-shadow: 0 0 0 4px var(--brand-light); }
.step-label { margin-top: 10px; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-align: center; }
.step-item.completed .step-label,
.step-item.active    .step-label { color: var(--text-secondary); }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp  { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes float   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
@keyframes pulse   { 0%,100%{opacity:1} 50%{opacity:0.5} }
@keyframes spin    { to{transform:rotate(360deg)} }
@keyframes scaleIn { from{transform:scale(0.92);opacity:0} to{transform:scale(1);opacity:1} }

.animate-fade-up { animation: fadeUp 0.6s var(--ease) both; }
.animate-fade-in { animation: fadeIn 0.5s var(--ease) both; }
.animate-float   { animation: float 4s ease-in-out infinite; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }

/* Intersection Observer classes */
.reveal       { opacity: 0; transform: translateY(28px);  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left  { opacity: 0; transform: translateX(-28px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(28px);  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── TOOLTIP ─────────────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--slate-900); color: #fff;
  font-size: 0.75rem; padding: 6px 10px;
  border-radius: var(--radius-sm); white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: all var(--dur-fast) var(--ease);
}
[data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── UTILITY ─────────────────────────────────────────────── */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.hidden    { display: none !important; }
.sr-only   { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.w-full    { width: 100%; }
.rounded   { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.overflow-hidden { overflow: hidden; }

/* ── SIDEBAR LAYOUT (Dashboard) ──────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border-subtle);
  display: flex; flex-direction: column;
  padding: var(--space-lg);
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100; overflow-y: auto;
  transition: transform var(--dur-mid) var(--ease);
}
a.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0 var(--space-xl);
  font-weight: 800; font-size: 1.15rem; letter-spacing: -0.04em;
  color: var(--text-primary); text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
  cursor: pointer;
}
a.sidebar-logo:hover  { transform: translateY(-1px); opacity: 0.85; }
a.sidebar-logo:active { transform: translateY(0); opacity: 1; }

/* ── AUTH LOGOUT MODAL ────────────────────────────────────── */
.auth-modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.45);
  backdrop-filter: blur(4px); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all var(--dur-mid) var(--ease);
}
.auth-modal-overlay.show { opacity: 1; visibility: visible; }
.auth-modal {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  width: 90%; max-width: 400px;
  box-shadow: var(--shadow-xl);
  text-align: center;
  transform: translateY(20px) scale(0.95);
  transition: all var(--dur-mid) var(--ease-bounce);
}
.auth-modal-overlay.show .auth-modal { transform: translateY(0) scale(1); }
.auth-modal-icon    { font-size: 3rem; margin-bottom: var(--space-md); }
.auth-modal-actions { display: flex; gap: var(--space-md); margin-top: var(--space-xl); justify-content: center; }
.auth-modal-actions .btn { flex: 1; }

.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text-body);
  transition: all var(--dur-fast) var(--ease); cursor: pointer;
}
.sidebar-item:hover { background: var(--surface-alt); color: var(--text-primary); }
.sidebar-item.active {
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 700;
}
.sidebar-item .icon { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.65; }
.sidebar-item.active .icon { opacity: 1; }
.sidebar-section-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-disabled); padding: var(--space-md) 14px 6px; }
.sidebar-footer { padding-top: var(--space-lg); border-top: 1px solid var(--border-subtle); }

.main-content {
  margin-left: 260px; flex: 1;
  padding: var(--space-lg);
  min-height: 100vh;
  background: var(--page-bg);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.topbar-left { display: flex; flex-direction: column; gap: 2px; }
.topbar-left h2 { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); }
.topbar-left p  { font-size: 0.85rem; color: var(--text-muted); }
.topbar-right   { display: flex; align-items: center; gap: var(--space-md); }
.avatar {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--brand-light);
  border: 2px solid var(--brand-border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem; color: var(--brand);
}

/* ── Stat Cards ────────────────────────────────────────────── */
.stat-card {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: var(--space-xl);
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-mid) var(--ease);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.stat-card .stat-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 4px;
}
.stat-card .stat-label  { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.stat-card .stat-value  { font-size: 1.9rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-card .stat-change { font-size: 0.78rem; font-weight: 600; }
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--error); }

/* ── Table ─────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--border-subtle);
  background: var(--page-bg);
}
.data-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem; color: var(--text-secondary);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-alt); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
}

@media (max-width: 768px) {
  :root { --space-3xl: 64px; --space-2xl: 48px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .app-layout .topbar { margin-left: 0; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }
  .container { padding: 0 var(--space-md); }
}
