/* ═══════════════════════════════════════════════════
   WHIEDA Premium Design System
   Luxury Wellness Platform — style.css
   ═══════════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
  --white: #FFFFFF;
  --white-warm: #FAFAFA;
  --white-cool: #F5F5F7;
  --off-white: #F0EDE8;
  --cream: #FAF8F5;
  --crimson: #9B1B30;
  --crimson-light: #C41E3A;
  --crimson-dark: #7A1526;
  --gold: #B8860B;
  --gold-light: #DAA520;
  --gold-dark: #8B6508;
  --gold-pale: #D4AF37;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #8A8A8A;
  --text-light: #B0B0B0;
  --border-light: #E8E4DF;
  --border-subtle: #F0ECE8;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.16);
  --shadow-gold: 0 4px 24px rgba(184,134,11,.15);
  --shadow-crimson: 0 4px 24px rgba(155,27,48,.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --glass-bg: rgba(255,255,255,.72);
  --glass-border: rgba(255,255,255,.3);
  --glass-shadow: 0 8px 32px rgba(0,0,0,.08);
  --transition-fast: 200ms cubic-bezier(.4,0,.2,1);
  --transition-normal: 350ms cubic-bezier(.4,0,.2,1);
  --transition-slow: 600ms cubic-bezier(.4,0,.2,1);
  --transition-spring: 500ms cubic-bezier(.175,.885,.32,1.275);
  --sidebar-width: 280px;
  --sidebar-collapsed: 72px;
  --header-height: 72px;
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 900;
  --z-modal: 1000;
  --z-toast: 1100;
}

/* ── Lucide Icon styles ── */
.icon, [data-lucide] {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
  display: inline-block;
  vertical-align: middle;
}
.icon-sm, .icon-sm[data-lucide] { width: 16px; height: 16px; }
.icon-lg, .icon-lg[data-lucide] { width: 24px; height: 24px; }
.icon-xl, .icon-xl[data-lucide] { width: 32px; height: 32px; }

.sidebar-nav-item [data-lucide],
.sidebar-nav-item .icon,
.nav-icon [data-lucide] {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
  flex-shrink: 0;
}

.advantage-icon [data-lucide] {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
  color: var(--crimson);
}

.contact-icon [data-lucide] {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
  color: var(--gold);
}

.cert-badge [data-lucide] {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  vertical-align: middle;
  margin-right: 2px;
}

.kpi-icon [data-lucide] {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}

.quick-action-icon [data-lucide] {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
  color: var(--crimson);
}

.lesson-thumbnail [data-lucide] {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.ai-avatar [data-lucide] {
  width: 24px;
  height: 24px;
}

.dash-header-btn [data-lucide] {
  width: 20px;
  height: 20px;
}

/* ── Reset & Base ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* ── Typography ── */
.font-display { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; }
.font-body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--text-primary); }

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

/* ── Utility Classes ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.container-narrow { max-width: 960px; }
.container-wide { max-width: 1440px; }

.section-padding { padding: clamp(4rem, 8vw, 8rem) 0; }
.section-padding-sm { padding: clamp(2rem, 4vw, 4rem) 0; }

.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-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-6 { gap: 3rem; }
.text-center { text-align: center; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ── Section Title ── */
.section-header { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header h2 { margin-bottom: 1rem; }
.section-header .section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-header .section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 1rem;
}
.section-label::before,
.section-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

/* ── Gold Accent Line ── */
.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 1rem auto;
  border-radius: 1px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  color: var(--white);
  box-shadow: var(--shadow-crimson);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(155,27,48,.25);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(184,134,11,.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.7);
  transform: translateY(-2px);
}

.btn-glass {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
}
.btn-glass:hover {
  background: rgba(255,255,255,.85);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8125rem; }
.btn-lg { padding: 1.125rem 2.75rem; font-size: 1.0625rem; }

/* ── Glass Card ── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-normal);
}
.glass-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ── Premium Card ── */
.premium-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
}
.premium-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-light);
  transform: translateY(-6px);
}

/* ═══════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════ */
.nav-public {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: 1rem 0;
  transition: all var(--transition-normal);
}
.nav-public.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  padding: 0.625rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(155,27,48,.15);
  transition: transform var(--transition-normal);
}
.nav-logo:hover img { transform: scale(1.05); }
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  transition: color var(--transition-fast);
}
.nav-public.scrolled .nav-logo-text { color: var(--text-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition-normal);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }
.nav-public.scrolled .nav-link { color: var(--text-secondary); }
.nav-public.scrolled .nav-link:hover { color: var(--crimson); }

.nav-login-btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  transition: all var(--transition-normal);
}
.nav-login-btn:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  transform: translateY(-1px);
}
.nav-public.scrolled .nav-login-btn {
  color: var(--white);
  background: var(--crimson);
  border-color: var(--crimson);
}

/* Mobile burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-fast);
  border-radius: 1px;
}
.nav-public.scrolled .nav-burger span { background: var(--text-primary); }
.nav-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.25rem;
    transition: right var(--transition-normal);
    box-shadow: -8px 0 32px rgba(0,0,0,.1);
    z-index: var(--z-modal);
  }
  .nav-links.open { right: 0; }
  .nav-links .nav-link { color: var(--text-primary); font-size: 1rem; }
  .nav-links .nav-login-btn { color: var(--white); background: var(--crimson); border-color: var(--crimson); width: 100%; text-align: center; }
}

/* ═══════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,26,26,.7) 0%,
    rgba(26,26,26,.4) 40%,
    rgba(155,27,48,.25) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 clamp(1rem, 4vw, 3rem);
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(184,134,11,.2);
  border: 1px solid rgba(184,134,11,.35);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero-title span {
  display: inline;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.85);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-counters {
  display: flex;
  gap: clamp(2rem, 4vw, 4rem);
  justify-content: center;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.hero-counter {
  text-align: center;
}
.hero-counter-value {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.hero-counter-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Hero progress indicators */
.hero-indicators {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.75rem;
}
.hero-indicator {
  width: 48px;
  height: 4px;
  background: rgba(255,255,255,.4);
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-normal);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.hero-indicator:hover { background: rgba(255,255,255,.6); }
.hero-indicator.active { background: rgba(255,255,255,.5); }
.hero-indicator.active .hero-indicator-fill {
  width: 100%;
  transition: width 5s linear;
}
.hero-indicator-fill {
  height: 100%;
  width: 0;
  background: var(--gold-light);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════════ */
.about-section { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184,134,11,.15);
  border-radius: var(--radius-lg);
  pointer-events: none;
}
.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 { margin-bottom: 1.25rem; }
.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: var(--white-cool);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  transition: all var(--transition-fast);
}
.cert-badge:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  box-shadow: var(--shadow-gold);
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   VIDEO DIVIDER
   ═══════════════════════════════════════════════════ */
.video-divider {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}
.video-divider video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.video-divider::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.15) 0%,
    rgba(255,255,255,0) 20%,
    rgba(255,255,255,0) 80%,
    rgba(255,255,255,.15) 100%
  );
  pointer-events: none;
}
@media (max-width: 768px) {
  .video-divider { height: 200px; }
}

/* Gold Decorative Divider Line */
.gold-divider-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-dark), var(--gold), transparent);
  margin: 0;
  opacity: .5;
}

/* ═══════════════════════════════════════════════════
   PRODUCT CATALOG
   ═══════════════════════════════════════════════════ */
.catalog-section { background: var(--white-warm); }

/* Category lifestyle cards */
.catalog-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.category-card:hover img {
  transform: scale(1.06);
}
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, rgba(0,0,0,.1) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  color: white;
}
.category-card-overlay h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.125rem;
}
.category-card-overlay p {
  font-size: 0.8125rem;
  opacity: 0.8;
}
@media (max-width: 768px) {
  .catalog-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}
@media (max-width: 480px) {
  .catalog-categories {
    grid-template-columns: 1fr;
  }
}

.catalog-filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  letter-spacing: 0.01em;
}
.filter-btn:hover { border-color: var(--crimson); color: var(--crimson); }
.filter-btn.active {
  background: var(--crimson);
  color: var(--white);
  border-color: var(--crimson);
  box-shadow: var(--shadow-crimson);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--border-light);
}

.product-card-image {
  aspect-ratio: 1;
  background: var(--white-cool);
  overflow: hidden;
  position: relative;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card-image img { transform: scale(1.05); }

.product-pv-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

.product-card-body { padding: 1rem 1.25rem 1.25rem; }
.product-card-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.product-price-main {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--crimson);
}
.product-price-rub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   BRANDS SECTION
   ═══════════════════════════════════════════════════ */
.brands-section { background: var(--white); }

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.brand-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--white-warm);
  border: 1px solid var(--border-subtle);
  text-align: center;
  transition: all var(--transition-normal);
}
.brand-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--gold);
}
.brand-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.brand-card h4 { margin-bottom: 0.5rem; }
.brand-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ═══════════════════════════════════════════════════
   ADVANTAGES SECTION
   ═══════════════════════════════════════════════════ */
.advantages-section { background: var(--white-warm); }

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.advantage-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}
.advantage-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.advantage-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(155,27,48,.08), rgba(184,134,11,.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.advantage-card h4 { margin-bottom: 0.5rem; font-size: 1.125rem; }
.advantage-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

/* ═══════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(122,21,38,.85), rgba(26,26,26,.7));
}
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-content h2 { color: var(--white); margin-bottom: 1rem; }
.cta-content p {
  color: rgba(255,255,255,.8);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════ */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.contact-item { text-align: center; padding: 1.5rem; }
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(155,27,48,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  color: var(--crimson);
}
.contact-item h4 { font-size: 1rem; margin-bottom: 0.375rem; }
.contact-item p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.site-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.footer-brand { max-width: 300px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.8125rem; line-height: 1.6; }

.footer-links-col h5 {
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
}
.footer-links-col a {
  display: block;
  font-size: 0.8125rem;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}
.footer-links-col a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.75rem; }
.footer-bottom a { color: var(--gold-light); transition: color var(--transition-fast); }
.footer-bottom a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════
   LOGIN MODAL
   ═══════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: var(--z-modal);
  width: 90%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-spring);
}
.modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white-cool);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--border-light); color: var(--text-primary); }

.modal-header { text-align: center; margin-bottom: 1.5rem; }
.modal-header img { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1rem; }
.modal-header h3 { font-size: 1.375rem; margin-bottom: 0.25rem; }
.modal-header p { font-size: 0.875rem; color: var(--text-muted); }

.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--white-warm);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
}
.form-input:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(155,27,48,.08);
}
.form-input.error { border-color: #e53e3e; }
.form-error { font-size: 0.75rem; color: #e53e3e; margin-top: 0.25rem; }

.login-btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ═══════════════════════════════════════════════════ */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: var(--white-cool);
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--white);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  transition: width var(--transition-normal), transform var(--transition-normal);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sidebar-header img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.sidebar-header span {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--crimson);
}

.sidebar-profile {
  padding: 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}
.sidebar-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 0.75rem;
}
.sidebar-profile h4 { font-size: 0.9375rem; margin-bottom: 0.125rem; }
.sidebar-profile .sidebar-level {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
}

.sidebar-nav { padding: 0.75rem; flex: 1; }
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 2px;
}
.sidebar-nav-item:hover { background: var(--white-cool); color: var(--text-primary); }
.sidebar-nav-item.active {
  background: linear-gradient(135deg, rgba(155,27,48,.06), rgba(155,27,48,.03));
  color: var(--crimson);
  font-weight: 600;
}
.sidebar-nav-item .nav-icon { font-size: 1.125rem; width: 20px; text-align: center; }

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
}
.sidebar-footer button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  width: 100%;
  padding: 0.5rem 0;
}
.sidebar-footer button:hover { color: var(--crimson); }

/* Dashboard Main Content */
.dashboard-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin-left var(--transition-normal);
}

/* Top Header */
.dash-header {
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}
.dash-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.dash-burger {
  display: none;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: background var(--transition-fast);
}
.dash-burger:hover { background: var(--white-cool); }

.dash-header-title h3 {
  font-size: 1.25rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}
.dash-header-title p { font-size: 0.8125rem; color: var(--text-muted); }

.dash-header-right { display: flex; align-items: center; gap: 0.75rem; }
.dash-header-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--white-cool);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
  position: relative;
  transition: all var(--transition-fast);
}
.dash-header-btn:hover { background: var(--border-light); color: var(--text-primary); }
.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--crimson);
  border-radius: 50%;
  border: 2px solid var(--white);
}
.dash-user-info {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.75rem 0.375rem 0.375rem;
  border-radius: var(--radius-full);
  background: var(--white-cool);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.dash-user-info:hover { background: var(--border-light); }
.dash-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.dash-user-name { font-size: 0.8125rem; font-weight: 600; color: var(--text-primary); }

/* Dashboard Content Area */
.dash-content { padding: 1.5rem; }

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.kpi-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}
.kpi-card:nth-child(1)::before { background: linear-gradient(90deg, var(--crimson), var(--crimson-light)); }
.kpi-card:nth-child(2)::before { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.kpi-card:nth-child(3)::before { background: linear-gradient(90deg, #2D8B4E, #4CAF50); }
.kpi-card:nth-child(4)::before { background: linear-gradient(90deg, #3B82F6, #60A5FA); }

.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}
.kpi-card:nth-child(1) .kpi-icon { background: rgba(155,27,48,.08); color: var(--crimson); }
.kpi-card:nth-child(2) .kpi-icon { background: rgba(184,134,11,.08); color: var(--gold); }
.kpi-card:nth-child(3) .kpi-icon { background: rgba(45,139,78,.08); color: #2D8B4E; }
.kpi-card:nth-child(4) .kpi-icon { background: rgba(59,130,246,.08); color: #3B82F6; }

.kpi-change {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
}
.kpi-change.up { background: rgba(45,139,78,.08); color: #2D8B4E; }
.kpi-change.down { background: rgba(229,62,62,.08); color: #e53e3e; }

.kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.25rem;
  font-variant-numeric: tabular-nums;
}
.kpi-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Charts */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.chart-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.chart-card-header h4 {
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}
.chart-card-header span { font-size: 0.75rem; color: var(--text-muted); }
.chart-container { position: relative; }

@media (max-width: 960px) {
  .charts-grid { grid-template-columns: 1fr; }
}

/* Activity Feed */
.activity-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.activity-card h4 {
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}
.activity-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.375rem;
  flex-shrink: 0;
}
.activity-dot.green { background: #4CAF50; }
.activity-dot.blue { background: #3B82F6; }
.activity-dot.gold { background: var(--gold); }
.activity-dot.red { background: var(--crimson); }
.activity-text { font-size: 0.875rem; color: var(--text-secondary); }
.activity-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.125rem; }

/* Quick Actions */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  cursor: pointer;
}
.quick-action-btn:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  border-color: var(--crimson);
}
.quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(155,27,48,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--crimson);
}
.quick-action-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════
   DASHBOARD SUB-PAGES
   ═══════════════════════════════════════════════════ */

/* Office Page */
.office-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.stat-card h4 { font-size: 0.8125rem; color: var(--text-muted); font-family: 'Inter', sans-serif; font-weight: 600; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-card .stat-value { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }

.progress-section {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.progress-bar-wrapper { margin-top: 1rem; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.progress-bar {
  height: 8px;
  background: var(--white-cool);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--crimson), var(--crimson-light));
  border-radius: 4px;
  transition: width 1s ease;
}

/* Team Page */
.team-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.team-members-list {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.team-member-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}
.team-member-row:hover { background: var(--white-warm); }
.team-member-row:last-child { border-bottom: none; }
.team-member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white-cool);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--crimson);
  flex-shrink: 0;
}
.team-member-info { flex: 1; }
.team-member-info h5 { font-size: 0.875rem; font-weight: 600; }
.team-member-info p { font-size: 0.75rem; color: var(--text-muted); }
.team-member-stats { text-align: right; }
.team-member-stats span { font-size: 0.875rem; font-weight: 700; color: var(--gold); }
.team-member-stats p { font-size: 0.75rem; color: var(--text-muted); }

/* Finances Page */
.balance-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.balance-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.balance-card.accent {
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  color: var(--white);
  border: none;
}
.balance-card.accent h4 { color: rgba(255,255,255,.7); }
.balance-card.accent .stat-value { color: var(--white); }

.transactions-table {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.transactions-table table {
  width: 100%;
  border-collapse: collapse;
}
.transactions-table th {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--white-warm);
  border-bottom: 1px solid var(--border-subtle);
}
.transactions-table td {
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-subtle);
}
.transactions-table tr:last-child td { border-bottom: none; }
.transactions-table tr:hover td { background: var(--white-warm); }

.amount-positive { color: #2D8B4E; font-weight: 600; }
.amount-negative { color: #e53e3e; font-weight: 600; }

/* Shop Page */
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.shop-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  min-width: 240px;
}
.shop-search input {
  border: none;
  background: none;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  flex: 1;
}
.shop-cart-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--crimson);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}
.shop-cart-btn:hover { background: var(--crimson-dark); }
.cart-count {
  background: var(--gold);
  color: var(--white);
  font-size: 0.6875rem;
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.shop-product-card .product-card-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.shop-buy-btn {
  padding: 0.375rem 0.875rem;
  background: var(--crimson);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.shop-buy-btn:hover { background: var(--crimson-dark); }

/* Settings Page */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
}
.settings-sidebar {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem;
}
.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}
.settings-nav-item:hover { background: var(--white-cool); }
.settings-nav-item.active { background: rgba(155,27,48,.06); color: var(--crimson); font-weight: 600; }
.settings-content {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.settings-content h3 { font-size: 1.125rem; font-family: 'Inter', sans-serif; font-weight: 700; margin-bottom: 1.5rem; }

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.settings-row:last-child { border-bottom: none; }
.settings-row-label h5 { font-size: 0.875rem; font-weight: 600; }
.settings-row-label p { font-size: 0.75rem; color: var(--text-muted); }

/* Toggle Switch */
.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--border-light);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.toggle-switch.active { background: var(--crimson); }
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--transition-fast);
  box-shadow: var(--shadow-xs);
}
.toggle-switch.active::after { transform: translateX(20px); }

/* Academy Page */
.academy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.lesson-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}
.lesson-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.lesson-thumbnail {
  height: 160px;
  background: linear-gradient(135deg, var(--crimson), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.5rem;
}
.lesson-body { padding: 1.25rem; }
.lesson-body h4 { font-size: 0.9375rem; font-family: 'Inter', sans-serif; font-weight: 700; margin-bottom: 0.375rem; }
.lesson-body p { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.lesson-progress { height: 4px; background: var(--white-cool); border-radius: 2px; overflow: hidden; }
.lesson-progress-fill { height: 100%; background: var(--crimson); border-radius: 2px; }

/* AI Consultant */
.ai-chat-container {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height) - 3rem);
}
.ai-chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.125rem;
}
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chat-message {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  line-height: 1.6;
}
.chat-message.bot {
  background: var(--white-cool);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-message.user {
  background: var(--crimson);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.ai-chat-input {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.75rem;
}
.ai-chat-input input {
  flex: 1;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.ai-chat-input input:focus { border-color: var(--crimson); }
.ai-chat-input button {
  padding: 0.625rem 1.25rem;
  background: var(--crimson);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition-fast);
}
.ai-chat-input button:hover { background: var(--crimson-dark); }

/* ═══════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in {
  opacity: 0;
}
.fade-in.visible {
  opacity: 1;
  transition: opacity 0.6s ease;
}

.scale-in {
  opacity: 0;
  transform: scale(0.92);
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Stagger children */
.stagger-children > * { transition-delay: calc(var(--stagger-index, 0) * 100ms); }

/* Shimmer loading */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--white-cool) 25%, var(--white-warm) 50%, var(--white-cool) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* Pulse dot */
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.7; } }
.pulse { animation: pulse 2s infinite; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0,0,0,.1);
  }
  .dashboard-main { margin-left: 0; }
  .dash-burger { display: flex; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .hero-counters { gap: 1.5rem; }
  .hero-counter-value { font-size: 2rem; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: calc(var(--z-sticky) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.sidebar-overlay.open { opacity: 1; visibility: visible; }

/* ═══════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* Selection */
::selection { background: rgba(155,27,48,.15); color: var(--text-primary); }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════ */
@media print {
  .nav-public, .sidebar, .dash-header, .hero-section { display: none; }
  body { background: white; }
}

/* ═══════════════════════════════════════════════════
   WHIEDA Dashboard Enhancement — New Styles
   ═══════════════════════════════════════════════════ */

/* ── Welcome Banner ── */
.dash-welcome-banner {
  background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 50%, #1A1A1A 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(184,134,11,0.2);
}
.dash-welcome-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(184,134,11,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.dash-welcome-banner::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 20%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(155,27,48,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.dash-welcome-banner .welcome-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.dash-welcome-banner .welcome-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.375rem;
  color: white;
}
.dash-welcome-banner .welcome-info p {
  opacity: 0.7;
  font-size: 0.875rem;
  line-height: 1.5;
}
.rank-badge-lg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(184,134,11,0.25), rgba(184,134,11,0.1));
  border: 1px solid rgba(184,134,11,0.35);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rank-badge-lg .icon { width: 16px; height: 16px; color: var(--gold-light); }
.package-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.625rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* ── KPI Grid Enhanced ── */
.kpi-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 1024px) {
  .kpi-grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .kpi-grid-6 { grid-template-columns: 1fr; }
}
.kpi-card-v2 {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.kpi-card-v2:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.kpi-card-v2 .kpi-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.kpi-card-v2 .kpi-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kpi-card-v2 .kpi-icon-circle .icon { width: 18px; height: 18px; }
.kpi-card-v2 .kpi-icon-circle.crimson { background: rgba(155,27,48,0.08); color: var(--crimson); }
.kpi-card-v2 .kpi-icon-circle.gold { background: rgba(184,134,11,0.08); color: var(--gold); }
.kpi-card-v2 .kpi-icon-circle.green { background: rgba(45,139,78,0.08); color: #2D8B4E; }
.kpi-card-v2 .kpi-icon-circle.blue { background: rgba(59,130,246,0.08); color: #3B82F6; }
.kpi-card-v2 .kpi-change-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  line-height: 1.6;
}
.kpi-change-tag.up { background: rgba(45,139,78,0.08); color: #2D8B4E; }
.kpi-change-tag.down { background: rgba(229,62,62,0.08); color: #e53e3e; }
.kpi-card-v2 .kpi-val {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  font-family: 'Inter', sans-serif;
}
.kpi-card-v2 .kpi-lbl {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 500;
}
.kpi-card-v2 .kpi-sparkline {
  margin-top: 0.75rem;
  height: 32px;
}

/* ── Qualification Tracker ── */
.qual-tracker {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.qual-tracker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.qual-tracker-header h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
.qual-tracker-header .est-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3B82F6;
  padding: 0.25rem 0.75rem;
  background: rgba(59,130,246,0.06);
  border-radius: var(--radius-full);
}
.rank-ladder {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.rank-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 80px;
}
.rank-step::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: var(--border-subtle);
  z-index: 0;
}
.rank-step:last-child::after { display: none; }
.rank-step .rank-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white-cool);
  border: 3px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: var(--transition-normal);
}
.rank-step .rank-dot .icon { width: 14px; height: 14px; color: var(--text-muted); }
.rank-step.completed .rank-dot {
  background: var(--crimson);
  border-color: var(--crimson);
}
.rank-step.completed .rank-dot .icon { color: white; }
.rank-step.current .rank-dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184,134,11,0.15);
}
.rank-step.current .rank-dot .icon { color: white; }
.rank-step.completed::after { background: var(--crimson); }
.rank-step .rank-name {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
  line-height: 1.3;
  max-width: 70px;
}
.rank-step.current .rank-name { color: var(--gold-dark); font-weight: 700; }
.rank-step.completed .rank-name { color: var(--crimson); }

.qual-progress-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 640px) {
  .qual-progress-row { grid-template-columns: 1fr; }
}
.qual-progress-item {
  padding: 1rem;
  background: var(--white-warm);
  border-radius: var(--radius-md);
}
.qual-progress-item .qp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.qual-progress-item .qp-header span:first-child {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.qual-progress-item .qp-header span:last-child {
  font-size: 0.8125rem;
  font-weight: 700;
}
.qual-progress-item .qp-bar {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.06);
  overflow: hidden;
}
.qual-progress-item .qp-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--crimson), var(--crimson-light));
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.qual-progress-item .qp-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.375rem;
}

/* ── Binary Visual ── */
.binary-visual-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.binary-visual-card h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.binary-tree-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.bt-root {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: var(--shadow-crimson);
}
.bt-branches {
  display: flex;
  gap: 3rem;
  position: relative;
}
.bt-branches::before {
  content: '';
  position: absolute;
  top: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1.25rem;
  border-left: 2px solid var(--border-light);
  border-right: 2px solid var(--border-light);
  border-top: 2px solid var(--border-light);
  border-radius: 8px 8px 0 0;
}
.bt-leg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  min-width: 140px;
}
.bt-leg-header {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.bt-leg-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: white;
}
.bt-leg-node.left { background: var(--crimson); }
.bt-leg-node.right { background: var(--gold); }
.bt-leg-pv {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
}
.bt-leg-growth {
  font-size: 0.75rem;
  font-weight: 600;
}
.bt-leg-growth.up { color: #2D8B4E; }
.bt-leg-members-row {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.25rem;
}
.bt-leg-member-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white-cool);
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.bt-balance-bar {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  background: var(--white-warm);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bt-balance-bar .icon { width: 16px; height: 16px; color: #3B82F6; flex-shrink: 0; }
.bt-balance-bar span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.bt-balance-bar strong {
  color: var(--text-primary);
}

/* ── Bonus Calculator Panel ── */
.bonus-calc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.bonus-calc-card h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.bonus-calc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 640px) {
  .bonus-calc-grid { grid-template-columns: 1fr; }
}
.bonus-calc-item {
  padding: 1rem;
  background: var(--white-warm);
  border-radius: var(--radius-md);
}
.bonus-calc-item .bci-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
}
.bonus-calc-item .bci-value {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-primary);
}
.bonus-calc-item .bci-formula {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.bonus-calc-item .bci-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Charts Enhanced ── */
.charts-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .charts-grid-v2 { grid-template-columns: 1fr; }
}
.chart-card-v2 {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.chart-card-v2 .cc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0.75rem;
}
.chart-card-v2 .cc-header h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
}
.chart-card-v2 .cc-header span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.chart-card-v2 .cc-body {
  padding: 0.5rem 1rem 1.25rem;
}

/* ── Activity Feed Enhanced ── */
.activity-card-v2 {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.activity-card-v2 h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 1.25rem 1.5rem 1rem;
}
.act-item-v2 {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}
.act-item-v2:hover { background: var(--white-warm); }
.act-dot-v2 {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.act-dot-v2.green { background: #2D8B4E; }
.act-dot-v2.blue { background: #3B82F6; }
.act-dot-v2.gold { background: var(--gold); }
.act-dot-v2.red { background: var(--crimson); }
.act-text-v2 {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.act-text-v2 strong { color: var(--text-primary); font-weight: 600; }
.act-time-v2 {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}
.act-bonus-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  background: rgba(45,139,78,0.08);
  color: #2D8B4E;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  margin-left: 0.375rem;
}

/* ── Quick Actions ── */
.quick-actions-grid-v2 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .quick-actions-grid-v2 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .quick-actions-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Office Page Enhanced ── */
.office-profile-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .office-profile-card { flex-direction: column; text-align: center; }
}
.profile-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(var(--gold) 0%, var(--gold) 65%, var(--border-subtle) 65%, var(--border-subtle) 100%);
  flex-shrink: 0;
  position: relative;
}
.profile-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}
.office-profile-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
}
.office-profile-info .opm {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}
.office-profile-info .rank-and-pack {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.625rem;
  flex-wrap: wrap;
}
.rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rank-pill.gold { background: rgba(184,134,11,0.08); color: var(--gold-dark); }
.rank-pill.crimson { background: rgba(155,27,48,0.08); color: var(--crimson); }
.rank-pill .icon { width: 12px; height: 12px; }

/* ── Leg Analysis Cards ── */
.leg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .leg-grid { grid-template-columns: 1fr; }
}
.leg-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.leg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.leg-card.left-leg::before { background: linear-gradient(90deg, var(--crimson), var(--crimson-light)); }
.leg-card.right-leg::before { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.leg-card .lc-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}
.leg-card.left-leg .lc-title { color: var(--crimson); }
.leg-card.right-leg .lc-title { color: var(--gold-dark); }
.leg-card .lc-pv {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}
.leg-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}
.leg-stat-mini .lsm-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
}
.leg-stat-mini .lsm-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.125rem;
}

/* ── Step Bonus Tracker ── */
.section-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 0.875rem;
}
.section-card-header h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
.section-card-header .sch-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}
.section-card-body {
  padding: 0 1.5rem 1.5rem;
}

/* ── Tables Enhanced ── */
.dash-table {
  width: 100%;
  border-collapse: collapse;
}
.dash-table th {
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 0.75rem;
  background: var(--white-warm);
  border-bottom: 1px solid var(--border-subtle);
}
.dash-table td {
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: var(--white-warm); }
.dash-table .amount-positive { color: #2D8B4E; font-weight: 700; }
.dash-table .amount-negative { color: #e53e3e; font-weight: 700; }

/* ── Depth Visualization ── */
.depth-vis {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.depth-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.depth-row .dr-level {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 56px;
  text-align: right;
  flex-shrink: 0;
}
.depth-row .dr-bar-wrap {
  flex: 1;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--white-warm);
  overflow: hidden;
  position: relative;
}
.depth-row .dr-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease;
}
.depth-row .dr-val {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-secondary);
  width: 50px;
  flex-shrink: 0;
}

/* ── Package Comparison ── */
.pkg-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 640px) {
  .pkg-comparison-grid { grid-template-columns: 1fr; }
}
.pkg-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-subtle);
  text-align: center;
  transition: var(--transition-fast);
}
.pkg-card.active {
  border-color: var(--gold);
  background: rgba(184,134,11,0.03);
}
.pkg-card .pkg-name {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
}
.pkg-card .pkg-pv {
  font-size: 1.5rem;
  font-weight: 800;
}
.pkg-card .pkg-income {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.pkg-card .pkg-current-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  padding: 0.25rem 0.625rem;
  background: var(--gold);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
}

/* ── Team Page Enhanced ── */
.team-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .team-overview-grid { grid-template-columns: repeat(2, 1fr); }
}
.team-search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--white-warm);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border: 1px solid var(--border-subtle);
}
.team-search-bar .icon { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.team-search-bar input {
  flex: 1;
  border: none;
  background: none;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  font-family: 'Inter', sans-serif;
}
.team-search-bar input::placeholder { color: var(--text-muted); }

.team-member-row-v2 {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}
.team-member-row-v2:hover { background: var(--white-warm); }
@media (max-width: 768px) {
  .team-member-row-v2 { grid-template-columns: auto 1fr auto; }
  .team-member-row-v2 .tmr-leg,
  .team-member-row-v2 .tmr-joined { display: none; }
}
.tmr-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.tmr-info h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.tmr-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.0625rem;
}
.tmr-leg {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
}
.tmr-leg.left { background: rgba(155,27,48,0.08); color: var(--crimson); }
.tmr-leg.right { background: rgba(184,134,11,0.08); color: var(--gold-dark); }
.tmr-pv {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
  white-space: nowrap;
}
.tmr-joined {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.new-partners-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid #2D8B4E;
  box-shadow: var(--shadow-xs);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.new-partners-section h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  color: #2D8B4E;
}
.np-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}
.np-item + .np-item { border-top: 1px solid var(--border-subtle); }
.np-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(45,139,78,0.1);
  color: #2D8B4E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
}
.np-info { flex: 1; }
.np-info .np-name { font-size: 0.8125rem; font-weight: 600; }
.np-info .np-meta { font-size: 0.6875rem; color: var(--text-muted); margin-top: 0.0625rem; }

/* ── Finances Page Enhanced ── */
.finance-bonus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 1024px) {
  .finance-bonus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .finance-bonus-grid { grid-template-columns: 1fr; }
}
.fb-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}
.fb-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.fb-card.step-bonus::before { background: var(--crimson); }
.fb-card.binary-bonus::before { background: var(--gold); }
.fb-card.repeat-bonus::before { background: #2D8B4E; }
.fb-card.cashback-bonus::before { background: #3B82F6; }
.fb-card .fb-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}
.fb-card .fb-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}
.fb-card .fb-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.fb-card .fb-detail {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* ── Analytics Page Enhanced ── */
.analytics-projection {
  background: linear-gradient(135deg, #1A1A1A, #2D2D2D);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  color: white;
}
.analytics-projection h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: white;
}
.analytics-projection .ap-desc {
  font-size: 0.875rem;
  opacity: 0.75;
  margin-bottom: 1rem;
}
.analytics-projection .ap-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: rgba(184,134,11,0.2);
  border: 1px solid rgba(184,134,11,0.3);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gold-light);
}
.analytics-projection .ap-highlight .icon { width: 14px; height: 14px; }

.funnel-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.funnel-card h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.funnel-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.funnel-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  position: relative;
}
.funnel-step + .funnel-step { border-top: 1px solid var(--border-subtle); }
.funnel-step .fs-bar-wrap {
  flex: 1;
  height: 28px;
  background: var(--white-warm);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}
.funnel-step .fs-bar {
  height: 100%;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  transition: width 1s ease;
}
.funnel-step .fs-bar span {
  font-size: 0.6875rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}
.funnel-step .fs-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  width: 120px;
  flex-shrink: 0;
}
.funnel-step .fs-pct {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  width: 44px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Misc ── */
.dash-section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.dash-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 1.5rem 0;
}
.tag-sm {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
}
.tag-sm.green { background: rgba(45,139,78,0.08); color: #2D8B4E; }
.tag-sm.gold { background: rgba(184,134,11,0.08); color: var(--gold-dark); }
.tag-sm.blue { background: rgba(59,130,246,0.08); color: #3B82F6; }
.tag-sm.red { background: rgba(155,27,48,0.08); color: var(--crimson); }

/* Card link hover */
.dash-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--crimson);
  cursor: pointer;
  transition: var(--transition-fast);
}
.dash-card-link:hover { color: var(--crimson-dark); }
.dash-card-link .icon { width: 14px; height: 14px; }

/* 2-col layout */
.dash-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .dash-2col { grid-template-columns: 1fr; }
}

/* Earnings stacked chart legend */
.earnings-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 1.5rem 1.25rem;
}
.earnings-legend-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}
.earnings-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Withdrawal status */
.wd-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
}
.wd-status.completed { background: rgba(45,139,78,0.08); color: #2D8B4E; }
.wd-status.pending { background: rgba(184,134,11,0.08); color: var(--gold); }

/* Team depth analysis bars */
.depth-analysis-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.depth-analysis-bar .dab-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  width: 80px;
  flex-shrink: 0;
}
.depth-analysis-bar .dab-bar {
  flex: 1;
  height: 12px;
  background: var(--white-warm);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.depth-analysis-bar .dab-fill {
  height: 100%;
  border-radius: var(--radius-full);
}
.depth-analysis-bar .dab-val {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  width: 50px;
  text-align: right;
}

/* Responsive fix for binary tree on mobile */
@media (max-width: 480px) {
  .bt-branches { gap: 1.5rem; }
  .bt-leg { min-width: 100px; }
  .rank-ladder { gap: 0; }
  .rank-step { min-width: 60px; }
  .rank-step .rank-name { font-size: 0.5625rem; max-width: 55px; }
  .qual-progress-row { grid-template-columns: 1fr; }
}

/* ── Bonus Efficiency Pie ── */
.bonus-efficiency-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 640px) {
  .bonus-efficiency-grid { grid-template-columns: 1fr; }
}
