:root {
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #f97316;
  --primary-600: #ea580c;
  --secondary: #ea580c;
  --accent: #10b981;
  --surface: #f9fafb;
  --card: #ffffff;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100vw; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fdfcfa 0%, #f5f4f0 40%, #fdfcfa 100%);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.narrow { width: min(760px, 92%); }

/* Ensure content takes remaining height so footer sits at bottom */
main { flex: 1; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { color: #1f2937; font-weight: 800; text-decoration: none; letter-spacing: 0.2px; }
.site-header nav { display: flex; gap: 18px; align-items: center; }
.site-header nav a { color: var(--text); text-decoration: none; opacity: 0.85; }
.site-header nav a.active { font-weight: 700; opacity: 1; }

/* Avatar button in header */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.25);
  touch-action: manipulation; /* Improve touch responsiveness on mobile */
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
}
.avatar svg { width: 22px; height: 22px; }
.avatar:hover { filter: brightness(1.05); }
.avatar { cursor: pointer; }

/* Avatar dropdown menu */
.menu-wrap { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: 46px; min-width: 240px;
  background: #fff; color: #0b1220; border-radius: 10px;
  box-shadow: 0 8px 20px rgba(2,6,23,0.16);
  border: 1px solid #e5e7eb; overflow: hidden; display: none;
  z-index: 1000;
  touch-action: manipulation; /* Improve touch responsiveness */
  -webkit-tap-highlight-color: transparent;
}
.dropdown-menu.is-open { display: block; }
.menu-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #0b1220; text-decoration: none;
}
.menu-item + .menu-item { border-top: 1px solid #f1f5f9; }
.menu-item:hover { background: #f8fafc; }
.menu-item svg { width: 18px; height: 18px; color: #111827; }

/* Override header nav link styles inside dropdown to ensure proper contrast */
.site-header nav .dropdown-menu a { color: #0b1220 !important; opacity: 1 !important; }
.dropdown-menu .menu-item span { font-weight: 600; font-size: 16px; color: #0f172a; }

/* Workout page styling */
body.workout-page {
  background: linear-gradient(180deg, #fdfcfa 0%, #f5f4f0 40%, #fdfcfa 100%);
}
.workout-page .site-footer {
  /* Use the same colorful footer as the home/dashboard */
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  border-top: none; /* avoid bright edge line above footer */
}
.workout-page .site-footer::before { content: none !important; height: 0; }
.workout-page .site-footer .container { color: #ffffff; }
.workout-page .site-header {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* ── Module pages (training + account) warm theme ── */
body.module-page {
  background: #f5f4f0 !important;
}
body.module-page .site-header {
  background: rgba(245,244,240,0.95) !important;
  border-bottom: 1px solid #e8e4dc !important;
  backdrop-filter: blur(12px);
  box-shadow: none !important;
}
body.module-page .brand {
  color: #0f172a !important;
  font-weight: 900;
  letter-spacing: -0.3px;
}
body.module-page .site-footer,
body.module-page.shooting-page .site-footer,
body.module-page.workout-page .site-footer,
body.module-page.upper-body-page .site-footer {
  background: #0a0f1e !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  text-align: center;
  padding: 28px 0;
  color: rgba(255,255,255,0.35);
  font-size: 13px;
}
body.module-page .site-footer::before { display: none !important; }
body.module-page .site-footer .container { color: rgba(255,255,255,0.35) !important; }
body.module-page .page-header {
  background: #fff !important;
  border-bottom: 1px solid #e8e4dc;
  padding: 40px 0 36px !important;
}
body.module-page .page-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -1px;
  margin: 0 0 8px;
}
body.module-page .page-header .subtitle {
  font-size: 16px;
  color: #64748b;
  margin: 0;
  text-align: center;
}
body.module-page .copy {
  background: #f5f4f0;
  padding-top: 40px !important;
}
body.module-page h2.day-title,
body.module-page .day-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 28px 0 10px !important;
}
body.module-page .workout-table {
  background: #fff !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
  border: 1.5px solid #e8e4dc !important;
}
body.module-page .workout-table td {
  border-color: #f1ede6 !important;
  color: #334155 !important;
  padding: 11px 14px !important;
}
body.module-page .workout-table tr:first-child td {
  background: #f8f7f4;
  font-weight: 700;
  color: #0f172a !important;
}
body.module-page h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin: 36px 0 16px;
}
/* Account page specific */
body.module-page .account-section {
  background: #f5f4f0;
  padding: 48px 0 80px;
}
body.module-page .account-header {
  text-align: center;
  margin-bottom: 40px;
}
body.module-page .account-header h1 {
  font-size: 32px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -1px;
  margin: 0 0 8px;
}
body.module-page .account-subtitle {
  color: #64748b;
  font-size: 15px;
  margin: 0;
}
body.module-page .avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 16px;
}
body.module-page .tab-nav {
  display: flex;
  gap: 4px;
  background: #fff;
  border: 1.5px solid #e8e4dc;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  width: fit-content;
}
body.module-page .tab-button {
  padding: 10px 20px;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
body.module-page .tab-button.active {
  background: #f97316;
  color: #fff;
}
body.module-page .tab-button:hover:not(.active) {
  background: #f5f4f0;
  color: #0f172a;
}
body.module-page .account-card {
  background: #fff;
  border: 1.5px solid #e8e4dc;
  border-radius: 20px;
  padding: 32px;
}
body.module-page .card-section + .card-section {
  border-top: 1px solid #f1ede6;
  margin-top: 28px;
  padding-top: 28px;
}
body.module-page .section-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}
body.module-page .section-header .section-description {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 20px;
}
body.module-page .form-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  display: block;
  margin-bottom: 6px;
}
body.module-page .form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #0f172a;
  background: #fafaf9;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
body.module-page .form-input:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
  background: #fff;
}
body.module-page .form-input:disabled {
  background: #f8f7f4;
  color: #94a3b8;
}
body.module-page .form-group { margin-bottom: 16px; }
body.module-page .form-actions { margin-top: 20px; }
body.module-page .plan-card {
  background: #f8f7f4;
  border: 1.5px solid #e8e4dc;
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
body.module-page .plan-title {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 4px;
}
body.module-page .plan-name {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
body.module-page .alert-success {
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.2);
  color: #15803d;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  margin-top: 12px;
}
body.module-page .alert-error {
  background: rgba(220,38,38,0.07);
  border: 1px solid rgba(220,38,38,0.2);
  color: #dc2626;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  margin-top: 12px;
}

/* ── Module page: replace all blue/purple with warm orange ── */
body.module-page .tab-list {
  background: #0f172a !important;
  padding: 5px !important;
  gap: 4px !important;
}
body.module-page .tab {
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.65) !important;
  font-size: 14px;
  padding: 11px 14px !important;
}
body.module-page .tab:is(:hover,:focus-visible) {
  background: rgba(255,255,255,0.14) !important;
  color: #fff !important;
}
body.module-page .tab.is-active {
  background: #f97316 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(249,115,22,0.35) !important;
}
body.module-page .tabs-card {
  border: 1.5px solid #e8e4dc;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05) !important;
}
body.module-page .section-title {
  background: #0f172a !important;
  color: #ffffff !important;
  font-size: 16px !important;
  padding: 13px 18px !important;
}
body.module-page .callout {
  background: rgba(249,115,22,0.06) !important;
  border-color: rgba(249,115,22,0.2) !important;
  color: #92400e !important;
}
body.module-page .subheading {
  color: #f97316 !important;
  font-size: 16px !important;
}
body.module-page .link-tile {
  background: #fff7f0 !important;
  border-color: rgba(249,115,22,0.2) !important;
  color: #c2410c !important;
}
body.module-page .link-tile:hover {
  background: #fff0e0 !important;
}
body.module-page details.accordion > summary {
  background: #0f172a !important;
  border-color: rgba(255,255,255,0.08) !important;
}
body.module-page details.accordion {
  border: 1.5px solid #e8e4dc !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}
body.module-page .panel-inner h3,
body.module-page .panel-inner h2 {
  color: #0f172a;
}
body.module-page .panel-inner p,
body.module-page .panel-inner li {
  color: #334155;
}
body.module-page .copy a {
  color: #f97316;
}
body.module-page .copy a:hover {
  color: #ea6c0a;
}
body.module-page .copy h3 {
  color: #0f172a;
}
body.module-page .copy blockquote {
  border-left-color: #f97316;
  background: rgba(249,115,22,0.05);
  color: #334155;
}
/* shooting page specific */
body.module-page .shooting-page .site-header,
body.module-page.shooting-page .site-header {
  background: rgba(245,244,240,0.95) !important;
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; border: none; cursor: pointer; color: #fff; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn-small { padding: 8px 14px; font-size: 14px; }
.btn-primary { 
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-size: 150% 150%;
  color: #fff !important; 
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.btn-secondary { background: #0ea5e9; color: #fff !important; }
.btn-outline { border: 1px solid rgba(0,0,0,0.15); color: #1f2937; background: transparent; }
.btn-ghost { color: #1f2937; border: 1px solid rgba(0,0,0,0.1); background: rgba(0,0,0,0.02); }

.hero { padding: 84px 0 36px; text-align: center; }
.hero-inner h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; margin: 0 0 12px; color: #1f2937; }
.subtitle { color: var(--muted); margin: 0 auto 26px; max-width: 720px; }
.cta-row { 
  display: flex; 
  gap: 16px; 
  justify-content: center; 
  flex-wrap: wrap;
  margin: 32px auto 0;
  width: 100%;
  text-align: center;
}

/* Athlete showcase styles */
.athlete-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.athlete-hero-content {
  padding-right: 40px;
}

.athlete-hero-content h1 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.1;
  margin: 0 0 24px;
  color: #1f2937;
  font-weight: 800;
}

.athlete-hero-content .subtitle {
  font-size: 1.25rem;
  margin: 0 0 32px;
  color: #4b5563;
}

.athlete-hero-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.athlete-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.athlete-credentials {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.credential-item .icon {
  font-size: 24px;
  color: var(--primary);
}

.credential-item .text {
  font-weight: 600;
  color: #1f2937;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 60px auto;
  padding: 0 20px;
  max-width: 1200px;
  width: 90%;
}

.image-grid-item {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.image-grid-item:hover {
  transform: translateY(-8px);
}

.image-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .athlete-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  
  .athlete-hero-content {
    padding-right: 0;
  }
  
  .athlete-credentials {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 40px auto;
  }
}

.plans-section { padding: 36px 0 72px; }
.plans-section .container { width: min(1280px, 96%); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
@media (min-width: 1200px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 26px; } }

/* Dashboard layout tuned for 3 + 2 cards centered (works well at ~90% zoom) */
.dashboard-page .page-header { padding: 56px 0 16px; }
/* Use 6-column grid, make each card span 2 columns for precise centering */
.dashboard-cards { grid-template-columns: repeat(6, 1fr); }
.dashboard-cards .card { grid-column: span 2; min-width: 0; }
/* Row 1: columns 1-2, 3-4, 5-6 */
.dashboard-cards > .card:nth-child(1) { grid-column: 1 / span 2; }
.dashboard-cards > .card:nth-child(2) { grid-column: 3 / span 2; }
.dashboard-cards > .card:nth-child(3) { grid-column: 5 / span 2; }
/* Row 2: center the two cards in columns 2-3 and 4-5 */
.dashboard-cards > .card:nth-child(4) { grid-column: 2 / span 2; }
.dashboard-cards > .card:nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 1100px) {
  .dashboard-cards { grid-template-columns: repeat(3, 1fr); }
  .dashboard-cards .card { grid-column: auto; }
}
/* Ensure clean single-column layout on phones */
@media (max-width: 900px) {
  .dashboard-cards { grid-template-columns: 1fr; gap: 18px; }
  .dashboard-cards > .card { grid-column: auto !important; }
  /* Add extra breathing room above the footer on phones */
  .dashboard-page section.container { padding: 8px 0 140px !important; }
}

/* Dashboard page: energy light background */
body.dashboard-page {
  background: #f5f4f0 !important;
}
.dashboard-page .site-footer {
  background: #f5f4f0 !important;
  border-top: 1px solid #e8e4dc !important;
}
.dashboard-page .site-footer .container { color: #94a3b8 !important; }

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff, #f7f8fb);
  color: #0b1220;
  border-radius: 18px;
  padding: 20px 20px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); }

/* Gradient ring border (metallic sheen) */
.card::before {
  content: "";
  position: absolute; inset: -1px; border-radius: inherit;
  padding: 2px;
  background: var(--ring-gradient, conic-gradient(from 0deg, #e5e7eb, #d1d5db, #cbd5e1, #e5e7eb));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* Soft gloss */
.card::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.18) 22%, rgba(255,255,255,0) 40%);
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Metallic variants */
.card--silver {
  --ring-gradient: conic-gradient(from 160deg, #f8fbff, #e5edf5, #cdd7e3, #b8c6d5, #e3eaf2, #f8fbff);
  background: linear-gradient(160deg, #f7f9fc, #eef2f7);
  box-shadow: var(--shadow), 0 18px 45px rgba(101, 117, 133, 0.18);
}

.card--gold {
  --ring-gradient: conic-gradient(from 120deg, #fff7cc, #ffe38a, #ffd34d, #ffb300, #ffd34d, #ffe38a, #fff7cc);
  background: linear-gradient(160deg, #fffaf0, #fff3d4);
  box-shadow: var(--shadow), 0 18px 48px rgba(245, 158, 11, 0.22);
}

.card--platinum {
  --ring-gradient: conic-gradient(from 90deg, #eef0ff, #d7ccff, #c6b8ff, #c0e2ff, #e7f0ff, #eef0ff);
  background: linear-gradient(160deg, #f7f5ff, #f0f7ff);
  box-shadow: var(--shadow), 0 18px 48px rgba(139, 92, 246, 0.25);
}

.card.highlight { outline: 3px solid #a855f7; }
.card h3 { margin: 10px 0 8px; font-size: 20px; }
.card .price { margin: 0 0 8px; font-weight: 800; }
.card .price .per { font-weight: 600; color: #475569; margin-left: 4px; font-size: 14px; }
.badge { background: #fce7f3; color: #be185d; padding: 3px 8px; border-radius: 999px; font-size: 12px; margin-left: 6px; }

/* ── Flash Banner (site-wide fixed top bar) ── */
.flash-banner {
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  line-height: 1.4;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 201;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.flash-banner-orig {
  text-decoration: line-through;
  opacity: 0.65;
  font-weight: 400;
}
.flash-banner-cta {
  display: inline-block;
  background: #fff;
  color: #dc2626;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  text-decoration: none;
  margin-left: 4px;
  transition: opacity 0.15s;
}
.flash-banner-cta:hover { opacity: 0.85; }
.flash-banner-mobile { display: none; }

/* ── About page pricing note ── */
.about-pricing-note {
  background: #fff7f0;
  border: 1.5px solid rgba(249,115,22,0.25);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
}
.about-plan-name {
  font-weight: 700;
  color: #0f172a;
}
.about-plan-price {
  color: #334155;
}
.about-plan-price s {
  color: #94a3b8;
  font-weight: 400;
}
.about-plan-price strong {
  color: #0f172a;
}
.about-plan-save {
  background: rgba(249,115,22,0.12);
  color: #f97316;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Flash Sale Styles */
.card--flash-sale {
  position: relative;
  overflow: visible;
  border: 2px solid #ef4444;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.25);
  margin-top: 16px;
}
.flash-sale-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: pulse-sale 2s ease-in-out infinite;
  z-index: 10;
}
@keyframes pulse-sale {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}
.price-original {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 0.85em;
  margin-right: 8px;
}
.card-icon { font-size: 28px; }
.features { margin: 12px 0 18px; padding-left: 18px; }
.features li { margin: 6px 0; }

/* Prevent horizontal overflow on tiny screens */
@media (max-width: 400px) {
  .container { width: 94%; }
  .card { padding: 16px; border-radius: 14px; }
  .btn { 
    white-space: nowrap !important;
    min-width: fit-content;
    width: auto;
  }
  .site-header nav {
    gap: 10px;
  }
  .btn-small {
    padding: 8px 12px;
  }
}

/* Lock badge for gated content */
.card.is-locked {
  position: relative;
  filter: grayscale(0.35) saturate(0.85);
}
.card.is-locked::after {
  content: "🔒 Locked";
  position: absolute; top: 10px; right: 10px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  font-weight: 800;
  padding: 6px 10px; border-radius: 999px;
  font-size: 12px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.35);
}
.card.is-locked .btn { cursor: not-allowed; }

/* Simple modal for upgrade prompt */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(2,6,23,0.6);
  display: none; align-items: center; justify-content: center;
  z-index: 50;
}
.modal-backdrop.is-open { display: flex; }
.modal {
  background: #ffffff; color: #0b1220; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(2,6,23,0.35);
  width: min(480px, 92%);
  padding: 18px 18px 14px;
  border: 1px solid #e5e7eb;
}
.modal h3 { margin: 4px 0 8px; font-size: 20px; }
.modal p { margin: 0 0 16px; color: #475569; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; }

.site-footer {
  position: relative;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
}
.site-footer::before { content: none; }
.site-footer .container { position: relative; z-index: 2; padding: 26px 0 40px; text-align: center; color: #ffffff; }

.page-header { padding: 72px 0 10px; text-align: center; }
.page-header h1 { color: #1f2937; }
.copy { padding: 12px 0 64px; }
.list { line-height: 1.9; }

.auth { padding: 72px 0 64px; text-align: center; }
.form { display: grid; gap: 14px; text-align: left; padding: 24px; }
.form label { display: grid; gap: 6px; font-weight: 600; color: #0b1220; }
.form input { padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 16px; }
.muted { color: #6b7280; font-size: 14px; }


/* --- Shooting page: section cards, callouts, and accordion --- */
.section-card {
  background: #ffffff;
  color: #0b1220;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 0 0 22px;
}
.section-title {
  margin: 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}
.section-body { padding: 18px; }

.callout {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1e3a8a;
  padding: 12px 14px;
  border-radius: 10px;
}

.subheading {
  margin: 18px 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #1e40af;
}

.link-tile {
  display: inline-flex; align-items: center; gap: 10px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1e3a8a;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}
.link-tile .icon { opacity: 0.9; }

details.accordion {
  background: #ffffff;
  color: #0b1220;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: block;
  margin: 0 0 28px;
}
details.accordion > summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
}
details.accordion > summary::-webkit-details-marker { display: none; }
details.accordion .content {
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 12px 12px;
}
details.accordion .chev { transition: transform .2s ease; }
details.accordion[open] .chev { transform: rotate(180deg); }

/* Ensure cards/accordion fit their container width */
.section-card, details.accordion { width: 100%; }

/* Extra bottom spacing for last section on page to avoid footer overlap */
.copy:last-of-type { padding-bottom: 180px; }

/* Shooting page layout tweaks */
.shooting-page main { padding-top: 16px; }
.shooting-page .copy { padding-top: 18px; }




/* Shooting page: light background */
body.shooting-page {
  background: linear-gradient(180deg, #fdfcfa 0%, #f5f4f0 40%, #fdfcfa 100%);
}
.shooting-page .site-footer {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  border-top: none;
}
.shooting-page .site-footer .container { color: #ffffff; }

/* Subtle header */
.shooting-page .site-header {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Home page: light background */
body.home-page {
  background: linear-gradient(180deg, #fdfcfa 0%, #f5f4f0 40%, #fdfcfa 100%) !important;
}
.home-page .site-footer {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  border-top: none;
}
.home-page .site-footer .container { color: #ffffff; }

/* --- Professional tabs for shooting page --- */
.tabs-card {
  background: #ffffff;
  color: #0b1220;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tab-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 6px;
  gap: 6px;
}
.tab {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,0.14);
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.tab:is(:hover,:focus-visible) { background: rgba(255,255,255,0.22); }
.tab.is-active {
  background: #ffffff;
  color: #0b1220;
  box-shadow: 0 6px 16px rgba(2,6,23,0.12);
}

.tab-panels { padding: 14px 16px 18px; }
.tab-panel { display: block; }
.tab-panel[hidden] { display: none !important; }
.tab-panel .panel-inner { padding: 6px 2px; }
.tab-panel.is-active { animation: fadeIn .18s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: none; } }

/* Account Page Styles */
.account-section {
  padding: 40px 0 60px;
}

/* Account page: light background */
body.account-page { background: linear-gradient(180deg, #fdfcfa 0%, #f5f4f0 40%, #fdfcfa 100%); }
.account-page .site-footer { background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%); border-top: none; }
.account-page .account-section { padding-bottom: 160px; }

.account-header {
  text-align: center;
  margin-bottom: 48px;
}

.account-avatar {
  margin-bottom: 24px;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
  border: 4px solid rgba(255, 255, 255, 0.2);
}

#avatar-initials {
  color: white;
  font-size: 2rem;
  font-weight: 700;
}

.account-header h1 {
  color: #1f2937;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: none;
}

.account-subtitle {
  color: #6b7280;
  font-size: 1.2rem;
  margin: 0;
  font-weight: 400;
}

.account-tabs {
  max-width: 800px;
  margin: 0 auto;
}

.tab-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.tab-button {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  color: #6b7280;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  touch-action: manipulation; /* Improve touch responsiveness on mobile */
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on iOS */
}

.tab-button:hover {
  color: #1f2937;
  background: rgba(0, 0, 0, 0.05);
}

.tab-button.active {
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-content {
  position: relative;
}

.account-page .tab-panel {
  display: none;
}

.account-page .tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.account-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.card-section {
  margin-bottom: 32px;
}

.card-section:last-child {
  margin-bottom: 0;
}

.section-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.section-header h3 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-description {
  margin: 0;
  color: #666;
  font-size: 1rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-header h3 {
  margin: 0 0 4px 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
}

.card-description {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* Subscription Card */
.subscription-status {
  margin-bottom: 24px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.status-label {
  font-weight: 500;
  color: #333;
}

.status-value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-name {
  font-weight: 600;
  color: #1a1a1a;
  text-transform: capitalize;
}

.plan-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Enhanced Form Styles */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.form-label {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-icon {
  font-size: 1rem;
}

.form-input.enhanced {
  padding: 16px 20px;
  border: 2px solid #e8ecef;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-input.enhanced:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.form-input.enhanced:disabled {
  background: #f8f9fa;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
}

.form-help {
  color: #666;
  font-size: 0.9rem;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Training profile chip selectors */
.tp-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.tp-chip {
  padding: 8px 16px;
  border: 2px solid #e8ecef;
  border-radius: 20px;
  background: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #374151;
}

.tp-chip:hover {
  border-color: #f97316;
  color: #f97316;
}

.tp-chip.selected {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
  font-weight: 600;
}

.input-group {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.input-group .form-input {
  flex: 1;
}

.form-actions.enhanced {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid rgba(0, 0, 0, 0.05);
}

/* Enhanced Button Styles */
.btn.enhanced {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn.enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-icon {
  font-size: 1rem;
}

/* Billing Tab Styles */
.subscription-overview {
  margin-top: 24px;
}

.plan-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
  padding: 24px;
  border: 2px solid rgba(102, 126, 234, 0.1);
}

.plan-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.plan-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.plan-info {
  flex: 1;
}

.plan-title {
  display: block;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  margin-bottom: 4px;
}

.plan-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: capitalize;
}

.plan-badge {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.plan-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Enhanced Alert Styles */
.alert.enhanced {
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 1rem;
  margin-top: 20px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.alert-success.enhanced {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 2px solid #28a745;
}

.alert-error.enhanced {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 2px solid #dc3545;
}

/* Button Variants */
.btn-danger {
  background: #dc3545;
  border-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
  border-color: #bd2130;
}

/* Responsive Design */
@media (max-width: 768px) {
  .account-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .account-card {
    padding: 24px;
  }
  
  .account-header h1 {
    font-size: 2rem;
  }
  
  .form-actions, .security-actions {
    flex-direction: column;
  }
  
  .input-group {
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD v2 — Energy Light Theme
   ═══════════════════════════════════════════════════════════ */

body.dashboard-page {
  background: #f5f4f0 !important;
  color: #0f172a;
}

/* Light header */
body.dashboard-page .site-header.db-header {
  background: rgba(255,255,255,0.95) !important;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  backdrop-filter: blur(16px);
}
.db-brand { color: #0f172a !important; font-size: 18px; font-weight: 900; letter-spacing: -0.3px; }
.db-dropdown { background: #fff !important; border-color: rgba(0,0,0,0.08) !important; }
.db-dropdown .menu-item { color: #0f172a !important; }
.db-dropdown .menu-item span { color: #0f172a !important; }
.db-dropdown .menu-item:hover { background: #f8f7f4 !important; }
.db-dropdown .menu-item + .menu-item { border-color: #f1f0ec !important; }
.db-dropdown .menu-item svg { color: #64748b !important; }
body.dashboard-page .site-header nav .dropdown-menu a { color: #0f172a !important; }

/* ── HERO ─────────────────────────────────────────────────── */
.db-hero {
  padding: 52px 0 44px;
  background: #fff;
  border-bottom: 3px solid #f97316;
  position: relative;
  overflow: hidden;
}
.db-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 480px; height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(249,115,22,0.05) 100%);
  pointer-events: none;
}
.db-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.db-greeting {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #f97316;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.db-name {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.05;
  letter-spacing: -1px;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}
.db-tagline {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Streak badge in hero */
.db-streak-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #fff7ed, #fff);
  border: 2px solid #fed7aa;
  border-radius: 20px;
  padding: 20px 28px;
  min-width: 120px;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(249,115,22,0.12);
}
.streak-fire { font-size: 28px; line-height: 1; }
.streak-num {
  font-size: 42px;
  font-weight: 900;
  color: #ea580c;
  line-height: 1.1;
  letter-spacing: -1px;
}
.streak-label {
  font-size: 11px;
  font-weight: 700;
  color: #9a3412;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

/* ── STATS STRIP ──────────────────────────────────────────── */
.db-stats-strip {
  background: #fff;
  border-bottom: 1px solid #f1ede6;
  padding: 0;
}
.db-stats-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}
.db-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 48px;
}
.db-stat-divider {
  width: 1px;
  background: #f1ede6;
  align-self: stretch;
}
.db-stat-val {
  font-size: 30px;
  font-weight: 900;
  color: #f97316;
  letter-spacing: -0.5px;
  line-height: 1;
}
.db-stat-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 5px;
}

/* ── AI CTA SECTION ───────────────────────────────────────── */
.db-ai-section { padding: 32px 0 0; }
.db-ai-card {
  display: flex;
  gap: 40px;
  align-items: center;
  background: #fff;
  border: 2px solid #fed7aa;
  border-radius: 20px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(249,115,22,0.08);
}
.db-ai-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 100%;
  background: linear-gradient(180deg, #f97316, #ea580c);
  pointer-events: none;
}
.db-ai-left { flex: 1; padding-left: 8px; }
.db-ai-tag {
  display: inline-block;
  background: #fff7ed;
  color: #ea580c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #fed7aa;
  margin-bottom: 14px;
}
.db-ai-heading {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.db-ai-body {
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 480px;
}
.db-ai-btn { gap: 8px; background: linear-gradient(135deg,#f97316,#ea580c) !important; box-shadow: 0 4px 16px rgba(249,115,22,0.35) !important; animation: none !important; }
.db-ai-right { flex-shrink: 0; }
.db-ai-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.db-ai-features li {
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.db-ai-check {
  color: #16a34a;
  font-weight: 800;
  font-size: 15px;
}

/* ── CUSTOM PLAN BANNER ───────────────────────────────────── */
.db-plan-banner { padding: 24px 0 0; }
.db-plan-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f97316;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 2px 12px rgba(249,115,22,0.08);
}
.db-plan-bar-left { display: flex; align-items: center; gap: 14px; }
.db-plan-icon { font-size: 28px; }
.db-plan-title { font-weight: 700; color: #0f172a; font-size: 15px; }
.db-plan-sub { color: #94a3b8; font-size: 13px; margin-top: 2px; }
.db-plan-bar-right { display: flex; gap: 10px; align-items: center; }
.db-switch-btn { color: #94a3b8 !important; border-color: #e2e8f0 !important; }

/* ── TODAY'S TRAINING ─────────────────────────────────────── */
.db-today { padding: 0; }
.db-today-header { margin-bottom: 16px; }
.db-today-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.db-day-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.db-day-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #fed7aa;
  background: #fff7ed;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  padding: 0;
}

.db-day-arrow:hover {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}
.db-today-day {
  font-size: 13px;
  font-weight: 700;
  color: #f97316;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.db-today-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.db-today-progress-bar {
  flex: 1;
  height: 6px;
  background: #e8e4dc;
  border-radius: 999px;
  overflow: hidden;
}
.db-today-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: 999px;
  transition: width 0.5s ease;
}
.db-today-progress-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
}

/* Exercise row */
.db-today-list { display: flex; flex-direction: column; gap: 10px; }

.db-exercise-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #f1ede6;
  border-radius: 14px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.db-exercise-row:hover {
  border-color: #fdba74;
  box-shadow: 0 4px 16px rgba(249,115,22,0.1);
  transform: translateY(-1px);
}
.db-exercise-row.is-done {
  background: #f0fdf4;
  border-color: #bbf7d0;
  opacity: 0.8;
}
.db-exercise-row.is-done:hover { transform: none; box-shadow: none; }

.db-ex-check {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  transition: all 0.2s ease;
}
.db-exercise-row.is-done .db-ex-check {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.db-ex-row-info { flex: 1; min-width: 0; }
.db-ex-row-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.db-exercise-row.is-done .db-ex-row-name {
  color: #64748b;
  text-decoration: line-through;
}
.db-ex-row-meta {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.db-ex-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.db-ex-row-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
}
.db-ex-row-arrow {
  color: #cbd5e1;
  font-size: 16px;
  transition: color 0.15s ease;
}
.db-exercise-row:hover .db-ex-row-arrow { color: #f97316; }

/* Skeleton loader */
.db-exercise-skeleton {
  height: 68px;
  background: linear-gradient(90deg, #f8f7f4 25%, #f1ede6 50%, #f8f7f4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 14px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Rest day */
.db-rest-day {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px dashed #e2e8f0;
  border-radius: 14px;
  padding: 24px 20px;
}
.db-rest-icon { font-size: 32px; }
.db-rest-title { font-weight: 700; color: #0f172a; font-size: 16px; margin-bottom: 3px; }
.db-rest-sub { color: #94a3b8; font-size: 13px; }

/* ── EXERCISE DETAIL MODAL ────────────────────────────────── */
.db-exercise-modal {
  background: #fff !important;
  border: none !important;
  padding: 0 !important;
  width: min(560px, 96%) !important;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 20px !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18) !important;
}
.db-ex-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 10;
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.4);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.db-ex-close:hover { background: rgba(0,0,0,0.65); }

/* Video */
.db-ex-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #0f172a;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  position: relative;
}
.db-ex-video video { width: 100%; height: 100%; object-fit: cover; }
.db-ex-video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}
.db-ex-video-icon {
  width: 56px; height: 56px;
  background: rgba(249,115,22,0.2);
  border: 2px solid rgba(249,115,22,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #f97316;
  font-size: 20px;
  padding-left: 4px;
}
.db-ex-video-placeholder p {
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}

/* Body */
.db-ex-body { padding: 24px 28px 32px; }
.db-ex-meta-row { display: flex; gap: 8px; margin-bottom: 10px; }
.db-ex-category, .db-ex-difficulty {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  padding: 3px 10px; border-radius: 999px;
}
.db-ex-category { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }
.db-ex-difficulty { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

.db-ex-name {
  font-size: 26px; font-weight: 900; color: #0f172a;
  margin: 0 0 10px; letter-spacing: -0.5px;
}
.db-ex-desc { color: #64748b; font-size: 15px; line-height: 1.6; margin: 0 0 20px; }

/* Sets / Reps / Rest */
.db-ex-stats {
  display: flex;
  align-items: center;
  background: #f8f7f4;
  border-radius: 14px;
  padding: 16px 0;
  margin-bottom: 20px;
}
.db-ex-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.db-ex-stat-div { width: 1px; height: 32px; background: #e8e4dc; }
.db-ex-stat-val { font-size: 22px; font-weight: 900; color: #0f172a; letter-spacing: -0.5px; }
.db-ex-stat-lbl { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.6px; }

/* Instructions */
.db-ex-instructions { margin-bottom: 20px; }
.db-ex-instructions-title { font-size: 13px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.8px; margin: 0 0 8px; }
.db-ex-instructions p { color: #475569; font-size: 14px; line-height: 1.7; margin: 0; }

/* Muscle tags */
.db-ex-muscles { margin-bottom: 24px; }
.db-ex-muscle-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.db-ex-muscle-tag {
  font-size: 12px; font-weight: 600;
  background: #f1f5f9; color: #475569;
  border: 1px solid #e2e8f0;
  padding: 4px 10px; border-radius: 999px;
  text-transform: capitalize;
}

/* Complete button */
.db-ex-complete-btn {
  width: 100%;
  padding: 16px !important;
  font-size: 16px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  animation: none !important;
  box-shadow: 0 6px 20px rgba(249,115,22,0.35) !important;
  letter-spacing: 0.2px;
}
.db-ex-complete-btn.is-done {
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  box-shadow: 0 6px 20px rgba(22,163,74,0.3) !important;
  cursor: default;
}

/* ── TRAINING MODULES ─────────────────────────────────────── */
.db-modules { padding: 36px 0 80px; }
.db-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 20px;
}
.db-module-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
/* Row 1: 3 equal cards each spanning 2 of 6 columns */
.db-module-grid > .db-module:nth-child(1) { grid-column: 1 / span 2; }
.db-module-grid > .db-module:nth-child(2) { grid-column: 3 / span 2; }
.db-module-grid > .db-module:nth-child(3) { grid-column: 5 / span 2; }
/* Row 2: 2 cards centered */
.db-module-grid > .db-module:nth-child(4) { grid-column: 2 / span 2; }
.db-module-grid > .db-module:nth-child(5) { grid-column: 4 / span 2; }

/* Module card base */
.db-module {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.db-module:hover { transform: translateY(-3px); }
.db-module-bg {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.db-module:hover .db-module-bg { opacity: 1; }
.db-module-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
}
.db-module-icon { font-size: 32px; margin-bottom: 12px; }
.db-module-info { flex: 1; }
.db-module-info h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}
.db-module-info p {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.5;
}
.db-module-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}
.db-module-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.db-module-tag--platinum {
  background: rgba(167,139,250,0.2);
  color: #c4b5fd;
}
.db-module-btn {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.15s ease;
}
.db-module-btn:hover { background: rgba(255,255,255,0.2); }

/* Module color variants */
.db-module--blue .db-module-bg {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}
.db-module--blue { box-shadow: 0 8px 32px rgba(29,78,216,0.35); }

.db-module--gold .db-module-bg {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
}
.db-module--gold { box-shadow: 0 8px 32px rgba(180,83,9,0.3); }

.db-module--purple .db-module-bg {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}
.db-module--purple { box-shadow: 0 8px 32px rgba(124,58,237,0.35); }

.db-module--teal .db-module-bg {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}
.db-module--teal { box-shadow: 0 8px 32px rgba(13,148,136,0.3); }

.db-module--orange .db-module-bg {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}
.db-module--orange { box-shadow: 0 8px 32px rgba(234,88,12,0.3); }

/* Locked module state */
.db-module.is-locked { opacity: 0.6; }
.db-module.is-locked::after {
  content: "🔒 Platinum";
  position: absolute;
  top: 12px; right: 12px;
  z-index: 10;
  background: rgba(0,0,0,0.6);
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.db-module.is-locked .db-module-btn { cursor: not-allowed; pointer-events: none; }

/* ── MODAL ────────────────────────────────────────────────── */
.db-modal {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a;
  text-align: center;
  padding: 36px 32px 28px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12) !important;
}
.db-modal-icon { font-size: 40px; margin-bottom: 12px; }
.db-modal h3 { color: #0f172a; font-size: 22px; margin: 0 0 10px; font-weight: 800; }
.db-modal p { color: #64748b; margin: 0; }

/* ── ASSESSMENT MODAL ─────────────────────────────────────── */
.db-assessment-modal {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a;
  width: min(560px, 94%) !important;
  padding: 0 !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12) !important;
}
.assess-progress {
  height: 5px;
  background: #f1f5f9;
  border-radius: 4px 4px 0 0;
}
.assess-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #ea580c);
  border-radius: 4px 4px 0 0;
  transition: width 0.4s ease;
}
.assess-step-label {
  padding: 18px 28px 0;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.assess-step { padding: 16px 28px 0; }
.assess-q {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 20px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
.assess-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
.assess-options.assess-days { grid-template-columns: repeat(5, 1fr); }
.assess-opt {
  background: #f8f7f4;
  border: 2px solid #e2e8f0;
  color: #334155;
  border-radius: 12px;
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.assess-opt strong { color: #0f172a; font-size: 15px; }
.assess-opt span { color: #94a3b8; font-size: 12px; font-weight: 400; }
.assess-opt:hover {
  background: #fff7ed;
  border-color: #fdba74;
  color: #0f172a;
}
.assess-opt.selected {
  background: #fff7ed;
  border-color: #f97316;
  color: #0f172a;
}
.assess-next-btn {
  margin: 16px 0 8px;
  width: 100%;
  background: linear-gradient(135deg,#f97316,#ea580c) !important;
  animation: none !important;
  box-shadow: 0 4px 16px rgba(249,115,22,0.3) !important;
}
.assess-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 28px 24px;
}
.assess-spinner {
  width: 40px; height: 40px;
  border: 3px solid #fed7aa;
  border-top-color: #f97316;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FOOTER ───────────────────────────────────────────────── */
.db-footer {
  background: #f5f4f0 !important;
  border-top: 1px solid #e8e4dc !important;
}
.db-footer .container { color: #94a3b8 !important; padding: 24px 0 32px; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .db-hero-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .db-streak-badge { flex-direction: row; gap: 12px; align-items: center; padding: 14px 20px; }
  .streak-num { font-size: 28px; }
  .db-stats-grid { gap: 0; }
  .db-stat { padding: 18px 0; flex: 1; }
  .db-stat-val { font-size: 22px; }
  .db-ai-card { flex-direction: column; gap: 24px; padding: 28px 24px; }
  .db-module-grid { grid-template-columns: 1fr; }
  .db-module-grid > .db-module:nth-child(1),
  .db-module-grid > .db-module:nth-child(2),
  .db-module-grid > .db-module:nth-child(3),
  .db-module-grid > .db-module:nth-child(4),
  .db-module-grid > .db-module:nth-child(5) { grid-column: auto; }
  .db-plan-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .assess-options { grid-template-columns: 1fr; }
  .assess-options.assess-days { grid-template-columns: repeat(3, 1fr); }
}
/* ══════════════════════════════════════════════════════════════
   DASHBOARD — mobile-first (≤600px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* ── Container: full-width with padding gutters ── */
  .container {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  /* ── Header ── */
  .db-brand { font-size: 15px; }

  /* ── Hero ── */
  .db-hero { padding: 20px 0 14px; overflow: hidden; }
  .db-hero-inner { flex-direction: column; gap: 14px; }
  .db-greeting { font-size: 11px; margin-bottom: 4px; }
  .db-name {
    font-size: clamp(22px, 6.5vw, 30px);
    letter-spacing: -0.3px;
    margin-bottom: 6px;
  }
  .db-tagline { font-size: 11px; line-height: 1.5; }

  /* Streak badge: compact full-width pill */
  .db-streak-badge {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    gap: 10px;
    border-radius: 14px;
    min-width: 0;
  }
  .streak-fire { font-size: 20px; }
  .streak-num { font-size: 22px; }
  .streak-label { font-size: 11px; }

  /* ── Stats strip ── */
  .db-stats-strip { overflow: hidden; }
  .db-stats-grid { flex-wrap: nowrap; gap: 0; width: 100%; overflow: hidden; }
  .db-stat { flex: 1; min-width: 0; padding: 14px 4px; overflow: hidden; }
  .db-stat-val { font-size: 18px; }
  .db-stat-lbl {
    font-size: 9px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .db-stat-divider { display: block; width: 1px; background: #f1ede6; align-self: stretch; flex-shrink: 0; }

  /* ── Main content grid ── */
  .db-main-grid-section { background: #f5f4f0; padding: 12px 0 24px; }
  .db-main-grid { gap: 12px; }
  .db-main-col-right .db-today { padding: 14px 12px 10px; }

  /* ── Calendar card ── */
  .db-calendar-card {
    padding: 14px 10px 16px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .db-calendar-header {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }
  /* 44px tap targets for calendar nav */
  .db-cal-arrow { width: 44px; height: 44px; font-size: 22px; }
  .db-cal-month-label { font-size: 15px; min-width: 120px; }
  .db-cal-legend { justify-content: center; gap: 12px; margin-bottom: 10px; }
  .db-cal-legend-item { font-size: 11px; }
  .db-cal-weekdays span { font-size: 10px; padding: 3px 0; }
  .db-cal-grid { gap: 2px; overflow: hidden; }
  .db-cal-cell { border-radius: 6px; }
  .db-cal-day-num { font-size: 12px; }

  /* ── Today's Training ── */
  .db-today-title-row { gap: 8px; }
  /* 44px tap targets for day nav */
  .db-day-arrow { width: 44px; height: 44px; font-size: 22px; }
  .db-exercise-row { padding: 12px 14px; gap: 10px; }

  /* ── Training modules ── */
  .db-modules { padding: 20px 0 56px; }
  .db-module-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .db-module-grid > .db-module:nth-child(1),
  .db-module-grid > .db-module:nth-child(2),
  .db-module-grid > .db-module:nth-child(3),
  .db-module-grid > .db-module:nth-child(4),
  .db-module-grid > .db-module:nth-child(5) { grid-column: auto; }
  .db-module-content { padding: 18px 18px 14px; }
  .db-module-icon { font-size: 26px; margin-bottom: 8px; }
  .db-module-info h3 { font-size: 16px; }
  .db-module-info p { font-size: 12px; }
  .db-module-btn { padding: 7px 14px; font-size: 12px; }
}

/* ── MAIN CONTENT GRID ─────────────────────────────────────────── */
.db-main-grid-section {
  padding: 16px 0 0;
}

.db-main-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}

.db-main-col-left {
  position: sticky;
  top: 16px;
  min-width: 0;
}

.db-main-col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Today's Training inside the right col — remove outer section padding */
.db-main-col-right .db-today {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #e8e4dc;
  padding: 20px 20px 12px;
}

/* AI CTA compact inside right col */
.db-ai-card--compact {
  padding: 20px 22px;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 900px) {
  .db-main-grid {
    grid-template-columns: 1fr;
  }
  .db-main-col-left {
    position: static;
  }
}

/* ── PROGRESS CALENDAR ─────────────────────────────────────────── */
.db-calendar-section {
  padding: 8px 0 0;
}

.db-calendar-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #e8e4dc;
  padding: 18px 18px 20px;
}

.db-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.db-cal-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.db-cal-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #e2dcd4;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s;
}
.db-cal-arrow:hover:not(:disabled) {
  border-color: #f97316;
  color: #f97316;
}

.db-cal-month-label {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  min-width: 140px;
  text-align: center;
}

.db-cal-legend {
  display: flex;
  gap: 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.db-cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}
.db-cal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.db-cal-dot--done   { background: #22c55e; }
.db-cal-dot--missed { background: #e2e8f0; border: 1.5px solid #cbd5e1; }
.db-cal-dot--today  { background: #f97316; }

.db-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
  margin-bottom: 8px;
}
.db-cal-weekdays span {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 3px 0;
}

.db-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.db-cal-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  background: #f8f7f5;
  transition: transform 0.15s;
}
.db-cal-cell:hover:not(.db-cal-cell--empty):not(.db-cal-cell--future) {
  transform: scale(1.05);
}

.db-cal-cell--empty   { background: transparent; }
.db-cal-cell--future  { background: transparent; color: #cbd5e1; }

.db-cal-cell--done {
  background: #dcfce7;
  color: #166534;
}
.db-cal-cell--done .db-cal-cell-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  position: absolute;
  bottom: 5px;
}

.db-cal-cell--missed {
  background: #f1f5f9;
  color: #94a3b8;
}

.db-cal-cell--upcoming {
  background: #fff7ed;
  color: #c2410c;
}

.db-cal-cell--selected {
  outline: 2px solid #f97316;
  outline-offset: -2px;
  font-weight: 700;
}

.db-cal-cell--today {
  background: #fff7f0;
  border: 2px solid #f97316;
  color: #c2410c;
  font-weight: 800;
}
.db-cal-cell--today.db-cal-cell--done {
  background: #dcfce7;
  border-color: #22c55e;
  color: #166534;
}

.db-cal-day-num {
  font-size: 13px;
  line-height: 1;
}


/* ── MY PLAN PAGE ──────────────────────────────────────────────── */
.plan-days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding-bottom: 40px;
}

.plan-day-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #e8e4dc;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.plan-day-card:hover {
  box-shadow: 0 4px 20px rgba(249,115,22,0.08);
  border-color: rgba(249,115,22,0.3);
}
.plan-day-card.is-today {
  border-color: #f97316;
  box-shadow: 0 4px 24px rgba(249,115,22,0.14);
}

.plan-day-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #f0ece4;
  background: linear-gradient(135deg, #fafaf8 0%, #fff 100%);
}
.plan-day-card.is-today .plan-day-header {
  background: linear-gradient(135deg, #fff7f0 0%, #fff 100%);
}

.plan-day-name {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-today-badge {
  font-size: 11px;
  font-weight: 600;
  background: #f97316;
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.plan-day-focus {
  font-size: 13px;
  color: #64748b;
  margin-top: 3px;
  font-weight: 500;
}
.plan-day-count {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-exercise-list {
  padding: 8px 0;
}

.plan-exercise-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f8f7f4;
}
.plan-exercise-row:last-child { border-bottom: none; }
.plan-exercise-row:hover { background: #faf9f7; }
.plan-exercise-row.is-done { opacity: 0.6; }

.plan-ex-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background: transparent;
  transition: all 0.2s;
}
.plan-exercise-row.is-done .plan-ex-check {
  background: #22c55e;
  border-color: #22c55e;
}

.plan-ex-info { flex: 1; min-width: 0; }
.plan-ex-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}
.plan-exercise-row.is-done .plan-ex-name { text-decoration: line-through; color: #94a3b8; }
.plan-ex-notes {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.plan-ex-volume {
  font-size: 13px;
  font-weight: 600;
  color: #f97316;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── TOAST NOTIFICATION ──────────────────────────────────────── */
.bb-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  max-width: 90vw;
  white-space: normal;
  text-align: center;
}
.bb-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.bb-toast.bb-toast--error { background: #dc2626; }

@media (max-width: 700px) {
  .plan-days-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   LANDING PAGE (lp-*)
   ══════════════════════════════════════════════════════════════ */

.lp-page {
  background: #f5f4f0;
  color: #0f172a;
}

/* ── Nav ── */
.lp-nav {
  position: fixed;
  top: 38px; left: 0; right: 0;
  z-index: 100;
  background: rgba(245,244,240,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8e4dc;
}
.lp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.lp-brand {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-nav-links a {
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.lp-nav-links a:hover { color: #0f172a; background: rgba(0,0,0,0.04); }
.lp-nav-cta {
  background: #f97316 !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
}
.lp-nav-cta:hover { background: #ea6c0a !important; opacity: 1; }

/* ── Shared Utilities ── */
.lp-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #f97316;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.lp-section-h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin: 0 0 48px;
}
.lp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f97316;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(249,115,22,0.3);
}
.lp-btn-primary:hover {
  background: #ea6c0a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}
.lp-btn-primary--lg {
  font-size: 17px;
  padding: 16px 36px;
}
.lp-btn-link {
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.lp-btn-link:hover { color: #f97316; }

/* ── Hero ── */
.lp-hero {
  background: #f5f4f0;
  padding-top: 98px; /* 38px banner + 60px nav */
  overflow: hidden;
}
.lp-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: end;
  padding: 52px 0 0;
}

/* Left column */
.lp-hero-left { padding-bottom: 60px; }
.lp-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f97316;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.lp-hero-h1 {
  font-size: clamp(44px, 5.5vw, 68px);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.03;
  letter-spacing: -2.5px;
  margin: 0 0 18px;
}
.lp-hero-em {
  color: #f97316;
  font-style: italic;
}
.lp-hero-p {
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
  max-width: 420px;
  margin: 0 0 32px;
}
.lp-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Center photo */
.lp-hero-photo-wrap {
  position: relative;
  width: 300px;
  flex-shrink: 0;
}
.lp-hero-photo-bg {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 400px;
  background: linear-gradient(160deg, rgba(249,115,22,0.18) 0%, rgba(249,115,22,0.04) 100%);
  border-radius: 999px 999px 0 0;
  z-index: 0;
}
.lp-hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 300px;
  height: 480px;
  object-fit: cover;
  object-position: 20% top;
  display: block;
  filter: contrast(1.04);
}
.lp-hero-pill {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1.5px solid #e8e4dc;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  padding: 7px 14px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.lp-hero-pill--tl { top: 60px; left: -40px; }
.lp-hero-pill--br { bottom: 80px; right: -40px; }

/* Right stats column */
.lp-hero-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 60px;
  border-left: 2px solid #e8e4dc;
  padding-left: 32px;
}
.lp-hero-stat-block {
  padding: 20px 0;
}
.lp-hero-big-num {
  font-size: 52px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -3px;
  line-height: 1;
}
.lp-hero-big-num span {
  font-size: 28px;
  color: #f97316;
  letter-spacing: -1px;
}
.lp-hero-stat-lbl {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.lp-hero-divider {
  height: 1px;
  background: #e8e4dc;
}

/* ── Marquee Strip ── */
.lp-marquee-wrap {
  background: #0f172a;
  overflow: hidden;
  padding: 14px 0;
  user-select: none;
}
.lp-marquee {
  display: flex;
  gap: 0;
  width: max-content;
  animation: lp-scroll 28s linear infinite;
}
.lp-marquee span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  padding: 0 20px;
}
.lp-marquee-dot {
  color: #f97316 !important;
  padding: 0 4px !important;
  letter-spacing: 0 !important;
}
@keyframes lp-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Gallery + Quote ── */
.lp-gallery-section {
  background: #fff;
  padding: 88px 0;
}
.lp-gallery-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.lp-gallery-photos {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 480px;
  gap: 10px;
}
.lp-gallery-img {
  border-radius: 16px;
  overflow: hidden;
  background: #f1ede6;
}
.lp-gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}
.lp-gallery-img:hover img { transform: scale(1.03); }
.lp-gallery-img--main {
  grid-row: span 2;
}
.lp-gallery-img--side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: none;
}
.lp-gallery-img--side img {
  border-radius: 12px;
  height: 235px;
  width: 100%;
  object-fit: cover;
  object-position: top;
  flex: 1;
}
.lp-gallery-quote {
  padding: 20px 0;
}
.lp-quote-mark {
  font-size: 80px;
  line-height: 0.6;
  color: #f97316;
  font-family: Georgia, serif;
  margin-bottom: 20px;
}
.lp-quote-text {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  letter-spacing: -0.5px;
  border: none;
  padding: 0;
  margin: 0 0 24px;
  font-style: normal;
}
.lp-quote-attr {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  line-height: 1.6;
}
.lp-quote-attr span {
  font-weight: 400;
  color: #94a3b8;
}

/* ── Programs ── */
.lp-programs {
  background: #f5f4f0;
  padding: 88px 0;
}
.lp-programs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.lp-programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lp-no-gym-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  background: #fff;
  border: 1.5px solid #e8e4dc;
  border-radius: 16px;
  padding: 18px 24px;
}
.lp-no-gym-icon { font-size: 28px; flex-shrink: 0; }
.lp-no-gym-text { font-size: 14px; color: #475569; line-height: 1.6; }
.lp-no-gym-text strong { color: #0f172a; font-weight: 700; }
.lp-program-card {
  background: #fff;
  border: 1.5px solid #e8e4dc;
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.lp-program-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.lp-program-card--orange {
  background: #fff7f0;
  border-color: rgba(249,115,22,0.25);
}
.lp-program-card--dark {
  background: #0f172a;
  border-color: #0f172a;
}
.lp-program-card--dark h3 { color: #fff; }
.lp-program-card--dark p { color: rgba(255,255,255,0.55); }
.lp-program-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #cbd5e1;
  margin-bottom: 12px;
  font-family: monospace;
}
.lp-program-card--dark .lp-program-num { color: rgba(255,255,255,0.2); }
.lp-program-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}
.lp-program-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.65;
  margin: 0 0 16px;
}
.lp-program-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(0,0,0,0.05);
  color: #475569;
  padding: 4px 10px;
  border-radius: 6px;
}
.lp-program-tag--plat {
  background: rgba(249,115,22,0.1);
  color: #f97316;
}

/* ── Pricing ── */
.lp-pricing {
  padding: 88px 0;
  background: #fff;
}
.lp-pricing-sub {
  font-size: 16px;
  color: #94a3b8;
  text-align: center;
  margin: 4px 0 52px;
}
.lp-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.lp-plan {
  background: #f8f7f5;
  border-radius: 24px;
  border: 1.5px solid #e8e4dc;
  padding: 36px 32px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.lp-plan:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.lp-plan--featured {
  background: #0f172a;
  border-color: #0f172a;
  box-shadow: 0 16px 56px rgba(15,23,42,0.25);
}
.lp-plan--featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(15,23,42,0.3);
}
.lp-plan--sale {
  border-color: #ef4444;
  box-shadow: 0 4px 20px rgba(239,68,68,0.15);
  padding-top: 44px;
}
.lp-plan--featured.lp-plan--sale {
  border-color: #ef4444;
  box-shadow: 0 16px 56px rgba(239,68,68,0.25);
}
.lp-plan-flash-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 16px;
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(239,68,68,0.35);
  animation: lp-pulse-sale 2s ease-in-out infinite;
}
@keyframes lp-pulse-sale {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}
.lp-plan-price-orig {
  font-size: 18px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: line-through;
  align-self: baseline;
  margin-right: 2px;
}
.lp-plan-popular {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: #f97316;
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.lp-plan-tier {
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.lp-plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}
.lp-plan-price {
  font-size: 42px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -2px;
  line-height: 1;
}
.lp-plan-per {
  font-size: 15px;
  color: #94a3b8;
  font-weight: 500;
}
.lp-plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-plan-list li {
  font-size: 14px;
  color: #475569;
  font-weight: 500;
  padding-left: 20px;
  position: relative;
}
.lp-plan-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #f97316;
  font-weight: 700;
}
.lp-plan-list--light li { color: rgba(255,255,255,0.7); }
.lp-plan-list--light li::before { color: #f97316; }
.lp-plan-btn {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}
.lp-plan-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.lp-plan-btn--outline {
  background: #fff;
  color: #0f172a;
  border: 1.5px solid #e8e4dc;
}
.lp-plan-btn--orange {
  background: #f97316;
  color: #fff;
  box-shadow: 0 4px 16px rgba(249,115,22,0.35);
}
.lp-plan-alt {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 14px;
  text-align: center;
}
.lp-plan-alt a {
  color: #f97316;
  text-decoration: none;
  font-weight: 600;
}
.lp-plan-alt a:hover { text-decoration: underline; }

/* ── Final CTA ── */
.lp-final {
  background: #0f172a;
  padding: 64px 0;
}
.lp-final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.lp-final-left { flex: 1; }
.lp-final-h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  margin: 0 0 8px;
  line-height: 1.2;
}
.lp-final-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

/* ── Footer ── */
.lp-footer {
  background: #0a0f1e;
  padding: 36px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.lp-footer .lp-brand { color: #fff; }
.lp-footer-inner { }
.lp-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.lp-footer-nav {
  display: flex;
  gap: 4px;
}
.lp-footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.lp-footer-nav a:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.05); }
.lp-footer-bottom {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

/* ── lp-page auth (login / signup) ── */
.lp-auth-section {
  min-height: calc(100vh - 98px);
  display: flex;
  align-items: center;
  background: #f5f4f0;
  padding: 48px 0 64px;
}
.lp-auth-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.lp-auth-left { }
.lp-auth-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f97316;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.lp-auth-h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 0 0 16px;
}
.lp-auth-sub {
  font-size: 16px;
  color: #64748b;
  line-height: 1.65;
  margin: 0 0 28px;
}
.lp-auth-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-auth-perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #334155;
  font-weight: 500;
}
.lp-auth-perks li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(249,115,22,0.12);
  color: #f97316;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}
.lp-auth-card {
  background: #fff;
  border: 1.5px solid #e8e4dc;
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.lp-auth-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}
.lp-auth-card .lp-auth-card-sub {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 28px;
}
.lp-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}
.lp-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.lp-form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #0f172a;
  background: #fafaf9;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.lp-form-group input:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
  background: #fff;
}
.lp-form-group input::placeholder { color: #94a3b8; }
.lp-form-submit {
  width: 100%;
  padding: 13px;
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(249,115,22,0.3);
}
.lp-form-submit:hover {
  background: #ea6c0a;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}
.lp-form-muted {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 16px;
  text-align: center;
}
.lp-form-muted a {
  color: #f97316;
  font-weight: 600;
  text-decoration: none;
}
.lp-form-muted a:hover { text-decoration: underline; }
.lp-form-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 10px;
  display: none;
}
.lp-form-success {
  color: #16a34a;
  font-size: 13px;
  margin-top: 10px;
  display: none;
}
.lp-auth-divider {
  height: 1px;
  background: #f1ede6;
  margin: 20px 0;
}

/* ── lp-page about ── */
.lp-about-cover {
  position: relative;
  height: calc(100vh - 98px);
  min-height: 520px;
  max-height: 780px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.lp-about-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.lp-about-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,14,26,0.15) 0%,
    rgba(10,14,26,0.55) 55%,
    rgba(10,14,26,0.88) 100%
  );
}
.lp-about-cover-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 64px;
  padding-top: 32px;
}
.lp-about-cover-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f97316;
  margin: 0 0 16px;
}
.lp-about-cover-h1 {
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -3px;
  line-height: 1.0;
  margin: 0 0 16px;
}
.lp-about-cover-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin: 0 0 32px;
  max-width: 480px;
  line-height: 1.6;
}
.lp-about-story {
  background: #fff;
  padding: 72px 0;
}
.lp-about-story-inner {
  max-width: 680px;
}
.lp-about-story p {
  font-size: 17px;
  color: #334155;
  line-height: 1.8;
  margin: 0 0 20px;
}
.lp-about-stats {
  background: #0f172a;
  padding: 52px 0;
}
.lp-about-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.lp-about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 52px;
}
.lp-about-stat-num {
  font-size: 40px;
  font-weight: 900;
  color: #f97316;
  letter-spacing: -2px;
  line-height: 1;
}
.lp-about-stat-lbl {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.lp-about-stat-div {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.1);
}
.lp-about-cta {
  background: #f5f4f0;
  padding: 72px 0;
  text-align: center;
}
.lp-about-cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -1px;
  margin: 0 0 12px;
}
.lp-about-cta p {
  font-size: 16px;
  color: #64748b;
  margin: 0 0 32px;
}
.lp-about-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .lp-hero-inner { grid-template-columns: 1fr 260px 1fr; gap: 28px; }
  .lp-hero-photo { height: 420px; }
  .lp-hero-photo-bg { height: 340px; }
}
@media (max-width: 860px) {
  .lp-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 40px;
  }
  .lp-hero-left { padding-bottom: 0; }
  .lp-hero-p { max-width: 100%; }
  .lp-hero-actions { justify-content: center; }
  .lp-hero-photo-wrap {
    width: 100%;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    order: -1;
  }
  .lp-hero-photo-bg { display: none; }
  .lp-hero-photo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: 38% top;
    border-radius: 0;
  }
  .lp-hero-pill { display: none; }
  .lp-hero-right {
    border-left: none;
    border-top: 2px solid #e8e4dc;
    padding-left: 0;
    padding-top: 24px;
    flex-direction: row;
    justify-content: center;
    gap: 0;
  }
  .lp-hero-stat-block { padding: 0 20px; }
  .lp-hero-divider { width: 1px; height: auto; align-self: stretch; }
  .lp-gallery-inner { grid-template-columns: 1fr; gap: 32px; }
  .lp-gallery-photos { grid-template-columns: 1.3fr 1fr; grid-template-rows: 360px; }
  .lp-programs-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .lp-programs-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-final-inner { flex-direction: column; text-align: center; gap: 28px; }
}
@media (max-width: 600px) {
  /* Flash banner: show condensed version */
  .flash-banner-desktop { display: none; }
  .flash-banner-mobile { display: inline; }

  /* Nav: hide About/Login to prevent CTA wrapping */
  .lp-nav-links a:not(.lp-nav-cta) { display: none; }
  .lp-nav-cta { white-space: nowrap; padding: 8px 14px !important; }

  /* Gallery: show image + center the quote */
  .lp-gallery-section { padding: 52px 0 48px; }
  .lp-gallery-photos { grid-template-columns: 1fr; grid-template-rows: 280px; }
  .lp-gallery-img--main { grid-row: auto; height: 280px; }
  .lp-gallery-img--side { display: none; }
  .lp-gallery-quote { text-align: center; }
  .lp-quote-mark { text-align: center; }

  /* Programs header: center on mobile */
  .lp-programs-header { align-items: center; text-align: center; }
  .lp-programs-grid { grid-template-columns: 1fr; }

  /* Plans */
  .lp-plans-grid { grid-template-columns: 1fr; max-width: 100%; }

  /* Footer */
  .lp-footer-top { flex-direction: column; gap: 16px; text-align: center; }
  .lp-auth-inner { grid-template-columns: 1fr; gap: 40px; }
  .lp-about-cover { max-height: 580px; }
  .lp-about-cover-h1 { font-size: 52px; letter-spacing: -2px; }
  .lp-about-stats-inner { flex-wrap: wrap; gap: 24px; justify-content: center; }
  .lp-about-stat-div { display: none; }
  .lp-about-stat { padding: 0 24px; }
}

/* Vercel deployment trigger */
