/* ─────────────────────────────────────────
   JAIPUR RIDE — APP LAYOUT
   Mobile-first glass shell with pink theme
   ───────────────────────────────────────── */

/* ── App Shell ── */
.app-shell {
  width: 100vw;
  max-width: 430px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  border-left:  1px solid var(--border);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 431px) {
  .app-shell {
    height: 92vh;
    margin: 4vh auto;
    border-radius: 44px;
    border: 1px solid var(--border);
  }
}

/* ── Header ── */
.app-header {
  min-height: 80px;
  height: auto;
  width: 100%;
  flex-shrink: 0;
  z-index: 100;
  padding-top: calc(max(env(safe-area-inset-top, 0px), 40px) + 10px);
  padding-bottom: 12px;
  padding-left: calc(16px + env(safe-area-inset-left, 0px));
  padding-right: calc(16px + env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-solid);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ── Bottom Nav (Floating Glassmorphism) ── */
.bottom-nav {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: calc(100% - 32px);
  max-width: 398px;
  height: 64px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  z-index: 1000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
}

[data-theme="dark"] .bottom-nav {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bottom-nav.nav-hidden {
  transform: translateX(-50%) translateY(140%);
  opacity: 0;
  pointer-events: none;
}

.bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 52px;
  min-width: 44px;
  border-radius: 20px;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.bottom-nav button:active {
  transform: scale(0.94);
}

.bottom-nav button.active {
  color: var(--accent);
}

.bottom-nav button.active-pink {
  color: var(--pink) !important;
}

.bottom-nav button span {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.bottom-nav button i {
  width: 20px;
  height: 20px;
}

/* ── Body centering ── */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* ── Scroll Content ── */
.scroll-content {
  width: 100%;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  padding-bottom: 100px;
}

/* ── Section defaults ── */
section { margin-bottom: 0; }

/* ── Typography size floors ── */
* { -webkit-tap-highlight-color: transparent; user-select: none; }
p, span, div, button, input { font-size: 13px; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; }

/* ── Custom Scrollbar ── */
.custom-scrollbar::-webkit-scrollbar       { width: 3px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--pink-glow); border-radius: 10px; }

/* ── Utility classes ── */
.flex-grow     { flex-grow: 1; }
.overflow-y-auto { overflow-y: auto; }
.hidden        { display: none !important; }
.relative      { position: relative; }
.absolute      { position: absolute; }
.z-50          { z-index: 50; }
.sticky        { position: sticky; }
.top-0         { top: 0; }

/* ── Spacing (based on 8px unit) ── */
.px-24  { padding-left: 24px; padding-right: 24px; }
.px-20  { padding-left: 20px; padding-right: 20px; }
.py-16  { padding-top: 16px;  padding-bottom: 16px; }
.pt-20  { padding-top: 20px; }
.p-24   { padding: 24px; }
.mt-20  { margin-top: 20px; }
.mb-8   { margin-bottom: 8px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.mb-32  { margin-bottom: 32px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }