/* ─────────────────────────────────────────────────
   style.css  –  Sahayak App Styles
   CSS to be fully written in the next step.
   For now: bare minimum so app is visible/functional.
───────────────────────────────────────────────── */

/* Base reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: sans-serif; background: #fff; }
button { cursor: pointer; border: none; background: none; }
input { outline: none; border: none; font-family: inherit; }
ul { list-style: none; }

/* Screens */
.screen { display: none; }
.screen.active { display: block; }

/* App wrapper hidden until logged in */
.app-wrapper { display: none; flex-direction: column; height: 100vh; }
.app-wrapper.active { display: flex; }

/* Utility */
.hidden { display: none !important; }

/* Splash: just show centered logo */
/* Splash */
.screen--splash {
  display: none;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: #ffffff;
}
.screen--splash.active { display: flex; }

.splash__svg-wrap {
  width: min(340px, 85vw);
  height: auto;
  overflow: visible;
}
.splash__svg-wrap svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Drawing stroke layer */
.draw path {
  fill: none;
  stroke: #428CEB;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 5000;
  stroke-dashoffset: 5000;
  filter:
    drop-shadow(0 0 8px rgba(66,140,235,.7))
    drop-shadow(0 0 20px rgba(66,140,235,.45));
  animation: draw 3s ease forwards, glow 1.8s infinite;
}

/* Stagger each path */
.draw path:nth-child(1) { animation-delay: 0s; }
.draw path:nth-child(2) { animation-delay: .15s; }
.draw path:nth-child(3) { animation-delay: .3s; }
.draw path:nth-child(4) { animation-delay: .45s; }
.draw path:nth-child(5) { animation-delay: .6s; }
.draw path:nth-child(6) { animation-delay: .75s; }
.draw path:nth-child(7) { animation-delay: .9s; }
.draw path:nth-child(8) { animation-delay: 1.05s; }

/* Final fill layer */
.fill path {
  fill: #428CEB;
  opacity: 0;
  animation: fillReveal .8s ease forwards 2.8s;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@keyframes glow {
  50% {
    filter:
      drop-shadow(0 0 14px #7ab8ff)
      drop-shadow(0 0 34px #428CEB);
  }
}
@keyframes fillReveal {
  to { opacity: 1; }
}


/* Login */
.screen--login {
  display: none;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #1e293b;
}
.screen--login.active { display: flex; }

/* Top image area */
.login__image-wrap {
  flex-shrink: 0;
  height: 42vh;
  min-height: 200px;
  max-height: 320px;
  width: 100%;
  background: linear-gradient(135deg, #1e3a8a, #4f46e5, #7c3aed);
  overflow: hidden;
  position: relative;
}
.login__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.login__image[src=""] {
  display: none;
}

/* Bottom sheet */
.login__sheet {
  flex: 1;
  background: white;
  
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  /* Push up when keyboard appears */
  transition: none;
}
.login__sheet-inner {
  padding: 24px 24px 40px;
  min-height: 100%;
}

.login__step { display: none; }
.login__step.active { display: block; }
.input-group { display: flex; border: 1.5px solid #ccc; border-radius: 10px;
  overflow: hidden; margin-bottom: 16px; }
.input-group__prefix { padding: 14px 12px; background: #f1f5f9; font-weight: 600; }
.input-group__field { flex: 1; padding: 14px 12px; font-size: 16px; }
.input-field { width: 100%; border: 1.5px solid #ccc; border-radius: 10px;
  padding: 14px 12px; font-size: 16px; margin-bottom: 16px; }
.otp-input-group { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; }
.otp-box { width: 56px; height: 60px; border: 1.5px solid #ccc; border-radius: 10px;
  text-align: center; font-size: 24px; font-weight: 700; }
.btn { padding: 14px 20px; border-radius: 10px; font-size: 16px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn--primary { background: #2563EB; color: white; }
.btn--secondary { background: #EFF6FF; color: #2563EB; border: 1.5px solid #BFDBFE; }
.btn--ghost { background: transparent; color: #64748b; }
.btn--full { width: 100%; margin-bottom: 10px; }
.login__error { color: #ef4444; font-size: 14px; margin-top: 8px; }

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;

  background: rgba(255, 255, 255, 0.5); /* 50% transparent */
  backdrop-filter: blur(10px);          /* blur behind */
  -webkit-backdrop-filter: blur(10px);  /* Safari */

  border-bottom: 1px solid rgba(241,245,249,0.6);

  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar__left { display: flex; align-items: center; gap: 10px; }
.topbar__logo { display: flex; align-items: center; gap: 8px; }
.topbar__brand { font-size: 1.2rem; font-weight: 700; color: #2563EB; }
.topbar__back { padding: 6px; }
.topbar__icon-btn { padding: 6px; position: relative; }
.topbar__logo-img { height: 32px; width: auto; object-fit: contain; }
.badge { position: absolute; top: 2px; right: 2px; background: #ef4444;
  color: white; border-radius: 50%; width: 16px; height: 16px; font-size: 10px;
  display: flex; align-items: center; justify-content: center; }

  

/* Main screens scroll */
.screen--main { display: none; flex: 1; overflow-y: auto; }
.screen--main.active { display: block; }

/* Home */
.home__hero { padding: 16px; }
/* Carousel */
.carousel {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
  aspect-ratio: 2 / 1;
  background: #f1f5f9;
  touch-action: pan-y;
}
.carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}
.carousel__slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}
.carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.home__hero-title { font-size: 1.4rem; font-weight: 700; }
.home__hero-subtitle { color: #64748b; margin-top: 4px; }
.home__search-wrap { padding: 0 16px 16px; }
.search-bar { display: flex; align-items: center; gap: 8px; 
  background: rgba(245, 250, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0px solid transparent; 
  border-radius: 0px; 
  padding: 14px 14px; }
.search-bar__input { flex: 1; background: none; font-size: 15px; }

.home__hero-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Categories */
.categories-container { padding: 0 16px 160px; }
.category-card { background: #fff; border: 1px solid #d6d6d6; border-radius: 14px;
  padding: 16px; margin-bottom: 16px; box-shadow: 0 0px 0px rgba(0,0,0,0.06); }
.category-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 14px; color: #1e293b; }
.category-card__services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.category-card__services--hidden { display: none; }
.service-icon { display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; padding: 8px 4px; border-radius: 10px; transition: background 0.15s; }
.service-icon:hover, .service-icon:active { background: #EFF6FF; }
.service-icon__img-wrap { width: 48px; height: 48px; background: #EFF6FF;
  border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.service-icon__img { width: 30px; height: 30px; object-fit: contain; }
.service-icon__label { font-size: 11px; text-align: center; color: #3a3a3a;
  line-height: 1.3; max-width: 70px; }
.category-card__more-btn { margin-top: 12px; color: #2563EB; font-size: 13px;
  font-weight: 600; padding: 4px 0; }

/* Search results */
.search-results {
  padding: 0 16px;
  position: fixed;
  bottom: 130px;
  left: 0;
  right: 0;
  max-height: 60vh;
  overflow-y: auto;
  background: white;
  z-index: 8;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.search-results__label { font-size: 13px; color: #64748b; margin-bottom: 10px; }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 12px;
  border-radius: 10px; cursor: pointer; border: 1px solid #f1f5f9; margin-bottom: 8px; }
.search-result-item__icon { width: 40px; height: 40px; background: #EFF6FF;
  border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.search-result-item__icon img { width: 26px; height: 26px; }
.search-result-item__info { flex: 1; }
.search-result-item__name { font-weight: 600; font-size: 14px; display: block; }
.search-result-item__cat { font-size: 12px; color: #94a3b8; }

/* Service detail */
.service__hero { display: flex; align-items: center; gap: 14px; padding: 16px; }
.service__icon-wrap { width: 64px; height: 64px; background: #EFF6FF; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.service__big-icon { width: 40px; height: 40px; object-fit: contain; }
.service__name { font-size: 1.2rem; font-weight: 700; }
.service__category { font-size: 13px; color: #64748b; margin-top: 2px; }
.service__tabs { display: flex; padding: 0 16px; gap: 8px; margin-bottom: 4px; }
.service__tab { padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600;
  color: #64748b; background: #f1f5f9; transition: all 0.15s; }
.service__tab.active { background: #2563EB; color: white; }
.service__body { padding: 12px 16px; }
.service__section { margin-bottom: 16px; }
.service__section--card { background: #f8fafc; border-radius: 12px; padding: 14px; }
.service__section-title { display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.service__docs-list { display: flex; flex-direction: column; gap: 8px; }
.service__doc-item { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.service__meta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.service__meta-card { display: flex; align-items: center; gap: 10px; background: #f8fafc;
  border-radius: 12px; padding: 12px; }
.service__meta-label { font-size: 12px; color: #64748b; display: block; }
.service__meta-value { font-size: 14px; font-weight: 700; display: block; }
.service__section--note { background: #FFF7ED; border-radius: 10px; padding: 12px; }
.service__note-text { font-size: 13px; color: #92400e; }
.service__actions { padding: 12px 16px 100px; display: flex; flex-direction: column; gap: 10px; }

/* Booking */
.booking__inner { padding: 16px 16px 100px; }
.booking__steps { display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 24px; }
.booking__step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.booking__step-dot { width: 32px; height: 32px; border-radius: 50%; background: #e2e8f0;
  color: #64748b; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; }
.booking__step.active .booking__step-dot { background: #2563EB; color: white; }
.booking__step.done .booking__step-dot { background: #10B981; color: white; }
.booking__step-label { font-size: 11px; color: #94a3b8; }
.booking__step.active .booking__step-label { color: #2563EB; font-weight: 600; }
.booking__step-line { height: 2px; width: 40px; background: #e2e8f0; margin-bottom: 16px; }
.booking__panel { display: none; }
.booking__panel.active { display: block; }
.booking__panel-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.booking__panel-subtitle { font-size: 13px; color: #64748b; margin-bottom: 16px; }
.week-calendar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; }
.week-day { display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 54px; padding: 10px 8px; border-radius: 12px; border: 1.5px solid #e2e8f0;
  cursor: pointer; background: white; }
.week-day.active { background: #2563EB; border-color: #2563EB; color: white; }
.week-day__name { font-size: 11px; font-weight: 600; text-transform: uppercase; }
.week-day__num { font-size: 20px; font-weight: 800; }
.week-day__month { font-size: 10px; }
.booking__time-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.time-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.time-slot { padding: 12px; border-radius: 10px; border: 1.5px solid #e2e8f0;
  font-size: 14px; font-weight: 600; color: #334155; background: white; }
.time-slot.active { background: #EFF6FF; border-color: #2563EB; color: #2563EB; }
.booking__summary-card { background: #f8fafc; border-radius: 14px; padding: 16px; margin-bottom: 20px; }
.booking__summary-row { display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; }
.booking__summary-label { font-size: 14px; color: #64748b; }
.booking__summary-value { font-size: 14px; font-weight: 600; }
.booking__summary-value--price { font-size: 18px; color: #2563EB; }
.booking__summary-divider { height: 1px; background: #e2e8f0; margin: 8px 0; }
.booking__summary-row--total .booking__summary-label { font-weight: 700; font-size: 15px; color: #1e293b; }
.booking__pay-note { text-align: center; font-size: 13px; color: #64748b; margin-top: 10px; }
.booking__success { text-align: center; padding: 24px 0; }
.booking__success-icon svg { width: 80px; height: 80px; margin-bottom: 16px; }
.booking__success-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.booking__success-subtitle { color: #64748b; margin-bottom: 16px; }
.booking__booking-id { background: #f1f5f9; padding: 10px 20px; border-radius: 8px;
  display: inline-block; margin-bottom: 24px; font-size: 14px; }

/* Orders */
.orders__filter-tabs { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; }
.orders__filter-tab { padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  color: #64748b; background: #f1f5f9; white-space: nowrap; }
.orders__filter-tab.active { background: #2563EB; color: white; }
.orders__list { padding: 4px 16px 160px; }
.order-card { border: 1px solid #f1f5f9; border-radius: 14px; padding: 14px;
  margin-bottom: 12px; background: white; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.order-card__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.order-card__service { font-size: 15px; font-weight: 700; }
.order-card__category { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.order-card__status { font-size: 12px; font-weight: 700; padding: 4px 10px;
  border-radius: 20px; white-space: nowrap; }
.order-card__status--blue { background: #EFF6FF; color: #2563EB; }
.order-card__status--orange { background: #FFF7ED; color: #EA580C; }
.order-card__status--green { background: #F0FDF4; color: #16A34A; }
.order-card__status--red { background: #FEF2F2; color: #DC2626; }
.order-card__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.order-card__meta-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #64748b; }
.order-card__footer { display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; border-top: 1px solid #f1f5f9; }
.order-card__id { font-size: 12px; color: #94a3b8; font-family: monospace; }
.order-card__price { font-size: 15px; font-weight: 700; color: #2563EB; }
.orders__empty { display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 24px; gap: 12px; text-align: center; }
.orders__empty-text { font-size: 15px; color: #94a3b8; }

/* Profile */
.profile__header { display: flex; align-items: center; gap: 14px;
  padding: 20px 16px; background: white; }
.profile__avatar { width: 60px; height: 60px; border-radius: 50%; background: #2563EB;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile__avatar span { color: white; font-size: 24px; font-weight: 800; }
.profile__name { font-size: 1.1rem; font-weight: 700; }
.profile__phone { font-size: 13px; color: #64748b; margin-top: 2px; }
.profile__edit-btn { margin-left: auto; padding: 8px; }
.profile__sections { padding: 8px 16px 100px; }
.profile__section { background: white; border-radius: 14px; border: 1px solid #f1f5f9;
  overflow: hidden; margin-bottom: 14px; }
.profile__section-title { font-size: 12px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.05em; padding: 12px 16px 6px; }
.profile__item { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #f8fafc; width: 100%; text-align: left; }
.profile__item:last-child { border-bottom: none; }
.profile__item--btn { cursor: pointer; }
.profile__item--danger .profile__item-label { color: #ef4444; }
.profile__item-left { display: flex; align-items: center; gap: 12px; }
.profile__item-icon { font-size: 18px; }
.profile__item-label { font-size: 15px; color: #1e293b; }
.profile__item-arrow { color: #cbd5e1; }
.profile__select { border: none; font-size: 14px; color: #2563EB; font-weight: 600;
  background: none; cursor: pointer; }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-switch__track { position: absolute; inset: 0; background: #cbd5e1;
  border-radius: 24px; cursor: pointer; transition: background 0.2s; }
.toggle-switch__track::before { content: ""; position: absolute; width: 18px; height: 18px;
  left: 3px; top: 3px; background: white; border-radius: 50%; transition: transform 0.2s; }
.toggle-switch input:checked + .toggle-switch__track { background: #2563EB; }
.toggle-switch input:checked + .toggle-switch__track::before { transform: translateX(20px); }
.profile__version { text-align: center; font-size: 12px; color: #cbd5e1; padding: 8px; margin-bottom: 160px; }

/* Bottom bar (search / back pill area) */
.bottom-bar {
  position: fixed;
  bottom: 65px;
  left: 0; right: 0;
  padding: 0px 0px;
  z-index: 9;
  pointer-events: none;
}
.bottom-search {
  pointer-events: all;
}
.bottom-search.hidden { display: none; }

/* Back pill */
.screen-topbar {
  padding: 12px 16px 0;
}
.back-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f1f5f9;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  border: none;
}
.back-pill:active { background: #e2e8f0; }

/* Bottom Nav */
.bottom-nav {
  display: flex;
  align-items: center;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid #f1f5f9;
  z-index: 10;
  padding-bottom: env(safe-area-inset-bottom);
  padding: 6px 0;
}

.screen--login.active ~ * .bottom-nav,
body:has(#screen-login.active) .bottom-nav,
body:has(#screen-login.active) #bottom-bar {
  display: none;
}

.bottom-nav__logo {
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-right: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.bottom-nav__logo-img {
  height: 35px;
  width: 119px;
  object-fit: contain;
}
.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
  color: #94a3b8;
  font-size: 11px;
}
.bottom-nav__item.active { color: #2563EB; }
.bottom-nav__icon { stroke: currentColor; }
.bottom-nav__label { font-weight: 600; }

/* Toast */
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1e293b; color: white; padding: 12px 20px; border-radius: 10px;
  font-size: 14px; opacity: 0; transition: all 0.3s; z-index: 100; white-space: nowrap;
  pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--success { background: #10B981; }
.toast--error { background: #ef4444; }

/* Loading Overlay */
.loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center; z-index: 200; }
.loading-spinner { width: 36px; height: 36px; border: 3px solid #e2e8f0;
  border-top-color: #2563EB; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Dark Mode */
[data-theme="dark"] body { background: #0f172a; color: #e2e8f0; }
[data-theme="dark"] .topbar,
[data-theme="dark"] .bottom-nav,
[data-theme="dark"] .category-card,
[data-theme="dark"] .order-card,
[data-theme="dark"] .profile__section,
[data-theme="dark"] .profile__header { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .service__section--card,
[data-theme="dark"] .service__meta-card,
[data-theme="dark"] .booking__summary-card { background: #1e293b; }
[data-theme="dark"] .search-bar { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .search-bar__input { color: #e2e8f0; }
[data-theme="dark"] .input-group { border-color: #334155; }
[data-theme="dark"] .input-group__prefix { background: #334155; color: #e2e8f0; }
[data-theme="dark"] .input-group__field,
[data-theme="dark"] .input-field,
[data-theme="dark"] .otp-box { background: #1e293b; color: #e2e8f0; border-color: #334155; }
[data-theme="dark"] .week-day { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .time-slot { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .profile__item-label { color: #e2e8f0; }
[data-theme="dark"] .profile__section-title { color: #64748b; } 
[data-theme="dark"] .service__icon-wrap,
[data-theme="dark"] .service-icon__img-wrap { color: #394c64; }
[data-theme="dark"] .service-icon__label { color: #e2e8f0; }
[data-theme="dark"] .search-result-item__icon { background: #334155; }
[data-theme="dark"] .search-result-item { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .loading-overlay { background: rgba(15, 23, 42, 0.7); }

/* ─────────────────────────────────────────────────
   AUTH – PIN Login / Signup
───────────────────────────────────────────────── */

.auth-tabs {
  display: flex;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  background: white;
  transition: all 0.15s;
}
.auth-tab.active {
  background: #2563EB;
  color: white;
}

.login__step-hint {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
  text-align: center;
}
.login__step-note {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* PIN boxes */
.pin-input-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 20px;
}
.pin-box {
  width: 58px;
  height: 64px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
  background: #f8fafc;
  transition: border-color 0.15s;
}
.pin-box:focus {
  border-color: #2563EB;
  background: #EFF6FF;
  outline: none;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
}

/* ─────────────────────────────────────────────────
   TIME PICKER
───────────────────────────────────────────────── */
.time-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.time-picker__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.time-picker__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid #e2e8f0;
  font-size: 14px;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.time-picker__arrow:hover { background: #EFF6FF; }
.time-picker__value {
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
  min-width: 56px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.time-picker__colLabel {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.time-picker__sep {
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 18px;
}
.time-picker__ampm {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.time-picker__ampm-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid #e2e8f0;
  color: #64748b;
  background: white;
  transition: all 0.15s;
}
.time-picker__ampm-btn.active {
  background: #2563EB;
  color: white;
  border-color: #2563EB;
}
.time-picker--profile {
  margin-top: 12px;
}

/* ─────────────────────────────────────────────────
   PROFILE – Completion & Edit
───────────────────────────────────────────────── */
.profile__completion-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFF7ED;
  border: 1.5px solid #FED7AA;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  gap: 12px;
}
.profile__completion-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile__completion-icon { font-size: 22px; }
.profile__completion-title {
  font-size: 14px;
  font-weight: 700;
  color: #92400E;
}
.profile__completion-sub {
  font-size: 12px;
  color: #B45309;
  margin-top: 2px;
}

.profile__edit-row {
  padding: 12px 16px;
  border-bottom: 1px solid #f8fafc;
}
.profile__edit-row:last-of-type { border-bottom: none; }
.profile__edit-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.profile__edit-input {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  color: #1e293b;
  background: #f8fafc;
  font-family: inherit;
  transition: border-color 0.15s;
}
.profile__edit-input:focus {
  border-color: #2563EB;
  background: white;
  outline: none;
}
.profile__edit-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}
.profile__security-note {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 8px;
  background: #FFF7ED;
  border-radius: 8px;
  padding: 10px 12px;
}
.profile__security-current {
  font-size: 13px;
  color: #2563EB;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}
.profile__section .btn--full { margin: 12px 16px 16px; width: calc(100% - 32px); }

/* Profile nav red dot */
.bottom-nav__icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 9px;
  height: 9px;
  background: #ef4444;
  border-radius: 50%;
  border: 1.5px solid white;
}

.profile__location-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}
.profile__location-wrap .profile__edit-input {
  flex: 1;
  cursor: default;
  color: #64748b;
}
.btn--location {
  flex-shrink: 0;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  white-space: nowrap;
}

.profile__confirm-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
}
.profile__confirm-check {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #2563EB;
  cursor: pointer;
}
[data-theme="dark"] .profile__confirm-label { color: #e2e8f0; }


/* PWA Install Banner */
.install-banner-wrap {
  padding: 0 16px 16px;
}
.install-banner-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  
  border: 2px solid #e2e8f0;
}
.install-banner-img {
  width: 100%;
  height: auto;
  display: block;
}
.install-banner-btn {
  position: absolute;
  /* 
    Image ratio: 1537 x 745
    Dotted box is roughly at:
      left: 67% from left
      top: 58% from top
      width: ~27% of image
      height: ~20% of image
  */
  left: 70%;
  top: 54%;
  width: 27%;
  height: 20%;
  background: #2563EB;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: clamp(11px, 2vw, 15px);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s;
}
.install-banner-btn:active {
  background: #1d4ed8;
}

[data-theme="dark"] .install-banner-card {
  border-color: #334155;
}

/* Dark mode additions */
[data-theme="dark"] .auth-tab { background: #1e293b; color: #94a3b8; border-color: #334155; }
[data-theme="dark"] .auth-tab.active { background: #2563EB; color: white; }
[data-theme="dark"] .auth-tabs { border-color: #334155; }
[data-theme="dark"] .pin-box { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .pin-box:focus { background: #1e293b; border-color: #2563EB; }
[data-theme="dark"] .time-picker { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .time-picker__value { color: #e2e8f0; }
[data-theme="dark"] .time-picker__sep { color: #e2e8f0; }
[data-theme="dark"] .time-picker__arrow { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .time-picker__ampm-btn { background: #0f172a; border-color: #334155; color: #94a3b8; }
[data-theme="dark"] .time-picker__ampm-btn.active { background: #2563EB; color: white; }
[data-theme="dark"] .profile__edit-input { background: #1e293b; border-color: #334155; color: #e2e8f0; }
[data-theme="dark"] .profile__edit-input:focus { background: #0f172a; }
[data-theme="dark"] .profile__security-note { background: #1e293b; color: #94a3b8; }
[data-theme="dark"] .profile__completion-banner { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .profile-dot { border-color: #0f172a; }
[data-theme="dark"] .login__step-hint { color: #e2e8f0; }
