/* ==========================================================================
   RailOne Mobile App - Precise Design & Spacing Stylesheet
   ========================================================================== */

:root {
  /* Brand & Core Palette */
  --color-primary: #0066ff;
  --color-primary-dark: #0052cc;
  --color-primary-light: #e6f0ff;
  --color-navy: #0a2240;
  --color-greeting: #506882;
  --color-text-dark: #1e293b;
  --color-text-muted: #53759e;
  --color-bg-white: #ffffff;
  --color-bg-light: #f8fafc;
  --color-border: #e2e8f0;

  /* Offerings Tile Colors (Matching Reference Screenshot) */
  --tile-pink-bg: #fff0f3;
  --tile-green-bg: #ebfaef;
  --tile-cyan-bg: #e8f5fe;
  --tile-yellow-bg: #fff8e8;
  --tile-purple-bg: #f1edfe;
  --tile-slate-bg: #f3f4f6;
  --tile-rose-bg: #ffebee;
  --tile-waves-bg: #6a6b84;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-inter: 'Inter', sans-serif;

  /* Transitions & Radii */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --radius-tile: 18px;
  --radius-card: 18px;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-main);
  background-color: var(--color-bg-white);
  color: var(--color-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

/* Outer Viewport Container */
.app-viewport-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background-color: #e5e9f0;
}

/* Vertical Mobile App Container */
.app-container {
  position: relative;
  width: 100%;
  max-width: 414px;
  height: 100%;
  height: 100dvh;
  background-color: var(--color-bg-white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 35px rgba(15, 23, 42, 0.08);
}

/* App View Routing Container */
.app-view {
  display: none;
  flex-direction: column;
  width: 100%;
  height: 100%;
  flex: 1;
  overflow: hidden;
}

.app-view.active {
  display: flex;
}

/* Mobile Devices: Automatic Full Width (Edge-to-Edge) */
@media (max-width: 600px) {
  html, body {
    background-color: var(--color-bg-white);
  }
  .app-viewport-container {
    background-color: var(--color-bg-white);
    padding: 0;
  }
  .app-container {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    box-shadow: none !important;
    border: none !important;
  }
}

/* ==========================================================================
   Header (Language Switcher, Brand, Notifications)
   ========================================================================== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 8px 20px;
  background-color: var(--color-bg-white);
  z-index: 20;
  flex-shrink: 0;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #e5e9f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  outline: none;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.lang-switcher-btn:hover {
  background-color: #f8fafc;
  transform: scale(1.04);
}

.lang-switcher-btn:active {
  transform: scale(0.96);
}

.lang-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 15px;
  font-weight: 700;
  color: #0066ff;
  line-height: 1;
}

.lang-en {
  color: #0066ff;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 800;
}

.lang-hi {
  color: #0066ff;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 800;
  margin-left: 1px;
}

/* Brand Name */
.app-brand-title {
  display: flex;
  align-items: baseline;
  user-select: none;
  letter-spacing: -0.6px;
}

.brand-rail {
  font-size: 28px;
  font-weight: 400;
  color: #24334a;
}

.brand-one {
  font-size: 28px;
  font-weight: 800;
  color: #24334a;
}

/* Notification Bell Button */
.notification-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #e5e9f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  outline: none;
  color: #334155;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.notification-btn:hover {
  background-color: #f8fafc;
  transform: scale(1.04);
}

.notification-btn:active {
  transform: scale(0.96);
}

.bell-icon {
  width: 21px;
  height: 21px;
}

.notification-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  border-radius: 9px;
  background-color: #e53935;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* ==========================================================================
   Scrollable App Body (Home View)
   ========================================================================== */
.app-scroll-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 20px 24px 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbars */
.app-scroll-content::-webkit-scrollbar,
.unreserved-scroll-content::-webkit-scrollbar,
.recent-chips-carousel::-webkit-scrollbar,
.dyk-carousel-wrapper::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  display: none;
}
.app-scroll-content, .unreserved-scroll-content, .recent-chips-carousel, .dyk-carousel-wrapper {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Gap between Header and Greeting */
.user-greeting-section {
  margin-top: 26px;
  margin-bottom: 16px;
}

.user-greeting-text {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-greeting);
  letter-spacing: -0.15px;
}

.user-greeting-text .user-name {
  color: var(--color-greeting);
  font-weight: 500;
}

/* Section Common Titles */
.section-container {
  margin-bottom: 26px;
}

.section-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}

/* ==========================================================================
   Section 1: Journey Planner (Rectangular Landscape Cards)
   ========================================================================== */
.journey-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.journey-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  outline: none;
  transition: transform var(--transition-spring);
}

.journey-card:hover {
  transform: translateY(-2px);
}

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

.journey-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1.3 / 1;
  border-radius: 16px;
  overflow: hidden;
  background-color: #f1f5f9;
  box-shadow: 0 3px 10px rgba(10, 34, 64, 0.07);
}

.journey-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.journey-card:hover .journey-card-img {
  transform: scale(1.05);
}

.journey-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 65%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}

.journey-card-label {
  margin-top: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-navy);
  text-align: center;
  letter-spacing: -0.2px;
}

/* ==========================================================================
   Section 2: More Offerings
   ========================================================================== */
.more-offerings-section .section-title {
  margin-bottom: 18px;
}

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 20px;
  column-gap: 10px;
  justify-items: center;
  margin-top: 2px;
}

.offering-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  cursor: pointer;
  outline: none;
  text-align: center;
  transition: transform var(--transition-spring);
}

.offering-item:hover {
  transform: translateY(-2px);
}

.offering-item:active {
  transform: scale(0.92);
}

.offering-icon-tile {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-tile);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.offering-item:hover .offering-icon-tile {
  box-shadow: 0 6px 16px rgba(10, 34, 64, 0.1);
}

.tile-pink { background-color: var(--tile-pink-bg); }
.tile-green { background-color: var(--tile-green-bg); }
.tile-cyan { background-color: var(--tile-cyan-bg); }
.tile-yellow { background-color: var(--tile-yellow-bg); }
.tile-purple { background-color: var(--tile-purple-bg); }
.tile-slate { background-color: var(--tile-slate-bg); }
.tile-rose { background-color: var(--tile-rose-bg); }
.tile-solid-slate { background-color: var(--tile-waves-bg); }

.offering-svg {
  width: 38px;
  height: 38px;
}

.offering-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-navy);
  letter-spacing: -0.2px;
  text-align: center;
}

/* ==========================================================================
   Section 3: Do You know?
   ========================================================================== */
.do-you-know-section {
  margin-top: 26px;
  margin-bottom: 16px;
}

.do-you-know-section .section-title {
  margin-bottom: 14px;
}

.dyk-carousel-wrapper {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  padding-right: 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.dyk-card {
  flex: 0 0 170px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
  transition: transform var(--transition-fast);
}

.dyk-card:hover {
  transform: translateY(-2px);
}

.dyk-card:active {
  transform: scale(0.97);
}

.dyk-img-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(10, 34, 64, 0.08);
}

.dyk-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.dyk-bw {
  filter: grayscale(100%) contrast(110%);
}

.dyk-card:hover .dyk-img {
  transform: scale(1.05);
}

.dyk-caption {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--color-greeting);
  letter-spacing: -0.15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scroll-bottom-spacer {
  height: 16px;
}

/* ==========================================================================
   Unreserved E-Ticket Page View Styles
   ========================================================================== */
.unreserved-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px 20px;
  background-color: var(--color-bg-white);
  flex-shrink: 0;
  z-index: 20;
}

.unreserved-header-spacer {
  width: 38px;
  height: 38px;
}

.unreserved-page-title {
  font-size: 20px;
  font-weight: 800;
  color: #0a2240;
  text-align: center;
  flex: 1;
  letter-spacing: -0.3px;
}

.unreserved-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #a3ccfa;
  background: #ffffff;
  color: #0066ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.unreserved-close-btn:hover {
  background-color: #f0f7ff;
  transform: scale(1.06);
}

.unreserved-close-btn:active {
  transform: scale(0.94);
}

.close-x-icon {
  width: 18px;
  height: 18px;
}

.unreserved-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 18px 24px 18px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Main Booking Card */
.unreserved-main-card {
  background-color: #ffffff;
  border-radius: 22px;
  border: 1px solid #eef2f6;
  box-shadow: 0 4px 20px rgba(10, 34, 64, 0.05);
  padding: 18px 16px;
  margin-bottom: 24px;
}

/* 1. Ticket Type Segment (Normal vs Season) */
.ticket-segment-control {
  display: flex;
  background-color: #f1f3f6;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 16px;
}

.segment-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  background: transparent;
  cursor: pointer;
  outline: none;
  font-family: var(--font-main);
  transition: all var(--transition-fast);
}

.segment-btn.active {
  background-color: #ffffff;
  color: #0066ff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* 2. Station Mode (Outside Station vs At Station) */
.station-mode-control {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.mode-pill-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 24px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  outline: none;
  font-family: var(--font-main);
  transition: all var(--transition-fast);
}

.mode-pill-btn.active {
  background-color: #0066ff;
  border-color: #0066ff;
  color: #ffffff;
}

.info-circle-badge {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}

/* 3. Station Inputs */
.station-inputs-block {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  position: relative;
}

.station-field-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.station-field-label {
  font-size: 14px;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: -0.1px;
}

.station-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.train-input-icon {
  width: 22px;
  height: 22px;
  color: #64748b;
  flex-shrink: 0;
}

.station-text-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 600;
  color: #0a2240;
  font-family: var(--font-main);
  background: transparent;
}

.station-display-text {
  width: 100%;
  font-size: 14.5px;
  font-weight: 700;
  color: #0a2240;
  font-family: var(--font-main);
  cursor: pointer;
  letter-spacing: -0.1px;
}

.station-field-row {
  cursor: pointer;
}

/* Swap Button Divider */
.station-swap-divider {
  display: flex;
  align-items: center;
  position: relative;
  margin: 4px 0;
}

.swap-line {
  flex: 1;
  height: 1px;
  background-color: #e5e9f0;
}

.station-swap-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #93c5fd;
  border: none;
  color: #0066ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  margin-left: 8px;
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color var(--transition-fast);
}

.station-swap-btn:hover {
  background-color: #70b2f5;
  transform: rotate(180deg);
}

.station-swap-btn svg {
  width: 18px;
  height: 18px;
}

/* 4. Action Buttons */
.unreserved-actions-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-proceed-book {
  width: 100%;
  padding: 14px;
  border-radius: 28px;
  background-color: #0066ff;
  border: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  outline: none;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-proceed-book:hover {
  background-color: #0052cc;
  transform: translateY(-1px);
}

.btn-proceed-book:active {
  transform: scale(0.98);
}

.btn-check-upcoming {
  width: 100%;
  padding: 14px;
  border-radius: 28px;
  background-color: #ffffff;
  border: 1.5px solid #0066ff;
  color: #0066ff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  outline: none;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-check-upcoming:hover {
  background-color: #f0f7ff;
  transform: translateY(-1px);
}

.btn-check-upcoming:active {
  transform: scale(0.98);
}

/* 5. Recent Searches */
.recent-searches-section {
  margin-top: 10px;
  margin-bottom: 24px;
}

.recent-searches-title {
  font-size: 17px;
  font-weight: 800;
  color: #0a2240;
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}

.recent-chips-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.recent-search-chip {
  flex: 0 0 156px;
  background-color: #e0eeff;
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  outline: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-align: center;
  scroll-snap-align: start;
}

.recent-search-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.12);
}

.recent-search-chip:active {
  transform: scale(0.96);
}

.chip-station-name {
  font-size: 12px;
  font-weight: 700;
  color: #0a2240;
  letter-spacing: -0.1px;
}

.chip-route-connector {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   View 3: Search Station Page Styles
   ========================================================================== */
.search-station-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px 20px;
  background-color: var(--color-bg-white);
  flex-shrink: 0;
  z-index: 20;
}

.search-station-header-spacer {
  width: 38px;
  height: 38px;
}

.search-station-page-title {
  font-size: 20px;
  font-weight: 800;
  color: #0a2240;
  text-align: center;
  flex: 1;
  letter-spacing: -0.3px;
}

.search-station-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #a3ccfa;
  background: #ffffff;
  color: #0066ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.search-station-close-btn:hover {
  background-color: #f0f7ff;
  transform: scale(1.06);
}

.search-station-close-btn:active {
  transform: scale(0.94);
}

.search-station-content {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px 24px 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.search-target-heading {
  font-size: 17px;
  font-weight: 800;
  color: #0a2240;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

/* Search Box Pill with Teal/Cyan Border */
.station-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 2px solid #22d3ee;
  border-radius: 30px;
  background-color: #ffffff;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(34, 211, 238, 0.12);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.station-search-box:focus-within {
  border-color: #0066ff;
  box-shadow: 0 2px 12px rgba(0, 102, 255, 0.15);
}

.search-box-icon {
  width: 20px;
  height: 20px;
  color: #64748b;
  flex-shrink: 0;
}

.station-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font-main);
  color: #0a2240;
  font-weight: 500;
  background: transparent;
}

.station-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.mic-btn {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: color var(--transition-fast);
}

.mic-btn:hover {
  color: #0066ff;
}

.mic-icon {
  width: 20px;
  height: 20px;
}

/* Recent Station Searches Header */
.recent-station-searches-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.recent-searches-clock-icon {
  width: 18px;
  height: 18px;
  color: #0a2240;
}

.recent-station-searches-title {
  font-size: 14px;
  font-weight: 800;
  color: #0a2240;
  letter-spacing: -0.1px;
}

/* Station List Items */
.station-list-container {
  display: flex;
  flex-direction: column;
}

.station-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color var(--transition-fast), padding-left var(--transition-fast);
}

.station-list-item:hover {
  background-color: #f8fafc;
  padding-left: 6px;
}

.station-list-item:active {
  background-color: #e6f0ff;
}

.station-info-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.station-name-code {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.1px;
}

.station-region {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.1px;
  text-transform: uppercase;
}

.station-arrow-icon {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  flex-shrink: 0;
}

/* ==========================================================================
   View 4: Unreserved Journey Booking Page Styles
   ========================================================================== */
.journey-blue-header {
  background-color: #0066ff;
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  z-index: 20;
}

.journey-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.journey-back-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.06);
}

.journey-back-btn:active {
  transform: scale(0.94);
}

.back-arrow-svg {
  width: 20px;
  height: 20px;
}

.journey-header-title-wrap {
  display: flex;
  flex-direction: column;
}

.journey-page-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.journey-page-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.1px;
}

/* Station Route Strip */
.journey-route-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: #ffffff;
  border-bottom: 1px solid #edf2f7;
  flex-shrink: 0;
}

.route-station-col {
  display: flex;
  flex-direction: column;
}

.route-station-left {
  text-align: left;
}

.route-station-right {
  text-align: right;
}

.route-station-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #0a2240;
  letter-spacing: -0.2px;
  text-transform: uppercase;
}

.route-station-code {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
  text-transform: uppercase;
}

.route-arrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

/* Scrollable Booking Form */
.journey-booking-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px 24px 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.booking-option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.booking-group-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  letter-spacing: -0.1px;
}

.option-pills-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.booking-pill-btn {
  padding: 8px 18px;
  border-radius: 24px;
  border: 1.5px solid #cbd5e1;
  background-color: #ffffff;
  color: #475569;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.booking-pill-btn.active {
  background-color: #0066ff;
  border-color: #0066ff;
  color: #ffffff;
}

/* Passenger Counters */
.passenger-counters-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.passenger-counter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border: 1.5px solid #bae6fd;
  border-radius: 12px;
  background-color: #ffffff;
}

.passenger-card-label {
  font-size: 15px;
  font-weight: 700;
  color: #334155;
}

.counter-actions-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.counter-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #0066ff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.counter-btn:active {
  transform: scale(0.85);
}

.counter-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #0066ff;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.passenger-age-hint {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
  margin-top: -2px;
  padding-left: 2px;
}

/* Concession Checkbox Row */
.concession-option-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  margin: 4px 0;
}

.concession-checkbox {
  display: none;
}

.concession-custom-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
  background-color: #ffffff;
  display: inline-block;
  transition: all var(--transition-fast);
}

.concession-checkbox:checked + .concession-custom-circle {
  border-color: #0066ff;
  background-color: #0066ff;
  box-shadow: inset 0 0 0 3.5px #ffffff;
}

.concession-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
}

/* Fare Summary Strip */
.journey-fare-summary-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background-color: #f0f7ff;
  border-radius: 12px;
  margin-top: 4px;
}

.fare-left-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fare-ticket-icon {
  width: 26px;
  height: 26px;
  color: #0066ff;
}

.fare-title-text {
  font-size: 16px;
  font-weight: 800;
  color: #0a2240;
}

.fare-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.fare-amount-text {
  font-size: 16px;
  font-weight: 800;
  color: #0a2240;
}

.fare-breakup-btn {
  border: 1px solid #94a3b8;
  border-radius: 12px;
  background: transparent;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  outline: none;
  font-family: var(--font-main);
  transition: all var(--transition-fast);
}

.fare-breakup-btn:hover {
  background-color: #e2e8f0;
  color: #0a2240;
}

/* Book Now Button */
.journey-book-now-container {
  margin-top: 6px;
}

.btn-book-now {
  width: 100%;
  padding: 15px;
  border-radius: 28px;
  background-color: #0066ff;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  outline: none;
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.28);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-book-now:hover {
  background-color: #0052cc;
  transform: translateY(-1px);
}

.btn-book-now:active {
  transform: scale(0.98);
}

/* ==========================================================================
   View 5: Make Payment Page Styles
   ========================================================================== */
#makePaymentView {
  background-color: #fcfbff;
}

.payment-blue-header {
  background-color: #0066ff;
  color: #ffffff;
  padding: 16px 20px 32px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  z-index: 20;
}

.payment-page-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.payment-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Top Station & Amount Summary Card */
.payment-summary-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 14px 18px;
  margin: -20px 18px 16px 18px;
  box-shadow: 0 4px 16px rgba(10, 34, 64, 0.07);
  border: 1.5px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.payment-summary-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payment-stations-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pay-station-code {
  font-size: 15.5px;
  font-weight: 800;
  color: #0a2240;
  letter-spacing: -0.1px;
}

.payment-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pay-amount-label {
  font-size: 15px;
  font-weight: 700;
  color: #0a2240;
}

.pay-amount-val {
  font-size: 16px;
  font-weight: 800;
  color: #0a2240;
}

.payment-summary-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.discount-applied-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #0066ff;
}

.review-fare-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  outline: none;
  font-family: var(--font-main);
  margin-left: auto;
}

/* Payment Methods Container Card */
.payment-methods-card {
  background-color: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #eef2f6;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin: 0 18px;
}

.payment-method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.payment-method-row:hover {
  background-color: #f8fafc;
}

.upi-method-row.selected {
  background-color: #f0f9ff;
}

.method-left-col {
  display: flex;
  align-items: center;
  gap: 14px;
}

.r-wallet-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.method-title-sub {
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
}

.method-balance-text {
  font-size: 16px;
  font-weight: 800;
  color: #007a4d;
}

.r-wallet-status-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.insufficient-badge {
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  letter-spacing: -0.1px;
}

.add-money-link {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: #0066ff;
  cursor: pointer;
  outline: none;
  font-family: var(--font-main);
}

.methods-divider-dashed {
  height: 1px;
  border-top: 1px dashed #cbd5e1;
  margin: 0;
}

.other-card-icon {
  width: 22px;
  height: 22px;
}

.other-methods-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #334155;
  letter-spacing: -0.1px;
}

.method-arrow-right {
  width: 16px;
  height: 16px;
  color: #475569;
}

/* Pay Using UPI Button */
.pay-using-upi-container {
  margin: 24px 18px 0 18px;
}

.btn-pay-using-upi {
  width: 100%;
  padding: 15px;
  border-radius: 28px;
  background-color: #0066ff;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  outline: none;
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.28);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-pay-using-upi:hover {
  background-color: #0052cc;
  transform: translateY(-1px);
}

.btn-pay-using-upi:active {
  transform: scale(0.98);
}

/* Success Popup Modal */
.success-popup-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 34, 64, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.success-popup-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.success-popup-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 22px 24px 22px;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-popup-backdrop.open .success-popup-card {
  transform: scale(1);
}

.success-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #eafaf1;
  color: #00b87c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.success-popup-title {
  font-size: 18px;
  font-weight: 800;
  color: #0a2240;
  margin-bottom: 6px;
}

.success-popup-msg {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 20px;
}

.success-popup-route {
  font-weight: 700;
  color: #0066ff;
}

.btn-popup-ok {
  width: 100%;
  padding: 13px;
  border-radius: 24px;
  background-color: #0066ff;
  border: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  outline: none;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
  transition: background-color var(--transition-fast);
}

.btn-popup-ok:hover {
  background-color: #0052cc;
}

/* ==========================================================================
   View 6: My Bookings Page Styles
   ========================================================================== */
#myBookingsView {
  background-color: #ffffff;
  position: relative;
}

.bookings-blue-header {
  background-color: #0066ff;
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 20;
}

.bookings-page-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.bookings-filter-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

/* Sub-header Strip */
.bookings-subheader-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px 20px;
  background-color: #ffffff;
  flex-shrink: 0;
}

.bookings-count-label {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.bookings-count-label.theme-upcoming {
  color: #d97706;
}

.bookings-count-label.theme-completed {
  color: #059669;
}

.bookings-count-label.theme-cancelled {
  color: #e11d48;
}

.bookings-count-label.theme-all {
  color: #0066ff;
}

.bookings-refresh-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.bookings-refresh-icon-btn:hover {
  transform: rotate(180deg);
}

/* Scrollable Container */
.bookings-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 4px 16px 90px 16px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.bookings-tab-content {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.bookings-tab-content.active {
  display: flex;
}

/* UTS Ticket Notch Card */
.uts-booking-ticket-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px 12px 18px;
  margin-bottom: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition-fast);
  overflow: hidden;
}

.uts-booking-ticket-card:hover {
  transform: translateY(-1px);
}

/* Border Color Themes */
.card-yellow-border {
  border: 1.5px solid #f59e0b;
}

.card-green-border {
  border: 1.5px solid #00a86b;
}

/* Ticket Side Notches */
.ticket-notch {
  position: absolute;
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border-radius: 50%;
  top: 71%;
  transform: translateY(-50%);
  z-index: 2;
}

.card-yellow-border .notch-left {
  left: -10px;
  box-shadow: inset -1.5px 0 0 0 #f59e0b;
}

.card-yellow-border .notch-right {
  right: -10px;
  box-shadow: inset 1.5px 0 0 0 #f59e0b;
}

.card-green-border .notch-left {
  left: -10px;
  box-shadow: inset -1.5px 0 0 0 #00a86b;
}

.card-green-border .notch-right {
  right: -10px;
  box-shadow: inset 1.5px 0 0 0 #00a86b;
}

/* Card Top Row */
.ticket-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ticket-badge-unreserved {
  background-color: #f3e8ff;
  color: #9333ea;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
  letter-spacing: -0.1px;
}

.ticket-uts-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.ticket-uts-code {
  font-weight: 800;
  color: #0a2240;
  letter-spacing: 0.2px;
}

/* Card Meta Row */
.ticket-card-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ticket-meta-col {
  display: flex;
  flex-direction: column;
}

.ticket-meta-col.text-right {
  text-align: right;
  align-items: flex-end;
}

.meta-field-label {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 2px;
}

.meta-field-val {
  font-size: 13px;
  font-weight: 800;
  color: #0a2240;
}

/* Card Route Row */
.ticket-card-route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.route-station-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0a2240;
  letter-spacing: -0.1px;
}

.route-distance-text {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
}

/* Dashed Line */
.ticket-card-dashed-line {
  height: 1px;
  border-top: 1px dashed #cbd5e1;
  margin: 0 -4px 10px -4px;
}

/* Actions Row */
.ticket-card-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-top: 2px;
}

.btn-ticket-action {
  border: none;
  background: transparent;
  color: #0066ff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  font-family: var(--font-main);
  transition: opacity var(--transition-fast);
}

.btn-ticket-action:hover {
  opacity: 0.8;
}

.ticket-action-separator {
  width: 1px;
  height: 16px;
  background-color: #cbd5e1;
}

/* Bottom Floating Filter Tabs Bar */
.bookings-bottom-filter-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #e9f5fe;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 6px 12px 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 18px rgba(0, 102, 255, 0.08);
  z-index: 30;
}

.b-filter-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.b-filter-tab-btn.active {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.b-filter-tab-btn.tab-upcoming.active {
  color: #d97706;
}

.b-filter-tab-btn.tab-completed.active {
  color: #059669;
}

.b-filter-tab-btn.tab-cancelled.active {
  color: #e11d48;
}

.b-filter-tab-btn.tab-all.active {
  color: #0066ff;
}

.b-tab-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.b-tab-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   View 7: Booking Details Page Styles
   ========================================================================== */
#bookingDetailsView {
  background-color: #f4f5f7;
  position: relative;
}

.bd-blue-header {
  background-color: #0066ff;
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  z-index: 20;
}

.bd-header-text {
  display: flex;
  flex-direction: column;
}

.bd-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.bd-subtitle {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
  font-weight: 500;
}

.bd-scroll-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Thank You Banner */
.bd-thankyou-banner {
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  padding: 12px 16px;
  font-size: 13px;
  color: #6b7280;
  font-style: italic;
}

.bd-thank-name {
  font-weight: 700;
  color: #1e293b;
  font-style: normal;
}

/* Dynamic Preview Dark Section */
.bd-dynamic-preview {
  background: #0d1117;
  display: flex;
  align-items: stretch;
  position: relative;
  min-height: 210px;
  overflow: hidden;
}

/* Left & Right Vertical Strips */
.bd-ir-side {
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2.5px;
  padding: 12px 5px;
  user-select: none;
  min-width: 26px;
}

.bd-ir-left {
  background: linear-gradient(180deg, #4338ca 0%, #6366f1 100%);
  color: rgba(255, 255, 255, 0.92);
  text-orientation: mixed;
  transform: rotate(180deg);
}

.bd-ir-right {
  background: linear-gradient(180deg, #c2410c 0%, #f97316 100%);
  color: rgba(255, 255, 255, 0.92);
  text-orientation: mixed;
}

/* Preview Center */
.bd-preview-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  text-align: center;
}

.bd-preview-close-text {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 4px;
}

/* Countdown Timer */
.bd-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.bd-cd-digit-box {
  width: 38px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.bd-cd-digit {
  font-size: 50px;
  font-weight: 800;
  color: #ef4444;
  font-family: 'Inter', 'Courier New', monospace;
  line-height: 1;
  display: block;
  position: relative;
}

.bd-cd-colon {
  font-size: 44px;
  font-weight: 800;
  color: #ef4444;
  line-height: 1;
  margin: 0 2px;
  padding-bottom: 4px;
}

/* Flip-down animation for timer digits */
@keyframes bdFlipDown {
  0% {
    transform: translateY(-110%);
    opacity: 0;
  }
  35% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.bd-cd-digit.bd-flip {
  animation: bdFlipDown 0.38s cubic-bezier(0.22, 0.68, 0.32, 1.0);
}

.bd-preview-dt-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 4px;
}

.bd-preview-dt-value {
  font-size: 21px;
  font-weight: 800;
  color: #f59e0b;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.bd-preview-code {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 4px;
}

.bd-preview-nontransfer {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* White Ticket Body */
.bd-ticket-body {
  background: #ffffff;
  padding: 16px 18px 14px 18px;
}

.bd-tb-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.bd-tb-type-row {
  margin-bottom: 16px;
  padding-bottom: 0;
}

.bd-tb-type {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.bd-tb-uts {
  font-size: 14px;
  font-weight: 800;
  color: #0a2240;
  letter-spacing: 0.3px;
}

.bd-tb-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bd-tb-station-name {
  font-size: 15px;
  font-weight: 800;
  color: #0a2240;
  letter-spacing: -0.1px;
}

.bd-tb-km {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.bd-tb-col {
  display: flex;
  flex-direction: column;
}

.bd-tb-col-right {
  text-align: right;
  align-items: flex-end;
}

.bd-tb-label {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 2px;
}

.bd-tb-val {
  font-size: 13px;
  font-weight: 700;
  color: #0a2240;
}

.bd-tb-class {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.bd-tb-ircode {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

/* Validity Note */
.bd-note-validity {
  background: linear-gradient(135deg, #f1f0ff, #ede9fe);
  padding: 12px 16px;
  font-size: 12px;
  color: #64748b;
  font-style: italic;
  line-height: 1.5;
  border-top: 1px solid #e2e8f0;
}

/* Warning Note */
.bd-note-warning {
  margin: 14px 16px;
  padding: 10px 14px;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  background: #fef2f2;
  font-size: 11.5px;
  color: #991b1b;
  line-height: 1.55;
  text-align: center;
}

/* Book Connecting Journey Button */
.bd-btn-connecting {
  display: block;
  width: calc(100% - 32px);
  margin: 4px 16px 14px 16px;
  padding: 13px;
  border: 1.5px solid #6366f1;
  border-radius: 28px;
  background: transparent;
  color: #6366f1;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.bd-btn-connecting:hover {
  background: #6366f1;
  color: #ffffff;
}

/* QR Code */
.bd-qr-container {
  display: flex;
  justify-content: center;
  padding: 10px 16px 16px 16px;
}

.bd-qr-img {
  width: 190px;
  height: 190px;
  border-radius: 4px;
}

/* Do You Know */
.bd-dyk {
  padding: 18px 16px 28px 16px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.bd-dyk-title {
  font-size: 15px;
  font-weight: 800;
  color: #0a2240;
  margin: 0 0 10px 0;
}

.bd-dyk-text {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 8px 0;
}

/* ==========================================================================
   Bottom Navigation Bar
   ========================================================================== */
.bottom-nav-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  background-color: var(--color-bg-white);
  border-top: 1px solid #edf2f7;
  box-shadow: 0 -3px 14px rgba(10, 34, 64, 0.05);
  padding: 0 6px;
  z-index: 30;
  flex-shrink: 0;
}

.nav-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  outline: none;
  color: var(--color-text-muted);
  gap: 3px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-tab-item:hover {
  color: var(--color-primary);
}

.nav-tab-item:active {
  transform: scale(0.92);
}

.nav-tab-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.nav-svg {
  width: 22px;
  height: 22px;
}

.nav-tab-label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.2px;
}

/* Active State for Bottom Tab */
.nav-tab-item.active {
  color: var(--color-primary);
}

.nav-tab-item.active .nav-tab-label {
  font-weight: 700;
  color: var(--color-primary);
}

/* ==========================================================================
   Interactive Modals & Bottom Sheets
   ========================================================================== */
.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 34, 64, 0.45);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.app-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.app-bottom-sheet {
  background-color: var(--color-bg-white);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 12px 20px 26px 20px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 80vh;
  overflow-y: auto;
}

.app-modal-backdrop.open .app-bottom-sheet {
  transform: translateY(0);
}

.sheet-drag-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background-color: #cbd5e1;
  margin: 0 auto 14px auto;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sheet-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-navy);
}

.sheet-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  color: #475569;
  transition: background var(--transition-fast);
}

.sheet-close-btn:hover {
  background: #e2e8f0;
}

.sheet-body {
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
}

/* Modal Form Components */
.modal-form-group {
  margin-bottom: 14px;
}

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

.modal-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1.5px solid #e2e8f0;
  font-size: 14px;
  font-family: var(--font-main);
  outline: none;
  color: var(--color-navy);
  transition: border-color var(--transition-fast);
}

.modal-input:focus {
  border-color: var(--color-primary);
}

.modal-btn-primary {
  width: 100%;
  padding: 13px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-main);
  border: none;
  border-radius: 13px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  margin-top: 8px;
}

.modal-btn-primary:hover {
  background-color: var(--color-primary-dark);
}

.modal-btn-primary:active {
  transform: scale(0.98);
}

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

.lang-opt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 15px;
  border-radius: 11px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-navy);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-opt-btn.active, .lang-opt-btn:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}
