/* ============================================================
   FONDOVIK.INFO — Design System
   White, clean, business-oriented with a touch of organic style
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- Reset & Tokens --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --white: #FFFFFF;
  --bg: #F8F9FB;
  --bg-card: #FFFFFF;
  --border: #E8ECF1;
  --border-light: #F1F3F6;

  --text: #1A1A2E;
  --text-secondary: #5A6478;
  --text-muted: #9CA3B4;

  --primary: #2563EB;
  --primary-hover: #1D4FD7;
  --primary-light: rgba(37, 99, 235, 0.08);

  --green: #059669;
  --green-bg: rgba(5, 150, 105, 0.08);
  --red: #DC2626;
  --red-bg: rgba(220, 38, 38, 0.08);
  --amber: #D97706;
  --amber-bg: rgba(217, 119, 6, 0.08);

  /* Color Aliases for legacy/landing support */
  --color-primary: var(--primary);
  --color-primary-dark: var(--primary-hover);
  --color-border: var(--border);
  --color-text-primary: var(--text);
  --color-text-secondary: var(--text-secondary);
  --color-text-tertiary: var(--text-muted);
  --color-bg-secondary: var(--bg);
  --color-white: var(--white);
  --color-growth: var(--green);
  --color-warning: var(--amber);
  --color-warning-light: var(--amber-bg);
  --color-hover: #F1F3F6;

  /* Shadows — organic, soft */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);

  /* Radius — slightly rounded for organic feel */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Spacing */
  --space-1: 0.25rem;
  /* 4px */
  --space-2: 0.5rem;
  /* 8px */
  --space-3: 0.75rem;
  /* 12px */
  --space-4: 1rem;
  /* 16px */
  --space-5: 1.25rem;
  /* 20px */
  --space-6: 1.5rem;
  /* 24px */
  --space-8: 2rem;
  /* 32px */
  --space-10: 2.5rem;
  /* 40px */
  --space-12: 3rem;
  /* 48px */
  --space-16: 4rem;
  /* 64px */
  --space-20: 5rem;
  /* 80px */
  --space-24: 6rem;
  /* 96px */

  /* Typography */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 1.875rem;
  /* 30px */
  --text-4xl: 2.25rem;
  /* 36px */
  --text-5xl: 3rem;
  /* 48px */

  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  --leading-tight: 1.2;
  --leading-relaxed: 1.6;

  /* Layout */
  --max-width-content: 1200px;
  --max-width-text: 800px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Sidebar */
  --sidebar-w: 260px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .15s var(--ease);
}

a:hover {
  color: var(--primary-hover);
}

/* Prevent generic a:hover from overriding button text colors */
a.btn:hover,
a.btn-primary:hover,
a.btn-secondary:hover,
a.btn-outline:hover,
a.btn-danger:hover,
a.btn-success:hover,
a.btn-warning:hover,
a.btn-info:hover,
a.btn-outline-primary:hover {
  text-decoration: none;
}

a.btn-primary,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:active {
  color: #fff !important;
}

a.btn-secondary:hover {
  color: var(--text);
}

a.btn-danger:hover {
  color: #fff;
}

a.btn-success:hover {
  color: #fff;
}

a.btn-warning:hover {
  color: #fff;
}

a.btn-info:hover {
  color: #fff;
}

a.btn-outline:hover,
a.btn-outline-primary:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

/* Skip link */
.skip-to-main {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
}

.skip-to-main:focus {
  left: 16px;
  top: 16px;
  border-radius: var(--radius-sm);
}


/* ============================================================
   BUTTONS — One unified style, beautiful and consistent
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .2s var(--ease);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

/* Primary — blue with soft gradient */
.btn-primary,
.btn.btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Secondary — ghost white */
.btn-secondary,
.btn.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: #D1D5DB;
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Danger */
.btn-danger {
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #B91C1C 0%, #DC2626 100%);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  color: #fff;
}

/* Success (green) */
.btn-success {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.btn-success:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  color: #fff;
}

/* Warning (amber/orange) */
.btn-warning {
  background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #B45309 0%, #D97706 100%);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

/* Info (light blue) */
.btn-info {
  background: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.btn-info:hover {
  background: linear-gradient(135deg, #0369A1 0%, #0284C7 100%);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

/* Outline-primary */
.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Sizes */
.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

/* Icon-only button */
.btn-icon {
  padding: 8px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .15s var(--ease);
}

.btn-icon:hover {
  background: var(--bg);
  color: var(--text);
}


/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control,
.input-text,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  outline: none;
}

.form-control:focus,
.input-text:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

input.input-error {
  border-color: var(--red);
}

.error-message {
  color: var(--red);
  font-size: 13px;
  margin-top: 4px;
}

.helptext {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.errorlist {
  list-style: none;
  color: var(--red);
  margin-top: 4px;
  font-size: 13px;
}

/* Checkbox */
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  margin-right: 6px;
  vertical-align: middle;
}


/* ============================================================
   ALERTS / MESSAGES
   ============================================================ */
.messages {
  padding: 0 24px;
  max-width: 1200px;
  margin: 16px auto 0;
}

.alert {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
}

.alert-success {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(5, 150, 105, 0.15);
}

.alert-error,
.alert-danger {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(220, 38, 38, 0.15);
}

.alert-warning {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid rgba(217, 119, 6, 0.15);
}

.alert-info {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.15);
}


/* ============================================================
   SIDEBAR (Cabinet Layout)
   ============================================================ */
.cabinet-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform .3s var(--ease);
}

.sidebar__header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar__logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
  text-transform: uppercase;
}

.sidebar__logo:hover {
  color: var(--primary);
}

.sidebar__nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
}

.sidebar__nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all .15s var(--ease);
  position: relative;
}

.sidebar__nav-item:hover {
  background: var(--bg);
  color: var(--text);
}

.sidebar__nav-item--active {
  background: var(--primary-light);
  color: var(--primary);
}

.sidebar__nav-item--active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
}

.sidebar__nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar__nav-item--active .sidebar__nav-icon {
  opacity: 1;
}

.sidebar__footer {
  padding: 12px 10px;
  border-top: 1px solid var(--border-light);
}


/* ============================================================
   CABINET MAIN CONTENT
   ============================================================ */
.cabinet-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
}

.cabinet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.cabinet-header__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.cabinet-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.cabinet-content {
  padding: 28px 32px;
}


/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow .2s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-sm);
}

.card__header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card__title {
  font-size: 15px;
  font-weight: 600;
}

.card__body {
  padding: 22px;
}


/* ============================================================
   KPI CARDS
   ============================================================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .2s var(--ease);
}

.kpi-card:hover {
  box-shadow: var(--shadow-sm);
}

.kpi-card__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.kpi-card__value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

table.data-table tbody tr:hover {
  background: var(--primary-light);
}

table.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Alignment helpers */
.text-right,
.text-end {
  text-align: right;
}

.text-center {
  text-align: center;
}

/* Color helpers for table values */
.val-positive {
  color: var(--green);
  font-weight: 600;
}

.val-negative {
  color: var(--red);
  font-weight: 600;
}

.val-bold {
  font-weight: 600;
}

/* Legacy table support */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 12px 16px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}

tr:hover {
  background: rgba(37, 99, 235, 0.03);
}


/* ============================================================
   CHART CONTAINERS
   ============================================================ */
.chart-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
}

.chart-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.chart-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.chart-card canvas {
  width: 100% !important;
  max-height: 320px;
}


/* ============================================================
   FILTERS
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 24px;
}

.filter-bar__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-bar__group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.filter-bar__actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}


/* ============================================================
   SEARCH INPUT
   ============================================================ */
.search-box {
  position: relative;
  max-width: 600px;
  margin-bottom: 24px;
}

.search-box__input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}

.search-box__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-box__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  display: none;
}

.autocomplete-results.show {
  display: block;
}

.autocomplete-item {
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background .12s var(--ease);
}

.autocomplete-item:hover {
  background: var(--primary-light);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-ticker {
  font-weight: 600;
  color: var(--text);
  margin-right: 8px;
}

.autocomplete-name {
  color: var(--text-secondary);
}

.autocomplete-sector {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}


/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state__icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.empty-state__message {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.empty-state__hint {
  font-size: 14px;
  color: var(--text-muted);
}


/* ============================================================
   LOADING OVERLAY
   ============================================================ */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

.loading-overlay.show {
  display: flex;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* ============================================================
   AUTH PAGES (Login/Register)
   ============================================================ */
.auth-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
}

.auth-card__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 28px;
  text-align: center;
}

.auth-form__group {
  margin-bottom: 18px;
}

.auth-form__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.auth-form__submit {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  font-size: 15px;
}

.auth-form__group--checkbox {
  display: flex;
  align-items: center;
}

.auth-form__checkbox-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.auth-card__links {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-card__links p {
  margin-bottom: 6px;
}

.auth-card__link {
  color: var(--primary);
  font-weight: 500;
}

.password-input-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.icon-eye-off {
  display: none;
}


/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.landing-header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.landing-header__logo a {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
}

.landing-header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-header__nav a {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all .15s var(--ease);
}

.landing-header__nav a:hover {
  color: var(--text);
  background: var(--bg);
}

.landing-layout {}

.landing-section {
  padding: 80px 0;
}

.landing-section__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.landing-section__title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.landing-section__description {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, #F0F5FF 0%, #FAFBFF 40%, var(--white) 100%);
  padding: 100px 0 80px;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Feature Cards */
.landing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Demo */
.demo {
  background: var(--bg);
}

.demo-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.demo-chart-container {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.demo-chart-container h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.demo-note {
  text-align: center;
  margin-top: 32px;
  padding: 16px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--primary);
}

/* Pricing */
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.plan-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.plan-price {
  margin-bottom: 8px;
}

.plan-price .price {
  font-size: 36px;
  font-weight: 700;
}

.plan-price .period {
  color: var(--text-muted);
  font-size: 14px;
}

.plan-savings {
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  background: var(--green-bg);
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.plan-features li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-included .icon {
  color: var(--green);
}

.feature-excluded .icon {
  color: var(--text-muted);
}

/* Registration CTA */
.registration {
  background: linear-gradient(160deg, #EFF6FF 0%, #F0F5FF 100%);
  text-align: center;
}

.registration-content h2 {
  font-size: 30px;
  margin-bottom: 12px;
}

.registration-content p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 28px;
}

/* Footer */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-section h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-section p,
.footer-section li {
  font-size: 14px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 6px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}

.disclaimer {
  opacity: 0.5;
}


/* ============================================================
   PROFILE PAGE LAYOUT
   ============================================================ */
.profile-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-8);
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.profile-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.profile-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   CONTAINER (for non-sidebar pages)
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  width: 42px;
  height: 42px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .2s var(--ease);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 90;
  backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
  display: block;
}

/* Navbar (admin bar, legacy) */
.navbar {
  background: var(--text);
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
}

.navbar a {
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: all .15s var(--ease);
}

.navbar a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}


/* ============================================================
   UPGRADE PROMPT
   ============================================================ */
.upgrade-prompt {
  background: var(--amber-bg);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.upgrade-prompt__title {
  font-weight: 600;
  color: #92400E;
  margin-bottom: 4px;
  font-size: 14px;
}

.upgrade-prompt__description {
  font-size: 14px;
  color: #92400E;
}


/* ============================================================
   GRIDS — utility
   ============================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Utility */
.mt-2 {
  margin-top: 12px;
}

.mt-3 {
  margin-top: 20px;
}

.mt-4 {
  margin-top: 28px;
}

.mb-2 {
  margin-bottom: 12px;
}

.mb-3 {
  margin-bottom: 20px;
}

.mb-4 {
  margin-bottom: 28px;
}


/* ============================================================
   RESPONSIVE — Mobile first breakpoints
   ============================================================ */
@media (max-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-charts {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  /* Sidebar collapses */
  .mobile-menu-toggle {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }

  .sidebar.active {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .cabinet-main {
    margin-left: 0;
  }

  .cabinet-header {
    padding: 16px 20px 16px 64px;
  }

  .cabinet-content {
    padding: 20px 16px;
  }

  /* KPI */
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .kpi-card__value {
    font-size: 22px;
  }

  /* Grids */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .landing-grid {
    grid-template-columns: 1fr;
  }

  /* Landing */
  .hero {
    padding: 60px 0 50px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .landing-header__nav {
    display: none;
    /* TODO: mobile landing menu */
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
  }

  /* Auth */
  .auth-card {
    padding: 28px 20px;
    margin: 0 12px;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar__actions {
    justify-content: stretch;
  }

  .filter-bar__actions .btn {
    flex: 1;
  }
}


/* ============================================================
   DATA TABLE WRAPPER
   ============================================================ */
.data-table-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  position: relative;
}

.data-table-wrapper__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.data-table-wrapper__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  position: relative;
}

.data-table thead {
  background: var(--bg);
}

.data-table th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.data-table tbody tr:hover {
  background: var(--primary-light);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}


/* Favorites button styling */
.btn-outline-primary.favorited {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-outline-primary.favorited:hover {
    background: #1D4FD7;
    border-color: #1D4FD7;
    color: #fff;
}
