/* ─────────────────────────────────────────────────────────────────────────────
   Lecznice Doktor — Design System
   Dark medical theme: Navy + Cyan accents
   ───────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  --bg-base:       #0a0f1e;
  --bg-elevated:   #0f172a;
  --bg-card:       #1e293b;
  --bg-card-hover: #263345;
  --bg-input:      #162032;
  --border:        #334155;
  --border-focus:  #0ea5e9;

  --cyan-400:   #38bdf8;
  --cyan-500:   #0ea5e9;
  --cyan-600:   #0284c7;
  --cyan-700:   #0369a1;

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #475569;

  --success:  #10b981;
  --warning:  #f59e0b;
  --error:    #ef4444;
  --error-bg: #1f0a0a;

  --pain-1:  #10b981;  /* Intensywność 1–3: zielony */
  --pain-4:  #f59e0b;  /* Intensywność 4–6: żółty */
  --pain-7:  #ef4444;  /* Intensywność 7–10: czerwony */

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.15);

  --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--cyan-400); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan-500); }

/* ── Header / Nav ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-brand:hover { color: var(--text-primary); }
.nav-brand strong { color: var(--cyan-400); font-weight: 700; }

.nav-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--cyan-600), var(--cyan-500));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--cyan-400);
  background: rgba(14, 165, 233, 0.08);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.nav-user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--cyan-600), var(--cyan-500));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: white;
  text-transform: uppercase;
}

.nav-user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-logout {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  transition: all var(--transition);
}
.nav-logout:hover { color: var(--error); background: rgba(239, 68, 68, 0.08); }

/* ── Main Content ──────────────────────────────────────────────────────────── */
.main-content { flex: 1; padding: 0; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  margin-top: auto;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.footer-container p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--cyan-600), var(--cyan-500));
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--cyan-700), var(--cyan-600));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
  color: white;
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  text-decoration: none;
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  color: var(--text-primary);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }

.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-hover {
  transition: all var(--transition);
  cursor: pointer;
}
.card-hover:hover {
  border-color: var(--cyan-600);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  transition: all var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}
.form-control::placeholder { color: var(--text-muted); }

select.form-control { cursor: pointer; }

.form-error {
  color: var(--error);
  font-size: 12px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Checkbox & Radio ──────────────────────────────────────────────────────── */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 14px;
  color: var(--text-secondary);
}
.checkbox-item:hover { border-color: var(--cyan-600); color: var(--text-primary); }
.checkbox-item input[type="checkbox"],
.checkbox-item input[type="radio"] { accent-color: var(--cyan-500); width: 16px; height: 16px; cursor: pointer; }
.checkbox-item input:checked + span { color: var(--text-primary); }
.checkbox-item:has(input:checked) {
  border-color: var(--cyan-600);
  background: rgba(14, 165, 233, 0.06);
}

/* ── Pain intensity slider ─────────────────────────────────────────────────── */
.pain-slider-wrapper { position: relative; }
.pain-slider {
  width: 100%;
  height: 6px;
  appearance: none;
  background: linear-gradient(to right, var(--pain-1) 0%, var(--pain-4) 50%, var(--pain-7) 100%);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.pain-slider::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--cyan-500);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: all var(--transition);
}
.pain-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.pain-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  margin-left: 12px;
}

/* ── Page layouts ──────────────────────────────────────────────────────────── */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.page-container-narrow {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 24px;
}

.page-container-medium {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px;
}

.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 4px;
}

/* ── Alert / Messages ──────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-error { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.25); color: #fca5a5; }
.alert-success { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.25); color: #6ee7b7; }
.alert-info { background: rgba(14, 165, 233, 0.08); border: 1px solid rgba(14, 165, 233, 0.25); color: #7dd3fc; }
.alert-warning { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.25); color: #fcd34d; }

/* ── Auth pages ────────────────────────────────────────────────────────────── */
.auth-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--cyan-600), var(--cyan-500));
  border-radius: 14px;
  margin-bottom: 12px;
}
.auth-logo h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.auth-logo p { color: var(--text-muted); font-size: 13px; margin-top: 2px; }

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

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── Diary Month Table ─────────────────────────────────────────────────────── */
.month-table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.month-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  font-size: 13px;
}

.month-table th {
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.month-table th.day-header {
  width: 36px;
  min-width: 36px;
}

.month-table th.row-header {
  text-align: left;
  padding-left: 16px;
  min-width: 180px;
  background: var(--bg-elevated);
  position: sticky;
  left: 0;
  z-index: 10;
}

.month-table td {
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  border-right: 1px solid rgba(51, 65, 85, 0.3);
  vertical-align: middle;
}

.month-table td.row-label {
  text-align: left;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13px;
  background: var(--bg-elevated);
  position: sticky;
  left: 0;
  z-index: 5;
  border-right: 1px solid var(--border);
}

.month-table tr:hover td { background: rgba(30, 41, 59, 0.5); }
.month-table tr:hover td.row-label, .month-table tr:hover td.day-header { background: var(--bg-elevated); }

/* Day cell coloring based on pain intensity */
.day-cell { width: 32px; height: 32px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; cursor: pointer; transition: all var(--transition); }
.day-cell:hover { transform: scale(1.15); }
.day-cell.no-pain { background: rgba(56, 189, 248, 0.12); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.25); }
.day-cell.pain-low  { background: rgba(16, 185, 129, 0.25); color: #6ee7b7; }
.day-cell.pain-mid  { background: rgba(245, 158, 11, 0.25); color: #fcd34d; }
.day-cell.pain-high { background: rgba(239, 68, 68, 0.25); color: #fca5a5; }
.day-cell.empty { background: transparent; color: var(--text-muted); font-size: 11px; }
.day-cell.today { box-shadow: 0 0 0 2px var(--cyan-500); }

/* ── Patient Dashboard / calendar heat map ─────────────────────────────────── */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 12px;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  color: var(--text-muted);
}
.cal-day:hover { border-color: var(--cyan-500); transform: scale(1.1); }
.cal-day.empty { opacity: 0; pointer-events: none; cursor: default; }
.cal-day.no-entry { background: var(--bg-input); color: var(--text-muted); }
.cal-day.no-pain  { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; border-color: rgba(56, 189, 248, 0.35); }
.cal-day.low-pain  { background: rgba(16, 185, 129, 0.4); color: #6ee7b7; }
.cal-day.mid-pain  { background: rgba(245, 158, 11, 0.4); color: #fcd34d; }
.cal-day.high-pain { background: rgba(239, 68, 68, 0.4); color: #fca5a5; }
/* Doctor-only NRS palette */
.cal-day.doc-orange-light { background: rgba(251, 146, 60, 0.35); color: #fdba74; }
.cal-day.doc-orange-dark  { background: rgba(234, 88, 12, 0.4);  color: #fb923c; }
.cal-day.doc-red          { background: rgba(239, 68, 68, 0.45); color: #fca5a5; }
.cal-day.doc-bordeaux     { background: rgba(136, 19, 55, 0.45); color: #fda4af; }
.cal-day.today { box-shadow: 0 0 0 2px var(--cyan-500); }

/* ── Stats Cards ───────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Doctor: patient list ──────────────────────────────────────────────────── */
.patient-list { display: flex; flex-direction: column; gap: 12px; }

.patient-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.patient-card:hover {
  border-color: var(--cyan-600);
  box-shadow: var(--shadow-glow);
  transform: translateX(4px);
  color: inherit;
}

.patient-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-700), var(--cyan-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.patient-info { flex: 1; }
.patient-name { font-weight: 600; font-size: 16px; color: var(--text-primary); }
.patient-meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.patient-badge {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.badge-green { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-yellow { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge-red { background: rgba(239, 68, 68, 0.1); color: var(--error); }
.badge-gray { background: var(--bg-input); color: var(--text-muted); }

/* ── Search bar ────────────────────────────────────────────────────────────── */
.search-bar {
  position: relative;
  margin-bottom: 24px;
}
.search-bar svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-bar input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 12px 16px 12px 44px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all var(--transition);
}
.search-bar input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1); }
.search-bar input::placeholder { color: var(--text-muted); }

/* ── Landing page ──────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 24px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -300px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--cyan-400);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title span { 
  background: linear-gradient(135deg, var(--cyan-400), var(--cyan-500)); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  background-clip: text; 
}

.hero-description {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.hero-feature-icon { color: var(--success); flex-shrink: 0; }

.hero-visual {
  position: relative;
}

.hero-card-mock {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.features-section {
  padding: 80px 24px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.feature-card:hover { border-color: var(--cyan-600); box-shadow: var(--shadow-glow); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--cyan-400);
}

.feature-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── GDPR checkbox ─────────────────────────────────────────────────────────── */
.gdpr-box {
  background: rgba(14, 165, 233, 0.04);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}
.gdpr-box input[type="checkbox"] { accent-color: var(--cyan-500); width: 16px; height: 16px; margin-top: 1px; flex-shrink: 0; }

/* ── Breadcrumb ────────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--cyan-400); }
.breadcrumb svg { color: var(--text-muted); opacity: 0.5; }

/* ── Section divider ───────────────────────────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan-400);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Month navigation ──────────────────────────────────────────────────────── */
.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.month-nav-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .hero-title { font-size: 38px; }
  .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links .nav-link span { display: none; }
  .auth-card { padding: 28px 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-title { font-size: 22px; }
}

/* ── Animations ────────────────────────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }

.fade-in { animation: fadeIn 0.4s ease forwards; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Tag ────────────────────────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}
.tag-cyan { background: rgba(14, 165, 233, 0.1); color: var(--cyan-400); border-color: rgba(14, 165, 233, 0.2); }
.tag-green { background: rgba(16, 185, 129, 0.1); color: var(--success); border-color: rgba(16, 185, 129, 0.2); }
.tag-red { background: rgba(239, 68, 68, 0.1); color: var(--error); border-color: rgba(239, 68, 68, 0.2); }