/* ============================================================
   AeroVid — Main CSS
   Frutiger Aero / Windows Vista / Web 2.0 Design System
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&family=Segoe+UI:wght@300;400;600;700&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  /* Core palette */
  --cyan:         #00d4ff;
  --cyan-dark:    #0096c7;
  --cyan-deeper:  #023e8a;
  --aqua:         #48cae4;
  --aqua-light:   #90e0ef;
  --aqua-pale:    #caf0f8;
  --sky:          #e0f7ff;
  --mint:         #a8edca;
  --teal:         #00b4d8;
  --blue-glass:   rgba(0, 180, 216, 0.15);
  --white-glass:  rgba(255, 255, 255, 0.72);
  --white-shine:  rgba(255, 255, 255, 0.95);
  --frost:        rgba(255, 255, 255, 0.45);
  --frost-dark:   rgba(180, 230, 255, 0.3);

  /* Gradients */
  --grad-sky:     linear-gradient(160deg, #e0f7ff 0%, #b8eeff 40%, #d4f5ff 70%, #f0fffe 100%);
  --grad-glass:   linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(200,240,255,0.6) 100%);
  --grad-cyan:    linear-gradient(135deg, #00d4ff 0%, #0096c7 100%);
  --grad-btn:     linear-gradient(180deg, #6edbff 0%, #00b4d8 45%, #0096c7 100%);
  --grad-btnhov:  linear-gradient(180deg, #90e8ff 0%, #00cfee 45%, #00aad8 100%);
  --grad-header:  linear-gradient(90deg, rgba(0,148,213,0.92) 0%, rgba(0,200,255,0.88) 100%);

  /* Text */
  --text-primary:   #0a2540;
  --text-secondary: #3a6080;
  --text-muted:     #7ab3d0;
  --text-white:     #ffffff;

  /* Shadows */
  --shadow-sm:    0 2px 8px rgba(0, 100, 180, 0.12);
  --shadow-md:    0 6px 24px rgba(0, 100, 180, 0.18);
  --shadow-lg:    0 12px 40px rgba(0, 80, 160, 0.22);
  --shadow-glow:  0 0 20px rgba(0, 212, 255, 0.35);
  --shadow-card:  0 4px 20px rgba(0, 120, 200, 0.15), inset 0 1px 0 rgba(255,255,255,0.8);

  /* Glass */
  --glass-blur:   blur(14px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.65);
  --glass-border-subtle: 1px solid rgba(180, 220, 255, 0.4);

  /* Radii */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-pill: 999px;

  /* Layout */
  --nav-h:   60px;
  --sidebar: 240px;
  --max-w:   1280px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-mid:  260ms ease;
  --t-slow: 420ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode */
[data-theme="dark"] {
  --sky:          #071828;
  --grad-sky:     linear-gradient(160deg, #071828 0%, #0d2a40 40%, #082035 70%, #04121e 100%);
  --grad-glass:   linear-gradient(135deg, rgba(10,30,60,0.85) 0%, rgba(0,80,140,0.6) 100%);
  --white-glass:  rgba(10, 28, 55, 0.82);
  --frost:        rgba(10, 28, 55, 0.55);
  --text-primary:   #d8f0ff;
  --text-secondary: #7ab3d0;
  --text-muted:     #3a6080;
  --glass-border: 1px solid rgba(0, 180, 255, 0.25);
  --shadow-card:  0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(0,180,255,0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  background: var(--grad-sky);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 12px);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Animated background bubbles ─────────────────────────── */
.bg-bubbles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bg-bubbles span {
  position: absolute;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.7), rgba(0,200,255,0.15));
  animation: bubble-rise linear infinite;
  opacity: 0;
}
.bg-bubbles span:nth-child(1)  { width:80px;  height:80px;  left:8%;  animation-duration:20s; animation-delay:0s;   }
.bg-bubbles span:nth-child(2)  { width:40px;  height:40px;  left:20%; animation-duration:15s; animation-delay:3s;   }
.bg-bubbles span:nth-child(3)  { width:100px; height:100px; left:35%; animation-duration:25s; animation-delay:6s;   }
.bg-bubbles span:nth-child(4)  { width:50px;  height:50px;  left:52%; animation-duration:18s; animation-delay:1s;   }
.bg-bubbles span:nth-child(5)  { width:70px;  height:70px;  left:65%; animation-duration:22s; animation-delay:9s;   }
.bg-bubbles span:nth-child(6)  { width:30px;  height:30px;  left:78%; animation-duration:14s; animation-delay:5s;   }
.bg-bubbles span:nth-child(7)  { width:120px; height:120px; left:88%; animation-duration:28s; animation-delay:2s;   }
.bg-bubbles span:nth-child(8)  { width:55px;  height:55px;  left:14%; animation-duration:17s; animation-delay:11s;  }

@keyframes bubble-rise {
  0%   { opacity: 0;   transform: translateY(0) scale(0.8); }
  10%  { opacity: 0.4; }
  90%  { opacity: 0.2; }
  100% { opacity: 0;   transform: translateY(-110vh) scale(1.2); }
}

/* ── Custom scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar       { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: rgba(0,180,255,0.08); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan) 0%, var(--cyan-dark) 100%);
  border-radius: var(--r-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--cyan-dark); }

/* ── Glass card ───────────────────────────────────────────── */
.glass {
  background: var(--grad-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  position: relative;
}

/* Inner top shine */
.glass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 100%);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  pointer-events: none;
}

/* ── Glossy button ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--t-mid);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  border: 1px solid rgba(0, 180, 255, 0.5);
  box-shadow: 0 3px 12px rgba(0,148,213,0.4), inset 0 1px 0 rgba(255,255,255,0.5);
  text-shadow: 0 1px 2px rgba(0,60,120,0.4);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 52%;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, transparent 100%);
  border-radius: var(--r-pill) var(--r-pill) 0 0;
  pointer-events: none;
}
.btn-primary:hover {
  background: var(--grad-btnhov);
  box-shadow: 0 6px 20px rgba(0,148,213,0.5), var(--shadow-glow);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--frost);
  border: var(--glass-border);
  color: var(--cyan-dark);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.65);
  box-shadow: var(--shadow-md);
}

.btn-sm { padding: 7px 15px; font-size: 0.82rem; }
.btn-lg { padding: 13px 30px; font-size: 1rem; }
.btn-icon { padding: 10px; border-radius: 50%; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--grad-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 2px 16px rgba(0,80,160,0.25);
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: radial-gradient(circle at 35% 35%, #ffffff, #90e0ef 60%, #0096c7);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0,100,200,0.35), inset 0 1px 0 rgba(255,255,255,0.6);
}
.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,60,120,0.4);
  letter-spacing: -0.02em;
}
.logo-text span { color: var(--aqua-light); }

/* Header search */
.header-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 8px 38px 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  backdrop-filter: blur(8px);
  transition: var(--t-mid);
  outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,0.65); }
.header-search input:focus {
  background: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}
.header-search-btn {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  background: none;
  border: none;
  cursor: pointer;
}

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.dark-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t-mid);
  cursor: pointer;
}
.dark-toggle:hover { background: rgba(255,255,255,0.3); }

/* ── Bottom Navbar (mobile) ───────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 300;
  background: var(--grad-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: var(--glass-border);
  box-shadow: 0 -4px 20px rgba(0,80,160,0.15);
  display: flex;
  align-items: stretch;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 600;
  transition: var(--t-mid);
  position: relative;
}
.nav-item .nav-icon { font-size: 20px; transition: var(--t-mid); }
.nav-item.active { color: var(--cyan-dark); }
.nav-item.active .nav-icon { transform: scale(1.15); }
.nav-item.active::after {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 3px;
  background: var(--grad-cyan);
  border-radius: 0 0 3px 3px;
}
.nav-item:active { transform: scale(0.9); }

/* Center upload button */
.nav-item.nav-upload .nav-icon {
  width: 46px; height: 46px;
  background: var(--grad-btn);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(0,148,213,0.5), inset 0 1px 0 rgba(255,255,255,0.45);
  margin-top: -10px;
}

/* ── Page container ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 14px;
  position: relative;
  z-index: 1;
}

/* ── Section headings ─────────────────────────────────────── */
.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, transparent 100%);
  border-radius: var(--r-pill);
}

/* ── Category chips ───────────────────────────────────────── */
.cat-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-strip::-webkit-scrollbar { display: none; }

.cat-chip {
  flex-shrink: 0;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--white-glass);
  border: var(--glass-border);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: var(--t-mid);
  cursor: pointer;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.cat-chip:hover, .cat-chip.active {
  background: var(--grad-btn);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0,148,213,0.4);
}

/* ── Video grid ───────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 8px 0 16px;
}

@media (min-width: 540px)  { .video-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 768px)  { .video-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .video-grid { grid-template-columns: repeat(5, 1fr); } }

/* ── Video card ───────────────────────────────────────────── */
.video-card {
  background: var(--grad-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--t-slow);
  cursor: pointer;
  display: block;
  text-decoration: none;
  position: relative;
}
.video-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.video-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(0, 212, 255, 0.45);
}
.video-card:active { transform: translateY(-2px); }

.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #caf0f8 0%, #90e0ef 100%);
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.video-card:hover .card-thumb img { transform: scale(1.05); }

.card-duration {
  position: absolute;
  bottom: 6px; right: 7px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
}

.card-play-overlay {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,100,180,0.0);
  transition: background var(--t-mid);
}
.video-card:hover .card-play-overlay { background: rgba(0,100,180,0.18); }
.card-play-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  opacity: 0;
  transform: scale(0.7);
  transition: var(--t-mid);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.video-card:hover .card-play-icon { opacity: 1; transform: scale(1); }

.card-body { padding: 9px 11px 11px; }
.card-title {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}
.card-views::before { content: '👁 '; }
.card-date { margin-left: auto; }
.card-cat {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--blue-glass);
  color: var(--cyan-dark);
}

/* ── Shimmer loading ──────────────────────────────────────── */
.shimmer {
  background: linear-gradient(90deg,
    rgba(200,235,255,0.5) 25%,
    rgba(255,255,255,0.8) 50%,
    rgba(200,235,255,0.5) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ── Toast notifications ──────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 72px; right: 14px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 12px 18px;
  border-radius: var(--r-md);
  backdrop-filter: blur(16px);
  border: var(--glass-border);
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--white-glass);
  animation: toast-in 0.3s ease, toast-out 0.3s ease 2.7s forwards;
  pointer-events: all;
  max-width: 280px;
}
.toast.success { border-left: 4px solid #00c896; }
.toast.error   { border-left: 4px solid #ff5e7a; }
.toast.info    { border-left: 4px solid var(--cyan); }

@keyframes toast-in  {
  from { opacity:0; transform:translateX(40px) scale(0.92); }
  to   { opacity:1; transform:translateX(0) scale(1); }
}
@keyframes toast-out {
  from { opacity:1; transform:translateX(0) scale(1); }
  to   { opacity:0; transform:translateX(40px) scale(0.92); }
}

/* ── Splash screen ────────────────────────────────────────── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: linear-gradient(135deg, #0096c7 0%, #00d4ff 50%, #48cae4 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.5s ease;
}
#splash.hide { opacity: 0; pointer-events: none; }
.splash-logo {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,60,120,0.4);
  letter-spacing: -0.03em;
  animation: splash-pulse 1s ease infinite alternate;
}
.splash-logo span { color: rgba(255,255,255,0.6); }
.splash-bar {
  width: 200px; height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.splash-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: var(--r-pill);
  animation: splash-load 1.4s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes splash-pulse { from { transform: scale(1); } to { transform: scale(1.03); } }
@keyframes splash-load  { from { width: 0; } to { width: 100%; } }

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: var(--glass-border-subtle);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  transition: var(--t-mid);
  outline: none;
}
.form-control:focus {
  border-color: var(--cyan);
  background: rgba(255,255,255,0.75);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.18);
}
textarea.form-control { min-height: 90px; resize: vertical; }
select.form-control { cursor: pointer; }

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 18px 0;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 38px; height: 38px;
  padding: 0 10px;
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--white-glass);
  border: var(--glass-border);
  color: var(--text-secondary);
  transition: var(--t-mid);
  backdrop-filter: blur(8px);
}
.page-btn:hover, .page-btn.active {
  background: var(--grad-btn);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(0,148,213,0.35);
}
.page-dots { padding: 0 6px; color: var(--text-muted); line-height: 38px; }

/* ── Hero banner ──────────────────────────────────────────── */
.hero {
  padding: 20px 0 8px;
}
.hero-inner {
  padding: 20px 18px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(0,148,213,0.2) 0%, rgba(0,212,255,0.12) 100%);
  border: var(--glass-border);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.hero-inner::after {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0,212,255,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero-title {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan-dark) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 6px;
}
.hero-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* ── Utility ──────────────────────────────────────────────── */
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.mt-8  { margin-top: 8px;  }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.flex  { display: flex;    }
.flex-center { display:flex; align-items:center; justify-content:center; }
.gap-8 { gap: 8px; }
.text-center { text-align: center; }

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 800; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state p  { font-size: 0.88rem; color: var(--text-muted); }

/* ── Responsive tweaks ────────────────────────────────────── */
@media (min-width: 768px) {
  body { padding-bottom: 20px; }
  .bottom-nav { display: none; }

  /* Desktop side nav */
  .desktop-nav {
    display: flex !important;
    align-items: center;
    gap: 4px;
  }
  .desktop-nav a {
    padding: 7px 14px;
    border-radius: var(--r-pill);
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    transition: var(--t-mid);
  }
  .desktop-nav a:hover, .desktop-nav a.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
  }
}
.desktop-nav { display: none; }