/* ============================================================
   KSB TRANSPORT - App CSS (Mobile First)
   Brand: Blue #1d4f95 | Red #d23816 | White #ffffff
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Nunito:wght@400;500;600;700;800&display=swap');

/* ─── Variables ───────────────────────────────────────────────────────────── */
:root {
  --blue:        #1d4f95;
  --blue-dark:   #163a6e;
  --blue-light:  #2d65b5;
  --red:         #d23816;
  --red-dark:    #b02d10;
  --red-light:   #e04925;
  --white:       #ffffff;
  --off-white:   #f5f7fa;
  --gray-100:    #f0f2f5;
  --gray-200:    #e4e8ef;
  --gray-300:    #c8d0de;
  --gray-500:    #8896ae;
  --gray-700:    #4a5568;
  --gray-900:    #1a202c;
  --text:        #1a202c;
  --text-muted:  #6b7a99;

  --font-display: 'Baloo 2', sans-serif;
  --font-body:    'Nunito', sans-serif;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 999px;

  --shadow-sm:   0 2px 8px rgba(29,79,149,0.08);
  --shadow-md:   0 4px 20px rgba(29,79,149,0.12);
  --shadow-lg:   0 8px 40px rgba(29,79,149,0.18);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.07);

  --transition:  all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height:  64px;
  --topbar-height: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: auto; /* ✅ PAS de smooth global */
  -webkit-text-size-adjust: 100%;
  height: 100%;
  overflow: hidden; /* ✅ Empêche le scroll de la page entière */
}

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text);
  height: 100%;
  overflow: hidden; /* ✅ Tout le scroll se passe dans .main-content */
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

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

/* ─── App Layout ────────────────────────────────────────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;        /* ✅ Hauteur FIXE = viewport, pas min-height */
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,0.15);
  overflow: hidden;      /* ✅ Contient tout à l'intérieur */
}

/* ─── Top Bar ───────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-height);
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  box-shadow: 0 2px 12px rgba(29,79,149,0.25);
}

.topbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__logo-mark {
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: white;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.topbar__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: white;
  letter-spacing: 0.5px;
  line-height: 1;
}

.topbar__sub {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar__btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.topbar__btn:active { transform: scale(0.92); background: rgba(255,255,255,0.25); }

/* ─── Main Content ──────────────────────────────────────────────────────────── */
.main-content {
  flex: 1;
  min-height: 0;         /* ✅ CRUCIAL : sans ça, flex ignore overflow-y */
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-height) + 16px + var(--safe-bottom));
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

/* ─── Pages / Views ─────────────────────────────────────────────────────────── */
.page { display: none; animation: pageIn 0.28s cubic-bezier(0.4,0,0.2,1); }
.page.active { display: block; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-light) 100%);
  padding: 28px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -30px;
  width: 240px; height: 240px;
  background: rgba(210,56,22,0.15);
  border-radius: 50%;
}

.hero__greeting {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.hero__title span { color: #ffcc44; }

.hero__subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-width: 280px;
  position: relative;
  z-index: 1;
}

.hero__wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: var(--off-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* ─── Quick Actions ──────────────────────────────────────────────────────────── */
.quick-actions {
  padding: 0 16px;
  margin-top: -44px;
  position: relative;
  z-index: 10;
}

.quick-actions__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  min-height: 120px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-accent, var(--blue));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.service-card.blue  { --card-accent: var(--blue); }
.service-card.red   { --card-accent: var(--red); }

.service-card:active {
  transform: scale(0.97);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  font-size: 28px;
  line-height: 1;
}

.service-card__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.service-card__desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.service-card__arrow {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--card-accent, var(--blue));
  color: white;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Section ────────────────────────────────────────────────────────────────── */
.section {
  padding: 20px 16px;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.section__title span {
  color: var(--blue);
}

.section__link {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

/* ─── Stats Banner ───────────────────────────────────────────────────────────── */
.stats-banner {
  margin: 0 16px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  justify-content: space-around;
  position: relative;
  overflow: hidden;
}

.stats-banner::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}

.stat {
  text-align: center;
  color: white;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.stat__label {
  font-size: 10px;
  opacity: 0.75;
  margin-top: 3px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ─── Vehicle Cards ──────────────────────────────────────────────────────────── */
.vehicles-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vehicles-scroll::-webkit-scrollbar { display: none; }

.vehicle-card {
  flex-shrink: 0;
  width: 160px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid var(--gray-200);
}

.vehicle-card:active { transform: scale(0.96); }

.vehicle-card__img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.vehicle-card__img-placeholder {
  width: 100%;
  height: 100px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.vehicle-card__body {
  padding: 10px;
}

.vehicle-card__name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.vehicle-card__capacity {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.vehicle-card__price {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}

/* ─── Bottom Navigation ──────────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  min-width: 60px;
  position: relative;
}

.nav-item.active .nav-item__icon  { color: var(--blue); }
.nav-item.active .nav-item__label { color: var(--blue); font-weight: 700; }

.nav-item.active .nav-item__dot {
  position: absolute;
  top: 6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
}

.nav-item__icon {
  font-size: 22px;
  color: var(--gray-500);
  transition: var(--transition);
  line-height: 1;
}

.nav-item__label {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
}

/* ─── Page Header (sub pages) ────────────────────────────────────────────────── */
.page-header {
  padding: 20px 16px 24px;
  position: relative;
  overflow: hidden;
}

.page-header.blue {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}

.page-header.red {
  background: linear-gradient(135deg, var(--red-dark), var(--red));
}

.page-header__back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  cursor: pointer;
}

.page-header__icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.page-header__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
}

.page-header__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-width: 300px;
}

/* ─── Action Buttons ─────────────────────────────────────────────────────────── */
.action-row {
  padding: 0 16px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
  width: 100%;
}

.btn:active { transform: scale(0.97); }

.btn--blue {
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 16px rgba(29,79,149,0.3);
}

.btn--red {
  background: var(--red);
  color: white;
  box-shadow: 0 4px 16px rgba(210,56,22,0.3);
}

.btn--outline-blue {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn--outline-red {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.btn--whatsapp {
  background: #25D366;
  color: white;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

.btn--call {
  background: var(--gray-100);
  color: var(--text);
  border: 1.5px solid var(--gray-200);
}

.btn--lg {
  padding: 16px 24px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn--full { width: 100%; }

/* ─── Forms ──────────────────────────────────────────────────────────────────── */
.form-card {
  margin: 0 16px 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-200);
}

.form-card__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-card__title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--blue);
  border-radius: 2px;
  display: inline-block;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(29,79,149,0.1);
}

.form-textarea { resize: vertical; min-height: 90px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Vehicle selector ───────────────────────────────────────────────────────── */
.vehicle-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.vehicle-option {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--off-white);
}

.vehicle-option.selected {
  border-color: var(--blue);
  background: rgba(29,79,149,0.06);
}

.vehicle-option__icon { font-size: 22px; margin-bottom: 4px; }

.vehicle-option__name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
}

.vehicle-option__price {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Investment Section ─────────────────────────────────────────────────────── */
.invest-hero {
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, var(--blue-dark) 100%);
  padding: 28px 20px 32px;
  position: relative;
  overflow: hidden;
}

.invest-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50px;
  background: var(--off-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.invest-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,200,0,0.15);
  border: 1px solid rgba(255,200,0,0.3);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #ffcc00;
  margin-bottom: 14px;
}

.invest-hero__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 8px;
}

.invest-hero__sub {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.invest-plans {
  padding: 0 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.invest-plan {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.invest-plan.featured {
  border-color: var(--red);
  box-shadow: 0 4px 24px rgba(210,56,22,0.15);
}

.invest-plan__badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 0 var(--radius-lg) 0 var(--radius-md);
}

.invest-plan__amount {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 4px;
}

.invest-plan__earn {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.invest-plan__earn span {
  color: var(--red);
  font-size: 18px;
}

.invest-plan__duration {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.invest-plan__features {
  list-style: none;
  margin-bottom: 14px;
}

.invest-plan__features li {
  font-size: 12px;
  color: var(--text);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.invest-plan__features li::before {
  content: '✓';
  font-weight: 800;
  color: #22c55e;
  font-size: 12px;
}

/* ─── Contact / Info Chips ───────────────────────────────────────────────────── */
.info-chips {
  padding: 0 16px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.chip--blue { background: rgba(29,79,149,0.1); color: var(--blue); }
.chip--red  { background: rgba(210,56,22,0.1);  color: var(--red); }
.chip--gray { background: var(--gray-100);       color: var(--gray-700); }

/* ─── Contact Card ───────────────────────────────────────────────────────────── */
.contact-card {
  margin: 0 16px 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: var(--radius-lg);
  padding: 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.contact-card::after {
  content: '📞';
  position: absolute;
  right: -10px; bottom: -10px;
  font-size: 80px;
  opacity: 0.08;
  transform: rotate(-20deg);
}

.contact-card__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.contact-card__phone {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.contact-card__btns {
  display: flex;
  gap: 8px;
}

.contact-card__btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.contact-card__btn.call {
  background: rgba(255,255,255,0.2);
  color: white;
  backdrop-filter: blur(4px);
}

.contact-card__btn.whatsapp {
  background: #25D366;
  color: white;
}

.contact-card__btn:active { transform: scale(0.96); }

/* ─── Toast / Alert ──────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--gray-900);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  max-width: 90%;
  text-align: center;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #16a34a; }
.toast.error   { background: var(--red); }

/* ─── Loading Overlay ────────────────────────────────────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.loading-overlay.show { display: flex; }

.loader {
  width: 44px; height: 44px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Splash Screen ──────────────────────────────────────────────────────────── */
.splash {
  position: fixed;
  inset: 0;
  background: var(--blue);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.splash.hidden { opacity: 0; visibility: hidden; }

.splash__logo {
  width: 90px; height: 90px;
  background: white;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--blue);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: splashPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.splash__name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin-top: 16px;
  animation: splashPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both;
}

.splash__sub {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: splashPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

.splash__flag {
  font-size: 30px;
  margin-top: 30px;
  animation: splashPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.65s both;
}

@keyframes splashPop {
  from { opacity: 0; transform: scale(0.7) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─── Modals ──────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
  display: none;
  align-items: flex-end;
  backdrop-filter: blur(3px);
}

.modal-backdrop.show { display: flex; }

.modal {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 20px;
  padding-bottom: calc(20px + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 90dvh;
  overflow-y: auto;
}

.modal-backdrop.show .modal { transform: translateY(0); }

.modal__handle {
  width: 40px; height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

/* ─── Misc ────────────────────────────────────────────────────────────────────── */
.divider {
  height: 8px;
  background: var(--gray-100);
  margin: 0;
}

.spacer-sm { height: 8px; }
.spacer-md { height: 16px; }
.spacer-lg { height: 24px; }

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.font-bold   { font-weight: 700; }

/* ─── Scroll indicator ───────────────────────────────────────────────────────── */
.scroll-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
