﻿:root {
  --font-primary: 'Inter', sans-serif;

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: rgba(79, 70, 229, 0.12);
  --primary-soft-strong: rgba(79, 70, 229, 0.18);

  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  --bg-light: #f5f7fb;
  --bg-light-2: #eef2ff;
  --surface-light: rgba(255, 255, 255, 0.84);
  --surface-light-solid: #ffffff;
  --surface-light-soft: #f8fafc;
  --text-light: #111827;
  --text-light-muted: #6b7280;
  --border-light: rgba(15, 23, 42, 0.08);
  --shadow-light: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-light-soft: 0 6px 18px rgba(15, 23, 42, 0.06);

  --bg-dark: #081120;
  --bg-dark-2: #0f172a;
  --surface-dark: rgba(15, 23, 42, 0.76);
  --surface-dark-solid: #0f172a;
  --surface-dark-soft: #162033;
  --surface-dark-elevated: #1a2740;
  --text-dark: #f8fafc;
  --text-dark-muted: #94a3b8;
  --border-dark: rgba(148, 163, 184, 0.14);
  --shadow-dark: 0 18px 40px rgba(0, 0, 0, 0.35);
  --shadow-dark-soft: 0 10px 26px rgba(0, 0, 0, 0.24);

  --navbar-height: 74px;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --transition: 0.28s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

[data-bs-theme="dark"] {
  color-scheme: dark;
}

body {
  font-family: var(--font-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--text-light);
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.08), transparent 30%),
    linear-gradient(180deg, var(--bg-light), var(--bg-light-2));
  transition: background var(--transition), color var(--transition);
}

[data-bs-theme="dark"] body {
  color: var(--text-dark);
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.18), transparent 25%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.12), transparent 30%),
    linear-gradient(180deg, var(--bg-dark), var(--bg-dark-2));
}

/* Genel yÃ¼zey sistemi */
.surface-card,
.card,
.modal-content,
.dropdown-menu,
.offcanvas,
.list-group-item {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-light-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

[data-bs-theme="dark"] .surface-card,
[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .modal-content,
[data-bs-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .offcanvas,
[data-bs-theme="dark"] .list-group-item {
  background: var(--surface-dark);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-dark-soft);
  color: var(--text-dark);
}

/* Ã‡ok Ã¶nemli: beyaz kalmÄ±ÅŸ alanlarÄ± zorla toparlar */
[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-body,
[data-bs-theme="dark"] .bg-body-tertiary {
  background-color: var(--surface-dark-solid) !important;
  color: var(--text-dark) !important;
}

[data-bs-theme="dark"] .text-dark {
  color: var(--text-dark) !important;
}

[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .text-secondary {
  color: var(--text-dark-muted) !important;
}

[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] hr {
  border-color: var(--border-dark) !important;
}

/* Ortak panel sÄ±nÄ±fÄ± */
.app-panel {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[data-bs-theme="dark"] .app-panel {
  background: var(--surface-dark);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-dark-soft);
}

/* Input / select / textarea */
.form-control,
.form-select,
.input-group-text {
  border-radius: 14px;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.input-group-text.bg-light {
  background-color: var(--surface-light-soft) !important;
  border-color: var(--border-light);
  color: var(--text-light-muted);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] textarea {
  background-color: rgba(255,255,255,0.04);
  border-color: var(--border-dark);
  color: var(--text-dark);
}

[data-bs-theme="dark"] .form-control::placeholder,
[data-bs-theme="dark"] textarea::placeholder {
  color: var(--text-dark-muted);
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus,
[data-bs-theme="dark"] textarea:focus {
  background-color: rgba(255,255,255,0.06);
  border-color: rgba(99, 102, 241, 0.45);
  color: var(--text-dark);
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.16);
}

[data-bs-theme="dark"] .input-group-text {
  background-color: rgba(255,255,255,0.05);
  border-color: var(--border-dark);
  color: var(--text-dark-muted);
}

[data-bs-theme="dark"] .input-group-text.bg-light {
  background-color: rgba(255,255,255,0.06) !important;
  border-color: var(--border-dark) !important;
  color: var(--text-dark-muted) !important;
}

/* Select options in dark mode */
[data-bs-theme="dark"] option {
  background: var(--surface-dark-solid);
  color: var(--text-dark);
}

/* Table */
[data-bs-theme="dark"] .table {
  color: var(--text-dark);
  border-color: var(--border-dark);
  --bs-table-bg: transparent;
}

[data-bs-theme="dark"] .table > :not(caption) > * > * {
  border-color: var(--border-dark);
}

[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(255,255,255,0.025);
}

[data-bs-theme="dark"] .table-hover > tbody > tr:hover > * {
  background-color: rgba(255,255,255,0.04);
  color: var(--text-dark);
}

[data-bs-theme="dark"] .toast,
[data-bs-theme="dark"] .toast-header,
[data-bs-theme="dark"] .toast-body,
[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer,
[data-bs-theme="dark"] .offcanvas-header,
[data-bs-theme="dark"] .offcanvas-body {
  border-color: var(--border-dark);
  color: var(--text-dark);
}

[data-bs-theme="dark"] .toast {
  background: var(--surface-dark-solid);
  border: 1px solid var(--border-dark);
}

[data-bs-theme="dark"] .toast-header,
[data-bs-theme="dark"] .toast-body {
  background: transparent;
}

[data-bs-theme="dark"] .btn-light,
[data-bs-theme="dark"] .btn.btn-light,
[data-bs-theme="dark"] .btn-outline-secondary {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-dark);
  color: var(--text-dark);
}

[data-bs-theme="dark"] .btn-light:hover,
[data-bs-theme="dark"] .btn.btn-light:hover,
[data-bs-theme="dark"] .btn-outline-secondary:hover,
[data-bs-theme="dark"] .btn-outline-secondary:focus {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.28);
  color: #e0e7ff;
}

[data-bs-theme="dark"] .text-bg-light,
[data-bs-theme="dark"] .badge.text-bg-light {
  background: rgba(255,255,255,0.08) !important;
  color: var(--text-dark) !important;
  border-color: var(--border-dark) !important;
}

[data-bs-theme="dark"] .page-link {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-dark);
  color: var(--text-dark);
}

[data-bs-theme="dark"] .page-link:hover,
[data-bs-theme="dark"] .page-item.active .page-link {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.22);
  color: #e0e7ff;
}

[data-bs-theme="dark"] .nav-tabs {
  border-bottom-color: var(--border-dark);
}

[data-bs-theme="dark"] .nav-tabs .nav-link {
  border-color: transparent;
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-dark) var(--border-dark) transparent;
  color: var(--text-dark) !important;
}

[data-bs-theme="dark"] .progress {
  background-color: rgba(255,255,255,0.08);
}

[data-bs-theme="dark"] .alert {
  border-color: var(--border-dark);
}

[data-bs-theme="dark"] .alert-info {
  background: rgba(14, 165, 233, 0.12);
  color: #bae6fd;
}

[data-bs-theme="dark"] .alert-success {
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
}

[data-bs-theme="dark"] .alert-warning {
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
}

[data-bs-theme="dark"] .alert-danger {
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
}

[data-bs-theme="dark"] .btn-close:not(.btn-close-white) {
  filter: invert(1) grayscale(1) brightness(1.8);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HH NAV  â€” premium SaaS navbar  (BEM prefix: hh-nav / hh-dropdown / hh-drawer)
   NO Bootstrap utility classes used here.
   Dark mode via [data-bs-theme="dark"].
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Custom properties â”€â”€ */
:root {
  --hh-nav-h: 64px;
  --hh-accent: #4f46e5;
  --hh-accent-glow: rgba(79, 70, 229, 0.32);
  --hh-nav-bg: rgba(255, 255, 255, 0.80);
  --hh-nav-border: rgba(0, 0, 0, 0.07);
  --hh-nav-shadow-scroll: 0 2px 24px rgba(0, 0, 0, 0.09), 0 1px 0 rgba(0,0,0,0.04);
  --hh-link-color: #374151;
  --hh-link-hover: #111827;
  --hh-dd-bg: rgba(255, 255, 255, 0.96);
  --hh-dd-border: rgba(0, 0, 0, 0.08);
  --hh-dd-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --hh-drawer-bg: #ffffff;
}
[data-bs-theme="dark"] {
  --hh-nav-bg: rgba(10, 10, 18, 0.82);
  --hh-nav-border: rgba(255, 255, 255, 0.06);
  --hh-nav-shadow-scroll: 0 2px 24px rgba(0, 0, 0, 0.40), 0 1px 0 rgba(255,255,255,0.04);
  --hh-link-color: #cbd5e1;
  --hh-link-hover: #f1f5f9;
  --hh-dd-bg: rgba(18, 18, 30, 0.97);
  --hh-dd-border: rgba(255, 255, 255, 0.08);
  --hh-dd-shadow: 0 8px 40px rgba(0,0,0,0.50), 0 2px 8px rgba(0,0,0,0.30);
  --hh-drawer-bg: #0d0d1a;
}

/* â”€â”€ Header shell â”€â”€ */
.hh-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: var(--hh-nav-h);
  background: var(--hh-nav-bg);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--hh-nav-border);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  contain: layout;
}
.hh-nav--scrolled {
  box-shadow: var(--hh-nav-shadow-scroll);
  border-bottom-color: transparent;
}

.hh-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
}

/* â”€â”€ Brand â”€â”€ */
.hh-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--hh-link-hover);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.18s;
}
.hh-nav__brand:hover { opacity: 0.78; }
.hh-nav__brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #06101e;
  border-radius: 10px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(31,86,208,0.35);
}
.hh-nav__brand-name { color: inherit; }

/* â”€â”€ Centre nav links â”€â”€ */
.hh-nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
}

.hh-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 10px;
  font-size: 0.895rem;
  font-weight: 600;
  color: var(--hh-link-color);
  text-decoration: none;
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
  outline: none;
}
.hh-nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--hh-accent);
  transform: scaleX(0);
  transition: transform 0.22s cubic-bezier(.4,0,.2,1);
  transform-origin: center;
}
.hh-nav__link:hover {
  color: var(--hh-link-hover);
  background: rgba(79, 70, 229, 0.07);
}
.hh-nav__link:hover::after,
.hh-nav__link--active::after {
  transform: scaleX(1);
}
.hh-nav__link--active {
  color: var(--hh-accent);
  background: rgba(79, 70, 229, 0.08);
}
[data-bs-theme="dark"] .hh-nav__link--active { color: #a5b4fc; background: rgba(99,102,241,0.13); }
[data-bs-theme="dark"] .hh-nav__link:hover    { background: rgba(99,102,241,0.10); }

/* Chevron on dropdown trigger */
.hh-nav__chevron {
  flex-shrink: 0;
  transition: transform 0.22s;
}
[aria-expanded="true"] .hh-nav__chevron { transform: rotate(180deg); }

/* â”€â”€ Right actions â”€â”€ */
.hh-nav__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* icon button */
.hh-nav__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: none;
  color: var(--hh-link-color);
  font-size: 1.05rem;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
  position: relative;
}
.hh-nav__icon-btn:hover {
  color: var(--hh-link-hover);
  background: rgba(79, 70, 229, 0.07);
}
[data-bs-theme="dark"] .hh-nav__icon-btn:hover { background: rgba(99,102,241,0.12); }

.hh-nav__icon-btn--xs { width: 28px; height: 28px; font-size: 0.85rem; }

/* lang pill */
.hh-nav__lang-btn { gap: 4px; width: auto; padding: 0 10px; }
.hh-nav__lang-code { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; }

/* notification badge */
.hh-nav__badge {
  position: absolute;
  top: 5px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #ef4444;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--hh-nav-bg);
  line-height: 1;
}

/* notif btn glow on badge show */
.hh-nav__notif-btn:has(.hh-nav__badge:not(.d-none)) {
  color: var(--hh-accent);
}

/* login button */
.hh-nav__login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--hh-accent), #7c3aed);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.18s, box-shadow 0.18s, transform 0.18s;
  box-shadow: 0 2px 12px var(--hh-accent-glow);
  white-space: nowrap;
}
.hh-nav__login-btn:hover {
  opacity: 0.88;
  box-shadow: 0 4px 20px var(--hh-accent-glow);
  transform: translateY(-1px);
}

/* avatar */
.hh-nav__avatar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(79,70,229,0.25);
  background: rgba(79,70,229,0.10);
  cursor: pointer;
  position: relative;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.hh-nav__avatar-btn:hover {
  border-color: var(--hh-accent);
  box-shadow: 0 0 0 3px var(--hh-accent-glow);
}
.hh-nav__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.hh-nav__avatar-fallback {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--hh-accent);
  line-height: 1;
  text-transform: uppercase;
}
.hh-nav__avatar-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--hh-nav-bg);
}

/* â”€â”€ Dropdown wrapper â”€â”€ */
.hh-nav__dropdown { position: relative; }
.hh-nav__dropdown--right .hh-dropdown { right: 0; left: auto; }

/* â”€â”€ Dropdown panel â”€â”€ */
.hh-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: var(--hh-dd-bg);
  border: 1px solid var(--hh-dd-border);
  border-radius: 18px;
  box-shadow: var(--hh-dd-shadow);
  padding: 8px;
  z-index: 1050;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(.4,0,.2,1), transform 0.2s cubic-bezier(.4,0,.2,1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.hh-dropdown--open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* grid layout for admin dropdown */
.hh-dropdown__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  max-height: 60vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.hh-dropdown__grid::-webkit-scrollbar { width: 4px; }
.hh-dropdown__grid::-webkit-scrollbar-thumb { background: var(--hh-dd-border); border-radius: 4px; }

/* small variant */
.hh-dropdown--sm { min-width: 160px; }

/* notification variant */
.hh-dropdown--notif { min-width: 320px; max-width: 340px; right: 0; left: auto; }
.hh-dropdown__notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 10px;
  border-bottom: 1px solid var(--hh-dd-border);
  margin-bottom: 6px;
}
.hh-dropdown__notif-title { font-weight: 700; font-size: 0.88rem; color: var(--hh-link-hover); }
.hh-dropdown__notif-empty {
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}
.hh-dropdown__clear-btn {
  display: block;
  width: 100%;
  padding: 10px;
  border: none;
  background: none;
  color: #ef4444;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 10px;
  text-align: center;
  transition: background 0.15s;
}
.hh-dropdown__clear-btn:hover { background: rgba(239,68,68,0.07); }

/* user variant */
.hh-dropdown--user { min-width: 260px; right: 0; left: auto; }
.hh-dropdown__user-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 12px;
}
.hh-dropdown__user-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.hh-dropdown__user-photo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79,70,229,0.12);
  color: var(--hh-accent);
  font-weight: 800;
  font-size: 0.9rem;
}
.hh-dropdown__user-info { min-width: 0; line-height: 1.3; }
.hh-dropdown__user-info strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--hh-link-hover); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.hh-dropdown__user-info small { color: #94a3b8; font-size: 0.78rem; }

/* dropdown item */
.hh-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--hh-link-color);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.hh-dropdown__item:hover {
  background: rgba(79,70,229,0.07);
  color: var(--hh-link-hover);
}
[data-bs-theme="dark"] .hh-dropdown__item:hover { background: rgba(99,102,241,0.12); }

.hh-dropdown__item--compact { padding: 7px 10px; }
.hh-dropdown__item--active { color: var(--hh-accent); font-weight: 700; }
.hh-dropdown__item--danger { color: #ef4444; }
.hh-dropdown__item--danger:hover { background: rgba(239,68,68,0.07); color: #dc2626; }

/* admin item icon */
.hh-dropdown__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.95rem;
  flex-shrink: 0;
  background: rgba(from var(--ddi, #4f46e5) r g b / 0.12);
  color: var(--ddi, #4f46e5);
}
.hh-dropdown__label { display: flex; flex-direction: column; min-width: 0; }
.hh-dropdown__label strong { font-size: 0.80rem; font-weight: 700; color: var(--hh-link-hover); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hh-dropdown__label small { font-size: 0.70rem; color: #94a3b8; white-space: nowrap; }

.hh-dropdown__divider {
  border: none;
  border-top: 1px solid var(--hh-dd-border);
  margin: 6px 0;
}

/* â”€â”€ Mobile-only area â”€â”€ */
.hh-nav__mobile-right {
  display: none;
  align-items: center;
  gap: 4px;
}

/* â”€â”€ Hamburger â”€â”€ */
.hh-nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  border-radius: 10px;
  transition: background 0.18s;
}
.hh-nav__hamburger:hover { background: rgba(79,70,229,0.07); }
.hh-nav__hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--hh-link-color);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.3s, width 0.3s;
  transform-origin: center;
}
.hh-nav__hamburger--open .hh-nav__hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hh-nav__hamburger--open .hh-nav__hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hh-nav__hamburger--open .hh-nav__hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* â”€â”€ Drawer overlay â”€â”€ */
.hh-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1039;
  background: rgba(0,0,0,0.40);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.hh-drawer-overlay--show {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* â”€â”€ Mobile drawer â”€â”€ */
.hh-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  width: min(340px, 92vw);
  background: var(--hh-drawer-bg);
  border-left: 1px solid var(--hh-nav-border);
  box-shadow: -8px 0 40px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  overscroll-behavior: contain;
  outline: none;
}
.hh-drawer--open { transform: translateX(0); }

.hh-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hh-nav-border);
  flex-shrink: 0;
}

.hh-drawer__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hh-nav-border);
  flex-shrink: 0;
  background: rgba(79,70,229,0.04);
}
[data-bs-theme="dark"] .hh-drawer__user { background: rgba(99,102,241,0.07); }

.hh-drawer__user-photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.hh-drawer__user-photo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79,70,229,0.12);
  color: var(--hh-accent);
  font-weight: 800;
  font-size: 0.88rem;
}
.hh-drawer__user-name { display: block; font-weight: 700; font-size: 0.9rem; color: var(--hh-link-hover); }
.hh-drawer__user-handle { font-size: 0.78rem; color: #94a3b8; }

.hh-drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hh-drawer__body::-webkit-scrollbar { width: 4px; }
.hh-drawer__body::-webkit-scrollbar-thumb { background: var(--hh-dd-border); border-radius: 4px; }

.hh-drawer__section-title {
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #94a3b8;
  padding: 6px 10px 2px;
  margin: 0;
}
.hh-drawer__divider { border: none; border-top: 1px solid var(--hh-nav-border); margin: 8px 0 6px; }

.hh-drawer__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--hh-link-color);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.hh-drawer__link:hover { background: rgba(79,70,229,0.07); color: var(--hh-link-hover); }
.hh-drawer__link--active { background: rgba(79,70,229,0.09); color: var(--hh-accent); font-weight: 700; }
[data-bs-theme="dark"] .hh-drawer__link:hover { background: rgba(99,102,241,0.10); }
[data-bs-theme="dark"] .hh-drawer__link--active { background: rgba(99,102,241,0.14); color: #a5b4fc; }

.hh-drawer__foot {
  flex-shrink: 0;
  padding: 14px 16px;
  border-top: 1px solid var(--hh-nav-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hh-drawer__lang-row {
  display: flex;
  gap: 8px;
}
.hh-drawer__lang-btn {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--hh-link-color);
  border: 1px solid var(--hh-nav-border);
  transition: background 0.15s, border-color 0.15s;
}
.hh-drawer__lang-btn:hover,
.hh-drawer__lang-btn--active { border-color: var(--hh-accent); color: var(--hh-accent); background: rgba(79,70,229,0.07); }

.hh-drawer__logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #ef4444;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid rgba(239,68,68,0.20);
  transition: background 0.15s;
}
.hh-drawer__logout-btn:hover { background: rgba(239,68,68,0.07); }

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 991.98px) {
  .hh-nav__links,
  .hh-nav__actions {
    display: none !important;
  }
  .hh-nav__mobile-right {
    display: flex;
  }
  .hh-nav__inner {
    grid-template-columns: auto 1fr auto;
  }
}

@media (min-width: 992px) {
  .hh-nav__mobile-right { display: none !important; }
  .hh-drawer,
  .hh-drawer-overlay { display: none !important; }
}

/* admin grid â†’ single column on medium screens */
@media (max-width: 1199.98px) {
  .hh-dropdown__grid { grid-template-columns: 1fr; }
}

/* print */
@media print {
  .hh-nav { display: none !important; }
  main { padding-top: 0 !important; }
}

/* â”€â”€ notification item (rendered by WS JS) â”€â”€ */
.notification-item .dropdown-item {
  white-space: normal;
  border-radius: 10px;
}

/* â”€â”€ Legacy Navbar stub (old .navbar removed) â”€â”€ */
/* Kept so that any page that still references .navbar doesn't break visually */
.navbar {
  min-height: var(--hh-nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6), var(--shadow-light-soft);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  z-index: 1030;
}

[data-bs-theme="dark"] .navbar {
  background: rgba(10, 15, 28, 0.72);
  border-bottom-color: var(--border-dark);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03), var(--shadow-dark-soft);
}

.navbar > .container {
  min-height: var(--navbar-height);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text-light) !important;
  transition: color var(--transition);
}

.navbar-brand i {
  color: var(--primary);
  font-size: 1.15rem;
}

[data-bs-theme="dark"] .navbar-brand {
  color: var(--text-dark) !important;
}

.navbar-toggler {
  border: 1px solid var(--border-light) !important;
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
  background: rgba(255,255,255,0.6);
}

[data-bs-theme="dark"] .navbar-toggler {
  border-color: var(--border-dark) !important;
  background: rgba(255,255,255,0.04);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.14);
}

.nav-link {
  font-weight: 600;
  color: var(--text-light-muted) !important;
  border-radius: 14px;
  padding: 0.72rem 1rem !important;
  transition: all var(--transition);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-soft);
}

[data-bs-theme="dark"] .nav-link {
  color: var(--text-dark-muted) !important;
}

[data-bs-theme="dark"] .nav-link:hover,
[data-bs-theme="dark"] .nav-link.active {
  color: #c7d2fe !important;
  background: rgba(99, 102, 241, 0.14);
}

.dropdown-menu {
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-light);
  border-radius: 18px !important;
  padding: 0.6rem;
}

.dropdown-menu.show {
  animation: dropdown-fade 0.2s ease-out forwards;
}

@keyframes dropdown-fade {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

[data-bs-theme="dark"] .dropdown-menu {
  border-color: var(--border-dark);
  background: rgba(17, 24, 39, 0.88);
  box-shadow: var(--shadow-dark);
}

.dropdown-item {
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  transition: all var(--transition);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
}

.dropdown-item.active,
.dropdown-item:active {
  background: rgba(79, 70, 229, 0.12);
  color: var(--primary);
}

[data-bs-theme="dark"] .dropdown-item {
  color: var(--text-dark);
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
  background: rgba(99, 102, 241, 0.14);
  color: #c7d2fe;
}

.dropdown-divider {
  border-color: rgba(148, 163, 184, 0.15);
}

/* MasaÃ¼stÃ¼ avatar / tema */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.55);
  color: var(--text-light-muted);
  transition: all var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.18);
  transform: translateY(-1px);
}

[data-bs-theme="dark"] .theme-toggle-btn {
  border-color: var(--border-dark);
  background: rgba(255,255,255,0.04);
  color: var(--text-dark-muted);
}

[data-bs-theme="dark"] .theme-toggle-btn:hover {
  background: rgba(99, 102, 241, 0.14);
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.22);
}

.profile-img-nav {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(79, 70, 229, 0.22);
  padding: 2px;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.profile-img-nav:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

[data-bs-theme="dark"] .profile-img-nav {
  background: rgba(255,255,255,0.04);
  border-color: rgba(99, 102, 241, 0.26);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

/* MOBÄ°L MENÃœ */
.mobile-menu-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: rgba(255,255,255,0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

[data-bs-theme="dark"] .mobile-menu-btn {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-dark);
  color: var(--text-dark);
}

.mobile-offcanvas {
  width: min(88vw, 360px) !important;
  border-left: 1px solid var(--border-light);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-bs-theme="dark"] .mobile-offcanvas {
  border-left-color: var(--border-dark);
  background: rgba(8, 17, 32, 0.95);
}

.mobile-menu-header {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

[data-bs-theme="dark"] .mobile-menu-header {
  border-bottom-color: var(--border-dark);
}

.mobile-menu-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
}

[data-bs-theme="dark"] .mobile-menu-user {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-dark);
}

.mobile-nav-group {
  padding: 1rem;
}

.mobile-nav-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-light-muted);
  margin-bottom: 0.8rem;
}

[data-bs-theme="dark"] .mobile-nav-title {
  color: var(--text-dark-muted);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  transition: all var(--transition);
  margin-bottom: 0.45rem;
  border: 1px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(79, 70, 229, 0.10);
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.12);
}

[data-bs-theme="dark"] .mobile-nav-link {
  color: var(--text-dark);
}

[data-bs-theme="dark"] .mobile-nav-link:hover,
[data-bs-theme="dark"] .mobile-nav-link.active {
  background: rgba(99, 102, 241, 0.14);
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.18);
}

.mobile-actions-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mobile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: rgba(255,255,255,0.55);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
}

[data-bs-theme="dark"] .mobile-action-btn {
  border-color: var(--border-dark);
  background: rgba(255,255,255,0.04);
  color: var(--text-dark);
}

/* Buttons */
.login-btn {
  border-radius: 999px;
  padding: 0.62rem 1.2rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  border: none;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.24);
}

.login-btn:hover {
  background: linear-gradient(135deg, var(--primary-hover), #5558eb);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6366f1);
  border: none;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.20);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--primary-hover), #5458eb);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.25);
}

.btn-outline-primary {
  border-color: rgba(79, 70, 229, 0.26);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(79, 70, 229, 0.34);
}

[data-bs-theme="dark"] .btn-outline-primary {
  color: #c7d2fe;
  border-color: rgba(99, 102, 241, 0.26);
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
  background: rgba(99, 102, 241, 0.14);
  color: #e0e7ff;
  border-color: rgba(99, 102, 241, 0.34);
}

/* Extra layout styles */
.page-bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.orb-1 {
  width: 240px;
  height: 240px;
  top: 90px;
  left: -70px;
  background: rgba(79, 70, 229, 0.12);
}

.orb-2 {
  width: 320px;
  height: 320px;
  bottom: -90px;
  right: -90px;
  background: rgba(59, 130, 246, 0.10);
}

[data-bs-theme="dark"] .orb-1 {
  background: rgba(99, 102, 241, 0.18);
}

[data-bs-theme="dark"] .orb-2 {
  background: rgba(59, 130, 246, 0.14);
}

main.container {
  position: relative;
  z-index: 1;
  flex: 1;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  animation: pageFade 0.45s ease;
}

@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-bs-theme="dark"] .navbar .dropdown-toggle::after,
[data-bs-theme="dark"] .navbar-toggler-icon {
  filter: invert(1) brightness(1.5);
}

.notification-dropdown {
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
}

/* ═══════════════════════════════════════════════════════════
  HH FOOTER — premium SaaS footer  (BEM: hh-ft)
   Mobile-first · pure CSS · full dark-mode
   Inspired by Vercel / Stripe / Linear
═══════════════════════════════════════════════════════════ */

/* ── Custom properties ── */
:root {
  --hh-ft-bg:            rgba(248, 250, 252, 0.96);
  --hh-ft-border:        rgba(15, 23, 42, 0.07);
  --hh-ft-text:          #64748b;
  --hh-ft-text-strong:   #0f172a;
  --hh-ft-link:          #64748b;
  --hh-ft-link-hover:    #1a56d0;
  --hh-ft-divider:       rgba(15, 23, 42, 0.08);
  --hh-ft-social-bg:     rgba(255, 255, 255, 0.80);
  --hh-ft-social-border: rgba(15, 23, 42, 0.09);
  --hh-ft-input-bg:      #ffffff;
  --hh-ft-input-border:  rgba(15, 23, 42, 0.14);
  --hh-ft-nl-bg:         rgba(26, 86, 208, 0.03);
  --hh-ft-nl-border:     rgba(26, 86, 208, 0.10);
}
[data-bs-theme="dark"] {
  --hh-ft-bg:            rgba(6, 9, 20, 0.96);
  --hh-ft-border:        rgba(255, 255, 255, 0.05);
  --hh-ft-text:          #94a3b8;
  --hh-ft-text-strong:   #f1f5f9;
  --hh-ft-link:          #64748b;
  --hh-ft-link-hover:    #93c5fd;
  --hh-ft-divider:       rgba(255, 255, 255, 0.06);
  --hh-ft-social-bg:     rgba(255, 255, 255, 0.04);
  --hh-ft-social-border: rgba(255, 255, 255, 0.08);
  --hh-ft-input-bg:      rgba(255, 255, 255, 0.05);
  --hh-ft-input-border:  rgba(255, 255, 255, 0.10);
  --hh-ft-nl-bg:         rgba(79, 147, 255, 0.06);
  --hh-ft-nl-border:     rgba(79, 147, 255, 0.13);
}

/* ── Outer shell ── */
.hh-ft {
  margin-top: auto;
  background: var(--hh-ft-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid var(--hh-ft-border);
  color: var(--hh-ft-text);
  font-size: 0.875rem;
  line-height: 1.6;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  position: relative;
}
/* Blue gradient accent line */
.hh-ft::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #1a56d0 0%, #4fa3ff 40%, #06b6d4 72%, #10b981 100%);
  opacity: 0.60;
}

/* ── Inner container ── */
.hh-ft__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ═══════════════════════════════════════
   TOP ROW — brand (left) · controls (right)
═══════════════════════════════════════ */
.hh-ft__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0 22px;
}

/* Brand block */
.hh-ft__brand-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hh-ft__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--hh-ft-text-strong);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  transition: opacity 0.18s;
}
.hh-ft__brand:hover { opacity: 0.72; }
.hh-ft__brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #06101e;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(26, 86, 208, 0.38);
}
.hh-ft__brand-name { color: inherit; }
.hh-ft__tagline {
  margin: 0;
  font-size: 0.82rem;
  color: var(--hh-ft-text);
  max-width: 300px;
  line-height: 1.5;
}

/* Controls group */
.hh-ft__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Social icons */
.hh-ft__socials { display: flex; gap: 6px; }
.hh-ft__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--hh-ft-social-bg);
  border: 1px solid var(--hh-ft-social-border);
  color: var(--hh-ft-text);
  text-decoration: none;
  transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.2s, box-shadow 0.2s;
}
.hh-ft__social:hover {
  color: #1a56d0;
  background: rgba(26, 86, 208, 0.08);
  border-color: rgba(26, 86, 208, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 86, 208, 0.18);
}
[data-bs-theme="dark"] .hh-ft__social:hover {
  color: #93c5fd;
  background: rgba(79, 147, 255, 0.12);
  border-color: rgba(79, 147, 255, 0.26);
  box-shadow: 0 4px 12px rgba(79, 147, 255, 0.18);
}

/* Separator pipe between controls */
.hh-ft__ctrl-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: var(--hh-ft-divider);
  flex-shrink: 0;
}

/* Language switcher */
.hh-ft__lang { display: flex; gap: 4px; }
.hh-ft__lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--hh-ft-text);
  border: 1px solid var(--hh-ft-divider);
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.hh-ft__lang-btn:hover,
.hh-ft__lang-btn--active {
  color: #1a56d0;
  border-color: rgba(26, 86, 208, 0.28);
  background: rgba(26, 86, 208, 0.06);
}
[data-bs-theme="dark"] .hh-ft__lang-btn:hover,
[data-bs-theme="dark"] .hh-ft__lang-btn--active {
  color: #93c5fd;
  border-color: rgba(79, 147, 255, 0.28);
  background: rgba(79, 147, 255, 0.09);
}

/* Theme toggle */
.hh-ft__theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--hh-ft-divider);
  background: var(--hh-ft-social-bg);
  color: var(--hh-ft-text);
  cursor: pointer;
  transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.22s;
}
.hh-ft__theme-btn:hover {
  color: #1a56d0;
  background: rgba(26, 86, 208, 0.07);
  border-color: rgba(26, 86, 208, 0.22);
  transform: rotate(15deg);
}
[data-bs-theme="dark"] .hh-ft__theme-btn:hover {
  color: #93c5fd;
  background: rgba(79, 147, 255, 0.10);
  border-color: rgba(79, 147, 255, 0.24);
}
/* Show moon in light mode, sun in dark mode */
.hh-ft__theme-sun  { display: none; }
.hh-ft__theme-moon { display: block; }
[data-bs-theme="dark"] .hh-ft__theme-sun  { display: block; }
[data-bs-theme="dark"] .hh-ft__theme-moon { display: none; }

/* ═══════════════════════════════════════
  FOOTER NAV GRID
═══════════════════════════════════════ */
.hh-ft__nav {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hh-ft-divider);
}
@media (min-width: 768px) {
  .hh-ft__nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 32px;
    padding: 24px 0 28px;
  }
}
@media (min-width: 992px) {
  .hh-ft__nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
    padding: 24px 0 28px;
  }
}

/* Column */
@media (max-width: 767.98px) {
  .hh-ft__col { border-bottom: 1px solid var(--hh-ft-divider); }
}

/* Column heading / accordion trigger */
.hh-ft__col-hd {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border: none;
  background: none;
  color: var(--hh-ft-text-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: color 0.18s;
}
.hh-ft__col-hd:hover { color: var(--hh-ft-link-hover); }
@media (min-width: 768px) {
  .hh-ft__col-hd { padding: 0 0 14px; cursor: default; pointer-events: none; }
  .hh-ft__col-chevron { display: none; }
}
.hh-ft__col-chevron {
  flex-shrink: 0;
  color: var(--hh-ft-text);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}
.hh-ft__col--collapsed .hh-ft__col-chevron { transform: rotate(-90deg); }

/* Links list */
.hh-ft__col-links {
  list-style: none;
  margin: 0;
  padding: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  max-height: 600px;
  opacity: 1;
  transition: max-height 0.32s cubic-bezier(.4,0,.2,1), opacity 0.26s, padding 0.28s;
}
.hh-ft__col-links--collapsed {
  max-height: 0 !important;
  opacity: 0;
  padding-bottom: 0;
}
@media (min-width: 768px) {
  .hh-ft__col-links,
  .hh-ft__col-links--collapsed {
    max-height: none !important;
    opacity: 1 !important;
    padding-bottom: 0;
  }
}

/* Individual link with underline slide animation */
.hh-ft__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 5px 0;
  color: var(--hh-ft-link);
  text-decoration: none;
  font-size: 0.855rem;
  font-weight: 500;
  transition: color 0.18s;
  width: fit-content;
}
.hh-ft__link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--hh-ft-link-hover);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s cubic-bezier(.4,0,.2,1);
}
.hh-ft__link:hover { color: var(--hh-ft-link-hover); }
.hh-ft__link:hover::after { transform: scaleX(1); }

/* ═══════════════════════════════════════
   BOTTOM BAR
═══════════════════════════════════════ */
.hh-ft__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--hh-ft-divider);
}
.hh-ft__copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--hh-ft-text);
}
.hh-ft__copy-dim { opacity: 0.6; }
.hh-ft__made {
  margin: 0;
  font-size: 0.78rem;
  color: var(--hh-ft-text);
  opacity: 0.65;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hh-ft__heart {
  color: #ef4444;
  animation: hh-ft-heartbeat 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes hh-ft-heartbeat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.22); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.14); }
  56%       { transform: scale(1); }
}
/* Scroll-to-top pill button */
.hh-ft__scroll-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--hh-ft-divider);
  background: var(--hh-ft-social-bg);
  color: var(--hh-ft-text);
  font-size: 0.76rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.18s;
}
.hh-ft__scroll-top:hover {
  color: #1a56d0;
  background: rgba(26, 86, 208, 0.07);
  border-color: rgba(26, 86, 208, 0.20);
  transform: translateY(-2px);
}
[data-bs-theme="dark"] .hh-ft__scroll-top:hover {
  color: #93c5fd;
  background: rgba(79, 147, 255, 0.10);
  border-color: rgba(79, 147, 255, 0.22);
}

/* ── Legacy stubs ── */
.footer-social {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  background: var(--hh-ft-social-bg);
  border: 1px solid var(--hh-ft-social-border);
  transition: all var(--transition);
}
.footer-social:hover {
  color: #1a56d0;
  background: rgba(26, 86, 208, 0.08);
  border-color: rgba(26, 86, 208, 0.20);
  transform: translateY(-1px);
}
[data-bs-theme="dark"] .footer-social:hover {
  color: #93c5fd;
  background: rgba(79, 147, 255, 0.12);
  border-color: rgba(79, 147, 255, 0.20);
}


/* ═══════════════════════════════════════════════════════════
   HH LEGAL — Privacy & Terms pages  (BEM prefix: hh-legal)
   Sticky TOC sidebar (desktop), collapsible (mobile)
═══════════════════════════════════════════════════════════ */

:root {
  --hh-legal-max: 1040px;
  --hh-legal-toc-w: 220px;
  --hh-legal-text: #374151;
  --hh-legal-text-muted: #6b7280;
  --hh-legal-head: #111827;
  --hh-legal-border: rgba(15,23,42,0.08);
  --hh-legal-link: #4f46e5;
  --hh-legal-link-hover: #4338ca;
  --hh-legal-active-bg: rgba(79,70,229,0.07);
  --hh-legal-active-color: #4f46e5;
  --hh-legal-hero-bg: rgba(79,70,229,0.04);
  --hh-legal-section-border: rgba(15,23,42,0.06);
  --hh-legal-card-bg: rgba(79,70,229,0.04);
  --hh-legal-card-border: rgba(79,70,229,0.12);
}
[data-bs-theme="dark"] {
  --hh-legal-text: #cbd5e1;
  --hh-legal-text-muted: #94a3b8;
  --hh-legal-head: #f1f5f9;
  --hh-legal-border: rgba(255,255,255,0.07);
  --hh-legal-link: #818cf8;
  --hh-legal-link-hover: #a5b4fc;
  --hh-legal-active-bg: rgba(99,102,241,0.10);
  --hh-legal-active-color: #a5b4fc;
  --hh-legal-hero-bg: rgba(99,102,241,0.06);
  --hh-legal-section-border: rgba(255,255,255,0.05);
  --hh-legal-card-bg: rgba(99,102,241,0.06);
  --hh-legal-card-border: rgba(99,102,241,0.16);
}

/* ── Page wrapper ── */
.hh-legal {
  max-width: var(--hh-legal-max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  color: var(--hh-legal-text);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ── Hero ── */
.hh-legal__hero {
  background: var(--hh-legal-hero-bg);
  border: 1px solid var(--hh-legal-border);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}
.hh-legal__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 99px;
  background: rgba(79,70,229,0.10);
  color: var(--hh-legal-link);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hh-legal__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--hh-legal-head);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}
.hh-legal__meta {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--hh-legal-text-muted);
}
.hh-legal__intro {
  margin: 0 auto;
  font-size: 1rem;
  color: var(--hh-legal-text);
  max-width: 640px;
}

/* ── 2-column layout ── */
.hh-legal__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .hh-legal__layout {
    grid-template-columns: var(--hh-legal-toc-w) 1fr;
    gap: 2.5rem;
  }
}

/* ── TOC sidebar ── */
.hh-legal__toc {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--hh-legal-border);
  border-radius: 16px;
  overflow: hidden;
}
[data-bs-theme="dark"] .hh-legal__toc {
  background: rgba(255,255,255,0.03);
}
@media (min-width: 900px) {
  .hh-legal__toc {
    position: sticky;
    top: 86px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .hh-legal__toc::-webkit-scrollbar { width: 4px; }
  .hh-legal__toc::-webkit-scrollbar-thumb { background: var(--hh-legal-border); border-radius: 4px; }
}
.hh-legal__toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  border: none;
  background: none;
  color: var(--hh-legal-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.18s;
}
.hh-legal__toc-toggle:hover { color: var(--hh-legal-link); }
@media (min-width: 900px) {
  .hh-legal__toc-toggle { cursor: default; pointer-events: none; }
  .hh-legal__toc-chevron { display: none; }
}
.hh-legal__toc-chevron {
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}
.hh-legal__toc-toggle[aria-expanded="false"] .hh-legal__toc-chevron { transform: rotate(-90deg); }

.hh-legal__toc-nav {
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(.4,0,.2,1), opacity 0.28s;
  max-height: 0;
  opacity: 0;
}
.hh-legal__toc-nav--open {
  max-height: 1400px;
  opacity: 1;
}
@media (min-width: 900px) {
  .hh-legal__toc-nav,
  .hh-legal__toc-nav--open {
    max-height: none !important;
    opacity: 1 !important;
  }
}
.hh-legal__toc-list {
  list-style: none;
  margin: 0;
  padding: 0 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hh-legal__toc-link {
  display: block;
  padding: 7px 10px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 0.82rem;
  color: var(--hh-legal-text-muted);
  font-weight: 500;
  transition: color 0.18s, background 0.18s;
  line-height: 1.4;
}
.hh-legal__toc-link:hover {
  color: var(--hh-legal-head);
  background: var(--hh-legal-active-bg);
}
.hh-legal__toc-link--active {
  color: var(--hh-legal-active-color);
  background: var(--hh-legal-active-bg);
  font-weight: 700;
}

/* ── Content area ── */
.hh-legal__content { min-width: 0; }
.hh-legal__section {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--hh-legal-section-border);
}
.hh-legal__section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.hh-legal__section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
}
.hh-legal__h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hh-legal-head);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.hh-legal__copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--hh-legal-border);
  background: transparent;
  color: var(--hh-legal-text-muted);
  cursor: pointer;
  margin-top: 2px;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.hh-legal__copy-btn:hover {
  color: var(--hh-legal-link);
  background: var(--hh-legal-active-bg);
  border-color: rgba(79,70,229,0.20);
}
.hh-legal__list {
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0.75rem 0;
}
.hh-legal__list li { line-height: 1.65; }
.hh-legal__card {
  background: var(--hh-legal-card-bg);
  border: 1px solid var(--hh-legal-card-border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  font-size: 0.92rem;
}

/* ── Toast (copy-link feedback) ── */
.hh-legal__toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--hh-legal-head);
  color: #fff;
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  z-index: 9000;
}
.hh-legal__toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Mobile adjustments ── */
@media (max-width: 899.98px) {
  .hh-legal { padding-top: 1.5rem; }
  .hh-legal__hero { padding: 1.75rem 1.25rem; text-align: left; }
  .hh-legal__intro { margin-inline: 0; }
}
