/* ============================================
   WBIndex Pro — Unified Style System
   Landing + Dashboard + Auth pages
   ============================================ */

/* --- RESET & VARIABLES --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Core palette */
  --bg-deepest: #0e1019;
  --bg-deep: #141625;
  --bg-base: #1a1d2e;
  --bg-card: #1f2237;
  --bg-card-hover: #252840;
  --bg-elevated: #2a2d44;
  --bg-input: #252840;

  /* Text */
  --text-primary: #f1f3f9;
  --text-secondary: #9ca3be;
  --text-muted: #6b7194;
  --text-inverse: #0e1019;

  /* Accent colors */
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --blue-dark: #2563eb;
  --blue-glow: rgba(59, 130, 246, 0.15);
  --green: #22c55e;
  --green-light: #4ade80;
  --green-dark: #16a34a;
  --green-glow: rgba(34, 197, 94, 0.15);
  --red: #ef4444;
  --red-light: #f87171;
  --red-dark: #dc2626;
  --red-glow: rgba(239, 68, 68, 0.15);
  --orange: #f59e0b;
  --orange-light: #fbbf24;
  --orange-dark: #d97706;
  --orange-glow: rgba(245, 158, 11, 0.15);
  --purple: #8b5cf6;
  --purple-dark: #7c3aed;

  /* Borders */
  --border-subtle: rgba(255,255,255,0.06);
  --border-medium: rgba(255,255,255,0.1);
  --border-hover: rgba(255,255,255,0.12);
  --border-blue: rgba(59,130,246,0.3);

  /* Sizing */
  --sidebar-width: 72px;
  --topnav-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Fonts */
  --font-main: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.15);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-deepest);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--text-primary); }

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

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }


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

.main {
  margin-left: var(--sidebar-width);
  padding-top: var(--topnav-height);
  min-height: 100vh;
}

/* Dashboard-specific main layout */
.main--dashboard {
  padding: 32px;
  padding-top: calc(var(--topnav-height) + 32px);
}


/* ==============================================================
   TOP NAVBAR (landing pages)
   ============================================================== */
.topnav {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topnav-height);
  background: rgba(14, 16, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: background 0.3s;
}

.topnav.scrolled {
  background: rgba(14, 16, 25, 0.95);
  border-bottom-color: var(--border-medium);
}

.topnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 32px;
}

.topnav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
}

.topnav__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.topnav__logo .accent { color: var(--blue-light); }

.topnav__links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.topnav__links a {
  padding: 8px 16px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}
.topnav__links a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.topnav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topnav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
}


/* ==============================================================
   SIDEBAR — Shared base styles
   ============================================================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-deep);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 200;
  transition: transform 0.3s ease;
}

.sidebar__logo {
  width: 100%;
  height: var(--topnav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar__logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.sidebar__logo-text { display: none; }

.sidebar__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 2px;
  width: 100%;
  min-height: 0;
}

.sidebar__item {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 18px;
  cursor: pointer;
}
.sidebar__item span { display: none; }

.sidebar__item:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

/* Landing sidebar — decorative active state */
.sidebar--landing .sidebar__item--active {
  color: var(--blue-light);
  background: var(--blue-glow);
}
.sidebar--landing .sidebar__item--active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--blue);
  border-radius: 0 3px 3px 0;
}

/* Dashboard sidebar — functional active state */
.sidebar--dashboard .sidebar__item.active {
  color: var(--blue);
  background: rgba(59, 130, 246, 0.12);
}
.sidebar--dashboard .sidebar__item.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--blue);
  border-radius: 0 3px 3px 0;
}

/* Sidebar tooltip */
.sidebar__item[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  z-index: 1001;
  pointer-events: none;
}

/* Tooltip for bottom sidebar buttons — show above, not centered */
.sidebar__bottom .sidebar__item[data-tooltip]:hover::after {
  top: auto;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
}

.sidebar__bottom {
  padding: 8px 0;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  overflow: visible;
}

.sidebar__logout { color: var(--text-muted) !important; }
.sidebar__logout:hover {
  color: var(--red) !important;
  background: rgba(239, 68, 68, 0.1) !important;
}


/* ==============================================================
   TOP BAR (dashboard pages)
   ============================================================== */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topnav-height);
  background: rgba(20, 22, 37, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar__burger {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
}

.topbar__brand-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  -webkit-user-select: none;
  user-select: none;
}

.topbar__brand-accent {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  background-clip: text;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  text-transform: uppercase;
}

.topbar__user {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

.topbar__bell {
  position: relative;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
}
.topbar__bell:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.topbar__bell-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--bg-deep);
}


/* ==============================================================
   SECTION COMMON (landing)
   ============================================================== */
.section {
  padding: 80px 0;
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-glow);
  color: var(--blue-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section__title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.accent { color: var(--blue-light); }


/* ==============================================================
   BUTTONS (unified)
   ============================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn--green {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}
.btn--green:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(34, 197, 94, 0.45);
}

.btn--blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}
.btn--blue:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(59, 130, 246, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
}
.btn--outline:hover {
  color: var(--text-primary);
  border-color: var(--blue);
  background: var(--blue-glow);
}

.btn--outline-sm {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 10px;
}
.btn--outline-sm:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}
.btn--outline-sm i {
  color: var(--green);
}

.btn--outline-sm:disabled,
.btn--outline-sm[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 8px;
  border-radius: 8px;
}
.btn--ghost:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.btn--danger {
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--red);
}
.btn--danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.5);
}

.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn--block { width: 100%; }


/* ==============================================================
   HERO (landing)
   ============================================================== */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  text-align: center;
}

.hero__bg-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 70%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-light);
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease both;
}

.hero__title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
  animation: fadeInUp 0.6s 0.1s ease both;
}

.hero__subtitle {
  font-size: 1.35rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 12px;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero__tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  animation: fadeInUp 0.6s 0.3s ease both;
}
.hero__tagline strong { color: var(--green-light); }

.hero__ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto 56px;
  animation: fadeInUp 0.6s 0.4s ease both;
}

.hero__cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.hero__cta-card:hover { transform: translateY(-3px); }
.hero__cta-card--free:hover { border-color: rgba(34, 197, 94, 0.3); }
.hero__cta-card--pro:hover { border-color: rgba(59, 130, 246, 0.3); }

.hero__cta-desc {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.hero__stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  animation: fadeInUp 0.6s 0.5s ease both;
}

.hero__stat { text-align: center; }

.hero__stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-medium);
}


/* ==============================================================
   CARD COMMON
   ============================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s;
}
.card:hover { border-color: var(--border-medium); }

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.card__title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.card__title i { color: var(--blue-light); font-size: 0.9rem; }

.card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.card__badge--red {
  background: var(--red-glow);
  color: var(--red-light);
}

/* Landing card layout — padding inside card */
.main:not(.main--dashboard) .card {
  padding: 24px;
}

/* Dashboard card layout — padding via header/footer/body */
.main--dashboard .card__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.main--dashboard .card {
  margin-bottom: 24px;
}

.card__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
}


/* ==============================================================
   ANALYSIS SECTION (landing)
   ============================================================== */
.analysis { background: var(--bg-deep); }

.analysis__grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.card--chart { height: 100%; }

.chart-container {
  position: relative;
  height: 320px;
}

.analysis__metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Landing metric cards */
.analysis__metrics .metric-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.25s, border-color 0.25s;
}
.analysis__metrics .metric-card:hover { transform: translateY(-2px); }

.analysis__metrics .metric-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.metric-card--warning .metric-card__icon { background: var(--orange-glow); color: var(--orange); }
.metric-card--warning:hover { border-color: rgba(245,158,11,0.3); }

.metric-card--danger .metric-card__icon { background: var(--red-glow); color: var(--red); }
.metric-card--danger:hover { border-color: rgba(239,68,68,0.3); }

.metric-card--alert .metric-card__icon { background: var(--red-glow); color: var(--red); }
.metric-card--alert:hover { border-color: rgba(239,68,68,0.3); }

.analysis__metrics .metric-card__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.analysis__metrics .metric-card__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}


/* ==============================================================
   ABOUT / WHAT IS IL (landing)
   ============================================================== */
.about__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card--wb, .card--reality { height: 100%; }

.about__quote {
  background: var(--bg-elevated);
  border-left: 3px solid var(--orange);
  padding: 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
}
.about__quote p {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.about__offer {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.about__offer-badge {
  display: inline-block;
  background: var(--orange-glow);
  color: var(--orange);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 10px;
}
.about__offer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.about__reality-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__reality-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.about__reality-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.about__reality-icon--red { background: var(--red-glow); color: var(--red); }

.about__reality-list li span:last-child {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-top: 2px;
}


/* ==============================================================
   SUPPORT / LEGAL (landing)
   ============================================================== */
.support__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.support__card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: transform 0.25s, border-color 0.25s;
}
.support__card:hover {
  transform: translateY(-2px);
  border-color: var(--border-blue);
}

.support__card-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-glow);
  color: var(--blue-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.support__card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-top: 4px;
}
.support__card strong { color: var(--text-primary); font-weight: 700; }

.support__quote-block {
  background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(139,92,246,0.06));
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
}

.support__quote-icon {
  color: var(--blue);
  font-size: 1.8rem;
  opacity: 0.4;
  margin-bottom: 16px;
  display: block;
}

.support__quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 500;
}


/* ==============================================================
   PRICING (landing)
   ============================================================== */
.pricing { background: var(--bg-deep); }

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing__card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}
.pricing__card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
}

.pricing__card--featured {
  border-color: var(--blue);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
}
.pricing__card--featured:hover { border-color: var(--blue-light); }

.pricing__popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  padding: 4px 20px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing__card-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing__plan {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing__price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}
.pricing__price small {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.pricing__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pricing__features li i {
  color: var(--green);
  margin-top: 2px;
  flex-shrink: 0;
}

.pricing__coming-soon i { color: var(--orange) !important; }

/* Pricing toggle */
.pricing__toggle {
  display: flex;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 3px;
  margin: 12px 0 8px;
  gap: 2px;
}
.pricing__toggle-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.pricing__toggle-btn--active {
  background: rgba(59, 130, 246, 0.25);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}
.pricing__toggle-btn:hover:not(.pricing__toggle-btn--active) {
  color: rgba(255,255,255,0.8);
}
.pricing__price-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.pricing__price-total {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}
.pricing__save {
  margin-top: 6px;
  padding: 5px 14px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 20px;
  color: #22c55e;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


/* ==============================================================
   FOOTER (landing)
   ============================================================== */
.footer {
  padding: 60px 0 0;
  background: var(--bg-deepest);
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.footer__logo i { color: var(--blue); margin-right: 8px; }

.footer__desc {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer__links h4,
.footer__contact h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer__links a,
.footer__contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer__links a:hover,
.footer__contact a:hover { color: var(--text-primary); }

.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 0;
  text-align: center;
}

.footer__bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}


/* ==============================================================
   DASHBOARD: METRICS ROW
   ============================================================== */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.metrics-row .metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metrics-row .metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.metrics-row .metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.metric-card--blue::before { background: linear-gradient(90deg, var(--blue), var(--purple)); }
.metric-card--green::before { background: var(--green); }
.metric-card--red::before { background: var(--red); }
.metric-card--orange::before { background: var(--orange); }
.metric-card--yellow::before { background: #eab308; }
.metric-card--purple::before { background: linear-gradient(90deg, var(--purple), var(--blue)); }

.metric-card--blue:hover { box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15); }
.metric-card--green:hover { box-shadow: 0 8px 32px rgba(34, 197, 94, 0.15); }
.metric-card--red:hover { box-shadow: 0 8px 32px rgba(239, 68, 68, 0.15); }
.metric-card--orange:hover { box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15); }
.metric-card--yellow:hover { box-shadow: 0 8px 32px rgba(234, 179, 8, 0.15); }
.metric-card--purple:hover { box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15); }

.metrics-row .metric-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.metrics-row .metric-card__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metrics-row .metric-card__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
}

.metric-card--blue .metric-card__icon { background: rgba(59, 130, 246, 0.15); color: var(--blue); }
.metric-card--green .metric-card__icon { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.metric-card--red .metric-card__icon { background: rgba(239, 68, 68, 0.15); color: var(--red); }
.metric-card--orange .metric-card__icon { background: rgba(245, 158, 11, 0.15); color: var(--orange); }
.metric-card--yellow .metric-card__icon { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.metric-card--purple .metric-card__icon { background: rgba(139, 92, 246, 0.15); color: var(--purple); }

.metrics-row .metric-card__value {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.metric-card--blue .metric-card__value { color: var(--blue); }
.metric-card--green .metric-card__value { color: var(--green); }
.metric-card--red .metric-card__value { color: var(--red); }
.metric-card--orange .metric-card__value { color: var(--orange); }
.metric-card--purple .metric-card__value { color: var(--purple); }

.metrics-row .metric-card__value small {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.7;
}

.metric-card__sub {
  font-size: 12px;
  color: var(--text-muted);
}


/* ==============================================================
   DASHBOARD: ACTION ROW
   ============================================================== */
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.action-row__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-row__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot--green {
  background: var(--green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 16px rgba(34, 197, 94, 0.6); }
}

.status-text--green { color: var(--green); font-weight: 600; }
.status-text--dim { color: var(--text-muted); font-style: italic; }
.status-divider { color: var(--text-muted); }

.status-dot--yellow {
  background: var(--orange);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
  animation: pulse-yellow 2s infinite;
}
@keyframes pulse-yellow {
  0%, 100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 16px rgba(245, 158, 11, 0.6); }
}


/* ==============================================================
   DASHBOARD: PAGE TITLE
   ============================================================== */
.page-title { margin-bottom: 28px; }
.page-title h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.page-title p {
  color: var(--text-secondary);
  font-size: 15px;
}


/* ==============================================================
   DASHBOARD: DOWNLOAD SECTION
   ============================================================== */
.download-card { margin-bottom: 28px; }

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 20px 24px;
}


/* ==============================================================
   DASHBOARD: CHARTS
   ============================================================== */
.chart-card { margin-bottom: 28px; }

.chart-wrapper {
  padding: 20px 24px 24px;
  height: 320px;
  position: relative;
}

.chart-wrapper--tall { height: 420px; }


/* ==============================================================
   DASHBOARD: TABLES
   ============================================================== */
.table-wrapper {
  overflow-x: auto;
  padding: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table thead th {
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.data-table--compact th,
.data-table--compact td {
  padding: 10px 14px !important;
  font-size: 13px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px !important;
  color: var(--text-muted);
  font-style: italic;
  font-size: 14px;
}

.text-muted { color: var(--text-muted); }

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
}

code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 6px;
}


/* ==============================================================
   BADGES & TAGS
   ============================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.badge--green { background: rgba(34, 197, 94, 0.12); color: var(--green); }

.rec-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.rec-tag--red { background: rgba(239, 68, 68, 0.12); color: var(--red); }
.rec-tag--orange { background: rgba(245, 158, 11, 0.12); color: var(--orange); }
.rec-tag--green { background: rgba(34, 197, 94, 0.12); color: var(--green); }

/* Text colors */
.text-red { color: var(--red) !important; }
.text-green { color: var(--green) !important; }
.text-orange { color: var(--orange) !important; }
.text-blue { color: var(--blue) !important; }


/* ==============================================================
   INFO BOX
   ============================================================== */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.12);
  font-size: 13px;
  color: var(--text-secondary);
}
.info-box i { color: var(--blue); margin-top: 2px; flex-shrink: 0; }


/* ==============================================================
   RECOMMENDATION CARD (dashboard)
   ============================================================== */
.recommendation-card {
  display: flex;
  gap: 20px;
  padding: 24px !important;
  align-items: flex-start;
}

.recommendation-card__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 20px;
}

.recommendation-card__content h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.recommendation-card__content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ==============================================================
   LEGAL CARDS (dashboard)
   ============================================================== */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.legal-card {
  padding: 24px !important;
  transition: all 0.3s ease;
}

.legal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.legal-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  margin-bottom: 14px;
}
.legal-card__badge--blue { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.legal-card__badge--orange { background: rgba(245, 158, 11, 0.12); color: var(--orange); }
.legal-card__badge--purple { background: rgba(139, 92, 246, 0.12); color: var(--purple); }

.legal-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.legal-card__meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.legal-card__meta i { margin-right: 4px; }

.legal-card__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.2s;
}
.legal-card__link:hover { gap: 10px; }


/* ==============================================================
   PROFILE (dashboard)
   ============================================================== */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.profile-grid .profile-card:first-child {
  grid-column: 1 / -1;
}

.profile-info { padding: 20px 24px; }

.profile-info__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.profile-info__row:last-child { border-bottom: none; }

.profile-info__label { font-size: 14px; color: var(--text-muted); }
.profile-info__value { font-size: 14px; font-weight: 600; color: var(--text-primary); }

.promo-form { padding: 20px 24px; }

.input-group { display: flex; gap: 12px; }

.input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.input::placeholder { color: var(--text-muted); }
.input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.profile-actions {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-back { margin-top: 32px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.back-link:hover { color: var(--blue); }


/* ==============================================================
   FLOATING SUPPORT (dashboard)
   ============================================================== */
.floating-support {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
}

.floating-support__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.floating-support__btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
}

.floating-support__popup {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: none;
  overflow: hidden;
}

.floating-support__popup.active {
  display: block;
  animation: popupIn 0.3s ease;
}

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

.floating-support__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 700;
  font-size: 14px;
}

.floating-support__close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}

.floating-support__body { padding: 18px; }

.floating-support__body p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.support-email {
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
}

/* Landing floating support (pill style) */
.support-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  padding: 14px 22px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}
.support-fab:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(59, 130, 246, 0.55);
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}
.support-fab i { font-size: 1.2rem; }


/* ==============================================================
   AUTH PAGES (login, register)
   ============================================================== */
.auth-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--topnav-height));
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
}

.auth-card__header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-card__logo {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.auth-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-card__subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-label__optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form-row { display: flex; align-items: center; gap: 12px; }
.form-row--between { justify-content: space-between; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.form-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.form-link:hover { color: var(--blue-light); }
.form-link--accent { color: var(--blue-light); }
.form-link--accent:hover { color: var(--text-primary); }

.auth-card__footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.auth-card__footer p {
  font-size: 0.88rem;
  color: var(--text-muted);
}


/* ==============================================================
   MOBILE SIDEBAR OVERLAY
   ============================================================== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
}
.sidebar-overlay.active { display: block; }


/* ==============================================================
   UTILITIES
   ============================================================== */
.mt-sm { margin-top: 10px; }


/* ==============================================================
   ANIMATIONS
   ============================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Scroll reveal (landing) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==============================================================
   RESPONSIVE
   ============================================================== */

/* Landing responsive */
@media (max-width: 1024px) {
  .analysis__grid { grid-template-columns: 1fr; }
  .analysis__metrics { flex-direction: row; flex-wrap: wrap; }
  .analysis__metrics .metric-card { flex: 1 1 280px; }
  .legal-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .data-table--compact th,
  .data-table--compact td { padding: 8px 10px !important; font-size: 12px; }
}

@media (max-width: 1200px) {
  .metrics-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }

  /* Landing sidebar hidden */
  .sidebar--landing { display: none; }

  /* Dashboard sidebar slides */
  .sidebar--dashboard {
    width: 72px;
    transform: translateX(-100%);
  }
  .sidebar--dashboard.open { transform: translateX(0); }

  .topnav { left: 0; }
  .topbar { left: 0; padding: 0 16px; }
  .topbar__burger { display: block; }
  .topbar__user { display: none; }

  .topnav__links { display: none; }
  .topnav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--topnav-height);
    left: 0; right: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px;
    gap: 4px;
  }

  .topnav__right { display: none; }
  .topnav__mobile-toggle { display: block; }

  .hero__title { font-size: 2.6rem; }
  .hero__subtitle { font-size: 1.1rem; }
  .hero__ctas { grid-template-columns: 1fr; max-width: 400px; }
  .hero__stats { flex-direction: column; gap: 16px; }
  .hero__stat-divider { width: 60px; height: 1px; }

  .about__columns { grid-template-columns: 1fr; }
  .support__grid { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .footer__inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer__links a, .footer__contact a { justify-content: center; }

  .section__title { font-size: 1.65rem; }
  .section { padding: 56px 0; }

  .support__quote-block { padding: 24px; }
  .support__quote { font-size: 0.95rem; }

  /* Dashboard responsive */
  .main--dashboard { margin-left: 0; padding: 20px 16px; padding-top: calc(var(--topnav-height) + 20px); }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .metrics-row .metric-card__value { font-size: 24px; }
  .action-row { flex-direction: column; align-items: flex-start; }
  .action-row__buttons { width: 100%; }
  .action-row__buttons .btn { flex: 1; }
  .download-grid { grid-template-columns: 1fr; }
  .chart-wrapper { height: 260px; }
  .chart-wrapper--tall { height: 320px; }
  .legal-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .input-group { flex-direction: column; }

  /* Auth responsive */
  .auth-card { padding: 28px 20px; }
}

@media (max-width: 600px) {
  .support-fab { bottom: 18px; right: 18px; padding: 12px 18px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .btn--lg { padding: 14px 24px; font-size: 0.95rem; }
  .analysis__metrics .metric-card { flex-direction: column; text-align: center; }
  .analysis__metrics .metric-card__icon { margin: 0 auto; }
  .metrics-row { grid-template-columns: 1fr; }
  .action-row__buttons { flex-direction: column; }
  .action-row__buttons .btn { width: 100%; justify-content: center; }
  .card__header { padding: 16px 18px; }
  .recommendation-card { flex-direction: column; }
}
/* =============================================
   AUTH ERROR MESSAGE
   Добавить в конец style.css
   ============================================= */

/* ==============================================================
   PRO LOCKED PAGE
   ============================================================== */
.pro-locked {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--topnav-height) - 64px);
}

.pro-locked__card {
  text-align: center;
  max-width: 480px;
  padding: 48px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.pro-locked__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--blue);
}

.pro-locked__lock {
  width: 40px;
  height: 40px;
  margin: -28px auto 20px;
  margin-left: calc(50% + 12px);
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--orange);
}

.pro-locked__title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.pro-locked__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pro-locked__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
  color: var(--blue-light);
  margin-bottom: 32px;
}

.pro-locked__badge i {
  color: var(--orange);
}

.pro-locked__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}


/* ==============================================================
   LOCKED BUTTON (dashboard action row)
   ============================================================== */
.btn--locked {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  cursor: not-allowed;
  opacity: 0.7;
  position: relative;
}

.btn--locked:hover {
  transform: none;
  box-shadow: none;
}

.btn__pro-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  margin-left: 4px;
}

/* FREE badge in topbar */
.topbar__badge--free {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}


.auth-error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 8px;
    color: #e74c3c;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-error i {
    flex-shrink: 0;
}


/* ============================================
   FREE PAGE — /free
   ============================================ */

/* Hero */
.free-hero {
  padding: 120px 0 40px;
  text-align: center;
}
.free-hero__title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}
.free-hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Upload Form */
.free-upload {
  padding: 0 0 40px;
}
.free-form {
  max-width: 700px;
  margin: 0 auto;
}
.free-form__files {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.free-form__file-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.free-form__file-box:hover {
  border-color: rgba(255,255,255,0.12);
}
.free-form__file-box--selected {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), 0 0 20px var(--green-glow);
}
.free-form__file-icon {
  font-size: 2rem;
  color: var(--green);
  flex-shrink: 0;
}
.free-form__file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.free-form__file-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.free-form__file-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.free-form__file-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}
.free-form__file-btn {
  flex-shrink: 0;
  cursor: pointer;
}
.free-form__submit {
  width: 100%;
  font-size: 1.1rem;
  padding: 16px 32px;
}

/* Error */
.free-error {
  max-width: 700px;
  margin: 16px auto 0;
  padding: 14px 20px;
  background: var(--red-glow);
  border: 1px solid var(--red);
  border-radius: 8px;
  color: var(--red-light);
  font-size: 0.95rem;
}
.free-error i {
  margin-right: 8px;
}

/* Results */
.free-results {
  padding: 0 0 60px;
}
.free-results__title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
}
.free-results__title i {
  color: var(--blue);
  margin-right: 8px;
}
.free-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* PRO Banner */
.pro-banner {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.06);
}
.pro-banner__content {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.pro-banner__icon {
  font-size: 2.4rem;
  color: var(--orange);
  flex-shrink: 0;
  padding-top: 4px;
}
.pro-banner__text {
  flex: 1;
}
.pro-banner__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.pro-banner__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}
.pro-banner__features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pro-banner__features li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 4px 0;
}
.pro-banner__features li i {
  color: var(--green);
  margin-right: 8px;
  width: 16px;
}
.pro-banner__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  align-self: center;
}
.pro-banner__price {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.pro-banner--compact .pro-banner__content {
  align-items: center;
}

/* Teaser */
.free-teaser {
  padding: 20px 0 60px;
}

/* Loading */
.free-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(14, 16, 25, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.free-loading__spinner {
  text-align: center;
  color: var(--text-primary);
}
.free-loading__spinner i {
  font-size: 3rem;
  color: var(--blue);
  margin-bottom: 20px;
}
.free-loading__spinner p {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.free-loading__hint {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .free-hero__title { font-size: 1.6rem; }
  .free-metrics { grid-template-columns: 1fr; }
  .pro-banner__content { flex-direction: column; }
  .pro-banner__action { align-self: stretch; }
  .pro-banner__action .btn { width: 100%; }
}

@media (max-width: 480px) {
  .free-form__file-box { flex-direction: column; text-align: center; }
  .free-form__file-btn { width: 100%; }
}
/* ============================================
   FREE PAGE — Errors section additions
   ============================================ */

/* 2-column centered grid for error metrics */
.free-metrics--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 540px;
}

/* Error definition banner */
.error-definition-banner {
  max-width: 800px;
  margin: 0 auto 40px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.error-definition-banner__icon {
  font-size: 1.3rem;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.error-definition-banner__body {
  flex: 1;
}

.error-definition-banner__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.error-definition-banner__text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 768px) {
  .free-metrics--two {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}


/* ============================================
   PRO Dashboard — Session 16 additions
   ============================================ */

/* --- Progress Card --- */
.progress-card {
  padding: 20px 24px;
  margin-bottom: 20px;
}

.progress-card__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-card__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Banner Card (info banners) --- */
.banner-card {
  display: flex;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 20px;
  border-left: 4px solid var(--blue);
  background: rgba(59, 130, 246, 0.06);
}

.banner-card--compact {
  margin: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border-top: 1px solid var(--border-subtle);
  border-left: none;
  padding: 14px 22px;
}

.banner-card__icon {
  font-size: 1.3rem;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.banner-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.banner-card__text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- Table Card --- */
.table-card {
  margin-bottom: 20px;
  overflow: hidden;
}

.table-card .card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card__badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card__badge--pro {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
}

.table-wrapper {
  overflow-x: auto;
  padding: 0 0 16px;
}

.table-loading {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.table-note {
  padding: 10px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- Data Table --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.data-table th {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid var(--border-subtle);
}

.data-table td {
  padding: 9px 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.data-table .cell--green {
  color: var(--green);
  font-weight: 600;
}

.data-table .cell--red {
  color: var(--red);
  font-weight: 600;
}

.data-table .row--red {
  background: rgba(239, 68, 68, 0.08);
}

.data-table .row--orange {
  background: rgba(245, 158, 11, 0.08);
}

.data-table .row--yellow {
  background: rgba(250, 204, 21, 0.06);
}

/* --- Promo Card (upgrade to PRO) --- */
.promo-card {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 32px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.08));
  border: 1px solid rgba(59,130,246,0.2);
}

.promo-card__icon {
  font-size: 2.5rem;
  color: var(--blue);
  flex-shrink: 0;
}

.promo-card__content h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.promo-card__content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* --- Download Grid --- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  padding: 0 24px 20px;
}

/* --- Responsive: PRO tables --- */
@media (max-width: 768px) {
  .banner-card {
    flex-direction: column;
    gap: 8px;
  }
  .promo-card {
    flex-direction: column;
    text-align: center;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
}


/* --- MODAL WINDOWS --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--card-bg, #1e2130);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: modalIn 0.2s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.modal-box__header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-box__header h3 i {
  color: var(--accent, #5b7fff);
}
.modal-box__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s;
  line-height: 1;
}
.modal-box__close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.modal-box__body {
  padding: 20px 24px;
}
.modal-box__hint {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  line-height: 1.5;
}
.modal-box__hint a {
  color: var(--accent, #5b7fff);
  text-decoration: none;
}
.modal-box__hint a:hover {
  text-decoration: underline;
}
.modal-box__error {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(229, 57, 53, 0.15);
  border: 1px solid rgba(229, 57, 53, 0.3);
  border-radius: 8px;
  color: #ef5350;
  font-size: 0.9rem;
}
.modal-box__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Form inputs inside modals */
.modal-box .form-group {
  margin-bottom: 16px;
}
.modal-box .form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}
.modal-box .form-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.15s;
}
.modal-box .form-input:focus {
  outline: none;
  border-color: var(--accent, #5b7fff);
  background: rgba(255,255,255,0.08);
}
.modal-box .form-input::placeholder {
  color: rgba(255,255,255,0.3);
}

/* Cabinet list in select modal */
.cabinet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cabinet-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
  text-align: left;
}
.cabinet-list__item:hover {
  background: rgba(91, 127, 255, 0.12);
  border-color: var(--accent, #5b7fff);
}
.cabinet-list__item i {
  color: var(--accent, #5b7fff);
  font-size: 1.1rem;
}
