/* ════════════════════════════════════════════════════════════
   JEDILNIK — DESIGN SYSTEM v2
   ════════════════════════════════════════════════════════════ */

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

/* ── 1. Design Tokens ─────────────────────────────────────── */
/* Palette: vivid emerald / gold / indigo / red — a saturated, energetic
   palette matching this app's own gamification layer (XP, streaks,
   achievements) rather than a quiet muted one. Token names kept as-is
   so every existing var(--green-600) etc. call site repaints without
   being touched. */
:root {
  /* Emerald (brand / nutrition) */
  --green-50:  #e6faf0;
  --green-100: #c3f3dc;
  --green-200: #8fe6bc;
  --green-400: #34d399;
  --green-600: #10b981;
  --green-700: #059669;
  --green-800: #065f46;

  /* Gold (Pro / premium / warning) */
  --amber-50:  #fff8e1;
  --amber-100: #ffecb3;
  --amber-200: #ffdd7a;
  --amber-400: #ffc233;
  --amber-600: #f5a200;
  --amber-700: #cc8400;
  --amber-800: #996200;

  /* Electric indigo (smart coach / info / secondary brand) */
  --blue-50:   #eef2ff;
  --blue-100:  #d9e2ff;
  --blue-600:  #4f6bff;
  --blue-800:  #2f3fbf;

  /* Clean red (danger) */
  --red-50:    #ffebee;
  --red-100:   #ffcdd6;
  --red-600:   #ef4444;
  --red-800:   #b91c1c;

  /* Cool-tinted neutrals (crisp, not warm-beige and not flat gray) */
  --gray-50:   #f7f9fc;
  --gray-100:  #eef1f7;
  --gray-150:  #e4e9f2;
  --gray-200:  #d8deea;
  --gray-300:  #bac3d6;
  --gray-400:  #8793ac;
  --gray-500:  #626e88;
  --gray-600:  #47526b;
  --gray-700:  #323b4f;
  --gray-800:  #202636;
  --gray-900:  #12151f;

  /* Display face — used sparingly, for hero text and key figures only */
  --f-display: 'Outfit', 'Inter', system-ui, sans-serif;

  /* Semantic aliases */
  --c-primary:      var(--green-600);
  --c-primary-dark: var(--green-700);
  --c-primary-bg:   var(--green-50);
  --c-primary-muted:var(--green-100);

  --c-text:    var(--gray-900);
  --c-text-2:  var(--gray-600);
  --c-text-3:  var(--gray-400);

  --c-border:  var(--gray-200);
  --c-surface: #ffffff;
  --c-bg:      var(--gray-50);

  /* Bootstrap theming hooks — repaint every bg-*/btn-*/text-* utility
     class to the same vivid emerald/gold/indigo/red palette, so the
     custom tokens above and Bootstrap's own defaults never disagree. */
  --bs-primary:        var(--blue-600);
  --bs-primary-rgb:    79, 107, 255;
  --bs-success:        var(--green-600);
  --bs-success-rgb:    16, 185, 129;
  --bs-warning:        var(--amber-600);
  --bs-warning-rgb:    245, 162, 0;
  --bs-danger:         var(--red-600);
  --bs-danger-rgb:     239, 68, 68;
  --bs-info:           #06b6d4;
  --bs-info-rgb:       6, 182, 212;
  --bs-secondary:      var(--gray-500);
  --bs-secondary-rgb:  98, 110, 136;
  --bs-dark:           var(--gray-800);
  --bs-dark-rgb:       32, 38, 54;
  --bs-light:          var(--gray-100);
  --bs-light-rgb:      238, 241, 247;
  --bs-body-color:     var(--c-text);
  --bs-body-bg:        var(--c-bg);
  --bs-border-color:   var(--c-border);

  --bs-success-text-emphasis:   var(--green-800);
  --bs-success-bg-subtle:       var(--green-50);
  --bs-success-border-subtle:   var(--green-200);
  --bs-warning-text-emphasis:   var(--amber-800);
  --bs-warning-bg-subtle:       var(--amber-50);
  --bs-warning-border-subtle:   var(--amber-200);
  --bs-danger-text-emphasis:    var(--red-800);
  --bs-danger-bg-subtle:        var(--red-50);
  --bs-danger-border-subtle:    var(--red-100);
  --bs-info-text-emphasis:      #0e7490;
  --bs-info-bg-subtle:          #ecfeff;
  --bs-info-border-subtle:      #a5f3fc;
  --bs-primary-text-emphasis:   var(--blue-800);
  --bs-primary-bg-subtle:       var(--blue-50);
  --bs-primary-border-subtle:   var(--blue-100);
  --bs-secondary-text-emphasis: var(--gray-700);
  --bs-secondary-bg-subtle:     var(--gray-100);
  --bs-secondary-border-subtle: var(--gray-200);

  /* Shape */
  --r-xs: 6px;
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.03);
  --shadow-md: 0 8px 24px rgba(0,0,0,.10), 0 3px 8px rgba(0,0,0,.04);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.13), 0 5px 15px rgba(0,0,0,.06);

  /* Motion */
  --t-fast: 120ms ease;
  --t:      180ms ease;
  --t-slow: 280ms ease;
}

/* ── 2. Base Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 15px;
  position: relative;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ── 3. Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-text);
  margin-bottom: 0.5rem;
}

h1 { font-size: 2rem;     letter-spacing: -0.04em; }
h2 { font-size: 1.5rem;   letter-spacing: -0.03em; }
h3 { font-size: 1.25rem;  letter-spacing: -0.02em; }
h4 { font-size: 1.0625rem;}
h5 { font-size: 0.9375rem;}
h6 { font-size: 0.875rem; font-weight: 600; }

p { margin-bottom: 0.75rem; }

.lead {
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--c-text-2);
  line-height: 1.65;
}

.text-muted { color: var(--c-text-2) !important; }

/* ── 4. Navigation ──────────────────────────────────────────── */
.app-nav {
  background: var(--c-surface) !important;
  border-bottom: 1px solid var(--c-border);
  padding: 0 !important;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow var(--t);
}
.app-nav.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.app-nav .navbar-brand {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--c-primary) !important;
  padding: 0.875rem 0;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
}
.app-nav .navbar-brand:hover { color: var(--c-primary-dark) !important; }

.app-nav .nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text-2) !important;
  padding: 0.875rem 0.625rem !important;
  border-bottom: 2px solid transparent;
  transition: color var(--t), border-color var(--t);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.app-nav .nav-link:hover { color: var(--c-text) !important; }
.app-nav .nav-link.active {
  color: var(--c-primary) !important;
  border-bottom-color: var(--c-primary);
}

/* Dropdown */
.app-nav .dropdown-toggle::after { display: none; }
.app-nav .dropdown-toggle { padding-right: 1.125rem !important; }
.app-nav .dropdown-toggle::before {
  content: '';
  position: absolute;
  right: 0.375rem;
  top: 50%;
  transform: translateY(-50%);
  border-top: 4px solid currentColor;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0.55;
}
.app-nav .dropdown-toggle { position: relative; }

.app-nav .dropdown-menu {
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  padding: 0.375rem;
  background: var(--c-surface);
  margin-top: 0.25rem !important;
  min-width: 13rem;
}
.app-nav .dropdown-item {
  border-radius: var(--r-xs);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  color: var(--c-text-2);
  transition: background var(--t-fast), color var(--t-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.app-nav .dropdown-item:hover {
  background: var(--gray-100);
  color: var(--c-text);
}

.app-nav .navbar-toggler {
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 0.375rem 0.5rem;
  color: var(--c-text-2);
}
.app-nav .navbar-toggler:focus { box-shadow: none; outline: none; }
.app-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(75,85,99,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.25rem;
  height: 1.25rem;
}

/* Notification bell (in nav) */
.app-nav .notification-bell .nav-link { border-bottom: none !important; }

/* ── 5. Layout ──────────────────────────────────────────────── */
.app-content {
  padding-top: 1.75rem;
  padding-bottom: 3.5rem;
  min-height: calc(100vh - 57px - 53px);
}

.app-footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 0.875rem 0;
  font-size: 0.8125rem;
  color: var(--c-text-3);
}

/* ── 6. Cards ───────────────────────────────────────────────── */
.card {
  border-radius: var(--r);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-xs);
  background: var(--c-surface);
}
.card-header {
  border-bottom: 1px solid var(--c-border);
  background: transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.125rem;
  border-top-left-radius: var(--r) !important;
  border-top-right-radius: var(--r) !important;
  color: var(--c-text);
}
.card-body  { padding: 1.125rem; }
.card-footer {
  border-top: 1px solid var(--c-border);
  background: transparent;
  padding: 0.875rem 1.125rem;
  border-bottom-left-radius: var(--r) !important;
  border-bottom-right-radius: var(--r) !important;
}

/* Interactive cards */
.card-interactive {
  cursor: pointer;
  transition: box-shadow var(--t), transform var(--t);
}
.card-interactive:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

/* ── 7. Stat Cards ──────────────────────────────────────────── */
/* Raised 3D tile, same family as the icon badges and buttons: a solid neutral
   "edge" underneath gives the whole card thickness, not just the icon inside it. */
.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 1.25rem 1.375rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 4px 0 var(--gray-200), 0 1px 2px rgba(16,24,40,.04), 0 12px 24px -10px rgba(16,24,40,.18);
}
/* Same raised edge as a reusable, visual-only utility — add alongside `card` on any
   other page's stat/number tile without needing its layout to match `.stat-card`.
   Deliberately NOT applied to `.card` globally (forms/tables/admin pages don't want
   this) — opt in per tile instead. */
.card-3d {
  box-shadow: 0 4px 0 var(--gray-200), 0 1px 2px rgba(16,24,40,.04), 0 12px 24px -10px rgba(16,24,40,.18);
}
.card-3d.card-interactive:hover {
  box-shadow: 0 5px 0 var(--gray-200), 0 1px 2px rgba(16,24,40,.04), 0 16px 28px -8px rgba(16,24,40,.22);
  transform: translateY(-2px);
}
/* Icon tiles — raised 3D squares, not flat tinted circles: a solid-color "side"
   (the --_lip box-shadow layer) gives the tile real thickness, like a tiny cube
   sitting on the page, matching the chunky 3D buttons elsewhere on the site.
   Each color variant only needs to set --_bg/--_lip; the shape/shadow recipe
   lives once on the base class so it stays consistent everywhere it's used. */
.stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
  line-height: 1;
  background: linear-gradient(160deg, color-mix(in srgb, var(--_bg, var(--gray-100)) 100%, white 25%), var(--_bg, var(--gray-100)));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 3px 0 var(--_lip, var(--gray-300)),
    0 7px 10px -3px rgba(16,24,40,.28);
}
.stat-icon--blue  { --_bg: var(--blue-100);  --_lip: #a8b8ff; color: var(--blue-600); }
.stat-icon--green { --_bg: var(--green-100); --_lip: #6fe3b0; color: var(--green-700); }
.stat-icon--amber { --_bg: var(--amber-100); --_lip: #ffd166; color: var(--amber-700); }
.stat-icon--gray  { --_bg: var(--gray-100);  --_lip: var(--gray-300); color: var(--gray-600); }
.stat-icon--red   { --_bg: var(--red-100);   --_lip: #ff9a9a; color: var(--red-600); }
.stat-content { flex: 1; min-width: 0; }
.stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-text-2);
  margin-bottom: 0.25rem;
}
.stat-value {
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.stat-unit {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-text-3);
}
.stat-delta {
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
}
.stat-delta.positive { color: var(--green-600); }
.stat-delta.negative { color: var(--red-600); }

/* ── 8. Buttons ─────────────────────────────────────────────── */
.btn {
  font-weight: 600;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  transition: all var(--t);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.btn-lg {
  padding: 0.6875rem 1.375rem;
  font-size: 0.9375rem;
  border-radius: var(--r-sm);
}
.btn-sm {
  padding: 0.3125rem 0.6875rem;
  font-size: 0.8125rem;
  border-radius: var(--r-xs);
}

/* Primary — chunky "pressable" 3D button: a solid lower lip simulates thickness,
   which compresses on :active like a real button being pushed in. */
.btn-success, .btn-primary {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 0 var(--c-primary-dark), 0 8px 16px -4px rgba(16,185,129,.4);
  transform: translateY(0);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-success:hover, .btn-primary:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 5px 0 var(--c-primary-dark), 0 12px 20px -4px rgba(16,185,129,.45);
  transform: translateY(-1px);
}
.btn-success:active, .btn-primary:active {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 0 var(--c-primary-dark), 0 2px 6px rgba(16,185,129,.3);
}
.btn-success:focus, .btn-primary:focus { box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 0 var(--c-primary-dark), 0 0 0 3px rgba(16,185,129,.25); }

/* Outline success */
.btn-outline-success {
  color: var(--c-primary);
  border-color: var(--c-primary);
  background: transparent;
}
.btn-outline-success:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  transform: translateY(-1px);
}

/* Outline secondary */
.btn-outline-secondary {
  color: var(--c-text-2);
  border-color: var(--c-border);
  background: var(--c-surface);
}
.btn-outline-secondary:hover {
  color: var(--c-text);
  background: var(--gray-100);
  border-color: var(--gray-300);
}

/* Warning / Pro — same chunky 3D treatment as the primary CTA */
.btn-warning {
  background: var(--amber-600);
  border-color: var(--amber-600);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 0 var(--amber-800), 0 8px 16px -4px rgba(245,162,0,.4);
  transform: translateY(0);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-warning:hover {
  background: var(--amber-600);
  border-color: var(--amber-600);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 5px 0 var(--amber-800), 0 12px 20px -4px rgba(245,162,0,.45);
  transform: translateY(-1px);
}
.btn-warning:active {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 0 var(--amber-800), 0 2px 6px rgba(245,162,0,.3);
}
.btn-outline-warning {
  color: var(--amber-700);
  border-color: var(--amber-600);
}
.btn-outline-warning:hover {
  background: var(--amber-600);
  border-color: var(--amber-600);
  color: #fff;
}

/* Outline danger */
.btn-outline-danger:hover { transform: translateY(-1px); }

/* ── 9. Forms ───────────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  font-size: 0.9375rem;
  padding: 0.5625rem 0.875rem;
  color: var(--c-text);
  background: var(--c-surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  font-family: inherit;
}
.form-control:focus, .form-select:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(22,163,74,.15);
  outline: none;
}
.form-control::placeholder { color: var(--c-text-3); }

textarea.form-control {
  resize: vertical;
  min-height: 5rem;
}

.form-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--c-text-2);
  margin-bottom: 0.375rem;
}
.form-text {
  font-size: 0.8125rem;
  color: var(--c-text-3);
  margin-top: 0.3rem;
}
.form-check-input:checked {
  background-color: var(--c-primary);
  border-color: var(--c-primary);
}
.form-check-input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(22,163,74,.15);
}
.form-check-label { font-size: 0.9rem; }

/* Validation */
.text-danger { color: var(--red-600) !important; }
.is-invalid { border-color: var(--red-600) !important; }
.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.15) !important; }

/* ── 10. Badges ─────────────────────────────────────────────── */
.badge {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.015em;
  border-radius: 5px;
  padding: 0.28em 0.6em;
}

/* Richer semantic badges */
.badge.bg-success     { background: var(--c-primary) !important; }
.badge.bg-secondary   { background: var(--gray-200) !important; color: var(--gray-700) !important; }
.badge.bg-warning     { background: var(--amber-100) !important; color: var(--amber-800) !important; }
.badge.bg-warning.text-dark { color: var(--amber-800) !important; }
.badge.bg-info        { background: var(--blue-100) !important; color: var(--blue-800) !important; }
.badge.bg-danger      { background: var(--red-100) !important; color: var(--red-800) !important; }
.badge.bg-primary     { background: var(--blue-600) !important; }

/* Plan-specific */
.badge-free    { background: var(--gray-100);   color: var(--gray-600); font-weight: 600; }
.badge-premium { background: var(--green-100);  color: var(--green-800); font-weight: 600; }
.badge-pro     { background: var(--amber-100);  color: var(--amber-800); font-weight: 600; }

/* ── 11. Alerts ─────────────────────────────────────────────── */
.alert {
  border-radius: var(--r-sm);
  border: 0;
  border-left: 3px solid;
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
}
.alert-success { background: var(--green-50);   color: var(--green-800); border-color: var(--green-600); }
.alert-info    { background: var(--blue-50);    color: var(--blue-800);  border-color: var(--blue-600); }
.alert-warning { background: var(--amber-50);   color: var(--amber-800); border-color: var(--amber-600); }
.alert-danger  { background: var(--red-50);     color: var(--red-800);   border-color: var(--red-600); }
.alert-link    { color: inherit; font-weight: 700; }

/* ── 12. List Groups ────────────────────────────────────────── */
.list-group-item {
  border-color: var(--c-border);
  padding: 0.875rem 1.125rem;
  font-size: 0.9375rem;
  color: var(--c-text);
  transition: background var(--t-fast);
}
.list-group-item-action:hover { background: var(--gray-50); }
.list-group-item:first-child  {
  border-top-left-radius: var(--r) !important;
  border-top-right-radius: var(--r) !important;
}
.list-group-item:last-child {
  border-bottom-left-radius: var(--r) !important;
  border-bottom-right-radius: var(--r) !important;
}

/* ── 13. Tables ─────────────────────────────────────────────── */
.table {
  font-size: 0.9rem;
  color: var(--c-text);
}
.table th {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-text-3);
  border-bottom: 1px solid var(--c-border);
  padding: 0.625rem 0.875rem;
}
.table td { padding: 0.75rem 0.875rem; border-color: var(--c-border); }
.table-striped > tbody > tr:nth-of-type(odd) > * { background-color: var(--gray-50); }

/* ── 14. Modals ─────────────────────────────────────────────── */
.modal-content {
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.modal-header {
  border-bottom: 1px solid var(--c-border);
  padding: 1.125rem 1.375rem;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.modal-footer {
  border-top: 1px solid var(--c-border);
  padding: 1rem 1.375rem;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.modal-body { padding: 1.375rem; }
.modal-title { font-weight: 700; font-size: 1.0625rem; }
.btn-close:focus { box-shadow: none; }

/* ── 15. Page Header ────────────────────────────────────────── */
.page-hdr { margin-bottom: 1.5rem; }
.page-hdr h2 { margin-bottom: 0.25rem; }
.page-hdr p  { color: var(--c-text-2); margin: 0; font-size: 0.9375rem; }

/* Section heading */
.section-hdr {
  font-family: var(--f-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-primary-dark);
  margin-bottom: 0.75rem;
}

/* ── 16. Landing Page ───────────────────────────────────────── */
.hero {
  background: linear-gradient(165deg, var(--green-50) 0%, var(--c-surface) 55%);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% -10%, rgba(22,163,74,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 1rem;
}
.hero-highlight {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.hero-highlight::before {
  content: '';
  position: absolute;
  left: -0.15em;
  right: -0.15em;
  bottom: 0.08em;
  height: 0.38em;
  background: var(--green-200);
  border-radius: 0.2em;
  z-index: -1;
  transform: rotate(-1deg);
}

@keyframes hero-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}
.hero-cta-pulse { animation: hero-pulse 2.2s ease-in-out infinite; }
.hero-sub {
  font-size: 1.125rem;
  color: var(--c-text-2);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.feature-card {
  border-radius: var(--r);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  padding: 1.75rem;
  height: 100%;
  transition: box-shadow var(--t), transform var(--t);
  transform: perspective(800px) rotateX(0) rotateY(0) translateY(0);
  transform-style: preserve-3d;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: perspective(800px) rotateX(4deg) rotateY(-4deg) translateY(-4px);
}
@media (prefers-reduced-motion: reduce) {
  .feature-card:hover { transform: translateY(-2px); }
}
.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin-bottom: 1rem;
  --_bg: var(--green-100);
  --_lip: #6fe3b0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--_bg) 100%, white 25%), var(--_bg));
  color: var(--c-primary-dark);
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 3px 0 var(--_lip),
    0 7px 10px -3px rgba(16,24,40,.28);
}
.feature-icon--blue   { --_bg: var(--blue-100);  --_lip: #a8b8ff; color: var(--blue-800); }
.feature-icon--amber  { --_bg: var(--amber-100); --_lip: #ffd166; color: var(--amber-800); }
.feature-icon--red    { --_bg: var(--red-100);   --_lip: #ff9a9a; color: var(--red-800); }

/* ── 17. Subscription cards ─────────────────────────────────── */
.pricing-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  overflow: hidden;
  transition: box-shadow var(--t), transform var(--t);
  height: 100%;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card.recommended {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 2px var(--c-primary), var(--shadow);
  transform: translateY(-3px);
}

/* ── 18. Misc components ────────────────────────────────────── */
a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--c-primary-dark); }

hr { border-color: var(--c-border); opacity: 1; }

.divider { height: 1px; background: var(--c-border); border: 0; margin: 1.5rem 0; }

/* Accordion */
.accordion-button:not(.collapsed) { color: var(--c-primary); background: var(--green-50); box-shadow: none; }
.accordion-button:focus            { box-shadow: none; }
.accordion-item                    { border-color: var(--c-border); }

/* Progress bar */
.progress { border-radius: var(--r-xl); background: var(--gray-100); height: 6px; }
.progress-bar { background: var(--c-primary); border-radius: var(--r-xl); }

/* Nav tabs */
.nav-tabs .nav-link          { color: var(--c-text-2); font-weight: 500; border-radius: var(--r-sm) var(--r-sm) 0 0; }
.nav-tabs .nav-link.active   { color: var(--c-text); font-weight: 600; border-color: var(--c-border) var(--c-border) var(--c-surface); }
.nav-tabs .nav-link:hover    { color: var(--c-text); }
.nav-tabs                    { border-color: var(--c-border); }

/* Notification bell */
.notification-dot {
  position: absolute;
  top: 0.5rem;
  right: 0.25rem;
  width: 8px;
  height: 8px;
  background: var(--red-600);
  border-radius: 50%;
  border: 2px solid var(--c-surface);
}

/* Coach card accent variants */
.coach-accent-danger      { border-left: 3px solid var(--red-600); }
.coach-accent-info        { border-left: 3px solid var(--blue-600); }
.coach-accent-success     { border-left: 3px solid var(--c-primary); }
.coach-accent-warning     { border-left: 3px solid var(--amber-600); }
.coach-accent-locked      { border-left: 3px solid var(--gray-200); }

/* Dev mode banner */
.dev-banner {
  background: repeating-linear-gradient(
    -45deg,
    rgba(220,38,38,.08),
    rgba(220,38,38,.08) 10px,
    rgba(220,38,38,.04) 10px,
    rgba(220,38,38,.04) 20px
  );
  border: 1px solid var(--red-100);
  border-left: 3px solid var(--red-600);
  border-radius: var(--r-sm);
  color: var(--red-800);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--c-text-2);
}
.empty-state-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--green-100), var(--green-50) 70%);
  color: var(--c-primary-dark);
  font-size: 2rem;
}
.empty-state h5 { color: var(--c-text-2); font-weight: 600; margin-bottom: 0.5rem; }
.empty-state p  { font-size: 0.9rem; margin-bottom: 1.25rem; }

/* Action button group */
.action-group {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Preference badge variants */
.pref-allergy { background: var(--red-100); color: var(--red-800); }
.pref-unwanted { background: var(--amber-100); color: var(--amber-800); }
.pref-avoid { background: var(--gray-100); color: var(--gray-700); }
.pref-preferred { background: var(--green-100); color: var(--green-800); }

/* ── 19. Transitions & hovers ───────────────────────────────── */
.hover-lift {
  transition: transform var(--t), box-shadow var(--t);
}
.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ── 20. Print ──────────────────────────────────────────────── */
@media print {
  header, footer, .no-print { display: none !important; }
  .container { max-width: 100% !important; padding: 0 !important; }
  .list-group-item { border: none !important; padding: 2px 0 !important; }
  body { font-size: 11pt; background: white; color: black; -webkit-print-color-adjust: exact; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* ── 21. Responsive ─────────────────────────────────────────── */
@media (max-width: 576px) {
  .app-content { padding-top: 1.25rem; padding-bottom: 2.5rem; }
  .card-body    { padding: 0.875rem; }
  .card-header  { padding: 0.75rem 0.875rem; }
  .stat-card    { padding: 1rem; }
  .stat-value   { font-size: 1.375rem; }
  h2 { font-size: 1.375rem; }
  .btn-lg { padding: 0.625rem 1.125rem; font-size: 0.9rem; }
}

@media (max-width: 991px) {
  .app-nav .nav-link { padding: 0.625rem 0.75rem !important; border-bottom: none; }
  .app-nav .nav-link.active { background: var(--green-50); color: var(--c-primary) !important; border-radius: var(--r-xs); }
  .app-nav .navbar-collapse { border-top: 1px solid var(--c-border); padding: 0.5rem 0; }
}

/* ── 22. Dark Mode ──────────────────────────────────────────── */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 0.35rem 0.55rem;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  color: var(--c-text-2);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.theme-toggle-btn:hover { background: var(--gray-100); }
.theme-icon-light { display: none; }
[data-bs-theme="dark"] .theme-icon-dark  { display: none; }
[data-bs-theme="dark"] .theme-icon-light { display: inline; }

[data-bs-theme="dark"] {
  --c-surface: #1c1f2e;
  --c-bg:      #13151f;
  --c-border:  rgba(255,255,255,0.09);
  --c-text:    #f1f5f9;
  --c-text-2:  #94a3b8;
  --c-text-3:  #64748b;
  --c-primary-bg: rgba(16,185,129,0.12);
  --c-primary-muted: rgba(16,185,129,0.18);
  --green-50:  rgba(16,185,129,0.1);
  --green-100: rgba(16,185,129,0.18);
  --blue-50:   rgba(79,107,255,0.1);
  --blue-100:  rgba(79,107,255,0.18);
  --amber-50:  rgba(245,162,0,0.1);
  --amber-100: rgba(245,162,0,0.18);
  --red-50:    rgba(239,68,68,0.1);
  --red-100:   rgba(239,68,68,0.18);
  --gray-50:   #1a1d2b;
  --gray-100:  #22273a;
  --gray-150:  #2a2f45;
  --gray-200:  #333854;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.3);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.2);
}

[data-bs-theme="dark"] .app-nav { background: var(--c-surface) !important; }
[data-bs-theme="dark"] .app-nav .nav-link.active {
  background: rgba(22,163,74,0.12);
  color: var(--c-primary) !important;
}
[data-bs-theme="dark"] .app-nav .dropdown-menu { background: var(--c-surface); }
[data-bs-theme="dark"] .app-nav .dropdown-item:hover { background: var(--gray-100); }
[data-bs-theme="dark"] .theme-toggle-btn:hover { background: var(--gray-100); }
[data-bs-theme="dark"] .progress { background: var(--gray-200); }
[data-bs-theme="dark"] .notification-dot { border-color: var(--c-surface); }

/* ── 23. Dashboard widgets ──────────────────────────────────── */
.quote-card {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: #fff;
  border: none;
}
.calorie-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.calorie-ring-svg { transform: rotate(-90deg); overflow: visible; }
.calorie-ring-track { fill: none; stroke: var(--gray-200); stroke-width: 10; }
.calorie-ring-fill  { fill: none; stroke: var(--green-600); stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray 0.8s ease; }
[data-bs-theme="dark"] .calorie-ring-track { stroke: var(--gray-200); }
.water-progress { height: 8px; border-radius: var(--r-xl); background: var(--gray-100); }
.water-progress-bar { border-radius: var(--r-xl); background: #0ea5e9; transition: width 0.4s ease; }

/* ── 24. Refresh additions (icons, type/spacing scale, motion, mockups) ── */

/* Bootstrap Icons, vendored inline via Html.Icon() — the vendored SVGs ship fixed
   width="16" height="16" attributes; override with 1em so each icon scales with its
   surrounding font-size by default, and colors via `color` (fill="currentColor"). */
.bi { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; flex-shrink: 0; }
.icon-sm { width: 0.875em !important; height: 0.875em !important; }
.icon-lg { width: 1.5em   !important; height: 1.5em   !important; }
.icon-xl { width: 2rem    !important; height: 2rem    !important; }

:root {
  /* Type scale — for new/refreshed markup; existing h1-h6 rules are untouched. */
  --fs-xs:   0.75rem;
  --fs-sm:   0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md:   1.0625rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  clamp(1.75rem, 3vw, 2.25rem);
  --fs-hero: clamp(2.25rem, 5vw, 3.25rem);

  /* Spacing scale — for new/refreshed markup; existing spacing is untouched. */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
}

/* Scroll-reveal: fade + rise, driven by reveal.js (IntersectionObserver). */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger-in for card grids — same mechanics, incremented delay per direct child. */
.stagger > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 60ms; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 120ms; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 180ms; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 240ms; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 300ms; }
.stagger.is-visible > *:nth-child(n+7) { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── 25. Dashboard hero redesign ──────────────────────────────
   "Glanceable Hero" dashboard layout: a gradient hero band carrying the
   greeting + top-line stats + calorie ring, followed by accent-bordered
   panels. Built on the existing token system (c-primary, amber, blue
   tokens) so dark mode and future palette tweaks apply automatically —
   nothing here is a hardcoded hex, unlike the exploratory mockup it's
   based on. */
.dash-hero {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 72%);
  border-radius: var(--r-xl);
  padding: 1.75rem 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.dash-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
  border-radius: 50%;
}
.dash-hero-greet { font-family: var(--f-display); font-size: 1.375rem; font-weight: 800; margin: 0 0 4px; }
.dash-hero-sub   { font-size: 0.875rem; opacity: .85; margin: 0; }
.dash-hero-stats { display: flex; gap: 1.75rem; flex-wrap: wrap; position: relative; z-index: 1; }
.dash-hero-stat  { text-align: center; min-width: 76px; }
.dash-hero-stat .num { font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; line-height: 1; }
.dash-hero-stat .lbl { font-size: 0.68rem; opacity: .8; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
@media (max-width: 480px) {
  .dash-hero { flex-direction: column; align-items: flex-start; }
}
.dash-hero .calorie-ring-wrap { position: relative; z-index: 1; flex-shrink: 0; }
.dash-hero .calorie-ring-track { stroke: rgba(255,255,255,.28); }
.dash-hero .calorie-ring-fill  { stroke: #fff; }
.dash-hero .stat-value, .dash-hero .stat-label, .dash-hero .stat-unit { color: #fff; }
.dash-ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.dash-panel-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--c-text-3);
  margin: 0 0 0.625rem;
}
.dash-panel {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  border-left: 4px solid var(--c-primary);
  padding: 1.125rem 1.25rem;
  height: 100%;
}
.dash-panel--gold   { border-left-color: var(--amber-600); }
.dash-panel--indigo { border-left-color: var(--blue-600); }

.dash-macro-row { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.625rem; }
.dash-macro-row:last-child { margin-bottom: 0; }
.dash-macro-row .lbl { width: 108px; font-size: 0.8125rem; color: var(--c-text-2); flex-shrink: 0; }
.dash-macro-track { flex: 1; height: 7px; border-radius: 4px; background: var(--c-bg); overflow: hidden; }
.dash-macro-fill  { height: 100%; border-radius: 4px; }
.dash-macro-val   { width: 76px; text-align: right; font-size: 0.8125rem; font-weight: 600; color: var(--c-text-2); flex-shrink: 0; }

.dash-meal-row {
  display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0;
  border-bottom: 1px dashed var(--c-border); font-size: 0.875rem;
}
.dash-meal-row:last-child { border-bottom: none; padding-bottom: 0; }
.dash-meal-tag {
  font-size: 0.68rem; font-weight: 700; color: var(--c-text-3); width: 72px;
  flex-shrink: 0; text-transform: uppercase; letter-spacing: .04em;
}
.dash-meal-icon {
  width: 28px; height: 28px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.85rem;
}

.dash-pill { font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.dash-pill-green { background: var(--green-100); color: var(--c-primary-dark); }
.dash-pill-gold  { background: var(--amber-100); color: var(--amber-800); }

.dash-qa-strip { display: flex; gap: 0.625rem; overflow-x: auto; padding-bottom: 4px; }
.dash-qa-btn {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 92px; padding: 0.875rem 0.5rem; border-radius: var(--r-lg);
  background: var(--c-surface); border: 1px solid var(--c-border);
  color: var(--c-text); text-decoration: none; font-size: 0.72rem; font-weight: 600;
  text-align: center; transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.dash-qa-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--c-text); }
.dash-qa-btn .bi { font-size: 1.3rem; color: var(--c-primary); width: auto; height: auto; }

/* ── 26. MealPlan/View "today in focus" redesign ──────────────────────
   Day-pill quick-nav strip plus per-day native details/summary collapse
   (today's day pre-opened via the "open" attribute, others start closed)
   so the week reads as "today first, rest a tap away" without any new
   JS — native details/summary handles the expand/collapse state. */
.mp-day-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mp-day-pill {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.875rem; border-radius: 99px; border: 1px solid var(--c-border);
  background: var(--c-surface); color: var(--c-text-2); text-decoration: none;
  font-size: 0.8125rem; font-weight: 600; text-transform: capitalize;
}
.mp-day-pill:hover { color: var(--c-text); border-color: var(--c-primary); }
.mp-day-pill--today { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.mp-day-pill-badge {
  font-size: 0.62rem; font-weight: 700; letter-spacing: .04em; padding: 1px 6px;
  border-radius: 99px; background: var(--amber-100); color: var(--amber-800);
}
.mp-day-pill--today .mp-day-pill-badge { background: rgba(255,255,255,.25); color: #fff; }

.mp-day-details summary { list-style: none; cursor: pointer; }
.mp-day-details summary::-webkit-details-marker { display: none; }
.mp-day-details summary .card-header::after {
  content: "\25BC"; font-size: 0.65rem; color: var(--c-text-3); margin-left: auto; padding-left: 0.5rem;
}
.mp-day-details[open] summary .card-header::after { content: "\25B2"; }
.mp-day-header--today .card-header { background: var(--c-primary-bg); }

/* ── 27. Recepti/Index "browsable recipe wall" redesign ────────────────
   Meal-type filter chips (client-side show/hide, no server round-trip)
   plus a colored left-accent per card reusing DishIconHelper's existing
   category colors, and a small "TOP" ribbon on meals the user already
   liked (Pro-only data that already existed, just not surfaced here). */
.recepti-meta { font-size: 0.875rem; color: var(--c-text-2); }
.recepti-filter-chip {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.875rem; border-radius: 99px; border: 1px solid var(--c-border);
  background: var(--c-surface); color: var(--c-text-2); font-size: 0.8125rem; font-weight: 600;
  cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.recepti-filter-chip:hover { border-color: var(--c-primary); color: var(--c-text); }
.recepti-filter-chip.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.recepti-counter { font-size: 0.8125rem; color: var(--c-text-3); }

.recepti-card { border-left: 4px solid var(--c-border); position: relative; transition: border-color var(--t-fast); }
.recepti-top-badge {
  position: absolute; top: 0; right: 0.75rem; font-size: 0.62rem; font-weight: 700;
  letter-spacing: .04em; padding: 2px 8px; border-radius: 0 0 6px 6px;
  background: var(--amber-600); color: #fff;
}
.recepti-card-col[hidden] { display: none; }

/* ── 28. Progress "glanceable rings" hero ───────────────────────────────
   A dark summary band above the existing detailed Progress sections —
   4 small rings (weight-to-goal %, last-night sleep, today's steps,
   today's eating window) built entirely from data the page already
   computes below; nothing new is persisted. Sleep/steps ring denominators
   are universal reference defaults (8h, 10k steps), not stored settings —
   same spirit as this page's existing hardcoded BMI category thresholds. */
.progress-hero {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--c-primary-dark) 160%);
  border-radius: var(--r-xl);
  padding: 1.5rem 1.75rem;
  color: #fff;
  margin-bottom: 1.5rem;
}
.progress-hero-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.progress-hero-title { font-family: var(--f-display); font-size: 1.25rem; font-weight: 800; margin: 0; }
.progress-hero-date  { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; opacity: .7; margin: 2px 0 0; }
.progress-streak-pill {
  font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 99px;
  background: rgba(255,255,255,.12); white-space: nowrap;
}
.progress-rings { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.progress-ring-card { text-align: center; min-width: 108px; }
.progress-ring-label { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .65; margin-bottom: 0.5rem; }
.progress-ring-svg { display: block; margin: 0 auto; }
.progress-ring-track { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 8; }
.progress-ring-fill  { fill: none; stroke-width: 8; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.progress-ring-value { font-family: var(--f-display); font-size: 1rem; font-weight: 800; fill: #fff; }
.progress-ring-sub   { font-size: 0.7rem; opacity: .75; margin-top: 0.5rem; }
.progress-ring-empty { font-size: 0.7rem; opacity: .5; }
@media (max-width: 576px) {
  .progress-rings { justify-content: space-between; gap: 0.75rem; }
  .progress-ring-card { min-width: 72px; }
}

/* ── 29. Coach "insight feed" header ────────────────────────────────────
   Page-level header card above the existing CoachInsightCard timeline —
   purely additive chrome (avatar, title, real message count, last-update
   timestamp); the timeline itself and its cards are untouched except for
   one new Trigger-derived category pill added to the shared component. */
.coach-header-card {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-xl);
  padding: 1.125rem 1.375rem; margin-bottom: 1.25rem;
}
.coach-header-avatar {
  width: 48px; height: 48px; border-radius: var(--r-lg); flex-shrink: 0;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--blue-600) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.375rem;
}
.coach-header-title { font-family: var(--f-display); font-size: 1.1rem; font-weight: 800; margin: 0; }
.coach-header-sub   { font-size: 0.8125rem; color: var(--c-text-2); margin: 2px 0 0; }
.coach-header-count {
  margin-left: auto; font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 99px;
  background: var(--amber-100); color: var(--amber-800); white-space: nowrap;
}
.coach-section-lbl {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--c-text-3); margin: 0 0 0.75rem;
}
.coach-trigger-pill { font-size: 0.68rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .03em; }
.coach-trigger-warning { background: var(--amber-100); color: var(--amber-800); }
.coach-trigger-success { background: var(--green-100); color: var(--c-primary-dark); }
.coach-trigger-info    { background: var(--blue-100);  color: var(--blue-800); }
.coach-trigger-neutral { background: var(--gray-150);  color: var(--c-text-2); }

/* ── 30. Obroki "daily diary" redesign ──────────────────────────────────
   Visual-only pass over the existing tab+modal IA (barcode scanning, food
   search, recipe builder, AJAX add) — none of that markup/JS is touched,
   only the summary bar and the tab strip get a more glanceable look. */
.obroki-summary-card {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
  border-radius: var(--r-xl); padding: 1.25rem 1.5rem; color: #fff; margin-bottom: 1.25rem;
}
.obroki-summary-kcal { font-family: var(--f-display); font-size: 1.75rem; font-weight: 800; line-height: 1; }
.obroki-summary-kcal .unit { font-size: 1rem; font-weight: 600; opacity: .85; }
.obroki-summary-remain { font-size: 0.8125rem; opacity: .9; }
.obroki-summary-track { height: 8px; border-radius: 4px; background: rgba(255,255,255,.22); overflow: hidden; margin: 0.75rem 0; }
.obroki-summary-fill  { height: 100%; border-radius: 4px; background: #fff; }
.obroki-summary-fill.over { background: var(--red-600); }
.obroki-summary-macros { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.8125rem; opacity: .95; }
.obroki-summary-macros .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }

.obroki-tab-strip { display: flex; gap: 0.5rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.obroki-tab-strip .nav-link {
  display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--c-border);
  border-radius: var(--r-lg); background: var(--c-surface); color: var(--c-text-2);
  font-weight: 600; font-size: 0.85rem; padding: 0.5rem 0.875rem;
}
.obroki-tab-strip .nav-link.active {
  background: var(--c-primary-bg); border-color: var(--c-primary); color: var(--c-primary-dark);
}
.obroki-tab-icon {
  width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-size: 0.72rem; flex-shrink: 0;
}
.obroki-chip-lbl { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-3); margin: 0.75rem 0 0.375rem; }

/* ── 31. Profile "card grid" redesign ───────────────────────────────────
   Visual-only pass: the existing single always-editable <form> (and all
   its handlers) is untouched — only wrapped with card headers/a gradient
   hero so related fields read as grouped sections instead of one long
   scroll, same risk-reducing pattern as Obroki. */
.profile-hero {
  display: flex; align-items: center; gap: 1.125rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--blue-600) 100%);
  border-radius: var(--r-xl); padding: 1.375rem 1.625rem; color: #fff; margin-bottom: 1.25rem;
}
.profile-hero-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-family: var(--f-display);
  font-size: 1.25rem; font-weight: 800;
}
.profile-hero-name { font-family: var(--f-display); font-size: 1.25rem; font-weight: 800; margin: 0; }
.profile-hero-sub  { font-size: 0.8125rem; opacity: .85; margin: 2px 0 0.5rem; }
.profile-hero-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.profile-hero-badge { font-size: 0.72rem; font-weight: 700; padding: 4px 11px; border-radius: 99px; background: rgba(255,255,255,.18); }

.profile-card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-xl);
  padding: 1.25rem 1.375rem; margin-bottom: 1.25rem;
}
.profile-card-hdr { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.125rem; }
.profile-card-icon {
  width: 36px; height: 36px; border-radius: var(--r-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.profile-card-title { font-weight: 700; font-size: 0.9375rem; margin: 0; }
.profile-card-sub   { font-size: 0.78rem; color: var(--c-text-3); margin: 0; }

/* ── 32. Goals/Setup wizard polish ───────────────────────────────────────
   Visual-only pass over the existing 7-step wizard — all step/skip/preview
   JS, element ids, and class-toggling logic are untouched. The step-tab
   buttons' className is fully REPLACED by JS on every step change (not
   classList.add/remove), so they're restyled by overriding Bootstrap's own
   btn-success/btn-secondary/btn-outline-secondary look when combined with
   .step-tab, never by introducing a class name the JS doesn't already set. */
.goals-wizard-card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-xl);
  padding: 1.5rem 1.75rem;
}
.wizard-steps .step-tab {
  width: 34px; height: 34px; border-radius: 50%; padding: 0; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.wizard-steps .step-tab.btn-success { background: var(--c-primary); border-color: var(--c-primary); }
.wizard-steps .step-tab.btn-secondary { background: var(--c-primary-muted); border-color: var(--c-primary-muted); color: var(--c-primary-dark); }
.wizard-steps .step-tab.btn-outline-secondary { background: var(--c-surface); border-color: var(--c-border); color: var(--c-text-2); }

.activity-card, .goal-card, .speed-card { border-radius: var(--r-lg) !important; transition: border-color var(--t-fast), background var(--t-fast); }
.activity-card.border-success, .goal-card.border-success, .speed-card.border-success {
  border-color: var(--c-primary) !important;
}
.activity-card.bg-success-subtle, .goal-card.bg-success-subtle, .speed-card.bg-success-subtle {
  background: var(--c-primary-bg) !important;
}

/* ── 33. MealPlan/Setup redesign ─────────────────────────────────────────
   Visual-only pass. Diet type, calorie target and meal count are NOT
   editable here (they're computed from Profile/Goals) — this page only
   lets the user pick a week, optional "wanted meals", and home
   ingredients, so no selector cards are added for the read-only stats;
   they stay a plain info row, just restyled. */
.mp-setup-eyebrow {
  display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--c-primary-dark);
  background: var(--c-primary-bg); padding: 4px 12px; border-radius: 99px; margin-bottom: 0.625rem;
}
.mp-week-strip { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.mp-week-strip .btn-check + label {
  border-radius: var(--r-lg); padding: 0.75rem 1.25rem; font-weight: 600; min-width: 220px;
}
.mp-setup-cta {
  background: linear-gradient(135deg, var(--c-primary-bg) 0%, var(--c-surface) 100%);
  border: 1px solid var(--c-primary-muted);
}

/* ── 34. Trening "weekly progress" hero ─────────────────────────────────
   Visual-only addition above the existing Programs/Weekly-schedule/
   Templates/Exercise-library sections — none of which are touched (the
   WorkoutPlayer session runner, exercise-detail modal, and accordion all
   keep their exact ids/data-attributes/onclick wiring). All hero numbers
   are real (this week's WorkoutEntry rows), nothing fabricated. */
.trening-hero {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
  border-radius: var(--r-xl); padding: 1.5rem 1.75rem; color: #fff; margin-bottom: 1.5rem;
}
.trening-hero-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.trening-hero-eyebrow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .75; margin: 0 0 4px; }
.trening-hero-title { font-family: var(--f-display); font-size: 1.25rem; font-weight: 800; margin: 0; }
.trening-hero-stats { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.trening-hero-stat { background: rgba(255,255,255,.14); border-radius: var(--r-lg); padding: 0.75rem 1.125rem; min-width: 128px; }
.trening-hero-stat .num { font-family: var(--f-display); font-size: 1.375rem; font-weight: 800; line-height: 1; }
.trening-hero-stat .lbl { font-size: 0.7rem; opacity: .85; margin-top: 2px; }
.trening-program-card { border-left: 4px solid var(--c-border); }
.trening-program-card.is-active { border-left-color: var(--c-primary); }

/* ── 35. MealPlan/History redesign ───────────────────────────────────────
   The mockup's per-week "adherence %" analytics (bar chart, trend deltas)
   has no backing data — GetByUserProfileIdAsync returns plain MealPlan
   rows with no actual-vs-planned tracking, and loading the full
   Dnevi/Obroki graph for every historical plan just to average kcal would
   be a real, avoidable cost on a list page. Kept to real, free data: plan
   counts and a colored status accent per week-group. */
.mph-summary-row { display: flex; gap: 0.875rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.mph-summary-tile {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  padding: 0.875rem 1.25rem; min-width: 160px;
}
.mph-summary-tile .num { font-family: var(--f-display); font-size: 1.375rem; font-weight: 800; color: var(--c-primary-dark); }
.mph-summary-tile .lbl { font-size: 0.75rem; color: var(--c-text-3); }
.mph-week-card { border-left: 4px solid var(--c-border); }
.mph-week-card.is-active  { border-left-color: var(--c-primary); }
.mph-week-card.is-future  { border-left-color: var(--blue-600); }

/* ── 36. Friends/Index redesign ──────────────────────────────────────────
   IndexModel only exposes (FriendshipId, ProfileId, Ime, Koda) per friend —
   no goal/streak/last-active data exists, so the mockup's per-friend
   progress rings and streak badges were NOT built (would be fabricated).
   Kept to real data: friend/pending counts in the hero, and an avatar-card
   layout for the friends list. All element ids/classes the page's fetch()
   JS depends on (#mojaKoda, #copyKoda, #kodaInput, #povabiBtn,
   #pending-{id}, .sprejmi-btn/.zavrni-btn, #friend-{id}, .odstrani-btn)
   are kept exactly as-is. */
.friends-hero {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--blue-600) 100%);
  border-radius: var(--r-xl); padding: 1.375rem 1.625rem; color: #fff; margin-bottom: 1.25rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem;
}
.friends-hero-stats { display: flex; gap: 1.5rem; }
.friends-hero-stat .num { font-family: var(--f-display); font-size: 1.375rem; font-weight: 800; line-height: 1; }
.friends-hero-stat .lbl { font-size: 0.68rem; opacity: .8; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.friend-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--blue-600) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9375rem;
}

/* ── 37. Growth/Dashboard "rast" hero ────────────────────────────────────
   Every number here is real (GrowthDashboardDto): TotalXp/Level (Level =
   XP / 500, so XP-within-level = TotalXp % 500), the DailyLogin streak
   entry, and StreakSummaryDto.LongestEver. The per-type streak grid,
   achievements list, referral card, and social-proof band below are kept
   exactly as they render today, just lightly re-skinned. */
.growth-hero {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem;
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 100%);
  border-radius: var(--r-xl); padding: 1.5rem 1.75rem; color: #fff; margin-bottom: 1.5rem;
}
.growth-hero-flame { display: flex; align-items: center; gap: 1.125rem; }
.growth-hero-flame .icon { font-size: 2.25rem; line-height: 1; }
.growth-hero-flame .num { font-family: var(--f-display); font-size: 2rem; font-weight: 800; line-height: 1; }
.growth-hero-flame .lbl { font-size: 0.8rem; opacity: .85; }
.growth-hero-flame .record { font-size: 0.72rem; opacity: .7; margin-top: 2px; }
.growth-level-ring-wrap { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.growth-level-track { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 8; }
.growth-level-fill  { fill: none; stroke: var(--amber-400); stroke-width: 8; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.growth-level-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.growth-level-center .num { font-family: var(--f-display); font-size: 1.375rem; font-weight: 800; }
.growth-level-center .lbl { font-size: 0.6rem; opacity: .85; text-transform: uppercase; letter-spacing: .05em; }
.growth-hero-tolevel { font-size: 0.78rem; opacity: .85; text-align: right; }
.growth-nav-tiles { display: flex; gap: 0.875rem; flex-wrap: wrap; margin-top: 1.25rem; }
.growth-nav-tile {
  flex: 1; min-width: 180px; background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: 0.875rem 1.125rem; text-decoration: none; color: var(--c-text);
  display: flex; align-items: center; gap: 0.75rem; transition: box-shadow var(--t-fast);
}
.growth-nav-tile:hover { box-shadow: var(--shadow-sm); color: var(--c-text); }
.growth-nav-tile .chip { width: 36px; height: 36px; border-radius: var(--r-md); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.growth-nav-tile .title { font-weight: 700; font-size: 0.875rem; }
.growth-nav-tile .sub   { font-size: 0.75rem; color: var(--c-text-3); }

/* ── 38. Growth/Leaderboard redesign ─────────────────────────────────────
   4 real category boards (BuildBoard in GetLeaderboardUseCase), each
   already ranking real values with 🥇🥈🥉 BadgeIcon for top 3 — no fake
   "podium" layout invented, just a nicer rank-circle treatment per row and
   a colored card accent per category. Privacy modal/handlers untouched. */
.lb-board-card { border-left: 4px solid var(--c-border); }
.lb-rank-circle {
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 0.9375rem; background: var(--gray-100); color: var(--c-text-2);
}
.lb-rank-circle.gold   { background: var(--amber-100); color: var(--amber-800); }
.lb-rank-circle.silver { background: var(--gray-150);  color: var(--gray-700); }
.lb-rank-circle.bronze { background: #f3ddc8; color: #8a5a2b; }
.lb-row-you { background: var(--c-primary-bg) !important; }

/* ── 39. Growth/Achievements "journey timeline" redesign ─────────────────
   AchievementDto has no category field and no per-locked-achievement
   progress value (no "68/100" style counter), so categories are derived
   from the existing CategoryOf(AchievementType) grouping already used on
   this page (just reused for chip counts too), and locked achievements
   render as plain cards — no fabricated progress bars toward a specific
   milestone, since that data doesn't exist without new use-case work. */
.ach-hero {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--blue-600) 100%);
  border-radius: var(--r-xl); padding: 1.5rem 1.75rem; color: #fff; margin-bottom: 1.5rem;
}
.ach-ring-wrap { position: relative; width: 92px; height: 92px; flex-shrink: 0; }
.ach-ring-track { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 8; }
.ach-ring-fill  { fill: none; stroke: var(--amber-400); stroke-width: 8; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ach-ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ach-ring-center .num { font-family: var(--f-display); font-size: 1.375rem; font-weight: 800; line-height: 1; }
.ach-ring-center .lbl { font-size: 0.6rem; opacity: .85; text-align: center; margin-top: 2px; }
.ach-hero-eyebrow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .75; margin: 0; }
.ach-hero-title { font-family: var(--f-display); font-size: 1.25rem; font-weight: 800; margin: 2px 0 8px; }
.ach-chip-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ach-chip { font-size: 0.72rem; font-weight: 700; padding: 4px 11px; border-radius: 99px; background: rgba(255,255,255,.18); }

.ach-timeline { position: relative; padding-left: 1.75rem; }
.ach-timeline-item { position: relative; padding-bottom: 1.25rem; }
.ach-timeline-item::before {
  content: ""; position: absolute; left: -1.75rem; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--dot-color, var(--c-primary)); border: 2px solid var(--c-surface);
}
.ach-timeline-item::after {
  content: ""; position: absolute; left: -1.313rem; top: 20px; bottom: 0; width: 2px; background: var(--c-border);
}
.ach-timeline-item:last-child::after { display: none; }
.ach-timeline-date { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--c-text-3); }
.ach-locked-card { opacity: .7; }

/* ── 40. Growth/Referral "give & get" redesign ───────────────────────────
   The mockup's fixed milestone ladder (0/14/44/60/100 days -> "Bonus
   mesec"/"VIP status") has no backing tier system anywhere in the referral
   code, so it was NOT built — would be entirely fabricated thresholds.
   Kept to the page's own real numbers (the 30/14-day reward split already
   hardcoded in the intro copy, and ReferralSummaryDto's real stats/items). */
.ref-hero {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--c-primary-dark) 100%);
  border-radius: var(--r-xl); padding: 1.5rem 1.75rem; color: #fff; margin-bottom: 1.5rem;
}
.ref-hero-eyebrow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .75; margin: 0 0 6px; }
.ref-hero-title { font-family: var(--f-display); font-size: 1.375rem; font-weight: 800; margin: 0 0 1rem; }
.ref-give-get { display: flex; gap: 0; border-radius: var(--r-lg); overflow: hidden; background: rgba(255,255,255,.08); margin-bottom: 1rem; }
.ref-give-get > div { flex: 1; padding: 1rem 1.25rem; }
.ref-give-get .num { font-family: var(--f-display); font-size: 1.75rem; font-weight: 800; line-height: 1; }
.ref-give-get .lbl { font-size: 0.72rem; opacity: .8; margin-top: 2px; }
.ref-stat-tile {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  padding: 1rem; text-align: center;
}
.ref-stat-tile .num { font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; }
.ref-stat-tile .lbl { font-size: 0.75rem; color: var(--c-text-3); }
.ref-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.ref-status-dot.rewarded { background: var(--c-primary); }
.ref-status-dot.signed   { background: var(--blue-600); }
.ref-status-dot.pending  { background: var(--gray-300); }

/* ── 41. Friends/Challenges redesign ─────────────────────────────────────
   The real system is strictly 1-vs-1 (FriendChallenge: InviterProfileId
   vs InviteeProfileId) — the mockup's 4-participant group race has no
   backing data model, so each challenge stays a 2-row "me vs friend" card,
   just with a colored icon chip and a progress bar tinted by who's ahead
   instead of a flat always-green bar. Pending/history/modal/JS untouched. */
.chal-icon-chip {
  width: 40px; height: 40px; border-radius: var(--r-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.125rem;
  background: var(--c-primary-bg); color: var(--c-primary-dark);
}
.chal-progress-bar.winning { background: var(--c-primary); }
.chal-progress-bar.losing  { background: var(--red-600); }
.chal-progress-bar.tied    { background: var(--gray-400); }

/* ── 42. Reports/Weekly redesign ─────────────────────────────────────────
   Visual-only pass: stat-card accents, and the coach blockquote reskinned
   as a warm "letter from the system" card (reusing the existing real
   r.SporociloCoach text — no new content). Chart/CSV export/accordion
   history untouched. */
.wr-stat-card { border-top: 3px solid var(--c-border); }
.wr-stat-card.accent-green { border-top-color: var(--c-primary); }
.wr-stat-card.accent-blue  { border-top-color: var(--blue-600); }
.wr-stat-card.accent-amber { border-top-color: var(--amber-600); }
.wr-letter {
  background: linear-gradient(135deg, var(--amber-50) 0%, var(--c-surface) 100%);
  border: 1px solid var(--amber-200); border-radius: var(--r-lg); padding: 1.25rem 1.5rem;
}
.wr-letter-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--amber-600); color: #fff; display: flex; align-items: center; justify-content: center;
}

/* ── 43. Notifications/Index redesign ────────────────────────────────────
   Category chips derived from the real NotificationType enum (no new
   taxonomy invented); client-side filter only, no server round-trip.
   Mark-all-read handler and notification hrefs/urls untouched. */
.notif-filter-chip {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.875rem; border-radius: 99px; border: 1px solid var(--c-border);
  background: var(--c-surface); color: var(--c-text-2); font-size: 0.8125rem; font-weight: 600; cursor: pointer;
}
.notif-filter-chip.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.notif-card { border-left: 4px solid var(--c-border); position: relative; }
.notif-card.cat-achievements { border-left-color: var(--amber-600); }
.notif-card.cat-social       { border-left-color: var(--blue-600); }
.notif-card.cat-coach        { border-left-color: #8b5cf6; }
.notif-card.cat-system       { border-left-color: var(--c-primary); }
.notif-card.is-unread        { background: var(--c-primary-bg); }
.notif-row[hidden] { display: none; }

/* ── 44. Feedback/Index — minimal touch ──────────────────────────────────
   UserFeedback only has (Rating, Comment, CreatedAt) — no category, no
   reply-email field, no triage/response-time tracking, so the mockup's
   bug/suggestion/general tabs, "email for a reply" field, and "48h average
   response" stats panel were all skipped (fully fabricated). The existing
   3-emoji rating form was already clean and minimal; just given a colored
   top accent, nothing else touched. */
.feedback-card-wrap { border-top: 4px solid var(--c-primary); border-radius: var(--r-lg); padding: 1.75rem; background: var(--c-surface); border-left: 1px solid var(--c-border); border-right: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }

/* ── 45. Podpora/Index redesign ───────────────────────────────────────────
   Real SupportTicket/SupportTicketMessage thread system already matched
   the mockup closely — no "average response time" stat exists (would
   need cross-user admin aggregation, not available/appropriate on a
   per-user page), so it was skipped. Messages restyled as chat bubbles
   (user=right/primary, admin=left/neutral); quick-help links are real
   navigation to existing pages, not fabricated data. */
.podpora-hero {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--c-primary-dark) 100%);
  border-radius: var(--r-xl); padding: 1.5rem 1.75rem; color: #fff; margin-bottom: 1.5rem;
}
.podpora-bubble { max-width: 85%; padding: 0.625rem 0.875rem; border-radius: var(--r-lg); margin-bottom: 0.5rem; }
.podpora-bubble.mine  { background: var(--c-primary); color: #fff; margin-left: auto; border-bottom-right-radius: 2px; }
.podpora-bubble.admin { background: var(--gray-100); color: var(--c-text); margin-right: auto; border-bottom-left-radius: 2px; }
.podpora-bubble-meta { font-size: 0.68rem; opacity: .75; margin-top: 2px; }
.podpora-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.podpora-status-dot.open     { background: var(--amber-600); }
.podpora-status-dot.answered { background: var(--c-primary); }
.podpora-status-dot.closed   { background: var(--gray-400); }

/* ── 46. Navodila (help center) redesign ─────────────────────────────────
   446 lines of already-real, detailed help content (14 topic sections,
   per-section Free/Premium/Pro badges, quick-start strip) — far more
   thorough than the mockup's compact collapsed cards, so nothing was
   trimmed. Added a real client-side search (filters the existing section
   text, not a new content layer) instead of the mockup's fake "24 tem na
   voljo" chrome. */
.navodila-hero {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--c-primary-dark) 100%);
  border-radius: var(--r-xl); padding: 2rem 1.75rem; color: #fff; margin-bottom: 1.5rem; text-align: center;
}
.navodila-hero-eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: rgba(255,255,255,.14); padding: 4px 14px; border-radius: 99px; margin-bottom: 0.75rem;
}
.navodila-hero-title { font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; }
.navodila-hero-sub   { opacity: .85; font-size: 0.9375rem; margin: 0 0 1.25rem; }
.navodila-search {
  max-width: 480px; margin: 0 auto; display: flex; align-items: center; gap: 0.5rem;
  background: #fff; border-radius: 99px; padding: 0.625rem 1.125rem;
}
.navodila-search input { border: none; outline: none; flex: 1; font-size: 0.9375rem; color: var(--c-text); }
.navodila-section[hidden] { display: none; }
.navodila-no-results { text-align: center; color: var(--c-text-3); padding: 2rem; display: none; }

/* ── 47. Register (Identity) redesign ─────────────────────────────────────
   Real single-handler form (Ime/Email/Password/ConfirmPassword/AcceptTerms/
   AgeConfirmed) — wrapped in a card with icon-prefixed fields, a password
   show/hide toggle (new, genuine UX, no new server fields), and trust-pill
   copy. No fields added/removed/renamed. */
.reg-headline { text-align: center; max-width: 30rem; margin: 1.5rem auto 1.75rem; }
.reg-headline h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; margin: 0 0 .5rem; }
.reg-headline p { color: var(--c-text-2); font-size: .9375rem; margin: 0; }
.reg-card {
  max-width: 440px; margin: 0 auto; background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); box-shadow: 0 20px 48px -20px rgba(18,21,31,.18); padding: 2rem 1.85rem 1.6rem;
  position: relative;
}
.reg-card::before {
  content: ''; position: absolute; left: 1.75rem; right: 1.75rem; top: 0; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--green-600), var(--blue-600), var(--amber-600));
}
.reg-pill-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.reg-pill {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600;
  padding: .3rem .65rem; border-radius: 99px; background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-200);
}
.reg-pill.gold { color: var(--amber-800); background: var(--amber-50); border-color: var(--amber-200); }
.reg-field-wrap { position: relative; }
.reg-field-icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--c-text-3); font-size: .95rem; pointer-events: none; }
.reg-field-wrap .form-control { padding-left: 2.25rem; }
.reg-pw-eye {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); background: none; border: 0;
  color: var(--c-text-3); cursor: pointer; font-size: .95rem; line-height: 1;
}
.reg-submit {
  background: linear-gradient(135deg, var(--green-600), var(--green-700) 55%, var(--blue-800)); border: none;
  font-weight: 700; padding: .75rem 1.2rem; border-radius: var(--r); box-shadow: 0 10px 24px -8px rgba(5,150,105,.45);
}
.reg-trust-row { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: 1rem; font-size: .75rem; color: var(--c-text-3); flex-wrap: wrap; }
.reg-trust-row span { display: inline-flex; align-items: center; gap: .3rem; }

/* ── 48. EmailConfirmationPending redesign ────────────────────────────────
   Real 3-state journey stepper (account created / confirm email / in app)
   — all 3 states are logically true for every visitor here, not fabricated
   data. Resend handler and Dashboard link untouched. */
.ecp-panel {
  max-width: 820px; margin: 1rem auto; background: var(--c-surface); border-radius: var(--r-xl);
  box-shadow: 0 20px 48px -20px rgba(18,21,31,.18); overflow: hidden; display: grid; grid-template-columns: 230px 1fr;
}
@media (max-width: 680px) { .ecp-panel { grid-template-columns: 1fr; } }
.ecp-rail { background: linear-gradient(195deg, var(--blue-800), var(--gray-900)); color: #fff; padding: 2rem 1.6rem; display: flex; flex-direction: column; }
@media (max-width: 680px) { .ecp-rail { flex-direction: row; justify-content: space-between; } .ecp-rail .ecp-step-line { display: none; } .ecp-rail .ecp-step-label { display: none; } }
.ecp-rail-kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.55); margin-bottom: 1.25rem; font-weight: 600; }
.ecp-step { position: relative; display: flex; gap: .85rem; padding-bottom: 1.9rem; }
.ecp-step:last-child { padding-bottom: 0; }
.ecp-step-line { position: absolute; left: 15px; top: 34px; bottom: 4px; width: 2px; background: rgba(255,255,255,.18); }
.ecp-step.done .ecp-step-line { background: rgba(52,211,153,.6); }
.ecp-step-dot {
  position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: .95rem; border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
}
.ecp-step.done .ecp-step-dot { background: var(--green-400); border-color: var(--green-400); color: #06281c; }
.ecp-step.active .ecp-step-dot { background: var(--amber-400); border-color: var(--amber-400); color: #5c3d00; box-shadow: 0 0 0 5px rgba(255,194,51,.22); }
.ecp-step-label .t { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.ecp-step-label .d { font-size: .78rem; color: rgba(255,255,255,.55); margin-top: 2px; }
.ecp-step.active .ecp-step-label .t { color: var(--amber-400); }
.ecp-step.done .ecp-step-label .t { color: var(--green-200); }
.ecp-content { padding: 1.9rem 1.9rem 1.6rem; }
.ecp-status-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--amber-50); color: var(--amber-800); font-weight: 600; font-size: .8rem; padding: 6px 13px; border-radius: 999px; margin-bottom: 1rem; }
.ecp-status-badge.ok { background: var(--green-50); color: var(--green-800); }
.ecp-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-600); }
.ecp-status-badge.ok .ecp-status-dot { background: var(--green-600); }
.ecp-content h1 { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; margin: 0 0 .6rem; }
.ecp-lead { color: var(--c-text-2); font-size: .9375rem; margin: 0 0 1.1rem; }
.ecp-email-card { display: flex; align-items: center; background: var(--gray-50); border: 1px solid var(--c-border); border-radius: var(--r); padding: .7rem 1rem; margin-bottom: 1.1rem; font-size: .9375rem; }
.ecp-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ecp-btn-resend { background: var(--blue-600); color: #fff; font-weight: 600; padding: .6rem 1.2rem; border-radius: var(--r-sm); flex: 1 1 auto; }
.ecp-btn-resend:hover { background: var(--blue-800); color: #fff; }
.ecp-btn-ghost { background: var(--c-surface); border: 1.5px solid var(--c-border); color: var(--gray-700); font-weight: 600; padding: .6rem 1.1rem; border-radius: var(--r-sm); }
.ecp-spam-line { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--c-text-3); border-top: 1px dashed var(--c-border); padding-top: .9rem; }

/* ── 49. Impressum "letterhead sheet" redesign ────────────────────────────
   All company/tax/registration data kept byte-for-byte identical — purely
   a definition-list + numbered-clause restructure of the same real text. */
.doc-sheet { max-width: 720px; margin: 1rem auto; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); box-shadow: 0 8px 28px -8px rgba(16,24,40,.1); overflow: hidden; }
.doc-letterhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding: 1.75rem 2rem 1.25rem; }
.doc-brand { display: flex; align-items: center; gap: .5rem; font-family: var(--f-display); font-weight: 800; font-size: 1.0625rem; color: var(--green-700); }
.doc-id { text-align: right; font-size: .6875rem; color: var(--c-text-3); line-height: 1.5; }
.doc-title-block { padding: 0 2rem 1.5rem; border-bottom: 2px solid var(--gray-900); }
.doc-title-block h1 { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 .3rem; }
.doc-title-block p { margin: 0; color: var(--c-text-2); font-size: .9375rem; }
.doc-body-pad { padding: 1.75rem 2rem 2rem; }
.doc-dl-grid { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; row-gap: 0; }
.doc-dl-grid dt, .doc-dl-grid dd { padding: .8rem 0; border-bottom: 1px solid var(--c-border); margin: 0; }
.doc-dl-grid dt { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .045em; color: var(--c-text-3); padding-right: 1rem; }
.doc-dl-grid dd { font-size: .9375rem; color: var(--c-text); }
.doc-dl-grid dd a { color: var(--blue-800); font-weight: 600; text-decoration: none; }
.doc-mono { font-family: ui-monospace, Menlo, monospace; font-size: .875rem; }
.doc-dl-grid dt:last-of-type, .doc-dl-grid dd:last-of-type { border-bottom: 0; }
.doc-clause { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--c-border); }
.doc-clause-num { font-family: ui-monospace, Menlo, monospace; font-size: .75rem; color: var(--amber-600); font-weight: 600; margin-bottom: .35rem; display: block; }
.doc-clause h2 { font-family: var(--f-display); font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; }
.doc-clause p { font-size: .875rem; color: var(--c-text-2); margin-bottom: .5rem; }
.doc-sign-off { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px dashed var(--gray-300); display: flex; align-items: center; justify-content: space-between; font-size: .8125rem; color: var(--c-text-3); }
@media (max-width: 560px) { .doc-letterhead, .doc-title-block, .doc-body-pad { padding-left: 1.1rem; padding-right: 1.1rem; } .doc-dl-grid { grid-template-columns: 1fr; } .doc-dl-grid dt { border-bottom: 0; padding-bottom: .15rem; } .doc-dl-grid dd { padding-top: 0; } .doc-letterhead { flex-direction: column; gap: .6rem; } .doc-id { text-align: left; } }

/* ── 50. Terms / Privacy "reading document" redesign ──────────────────────
   Numbered-section layout + scroll progress bar over the exact same legal
   text (no wording changed). The plan-limit figures in section 5 of Terms
   are the same numbers already in the prose, just also shown as tiles. */
.legal-progress-rail { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1030; background: transparent; }
.legal-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--blue-600), var(--green-600)); transition: width .08s linear; }
.legal-hero { max-width: 42rem; margin: 0 auto; padding: 1.5rem 1rem 1.5rem; text-align: center; }
.legal-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-800); margin-bottom: .75rem; }
.legal-hero h1 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 0 0 .75rem; }
.legal-meta { display: flex; align-items: center; justify-content: center; gap: 1.1rem; flex-wrap: wrap; font-size: .85rem; color: var(--c-text-3); }
.legal-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.legal-col { max-width: 42rem; margin: 0 auto; padding: 0 1rem 2rem; }
.legal-sec { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; padding: 1.6rem 0; }
.legal-sec + .legal-sec { border-top: 1px solid var(--gray-100); }
.legal-sec-num { font-family: var(--f-display); font-size: 1.7rem; font-weight: 700; color: var(--blue-100); line-height: 1; }
.legal-sec h2 { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -.015em; margin: 0 0 .65rem; }
.legal-sec h3 { font-family: var(--f-display); font-size: .9rem; font-weight: 700; color: var(--blue-800); margin: 1.1rem 0 .45rem; display: flex; align-items: center; gap: .4rem; }
.legal-sec h3::before { content: ''; width: .4rem; height: .4rem; border-radius: 50%; background: var(--blue-600); flex-shrink: 0; }
.legal-sec p, .legal-sec li { font-size: .9375rem; color: var(--gray-700); }
.legal-sec li::marker { color: var(--blue-600); }
.legal-notice { background: var(--amber-50); border-radius: var(--r-sm); padding: .9rem 1.05rem; margin: .9rem 0; display: flex; gap: .6rem; align-items: flex-start; }
.legal-notice p { margin: 0; color: var(--amber-800); }
.legal-limit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin: .9rem 0 1rem; }
@media (max-width: 480px) { .legal-limit-grid { grid-template-columns: 1fr; } .legal-sec { grid-template-columns: 1.8rem 1fr; gap: .6rem; } .legal-sec-num { font-size: 1.2rem; } }
.legal-limit-tile { background: var(--gray-50); border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: .75rem .8rem; text-align: center; }
.legal-limit-tile .plan { font-family: var(--f-display); font-weight: 700; font-size: .8rem; margin-bottom: .3rem; }
.legal-limit-tile.free .plan { color: var(--gray-600); }
.legal-limit-tile.premium .plan { color: var(--green-700); }
.legal-limit-tile.pro .plan { color: var(--amber-700); }
.legal-limit-tile .figure { font-size: .75rem; color: var(--c-text-2); line-height: 1.5; }
.legal-limit-tile .figure b { color: var(--c-text); font-size: .9rem; }
.legal-end { max-width: 42rem; margin: 0 auto; padding: 1.75rem 1rem 3rem; text-align: center; }
.legal-end-check { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--green-50); color: var(--green-700); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; margin: 0 auto .8rem; }
.legal-end p { color: var(--c-text-3); font-size: .86rem; margin-bottom: 1rem; }
.legal-back-top { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--blue-800); text-decoration: none; }

/* ── 51. NotFound (404) / Error (500) redesign ────────────────────────────
   Shared .err-* classes. Quick-links are real existing routes; the
   mockup's fake free-text search box was dropped (no search backend
   exists). Auth-conditional Dashboard/App links preserved exactly. */
.err-wrap { max-width: 640px; margin: 2.5rem auto 3rem; padding: 0 1rem; }
.err-kicker { display: flex; align-items: center; gap: .6rem; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.err-kicker::before { content: ''; width: 1.6rem; height: 2px; display: inline-block; }
.err-kicker.blue { color: var(--blue-600); } .err-kicker.blue::before { background: var(--blue-600); }
.err-kicker.amber { color: var(--amber-700); } .err-kicker.amber::before { background: var(--amber-600); }
.err-numeral { font-family: var(--f-display); font-weight: 800; font-size: clamp(4rem, 14vw, 7rem); line-height: .9; letter-spacing: -.04em; color: var(--gray-900); margin: 0 0 1.1rem; }
.err-numeral span { color: var(--gray-300); }
.err-wrap h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.4rem); margin: 0 0 .55rem; }
.err-lede { color: var(--c-text-2); font-size: .95rem; max-width: 460px; margin: 0 0 1.1rem; }
.err-req-id { display: inline-block; font-size: .8rem; color: var(--c-text-3); background: var(--gray-50); border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: .3rem .65rem; margin-bottom: 1.5rem; }
.err-links-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-3); margin-bottom: .75rem; }
.err-quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1.6rem; }
@media (max-width: 560px) { .err-quick-links { grid-template-columns: repeat(2, 1fr); } }
.err-qlink { display: flex; align-items: center; gap: .55rem; border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: .7rem .75rem; text-decoration: none; color: var(--c-text); font-size: .85rem; font-weight: 600; background: #fff; transition: border-color var(--t-fast), transform var(--t-fast), background var(--t-fast); }
.err-qlink:hover { border-color: var(--blue-600); background: var(--blue-50); transform: translateY(-1px); color: var(--c-text); }
.err-qlink.amber:hover { border-color: var(--amber-600); background: var(--amber-50); }
.err-divider { height: 1px; background: var(--c-border); margin: 0 0 1.4rem; }
.err-foot-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.err-btn-primary { display: inline-flex; align-items: center; gap: .4rem; background: var(--c-primary); color: #fff; font-weight: 600; font-size: .875rem; text-decoration: none; padding: .55rem 1.1rem; border-radius: var(--r-sm); }
.err-btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.err-text-link { font-size: .875rem; font-weight: 500; color: var(--c-text-3); text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.err-text-link:hover { color: var(--c-text-2); text-decoration: underline; }

/* ── 52. ShoppingList Index / View redesign ───────────────────────────────
   Real counts only (own + shared list count, bought/total items per list
   and per category) — the mockup's week-switcher and per-item recipe
   cross-reference were dropped (no such navigation or ingredient↔recipe
   link exists in ShoppingListRepository/ViewModel). All JS ids/classes
   (data-item-id, #newItemName, #addItemBtn, #deliBtn, .odstrani-deli,
   #vseBoughtBanner, .kupil-ime) kept exact; the one JS change (manual-add
   now creates its own category block instead of using the old single
   .list-group, since the list is now split into one list-group per
   category) is called out above its block in the script itself. */
.sl-hero { display: flex; align-items: center; gap: 1rem; background: var(--green-50); border-radius: var(--r-lg); padding: 1.1rem 1.4rem; margin-bottom: 1.25rem; }
.sl-hero-icon { font-size: 1.6rem; color: var(--green-700); flex-shrink: 0; }
.sl-hero p { color: var(--green-800); font-size: .875rem; }
.sl-card { border: 1px solid var(--c-border); border-radius: var(--r); margin-bottom: .75rem; background: var(--c-surface); overflow: hidden; }
.sl-card.done { border-color: var(--green-200); }
.sl-card-body { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.15rem; }
.sv-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; margin-bottom: 1rem; }
.sv-stat { display: flex; align-items: center; gap: .75rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); padding: .85rem 1rem; }
.sv-stat-icon { width: 2.2rem; height: 2.2rem; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.sv-stat-icon.g { background: var(--green-100); color: var(--green-700); }
.sv-stat-icon.b { background: var(--blue-100); color: var(--blue-800); }
.sv-stat-num { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; line-height: 1; }
.sv-stat-num span { font-size: .75rem; color: var(--c-text-3); font-weight: 600; }
.sv-stat-lbl { font-size: .72rem; color: var(--c-text-2); margin-top: .15rem; }
.sv-cat-block { border-radius: var(--r); overflow: hidden; margin-bottom: 1rem; border: 1px solid var(--c-border); }
.sv-cat-band { padding: .65rem 1rem; display: flex; align-items: center; justify-content: space-between; color: #fff; }
.sv-cat-count { font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.25); padding: .15rem .55rem; border-radius: 999px; }
.sv-cat-block.green .sv-cat-band { background: linear-gradient(120deg, var(--green-600), var(--green-700)); }
.sv-cat-block.red .sv-cat-band   { background: linear-gradient(120deg, #f06a6a, var(--red-600)); }
.sv-cat-block.blue .sv-cat-band  { background: linear-gradient(120deg, #7b90ff, var(--blue-600)); }
.sv-cat-block.amber .sv-cat-band { background: linear-gradient(120deg, #ffcc4d, var(--amber-600)); }

/* ── 53. Trening/Povezi (device pairing) redesign ─────────────────────────
   RFC 8628 device-flow approval screen — Koda arrives pre-filled via query
   string from the game, never manually typed, so the mockup's manual
   code-entry grid, QR box and "connected devices" list were all dropped
   (none of that exists in PoveziModel). All 6 real states (pending/
   approved/denied/not-found/already-used/pro-required) kept, with their
   exact Approve/Deny forms and hidden Koda field untouched. */
.pov-wrap { max-width: 520px; margin: 1.5rem auto 2rem; }
.pov-hero { background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-600) 100%); border-radius: var(--r-xl) var(--r-xl) 0 0; color: #fff; padding: 2rem 1.5rem 2.5rem; text-align: center; }
.pov-hero.ok { background: linear-gradient(135deg, var(--green-800) 0%, var(--green-600) 100%); }
.pov-hero.neutral { background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-500) 100%); }
.pov-eyebrow { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: .3rem .8rem; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.pov-hero h1 { font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; margin-bottom: .4rem; color: #fff; }
.pov-link-graphic { display: flex; align-items: center; justify-content: center; gap: 0; margin: 1.6rem auto 0; max-width: 260px; }
.pov-link-node { width: 48px; height: 48px; border-radius: 14px; flex: 0 0 auto; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; }
.pov-link-track { flex: 1 1 auto; height: 2px; margin: 0 .5rem; position: relative; background: repeating-linear-gradient(90deg, rgba(255,255,255,.4) 0 6px, transparent 6px 12px); }
.pov-pulse { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--amber-400); box-shadow: 0 0 0 4px rgba(255,194,51,.25); }
.pov-card { background: var(--c-surface); border-radius: 0 0 var(--r-xl) var(--r-xl); box-shadow: 0 20px 48px -20px rgba(18,21,31,.18); padding: 2rem 1.75rem; text-align: center; }
.pov-card h2 { font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; margin: 0 0 .5rem; }
.pov-state-icon { display: inline-flex; width: 3rem; height: 3rem; border-radius: 50%; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; }
.pov-state-icon.ok { background: var(--green-50); color: var(--green-700); }
.pov-state-icon.neutral { background: var(--gray-100); color: var(--gray-600); }
.pov-state-icon.danger { background: var(--red-50); color: var(--red-600); }
.pov-state-icon.amber { background: var(--amber-50); color: var(--amber-700); }
.pov-state-icon.pending { background: var(--blue-50); color: var(--blue-800); }

/* ── 54. Trening/Prenos (download) redesign ───────────────────────────────
   Marketing copy only — version/size/release notes are the real
   TreningGameRelease fields; system-requirement chips are general product
   copy (matches the Trening hub's own camera/no-equipment description),
   not fabricated per-user data. Pro-required/no-release states kept. */
.prn-hero { background: linear-gradient(135deg, var(--gray-900) 0%, var(--blue-800) 100%); border-radius: var(--r-xl); padding: 2.5rem 2rem; color: #fff; margin-bottom: 1.5rem; }
.prn-eyebrow { display: inline-flex; align-items: center; gap: .45rem; background: rgba(255,194,51,.16); border: 1px solid rgba(255,194,51,.4); color: var(--amber-200); font-weight: 700; font-size: .78rem; letter-spacing: .03em; padding: .32rem .8rem; border-radius: 999px; margin-bottom: 1.1rem; }
.prn-hero h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.15; margin-bottom: .9rem; max-width: 36rem; color: #fff; }
.prn-accent { color: var(--green-400); }
.prn-sub { color: rgba(255,255,255,.75); max-width: 36rem; margin-bottom: 1.4rem; font-size: .9375rem; }
.prn-btn-download { display: inline-flex; align-items: center; gap: .5rem; background: linear-gradient(135deg, var(--green-500, #1fd196), var(--green-600)); color: #06281c; font-weight: 700; padding: .7rem 1.3rem; border-radius: var(--r-sm); }
.prn-btn-download:hover { color: #06281c; transform: translateY(-1px); }
.prn-download-meta { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .3rem .7rem; }
.prn-download-meta strong { color: rgba(255,255,255,.85); }
.prn-sysreq-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.prn-sysreq-chip { display: inline-flex; align-items: center; gap: .35rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.75); font-size: .78rem; padding: .35rem .7rem; border-radius: 999px; }
.prn-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 760px) { .prn-strip { grid-template-columns: 1fr; } }
.prn-strip-item { display: flex; gap: .85rem; align-items: flex-start; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); padding: 1rem; }
.prn-strip-icon { flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.prn-strip-icon.green { background: var(--green-100); color: var(--green-700); }
.prn-strip-icon.blue { background: var(--blue-100); color: var(--blue-800); }
.prn-strip-icon.amber { background: var(--amber-100); color: var(--amber-800); }
.prn-strip-item h4 { font-size: .9rem; font-weight: 700; margin-bottom: .2rem; }
.prn-strip-item p { font-size: .8rem; color: var(--c-text-2); margin: 0; }

/* ── 55. Admin shared tab-strip (_AdminNav.cshtml) ────────────────────────
   Replaces Bootstrap nav-pills with a tab-strip matching the design-shotgun
   admin mockups — used by all 19 Admin/* pages via the shared partial, so
   this one change uplifts every admin page's top nav regardless of whether
   its own page content has been redesigned yet. Same links/active-state
   C# logic, markup only swaps nav-link classes for admin-tabs/admin-tabs a. */
.admin-tabs { display: flex; flex-wrap: wrap; gap: .15rem; border-bottom: 1px solid var(--c-border); padding-bottom: 0; }
.admin-tabs a { font-size: .82rem; font-weight: 600; color: var(--c-text-2); text-decoration: none; padding: .5rem .8rem; border-radius: var(--r-sm) var(--r-sm) 0 0; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: .35rem; }
.admin-tabs a:hover { color: var(--c-text); background: var(--gray-50); }
.admin-tabs a.active { color: var(--c-primary-dark); border-bottom-color: var(--c-primary); background: var(--green-50); }

/* ── 56. Admin/Index (dashboard) redesign ─────────────────────────────────
   Every KPI is a real IndexModel property; the mockup's fake "+6 today"
   deltas and MRR sparkline were dropped (no daily-signup-delta or MRR
   history is tracked) — replaced with a real "% of base" figure derived
   from the already-fetched counts. The mockup's "recent signups" list was
   also dropped (IndexModel has no per-user recent-registration query, only
   aggregate counts — adding one would mean a new feature, not a reskin).
   Quick-links point to the real existing Admin/* routes (built or not yet
   redesigned — all 19 pages already exist). */
.akpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; }
@media (max-width: 900px) { .akpi-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .akpi-row { grid-template-columns: 1fr; } }
.akpi { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1rem 1.1rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.akpi-icon { width: 2.1rem; height: 2.1rem; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; margin-bottom: .6rem; }
.akpi-icon.green { background: var(--green-100); color: var(--green-700); }
.akpi-icon.amber { background: var(--amber-100); color: var(--amber-700); }
.akpi-icon.blue { background: var(--blue-100); color: var(--blue-800); }
.akpi-icon.gray { background: var(--gray-100); color: var(--gray-600); }
.akpi-value { font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.akpi-label { font-size: .76rem; color: var(--c-text-2); font-weight: 600; margin-top: .2rem; }
.akpi-delta { font-size: .72rem; color: var(--c-text-3); font-weight: 600; margin-top: .4rem; }
.admin-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); box-shadow: 0 1px 2px rgba(0,0,0,.05); overflow: hidden; margin-bottom: 1rem; }
.admin-card-hdr { padding: .9rem 1.15rem; border-bottom: 1px solid var(--c-border); display: flex; align-items: center; justify-content: space-between; }
.admin-card-hdr h2 { font-size: .9375rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: .5rem; }
.admin-card-link { font-size: .78rem; color: var(--c-text-2); font-weight: 600; text-decoration: none; }
.admin-card-link:hover { color: var(--c-primary-dark); }
.aevt-badge { font-size: .68rem; font-weight: 700; padding: .2rem .5rem; border-radius: 6px; background: var(--blue-50); color: var(--blue-800); }
.aqlinks { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: 1rem 1.1rem; }
.aqlink { display: flex; flex-direction: column; gap: .4rem; padding: .8rem .85rem; border-radius: var(--r-sm); border: 1px solid var(--c-border); text-decoration: none; color: var(--c-text); transition: all .12s; }
.aqlink:hover { border-color: var(--c-primary); background: var(--green-50); transform: translateY(-1px); color: var(--c-text); }
.aqlink .ic { width: 1.9rem; height: 1.9rem; border-radius: var(--r-xs); display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.aqlink .ic.green { background: var(--green-100); color: var(--green-700); }
.aqlink .ic.amber { background: var(--amber-100); color: var(--amber-700); }
.aqlink .ic.blue { background: var(--blue-100); color: var(--blue-800); }
.aqlink .ic.gray { background: var(--gray-100); color: var(--gray-600); }
.aqlink .lbl { font-size: .8rem; font-weight: 700; }
.aqlink .sub { font-size: .68rem; color: var(--c-text-3); margin-top: -.25rem; }

/* ── 57. Admin/Users redesign ──────────────────────────────────────────────
   Row-card list replacing the dense table — every field (email, plan,
   status, expiry, AI call counts, last login) is unchanged real data. The
   mockup's left-rail plan/status filter counts were dropped (UsersModel
   only supports Search+Page, no plan/status filter querystring or handler
   — faking clickable filter counts with no backing would be dishonest UI).
   All 5 real handlers (ToggleBeta, ChangePlan select-onchange-submit,
   ToggleLock with its confirm(), DeleteUser with its confirm()) kept
   byte-for-byte, only re-skinned as icon buttons instead of text buttons. */
.auser-list { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; }
.arow { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem; border-bottom: 1px solid var(--gray-100); flex-wrap: wrap; }
.auser-list .arow:last-child { border-bottom: 0; }
.arow:hover { background: var(--gray-50); }
.arow.is-locked { background: var(--red-50); }
.arow.is-locked:hover { background: #ffe1e4; }
.arow-avatar { width: 2.4rem; height: 2.4rem; border-radius: var(--r-sm); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 700; font-size: .78rem; color: #fff; }
.arow-avatar.free { background: var(--gray-400); }
.arow-avatar.premium { background: var(--green-600); }
.arow-avatar.pro { background: var(--amber-600); }
.arow-identity { min-width: 0; flex: 1 1 220px; }
.arow-identity .name { font-weight: 700; font-size: .87rem; }
.arow-identity .sub { font-size: .76rem; color: var(--c-text-3); text-transform: capitalize; }
.apill { display: inline-flex; align-items: center; font-size: .68rem; font-weight: 700; padding: .22rem .6rem; border-radius: 999px; flex-shrink: 0; }
.apill.free { background: var(--gray-100); color: var(--gray-600); }
.apill.premium { background: var(--green-100); color: var(--green-800); }
.apill.pro { background: var(--amber-100); color: var(--amber-800); }
.apill.beta { background: var(--blue-100); color: var(--blue-800); font-size: .6rem; padding: .1rem .4rem; }
.arow-meta { display: flex; align-items: center; gap: 1.2rem; flex-shrink: 0; flex-wrap: wrap; }
.meta-item { display: flex; flex-direction: column; gap: .1rem; min-width: 70px; }
.meta-item .k { font-size: .6rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-300); font-weight: 700; }
.meta-item .v { font-size: .78rem; color: var(--c-text-2); font-weight: 500; }
.meta-item .v.warn-red { color: var(--red-600); font-weight: 700; }
.meta-item .v.warn-amber { color: var(--amber-700); font-weight: 700; }
.arow-actions { display: flex; gap: .35rem; flex-shrink: 0; align-items: center; }
.abtn { width: 1.9rem; height: 1.9rem; border-radius: var(--r-xs); border: 1px solid var(--c-border); background: #fff; color: var(--c-text-2); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; transition: all .12s; }
.abtn:hover { border-color: var(--blue-600); color: var(--blue-800); background: var(--blue-50); }
.abtn.danger:hover { border-color: var(--red-600); color: var(--red-800); background: var(--red-50); }
.abtn.ok:hover { border-color: var(--green-600); color: var(--green-700); background: var(--green-50); }
@media (max-width: 900px) { .arow-meta { gap: .6rem; } .meta-item { min-width: 55px; } }

/* ── 58. Admin/UserDetail redesign ─────────────────────────────────────────
   Hero card uses only real UserDetailModel fields (MealPlanCount/XP/member
   duration derived from UstvarjenoOb/LastLoginAt). The mockup's Impersonate/
   reset-password/send-email/grant-free-Pro/delete-account/support-tickets-
   list buttons were ALL dropped — UserDetailModel has exactly one handler
   (ToggleLock), kept with its exact confirm() text. "Sistemski podatki"
   keeps only the two real IDs (dropped the mockup's fabricated
   language/platform fields — nothing tracks those). */
.aud-hero { background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 45%, var(--blue-800) 130%); border-radius: var(--r-lg); padding: 1.75rem 2rem; color: #fff; }
.aud-avatar { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: linear-gradient(160deg, rgba(255,255,255,.3), rgba(255,255,255,.08)); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; border: 2px solid rgba(255,255,255,.35); flex-shrink: 0; color: #fff; }
.aud-badge { font-weight: 700; font-size: .75rem; padding: .3em .75em; border-radius: 999px; display: inline-flex; align-items: center; gap: .35em; }
.aud-badge.plan-free { background: rgba(255,255,255,.18); color: #fff; }
.aud-badge.plan-premium, .aud-badge.plan-pro { background: rgba(255,255,255,.95); color: var(--green-800); }
.aud-badge.locked { background: var(--red-600); color: #fff; }
.aud-email { color: rgba(255,255,255,.85); font-size: .9rem; margin-top: .25rem; }
.aud-actions { align-self: flex-start; }
.abtn-glass { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: var(--r-sm); padding: .45rem .9rem; font-size: .8125rem; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.abtn-glass:hover { background: rgba(255,255,255,.24); }
.aud-stats { display: flex; gap: 2.25rem; flex-wrap: wrap; margin-top: 1.25rem; }
.aud-stats .v { font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.aud-stats .l { font-size: .72rem; color: rgba(255,255,255,.7); margin-top: .3rem; text-transform: uppercase; letter-spacing: .05em; }
.aud-kv { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px dashed var(--c-border); font-size: .875rem; }
.aud-kv:last-child { border-bottom: 0; }
.aud-kv .k { color: var(--c-text-2); }
.aud-kv .v { font-weight: 600; text-align: right; }
.aud-kv .v.mono { font-family: ui-monospace, Menlo, monospace; font-size: .76rem; font-weight: 400; }
.aud-subhdr { font-weight: 700; color: var(--c-text); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; margin: 1rem 0 .5rem; }
.aud-minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: .6rem; }
.aud-mini { background: var(--gray-50); border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: .7rem; text-align: center; }
.aud-mini .v { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: var(--green-700); }
.aud-mini .l { font-size: .68rem; color: var(--c-text-2); margin-top: .15rem; }

/* ── 59. Admin/Support redesign ────────────────────────────────────────────
   Reuses the Podpora/Index chat-bubble pattern (section 45) for visual
   consistency between the user-facing and admin support views. Added a
   real client-side status filter (same technique as Notifications' filter
   chips, section 43) — all tickets are already server-rendered, so this is
   pure DOM show/hide, not a fabricated filter. The mockup's two-pane
   master-detail helpdesk UI (click a row, thread updates on the right) was
   NOT built — would require new client-side ticket-switching state with no
   server-side pagination/API backing; kept the real stacked-card structure
   (every Reply/Close form untouched) instead of inventing that interaction. */
.asup-hero { display: flex; align-items: center; gap: 1rem; background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); border-radius: var(--r-lg); padding: 1.1rem 1.4rem; color: #fff; }
.asup-hero h2 { color: #fff; }
.asup-hero-icon { font-size: 1.6rem; flex-shrink: 0; }
.asup-hero p { opacity: .85; font-size: .875rem; }
.asup-filter-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.asup-filter-chip { font-size: .8rem; font-weight: 600; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--c-border); color: var(--c-text-2); background: var(--c-surface); cursor: pointer; }
.asup-filter-chip.active { background: var(--gray-800); color: #fff; border-color: var(--gray-800); }
.asup-ticket { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1.1rem 1.25rem; border-left: 4px solid var(--c-border); }
.asup-ticket.open { border-left-color: var(--amber-600); }
.asup-ticket.answered { border-left-color: var(--green-600); }
.asup-ticket-hdr { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: .75rem; }
.asup-status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: .35rem; }
.asup-status-dot.open { background: var(--amber-700); }
.asup-status-dot.answered { background: #fff; }
.asup-status-dot.closed { background: var(--gray-500); }
.asup-bubble { max-width: 85%; padding: .7rem 1rem; border-radius: var(--r); margin-bottom: .6rem; font-size: .9rem; }
.asup-bubble.mine { background: var(--green-50); margin-left: auto; border-top-right-radius: 3px; }
.asup-bubble.admin { background: var(--gray-100); border-top-left-radius: 3px; }
.asup-bubble-meta { font-size: .7rem; color: var(--c-text-3); margin-top: .3rem; }

/* ── 60. Admin/Settings redesign ───────────────────────────────────────────
   Sticky category sidebar with anchor links (same real client-side anchor-
   nav pattern as Navodila/Terms) grouping the exact same 9 cards into
   4 "live" + 3 "read-only" categories — every single form (Save,
   ToggleRegistration, ToggleFoodDb, SetShoppingListMode, SavePricing,
   SaveAlert, GenerateVapid), its inputs, confirm() dialogs and live/
   read-only badges are byte-for-byte untouched. The mockup's per-field
   AJAX inline-save buttons were NOT built — the real page has no per-field
   save endpoint, only whole-card POSTs, so a fake inline-save button would
   be non-functional UI. */
.aset-shell { display: flex; align-items: flex-start; gap: 1.5rem; }
.aset-sidenav { width: 220px; flex-shrink: 0; position: sticky; top: 1rem; padding: 1rem .75rem; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface); }
.aset-sidenav-title { font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: var(--c-text-3); font-weight: 700; padding: 0 .5rem; margin-bottom: .5rem; }
.aset-sidenav a { display: flex; align-items: center; gap: .55rem; padding: .5rem .55rem; border-radius: var(--r-sm); color: var(--c-text-2); text-decoration: none; font-size: .82rem; font-weight: 600; margin-bottom: .1rem; }
.aset-sidenav a:hover { background: var(--gray-50); color: var(--c-text); }
.aset-sidenav hr { border-color: var(--c-border); margin: .75rem .25rem; }
.aset-content { flex: 1; min-width: 0; }
.aset-cat { margin-bottom: 2.25rem; scroll-margin-top: 1rem; }
.aset-cat-hdr { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .9rem; }
.aset-cat-hdr h2 { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; margin: 0; }
.aset-tag-live { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--green-700); background: var(--green-50); border: 1px solid var(--green-200); border-radius: 4px; padding: .15em .5em; }
.aset-tag-ro { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--gray-600); background: var(--gray-100); border-radius: 4px; padding: .15em .5em; }
@media (max-width: 900px) { .aset-shell { flex-direction: column; } .aset-sidenav { width: 100%; position: static; } }

/* ── 61. 10-page Admin-tooling batch (Analytics, Telemetry, Events,
   AiStatus, AiCosts, Feedback, FoodReports, Logs, Update, Dev/Unlock) ──────
   All real data: Analytics/Telemetry/AiCosts keep their exact Chart.js
   canvases/scripts untouched, just reskin the surrounding cards into
   .admin-card/.akpi-row/.akpi (reused from the Admin/Index batch). The
   Analytics mockup's period toggle, KPI deltas, sparklines and multi-cohort
   retention-curve chart were all dropped (no prior-period/delta/cohort-curve
   data exists — only the single current-window numbers AnalyticsModel
   already computes). AiStatus/Update got only light touches (icon'd card
   headers, a shared hero banner) given how many real conditionals they
   carry — Update's destructive "Obnovitev baze" card was deliberately left
   completely untouched, including its confirm-phrase form. Dev/Unlock kept
   its single real Code field/handler, just centered in a card.
   Discovery this batch: the FULL Bootstrap Icons font (not just the 87-icon
   Html.Icon() subset) is already vendored at
   wwwroot/lib/bootstrap-icons/{bootstrap-icons.css,fonts/} and used via
   plain `<i class="bi bi-name">` in the pre-existing Logs.cshtml/Update.cshtml
   — confirmed every new icon name used here exists in that CSS before using
   it (same discipline as checking Html.Icon()'s vendored SVG subset). */
.afb-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
@media (max-width: 600px) { .afb-summary { grid-template-columns: 1fr; } }
.afb-tile { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 1.1rem; text-align: center; }
.afb-tile .emoji { font-size: 2rem; }
.afb-tile .v { font-family: var(--f-display); font-size: 1.6rem; font-weight: 800; }
.afb-tile .l { font-size: .8rem; color: var(--c-text-2); margin-top: .2rem; }
.afb-tile.happy .v { color: var(--green-700); }
.afb-tile.neutral .v { color: var(--amber-700); }
.afb-tile.unhappy .v { color: var(--red-600); }
.devu-wrap { max-width: 440px; margin: 2rem auto; }
.devu-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-xl); box-shadow: 0 20px 48px -20px rgba(18,21,31,.18); padding: 1.75rem; }
.devu-icon-chip { width: 2.4rem; height: 2.4rem; border-radius: var(--r-sm); background: linear-gradient(135deg, var(--red-600), var(--gray-800)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.devu-warn { margin-top: 1rem; font-size: .78rem; color: var(--c-text-3); display: flex; align-items: flex-start; gap: .4rem; }

/* ── 62. Final 6-page batch (Admin: TreningReleases, TreningLogs,
   ExerciseGifs, Manufacta, BulkEmail; user-facing: Trening/History) ───────
   Completes the full ~55-page design-shotgun backlog. ExerciseGifs/
   Manufacta/BulkEmail got visual-shell-only treatment (icon'd card headers
   only) — all three carry real destructive or irreversible actions
   (GIF-cache wipe, Manufacta cert trust/invoice retry, mass-email-to-all-
   users) with dense AJAX JS keyed by specific element ids, so every id/
   class/handler was left 100% untouched. Trening/History's hero uses only
   real HistoryModel fields (SkupajMinut/SkupajKalorij/VsiTreningi.Count,
   average duration derived from the first two) — the mockup's "4 weeks in
   a row, best streak ever" claim was dropped since no streak-tracking
   exists for Trening history (Growth/Dashboard has an unrelated streak
   system). The real heatmap/weekChart/table element ids were kept exact. */
.thist-hero { background: linear-gradient(165deg, var(--gray-900), #1a1f33 60%, var(--gray-800)); border-radius: var(--r-xl); padding: 1.75rem 1.75rem 1.5rem; color: #fff; }
.thist-eyebrow { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--amber-400); margin-bottom: .3rem; }
.thist-back { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: #cbd5e1; border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-sm); padding: .45rem .85rem; text-decoration: none; background: rgba(255,255,255,.04); }
.thist-back:hover { color: #fff; background: rgba(255,255,255,.1); }
.thist-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); }
.thist-stats .v { font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; color: #fff; line-height: 1.1; }
.thist-stats .l { font-size: .72rem; color: #8d97b3; margin-top: .15rem; }
@media (max-width: 560px) { .thist-stats { grid-template-columns: repeat(2, 1fr); row-gap: .9rem; } }
.thist-type-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.thist-type-pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; padding: .4rem .85rem; border-radius: 999px; }
.thist-type-pill .n { font-weight: 400; opacity: .75; }
.thist-type-pill.green { background: var(--green-100); color: var(--green-800); }
.thist-type-pill.blue { background: var(--blue-100); color: var(--blue-800); }
.thist-type-pill.amber { background: var(--amber-100); color: var(--amber-800); }
.thist-type-pill.gray { background: var(--gray-100); color: var(--gray-700); }

/* ── 63. Index (public landing page) full redesign — "Product-led" ───────
   Implements the user-approved Product-led direction from a standalone
   /design-shotgun exploration (hand-coded mockups; no $D/$B binaries
   available in this environment). Supersedes the earlier hero-only
   "Momentum" pass (previous contents of this section) — this covers the
   full page: a dark hero + feature band with a real-screenshot collage
   (dashboard.jpg + progress.jpg), a two-photo split band (meal-prep-
   containers.jpg + quinoa-jars.jpg — replaces a single wide crop that
   visibly repeated the same meal-prep tray), and a new Pro upsell banner
   surfacing real Pro-exclusive features already itemized in the pricing
   cards below (Pomnjenje okusov, Sestavine ki jih imate doma,
   JedilnikTrening, Kalorije prilagojene vadbi — nothing fabricated). The
   hero/feature band use a fixed dark ink palette regardless of the site's
   light/dark toggle, matching the existing pattern of other branded dark
   hero bands (e.g. Trening/History's .thist-hero). */
:root {
  --idx-ink-900: #0a0c14; --idx-ink-800: #11141f; --idx-ink-700: #181c2b; --idx-ink-600: #22273a;
  --idx-ink-border: rgba(255,255,255,.1);
  --idx-itxt: #f3f5fb; --idx-itxt-2: #a6aec4; --idx-itxt-3: #717a94;
}

.idx-hero {
  position: relative; overflow: hidden; padding: 4rem 0 4.5rem; border-radius: var(--r-lg);
  background:
    radial-gradient(1000px 520px at 85% -10%, rgba(16,185,129,.2), transparent 60%),
    radial-gradient(800px 500px at 5% 100%, rgba(99,120,255,.18), transparent 60%),
    var(--idx-ink-900);
}
.idx-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
@media (max-width: 960px) { .idx-hero-grid { grid-template-columns: 1fr; } }
.idx-eyebrow { display: inline-flex; align-items: center; gap: .45rem; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); color: var(--green-400); font-weight: 700; font-size: .76rem; padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1.4rem; }
.idx-hero h1 { font-family: var(--f-display); font-size: clamp(2.2rem, 4.4vw, 3.1rem); line-height: 1.1; letter-spacing: -.02em; color: #fff; margin-bottom: 1.1rem; }
.idx-accent { background: linear-gradient(100deg, var(--green-400), #8396ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.idx-hero-sub { color: var(--idx-itxt-2); font-size: 1.05rem; max-width: 32rem; margin-bottom: 1.75rem; }
.idx-btn-bright { display: inline-flex; align-items: center; gap: .5rem; background: linear-gradient(135deg, var(--green-400), var(--green-600)); color: #06281c; font-weight: 700; font-size: 1.05rem; padding: .95rem 1.8rem; border-radius: var(--r); box-shadow: 0 14px 30px -10px rgba(16,185,129,.55); border: none; }
.idx-btn-bright:hover { color: #06281c; filter: brightness(1.05); }
.idx-link-ghost { display: inline-flex; align-items: center; font-weight: 600; font-size: 1rem; color: var(--idx-itxt-2); padding: .95rem 1.3rem; border-radius: var(--r); text-decoration: none; border: 1.5px solid var(--idx-ink-border); }
.idx-link-ghost:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.trust-micro { font-size: .82rem; color: var(--idx-itxt-3); }

.idx-collage { position: relative; height: 420px; }
.idx-shot { position: absolute; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -16px rgba(0,0,0,.6); border: 1px solid var(--idx-ink-border); }
.idx-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.idx-shot--primary { width: 230px; height: 400px; left: 18%; top: 0; z-index: 2; transform: rotate(-4deg); }
.idx-shot--secondary { width: 200px; height: 360px; right: 5%; top: 50px; z-index: 1; transform: rotate(6deg); opacity: .92; }
.idx-badge-float { position: absolute; left: 0; bottom: 10px; z-index: 3; background: var(--idx-ink-700); border: 1px solid var(--idx-ink-border); border-radius: 12px; padding: .7rem 1rem; display: flex; align-items: center; gap: .6rem; font-size: .82rem; font-weight: 700; color: #fff; box-shadow: 0 16px 32px -12px rgba(0,0,0,.5); }

.idx-features { padding: 3.5rem 0; background: var(--idx-ink-800); border-top: 1px solid var(--idx-ink-border); }
.idx-feat-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 860px) { .idx-feat-cols { grid-template-columns: 1fr; } }
.idx-feat-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem 0; border-bottom: 1px solid var(--idx-ink-border); }
.idx-feat-item:last-child { border-bottom: 0; }
.idx-feat-ic { width: 2.6rem; height: 2.6rem; border-radius: 10px; background: var(--idx-ink-600); border: 1px solid var(--idx-ink-border); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.idx-feat-item--green .idx-feat-ic { color: var(--green-400); }
.idx-feat-item--indigo .idx-feat-ic { color: #8396ff; }
.idx-feat-item--amber .idx-feat-ic { color: var(--amber-400); }
.idx-feat-item h6 { color: #fff; }
.idx-feat-item p { color: var(--idx-itxt-3); }
.idx-stat-panel { background: var(--idx-ink-700); border: 1px solid var(--idx-ink-border); border-radius: 16px; padding: 1.75rem; display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; }
.idx-stat-row { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 1.1rem; border-bottom: 1px solid var(--idx-ink-border); }
.idx-stat-row:last-child { border-bottom: 0; padding-bottom: 0; }
.idx-stat-row .l { color: var(--idx-itxt-3); font-size: .82rem; }
.idx-stat-row .n { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; color: #fff; }

.idx-photo-split { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--c-border); aspect-ratio: 2.6/1; }
.idx-photo-split img { width: 100%; height: 100%; object-fit: cover; display: block; }

.idx-pro-banner { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 2.5rem; background: radial-gradient(700px 320px at 90% 0%, rgba(255,194,51,.18), transparent 60%), var(--idx-ink-900); }
.idx-pro-banner-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; position: relative; z-index: 1; }
@media (max-width: 860px) { .idx-pro-banner-grid { grid-template-columns: 1fr; } }
.idx-pro-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.idx-pro-perks li { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; background: var(--idx-ink-700); border: 1px solid var(--idx-ink-border); border-radius: 10px; padding: .75rem .9rem; }
.idx-pro-perks strong { display: block; font-size: .9rem; color: #fff; }
.idx-pro-perks small { color: var(--idx-itxt-3); font-size: .78rem; }

/* ── 64. Fastic-inspired visual polish pass ───────────────────────────────
   Pure presentation, no new data. Scoped to new wrapper classes (.onb-progress,
   .goal-card-icon, .bmi-gauge-*, .growth-week-*) so none of this touches the
   shared .wizard-steps/.step-tab/.activity-card/.goal-card rules the
   Goals/Setup wizard (section 32) still relies on. */

/* Onboarding/Setup — segmented progress bar replacing the numbered step dots.
   Same <button class="step-tab"> elements/classList-toggle JS as before — only
   restyled: flattened into thin bar segments, number hidden visually (still
   readable by screen readers) but the text label below shows "Korak X od 6". */
.onb-progress .step-tab {
  flex: 1 1 0; min-width: 24px; height: 8px; border-radius: 99px; padding: 0;
  font-size: 0; line-height: 0; border: none;
}
.onb-progress .step-tab.btn-outline-secondary { background: var(--c-border); }
.onb-progress .step-tab.btn-secondary { background: var(--c-primary); border-color: var(--c-primary); }
.onb-progress .step-tab.btn-success {
  background: var(--c-primary); border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-bg);
}
.onb-progress-label { font-weight: 600; }

/* Onboarding goal cards — larger colorful icon badge instead of a bare glyph,
   plus a stronger selected-card border (shared with Goals/Setup's cards too,
   a consistent upgrade rather than a one-off look). */
.goal-card-icon {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; font-size: 1.375rem;
  display: flex; align-items: center; justify-content: center; background: var(--c-primary-bg);
}
.activity-card.border-success, .goal-card.border-success, .speed-card.border-success {
  border-width: 2px !important;
}

/* Progress/Index BMI gauge — a 4-segment horizontal bar sized to the real
   BMI thresholds (14/26/20/40%), with a marker at the user's own BMI. */
.bmi-gauge-wrap { margin-bottom: 1.25rem; }
.bmi-gauge-head { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .5rem; flex-wrap: wrap; }
.bmi-gauge-value { font-weight: 800; font-size: 1.15rem; }
.bmi-gauge-cat { font-weight: 600; }
.bmi-gauge-bar { position: relative; display: flex; height: 10px; border-radius: 99px; margin-bottom: .5rem; }
.bmi-seg { height: 100%; }
.bmi-seg:first-child { border-top-left-radius: 99px; border-bottom-left-radius: 99px; }
.bmi-seg:last-child { border-top-right-radius: 99px; border-bottom-right-radius: 99px; }
.bmi-seg-under  { flex-basis: 14%; background: #ffc107; }
.bmi-seg-normal { flex-basis: 26%; background: #28a745; }
.bmi-seg-over   { flex-basis: 20%; background: #fd7e14; }
.bmi-seg-obese  { flex-basis: 40%; background: #dc3545; }
.bmi-gauge-marker {
  position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-surface); border: 3px solid var(--c-text); transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.bmi-gauge-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .75rem; color: var(--c-text-3); }
.bmi-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }

/* Growth/Dashboard weekly streak-circle widget — Mon–Sun row under the
   existing flame/level hero, checkmarks derived from the already-loaded
   daily-login streak (Current + ActiveToday), no new queries. */
.growth-week-strip { display: flex; justify-content: space-between; gap: .4rem; margin: 1.25rem 0; }
.growth-week-day { display: flex; flex-direction: column; align-items: center; gap: .375rem; flex: 1; }
.growth-week-circle {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--c-border);
  display: flex; align-items: center; justify-content: center; color: var(--c-text-3); font-size: .95rem;
}
.growth-week-circle.is-checked { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.growth-week-circle.is-future { border-style: dashed; opacity: .5; }
.growth-week-day.is-today .growth-week-circle { box-shadow: 0 0 0 3px var(--c-primary-bg); }
.growth-week-lbl { font-size: .72rem; color: var(--c-text-3); font-weight: 600; }

/* ── 65. Bottom tab bar (mobile) ──────────────────────────────────────────
   Shown only below 768px — the top navbar (.app-nav, z-index 1030) stays the
   only nav above that width. z-index 1040 sits above .app-nav but below the
   toast container (1100) and #a2hsBanner (9100); when that install banner is
   visible, _Layout's JS adds .has-a2hs-banner to <body>, which shifts this
   bar up by the banner's height so the two fixed-to-bottom elements never
   overlap instead of fighting over the same z-index range. */
.bottom-nav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
  background: var(--c-surface); border-top: 1px solid var(--c-border);
  padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom, 0px));
  align-items: center; justify-content: space-between; gap: .25rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,.08);
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  flex: 1; text-decoration: none; color: var(--c-text-3); font-size: .68rem; font-weight: 600;
  padding: .3rem 0;
}
.bottom-nav-item i { font-size: 1.25rem; }
.bottom-nav-item.is-active { color: var(--c-primary); }
.bottom-nav-fab {
  width: 48px; height: 48px; border-radius: 50%; border: none; flex-shrink: 0;
  background: var(--c-primary); color: #fff; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin-top: -22px; box-shadow: 0 4px 10px rgba(0,0,0,.25);
}
.bottom-nav-fab:active { background: var(--c-primary-dark); }
body.has-a2hs-banner .bottom-nav { bottom: 58px; }

@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  .app-content { padding-bottom: 4.5rem; }
  .app-footer { padding-bottom: 4.5rem; }
}

/* ── 66. Progress/Index Wellness Score ────────────────────────────────── */
.wellness-today-badge { display: flex; align-items: baseline; gap: .15rem; }
.wellness-today-badge .num { font-family: var(--f-display); font-size: 1.75rem; font-weight: 800; color: var(--c-primary); }
.wellness-today-badge .max { font-size: .9rem; color: var(--c-text-3); font-weight: 600; }
.wellness-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .78rem; color: var(--c-text-2); }
.wellness-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }

/* ── 67. Mobile nav dropdown flattening ───────────────────────────────────
   Below the navbar-expand-lg breakpoint, the Jedilnik/Dnevnik/Skupnost
   dropdowns already sit inside the hamburger's expanded collapse — forcing
   them permanently open here removes the extra "tap to expand" step so
   opening the hamburger shows every item in one tap instead of two.
   Bootstrap's own JS still toggles its .show class on click; that's now a
   harmless no-op since display is already forced open. Scoped to this one
   breakpoint so desktop dropdowns keep their normal click-to-open behavior. */
@media (max-width: 991.98px) {
  .app-nav .dropdown-menu {
    display: block !important;
    position: static !important;
    box-shadow: none;
    border: 0;
    padding-left: 1rem;
    background: transparent;
  }
}
