/* ════════════════════════════════════════════════════════════════════════════
   Vélo · Layout
   App shell, headers, navs, FAB, login, onboarding, main, calendar, podium
   ════════════════════════════════════════════════════════════════════════════ */

/* ══ Login page ═════════════════════════════════════════════════════════ */
.page-login {
  background: var(--brand);
  min-height: 100dvh;
  overflow: hidden;
  color: #fff;
  position: relative;
}
[data-theme="dark"] .page-login { background: #050510; }

.login-bg {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0;
}
.login-blob {
  position: absolute; border-radius: 50%; opacity: .22;
  filter: blur(80px);
}
.blob-1 {
  width: 440px; height: 440px;
  background: var(--accent);
  top: -120px; right: -100px;
  animation: float 10s ease-in-out infinite;
}
.blob-2 {
  width: 340px; height: 340px;
  background: var(--gold);
  bottom: -100px; left: -80px;
  animation: float 12s ease-in-out infinite reverse;
}
.blob-3 {
  width: 260px; height: 260px;
  background: #6366F1;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  opacity: .12;
  animation: float 14s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(16px, -20px) scale(1.05); }
  66%      { transform: translate(-14px, 10px) scale(.97); }
}

.login-theme-toggle {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff; cursor: pointer; z-index: 10;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(12px);
}
.login-theme-toggle:hover { background: rgba(255,255,255,.15); }

.login-container {
  min-height: 100dvh; display: flex;
  align-items: center; justify-content: center;
  padding: 24px 16px; position: relative; z-index: 1;
}
.login-card {
  background: rgba(255,255,255,.05);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 38px 28px 32px;
  width: 100%; max-width: 420px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
  position: relative;
}

.login-logo { margin-bottom: 26px; }
.login-logo-mark {
  width: 76px; height: 76px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  font-size: 2.1rem;
  margin-bottom: 14px;
  box-shadow:
    0 16px 32px rgba(233,69,96,.35),
    0 2px 4px rgba(0,0,0,.2);
}
.login-logo-text {
  font-size: 2.4rem; font-weight: 700; color: #fff;
  font-family: var(--font-display); letter-spacing: -0.02em;
}
.login-logo-sub {
  color: rgba(255,255,255,.6); font-size: .85rem; margin-top: 4px;
  font-weight: 500; letter-spacing: .02em;
}

.login-hero { margin-bottom: 22px; }
.login-tagline {
  color: rgba(255,255,255,.9); font-size: 1.05rem; line-height: 1.5;
}
.login-tagline strong { color: var(--gold); font-weight: 600; }

.login-steps {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 28px; flex-wrap: nowrap;
}
.step-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex: 1;
}
.step-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-size: 1.05rem;
}
.step-text { font-size: .7rem; color: rgba(255,255,255,.7); font-weight: 500; text-align: center; }
.step-arrow { color: rgba(255,255,255,.3); font-size: .8rem; }

.login-note { color: rgba(255,255,255,.5); font-size: .75rem; margin-top: 16px; }

.login-loading {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,.8); font-size: .875rem; margin-top: 14px;
}
.login-error {
  background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3);
  border-radius: var(--radius); padding: 10px 14px; margin-top: 12px;
  color: #fca5a5; font-size: .85rem;
  display: flex; align-items: center; gap: 8px;
}

.login-institutional {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: rgba(255,255,255,.4); font-size: .72rem;
}
.login-institutional img { height: 22px; opacity: .7; filter: brightness(0) invert(1); }

/* ══ App shell ══════════════════════════════════════════════════════════ */
.page-app {
  background: var(--bg);
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  min-height: 100dvh;
}

.app-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--header-bd);
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  color: #fff;
  min-height: var(--header-h);
}
.header-logo {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
/* Marcas del logo Vélo — icono FontAwesome centrado sobre gradient */
.header-logo-mark,
.login-logo-mark,
.wizard-logo-mark,
.welcome-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  isolation: isolate;
}
/* Inner highlight para dar profundidad (tipo iOS icon) */
.header-logo-mark::before,
.login-logo-mark::before,
.wizard-logo-mark::before,
.welcome-mark::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.35), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 40%);
  pointer-events: none;
  z-index: 1;
}
/* Sutil ring interno que refina el borde */
.header-logo-mark::after,
.login-logo-mark::after,
.wizard-logo-mark::after,
.welcome-mark::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), inset 0 -1px 0 rgba(0,0,0,.12);
  pointer-events: none;
  z-index: 1;
}
/* Icon por encima de los overlays */
.header-logo-mark > i,
.login-logo-mark > i,
.wizard-logo-mark > i,
.welcome-mark > i {
  position: relative;
  z-index: 2;
  line-height: 1;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.18));
}

/* Tamaños específicos por contexto */
.header-logo-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  font-size: 1rem;
  box-shadow:
    0 4px 12px rgba(233,69,96,.35),
    0 1px 2px rgba(0,0,0,.15);
}
.header-logo span {
  opacity: .65; font-size: .8rem; font-weight: 400;
  padding-left: 8px; border-left: 1px solid rgba(255,255,255,.15);
  margin-left: 2px;
}
.header-actions { display: flex; align-items: center; gap: 8px; }

.desktop-nav { display: none; }

.header-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.header-btn:hover { background: rgba(255,255,255,.15); }

.header-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  cursor: pointer; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.1);
  transition: transform var(--t-spring);
}
.header-avatar:hover { transform: scale(1.05); }
.header-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Dropdown del avatar */
.user-menu { position: relative; }
.user-menu-item-profile {
  padding: 12px 12px 14px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--glass-hairline);
  margin-bottom: 4px;
}
.user-menu-item-profile .avatar { flex-shrink: 0; }
.user-menu-item-profile .info { flex: 1; min-width: 0; }
.user-menu-item-profile .name { font-weight: 700; font-size: .9rem; color: var(--text); }
.user-menu-item-profile .email { font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ══ Bottom nav (mobile) ════════════════════════════════════════════════ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-hairline);
  display: flex; align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 24px rgba(0,0,0,.06);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; cursor: pointer;
  color: var(--muted); font-size: .65rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; padding: 8px 0 6px;
  position: relative;
  transition: color var(--t);
}
.nav-item.active { color: var(--accent); }
.nav-item.active::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 3px;
  background: var(--accent);
}
.nav-icon { font-size: 1.2rem; line-height: 1; }

/* ══ Page content ═══════════════════════════════════════════════════════ */
.page-content {
  padding: 20px 16px; max-width: var(--content-max); margin: 0 auto;
}

.section-title {
  font-size: 1rem; font-weight: 700; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.section-title i { color: var(--accent); }
.section-title span { flex: 1; }

/* ══ Onboarding wizard ══════════════════════════════════════════════════ */
.page-onboarding {
  background: var(--bg); min-height: 100dvh;
}

.wizard-header {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  padding: 22px 20px 34px;
  text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.wizard-header::after {
  content: ''; position: absolute;
  bottom: -1px; left: 0; right: 0; height: 24px;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
}
.wizard-logo-mark {
  width: 58px; height: 58px; border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  font-size: 1.55rem;
  margin-bottom: 10px;
  box-shadow:
    0 10px 22px rgba(233,69,96,.38),
    0 2px 4px rgba(0,0,0,.18);
}
.wizard-logo {
  color: #fff; font-size: 1.4rem; font-weight: 700;
  font-family: var(--font-display); margin-bottom: 2px;
}
.wizard-subtitle {
  color: rgba(255,255,255,.65); font-size: .85rem;
}
.wizard-progress {
  display: flex; gap: 6px; margin: 20px 32px 0;
  position: relative; z-index: 2;
}
.wizard-step-dot {
  flex: 1; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.2);
  transition: background var(--t);
}
.wizard-step-dot.done    { background: var(--gold); }
.wizard-step-dot.active  { background: #fff; }

.wizard-body {
  padding: 24px 20px 40px; max-width: 480px; margin: 0 auto;
}
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn .35s var(--ease); }
.wizard-step-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.wizard-step-desc  { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.wizard-fields { display: flex; flex-direction: column; gap: 16px; }
.wizard-nav { display: flex; gap: 12px; margin-top: 28px; }
.wizard-nav .btn { flex: 1; }

/* Tarjetas tipo (administrativo/profesor) */
.tipo-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 14px;
  cursor: pointer;
  transition: all var(--t-spring);
  text-align: center; background: var(--surface);
}
.tipo-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tipo-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 4px var(--ring);
}
.tipo-icon {
  font-size: 1.6rem; color: var(--accent);
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-soft);
  display: inline-flex; align-items: center; justify-content: center;
}
.tipo-label { font-size: .88rem; font-weight: 600; color: var(--text); }

/* Welcome screen (step 3) */
.welcome-screen { text-align: center; padding: 28px 0; }
.welcome-mark {
  width: 92px; height: 92px; border-radius: 28px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  font-size: 2.5rem;
  margin-bottom: 18px;
  box-shadow:
    0 20px 40px rgba(233,69,96,.34),
    0 3px 6px rgba(0,0,0,.18);
  animation: bounceIn .5s var(--spring);
}
.welcome-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.welcome-desc  { color: var(--muted); margin-bottom: 28px; }
@keyframes bounceIn {
  0% { transform: scale(0) rotate(-10deg); }
  60% { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}

/* ══ Main page hero ═════════════════════════════════════════════════════ */
.main-hero {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  padding: 24px 20px 56px;
  position: relative; overflow: hidden;
  color: #fff;
}
.main-hero::before {
  content: ''; position: absolute;
  top: -40%; right: -20%; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(233,69,96,.35), transparent 70%);
  pointer-events: none;
}
.main-hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 32px; background: var(--bg);
  border-radius: 32px 32px 0 0;
}
.hero-inner { position: relative; z-index: 2; max-width: var(--content-max); margin: 0 auto; }
.hero-greeting { color: rgba(255,255,255,.65); font-size: .85rem; margin-bottom: 4px; }
.hero-name {
  color: #fff; font-size: 1.6rem; font-weight: 700;
  font-family: var(--font-display); letter-spacing: -0.02em;
}
.hero-area { color: rgba(255,255,255,.55); font-size: .85rem; margin-top: 4px; }
.hero-streak {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,166,35,.18); border: 1px solid rgba(245,166,35,.3);
  color: var(--gold); padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 600; margin-top: 14px;
}
.hero-streak i { color: var(--gold); }

/* ══ FAB ════════════════════════════════════════════════════════════════ */
.fab-container {
  display: flex; flex-direction: column; align-items: center;
  margin: -32px 0 24px; position: relative; z-index: 10;
}
.action-fab {
  width: 72px; height: 72px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  padding: 0; line-height: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-h));
  box-shadow: 0 12px 32px rgba(233,69,96,.45), 0 0 0 6px rgba(233,69,96,.08);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  transition: transform var(--t-spring), box-shadow var(--t);
  color: #fff; font-size: 1.6rem;
}
.action-fab i { line-height: 1; display: inline-block; }
#fab-icon { display: inline-flex; align-items: center; justify-content: center; }
.action-fab:hover  {
  transform: scale(1.06);
  box-shadow: 0 16px 40px rgba(233,69,96,.55), 0 0 0 8px rgba(233,69,96,.1);
}
.action-fab:active { transform: scale(.94); }
.action-fab.disabled {
  background: var(--border); box-shadow: none; color: var(--muted);
  cursor: not-allowed;
}
.fab-label {
  margin-top: 10px; font-size: .72rem; color: var(--muted);
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}

/* ══ Quick actions FAB (flotante bottom-right) ══════════════════════════ */
.quick-fab {
  position: fixed;
  right: 18px;
  bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
  z-index: 60;
}
.quick-fab-btn {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 1.1rem;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 26px rgba(0,0,0,.28), 0 0 0 4px var(--accent-soft);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform var(--t-spring), box-shadow var(--t);
}
.quick-fab-btn i { transition: transform var(--t-spring); }
.quick-fab-btn:hover { transform: scale(1.08); box-shadow: 0 14px 32px rgba(0,0,0,.34), 0 0 0 6px var(--accent-soft); }
.quick-fab-btn:active { transform: scale(.94); }
.quick-fab.open .quick-fab-btn i { transform: rotate(135deg); }
.quick-fab .dropdown-menu { min-width: 240px; }

/* En páginas sin bottom-nav (ej. admin), pegamos el FAB al borde */
.page-admin .quick-fab {
  bottom: calc(20px + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  .quick-fab { right: 28px; bottom: 28px; }
  .page-admin .quick-fab { right: 28px; bottom: 28px; }
}

/* ══ Camera modal ═══════════════════════════════════════════════════════ */
.camera-preview {
  width: 100%; aspect-ratio: 4/3; background: #000;
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
}
.camera-preview video { width: 100%; height: 100%; object-fit: cover; }
.camera-preview canvas { display: none; }
.camera-overlay {
  position: absolute; inset: 14px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: var(--radius);
  pointer-events: none;
}
.camera-overlay::before, .camera-overlay::after {
  content: ''; position: absolute; width: 28px; height: 28px;
  border: 3px solid #fff;
}
.camera-overlay::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.camera-overlay::after  { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.camera-btns { display: flex; gap: 10px; margin-top: 14px; }

/* ══ Confetti ═══════════════════════════════════════════════════════════ */
.confetti-piece {
  position: fixed; width: 10px; height: 10px;
  pointer-events: none; z-index: 9999;
  animation: confettiFall 2.5s ease-out forwards;
}
@keyframes confettiFall {
  0%   { opacity: 1; transform: translateY(-20px) rotate(0deg); }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

/* ══ Calendar ═══════════════════════════════════════════════════════════ */
.calendar-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-hairline);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.calendar-header {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.calendar-title { font-weight: 700; font-size: .95rem; }
.calendar-nav {
  background: rgba(255,255,255,.1);
  color: #fff; border: none; cursor: pointer;
  font-size: .9rem; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.calendar-nav:hover { background: rgba(255,255,255,.2); }

.calendar-grid { padding: 12px; }
.calendar-dow {
  display: grid; grid-template-columns: repeat(7, 1fr);
  text-align: center; margin-bottom: 6px;
}
.calendar-dow span {
  font-size: .65rem; color: var(--muted); font-weight: 700;
  padding: 4px 0; text-transform: uppercase; letter-spacing: .05em;
}
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: .82rem; font-weight: 600;
  color: var(--text); background: transparent;
  transition: all var(--t-fast);
}
.cal-day.other-month { opacity: .3; }
.cal-day.today { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal-day.approved { background: var(--success-soft); color: var(--success); }
.cal-day.pending  { background: var(--warning-soft); color: var(--warning); }
.cal-day.rejected { background: var(--danger-soft);  color: var(--danger); }

/* ══ Podium / Leaderboard ═══════════════════════════════════════════════ */
.podium {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 10px; padding: 24px 0 8px;
}
.podium-place {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 1; max-width: 100px;
}
.podium-avatar { position: relative; }
.podium-crown {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-size: 1.2rem; color: var(--gold);
}
.podium-bar {
  width: 100%; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: rgba(0,0,0,.18);
  font-family: var(--font-display);
}
.podium-bar.p1 { height: 90px; background: linear-gradient(180deg, #FFD966, #E8A93A); }
.podium-bar.p2 { height: 68px; background: linear-gradient(180deg, #E8EAED, #B5B8BF); }
.podium-bar.p3 { height: 52px; background: linear-gradient(180deg, #D7905D, #A06A3E); }
.podium-name  { font-size: .75rem; font-weight: 600; text-align: center; line-height: 1.2; color: var(--text); }
.podium-count { font-size: .72rem; color: var(--muted); }

.lb-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--glass-hairline);
}
.lb-item:last-child { border-bottom: none; }
.lb-rank {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem; color: var(--muted);
}
.lb-info { flex: 1; min-width: 0; }
.lb-name  { font-weight: 600; font-size: .9rem; color: var(--text); }
.lb-area  { font-size: .72rem; color: var(--muted); }
.lb-days  { font-weight: 700; color: var(--accent); font-size: .9rem; white-space: nowrap; }

/* ══ Progress card ══════════════════════════════════════════════════════ */
.progress-card {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: var(--radius-lg); padding: 22px; color: #fff;
  position: relative; overflow: hidden;
}
.progress-card::before {
  content: ''; position: absolute;
  top: -50%; right: -20%; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(233,69,96,.35), transparent 70%);
  pointer-events: none;
}
.progress-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; position: relative;
}
.progress-num {
  font-size: 2.6rem; font-weight: 800;
  font-family: var(--font-display); line-height: 1;
}
.progress-num span { font-size: 1rem; opacity: .5; font-weight: 600; }
.progress-label {
  font-size: .72rem; opacity: .7; margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
}
.progress-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--gold);
}
.progress-wrap-dark {
  background: rgba(255,255,255,.12);
  height: 10px; border-radius: var(--radius-pill); overflow: hidden;
  position: relative;
}
.progress-bar-light {
  height: 100%; border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width .8s var(--ease);
  position: relative;
}
.progress-msg { font-size: .8rem; opacity: .8; margin-top: 10px; }

/* ══ Responsive ═════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .page-content { padding: 28px 24px; }
  .bottom-nav   { display: none; }
  .app-header   { padding: 14px 32px; }

  .desktop-nav { display: flex; gap: 4px; }
  .desktop-nav a {
    padding: 8px 14px; border-radius: var(--radius);
    color: rgba(255,255,255,.7); font-size: .875rem; font-weight: 500;
    transition: all var(--t); text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .desktop-nav a i { font-size: .9rem; }
  .desktop-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .desktop-nav a.active { background: rgba(255,255,255,.14); color: #fff; }

  .page-app { padding-bottom: 0; }

  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
