/* ===========================================================
   BASE / RESET
   =========================================================== */
:root {
  --color-primary: #6B46C1;
  --color-primary-dark: #553C9A;
  --color-primary-light: #9F7AEA;

  --color-text: #333333;
  --color-text-muted: #666666;
  --color-text-soft: #777777;

  --color-white: #ffffff;
  --color-bg-soft: #f5f5f5;
  --color-bg-softer: #f9f9f9;
  --color-bg-muted: #f0f0f0;

  --color-border: #dddddd;
  --color-border-soft: #e0e0e0;

  --color-danger: #e74c3c;
  --color-danger-dark: #c0392b;
  --color-success-bg: #d4edda;
  --color-success-text: #155724;
  --color-success-border: #c3e6cb;
  --color-error-bg: #f8d7da;
  --color-error-text: #721c24;
  --color-error-border: #f5c6cb;
  --color-warning-bg: #fff3cd;
  --color-warning-text: #856404;
  --color-warning-border: #ffeeba;

  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  --shadow-primary: 0 5px 15px rgba(107, 70, 193, 0.4);
  --shadow-container: 0 10px 40px rgba(107, 70, 193, 0.3);
  --shadow-modal: 0 4px 20px rgba(0, 0, 0, 0.3);

  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-pill: 25px;

  --space-xs: 5px;
  --space-sm: 8px;
  --space-md: 10px;
  --space-lg: 12px;
  --space-xl: 15px;
  --space-2xl: 20px;
  --space-3xl: 30px;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* ===========================================================
   PAGE LAYOUT
   =========================================================== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--gradient-primary);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-container);
  overflow: hidden;
}


/* ===========================================================
   HEADER - FINAL VERSION (GRID + CENTERED)
   =========================================================== */
.header {
  display: grid;
  grid-template-columns: 160px 1fr 160px;

  align-items: center;      /* vertical center */
  justify-items: center;    /* horizontal center */

  column-gap: 24px;

  padding: 28px 32px;
  box-sizing: border-box;

  background: linear-gradient(135deg, #6B46C1 0%, #553C9A 100%);
  color: #ffffff;
  border-bottom: 5px solid #9F7AEA;
}

/* Ensure each column fills height */
.header > * {
  height: 100%;
}


/* ===========================================================
   LOGO
   =========================================================== */
.logo-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;

  border: 3px solid rgba(255,255,255,0.6);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Simple Circular logo with no border */
/* .logo-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;    
  object-fit: cover;     
  display: block;

  justify-self: center;
  align-self: center;
} */


/* ===========================================================
   TITLE BLOCK (CENTER COLUMN)
   =========================================================== */
.header-title-block {
  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;

  width: 100%;
  height: 100%;
}

.header-title {
  margin: 0;
  font-size: 2.2em;
  line-height: 1.1;
  font-weight: 800;
  color: #ffffff;
}

.header-subtitle {
  margin: 6px 0 0;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.95);
}


/* ===========================================================
   RIGHT SIDE (ACTIONS)
   =========================================================== */
.header-right {
  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 12px;

  width: 100%;
  height: 100%;
}


/* ===========================================================
   COMMON BUTTON STYLE (WALLET + LOGOUT)
   =========================================================== */
.wallet-box,
.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: 100%;
  max-width: 180px;
  height: 44px;
  padding: 0 18px;

  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;

  border: 2px solid rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  cursor: pointer;
  transition: all 0.25s ease;
  box-sizing: border-box;
}


/* ===========================================================
   WALLET BUTTON
   =========================================================== */
.wallet-box {
  user-select: none;
}

.wallet-box:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.wallet-box:active {
  transform: translateY(0);
}

.wallet-icon {
  font-size: 16px;
}

#walletAmount {
  font-weight: 700;
  letter-spacing: 0.4px;
}


/* ===========================================================
   LOGOUT BUTTON
   =========================================================== */
.logout-btn {
  position: static;
}

.logout-btn:hover {
  background: #e74c3c;
  border-color: #e74c3c;
  transform: translateY(-2px);
}

.logout-btn:active {
  transform: translateY(0);
}


/* ===========================================================
   MOBILE RESPONSIVE
   =========================================================== */
@media (max-width: 768px) {
  .header {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 16px;

    padding: 20px 16px;
    text-align: center;
  }

  .logo-img {
    width: 75px;
    height: 75px;
  }

  .header-title {
    font-size: 1.8em;
  }

  .header-subtitle {
    font-size: 0.9em;
  }

  .header-right {
    width: 100%;
  }

  .wallet-box,
  .logout-btn {
    max-width: 240px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-title {
    font-size: 1.5em;
  }

  .header-subtitle {
    font-size: 0.85em;
  }

  .wallet-box,
  .logout-btn {
    height: 42px;
    font-size: 14px;
  }
}

/* ===========================================================
   NAVIGATION TABS
   =========================================================== */
.nav-tabs {
  display: flex;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  gap: 0;
}

.nav-tabs button {
  flex: 1;
  padding: 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1em;
  color: var(--color-text-muted);
  border-bottom: 3px solid transparent;
  transition: all var(--transition-base);
}

.nav-tabs button.active {
  background: var(--color-white);
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 700;
}

.nav-tabs button:hover {
  background: var(--color-white);
}


/* ===========================================================
   SECTIONS
   =========================================================== */
.login-section,
.content-section {
  display: none;
  padding: 30px;
}

.login-section.active,
.content-section.active {
  display: block;
}


/* ===========================================================
   FORMS
   =========================================================== */
.login-form,
.booking-form,
.trip-form {
  max-width: 400px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1em;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 5px rgba(107, 70, 193, 0.3);
}

/* iOS Safari fix for date input overflow */
.form-group input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  box-sizing: border-box;
}

.error-text {
  color: var(--color-danger);
  font-size: 0.85em;
  margin-top: var(--space-xs);
  display: none;
}


/* ===========================================================
   BUTTONS
   =========================================================== */
.btn,
.modal-buttons button,
.close-confirmation {
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition-base);
}

.btn {
  width: 100%;
  padding: var(--space-lg);
  font-size: 1em;
}

.btn-primary,
.modal-buttons .btn-pay,
.close-confirmation {
  background: var(--gradient-primary);
  color: var(--color-white);
}

.btn-primary {
  margin-bottom: var(--space-md);
}

.btn-primary:hover,
.modal-buttons .btn-pay:hover,
.close-confirmation:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-secondary,
.modal-buttons .btn-cancel {
  background: var(--color-bg-muted);
  color: var(--color-text);
}

.btn-secondary {
  margin-bottom: var(--space-md);
}

.btn-secondary:hover,
.modal-buttons .btn-cancel:hover {
  background: var(--color-border-soft);
}

.btn-danger {
  background: var(--color-danger);
  color: var(--color-white);
}

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

.button-group {
  display: flex;
  gap: var(--space-md);
  margin-top: 20px;
}

.button-group button {
  flex: 1;
}

/* ============================= */
/* TRIP TYPE TOGGLE */
/* ============================= */
.trip-type-toggle {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 999px;
  overflow: hidden;
  width: fit-content;
}

.trip-type-btn {
  padding: 8px 16px;
  border: none;
  background: white;
  cursor: pointer;
  font-weight: 500;
  color: #555;
  transition: all 0.2s ease;
}

.trip-type-btn.active {
  background: linear-gradient(135deg, #6a5acd, #5a3fb0);
  color: white;
}

.trip-type-btn:not(.active):hover {
  background: #f2f2f2;
}

/* ============================= */
/* SWAP BUTTON (SMALL ICON) */
/* ============================= */
.swap-stops-group {
  display: flex;
  justify-content: center;
  margin: 5px 0;
}

.swap-stops-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Hover rotation */
.swap-stops-btn:hover {
  background: #6a5acd;
  color: white;
  border-color: #6a5acd;
  transform: rotate(180deg);
}

/* ===========================================================
   BUS LAYOUT / BOOKING DETAILS
   =========================================================== */
.bus-layout {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  background: var(--color-bg-softer);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
}

.booking-details,
.confirmation-details {
  background: var(--color-bg-soft);
  padding: 20px;
  border-radius: var(--radius-md);
  margin: 20px 0;
}

.booking-details h3 {
  margin-bottom: 15px;
  color: var(--color-text);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row strong {
  color: var(--color-primary);
}


/* ===========================================================
   ALERTS
   =========================================================== */
.alert {
  padding: 15px;
  margin: 20px 0;
  border-radius: var(--radius-sm);
  display: none;
}

.alert.success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border: 1px solid var(--color-success-border);
  display: block;
}

.alert.error {
  background: var(--color-error-bg);
  color: var(--color-error-text);
  border: 1px solid var(--color-error-border);
  display: block;
}

.alert.warning {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
  border: 1px solid var(--color-warning-border);
  display: block;
}

/* ============================================================
SEARCHABLE DROPDOWN
---------------------------------------------------------------
Custom no-library searchable select
============================================================ */
.searchable-dropdown {
  position: relative;
  width: 100%;
}

.searchable-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8dbe2;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.searchable-input:focus {
  border-color: #6f49d9;
  box-shadow: 0 0 0 2px rgba(111, 73, 217, 0.12);
}

.searchable-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  background: #fff;
  border: 1px solid #d8dbe2;
  border-radius: 10px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  z-index: 999;
}

.searchable-item {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid #f1f1f1;
}

.searchable-item:last-child {
  border-bottom: none;
}

.searchable-item:hover,
.searchable-item.active {
  background: #f3f0ff;
}

.searchable-empty {
  padding: 10px 12px;
  color: #888;
  font-size: 13px;
}

@media (max-width: 480px) {
  .searchable-input {
    font-size: 13px;
    padding: 9px 10px;
  }

  .searchable-item {
    font-size: 13px;
    padding: 9px 10px;
  }
}

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  text-align: center;
  padding: 20px;
  background: var(--color-bg-soft);
  color: var(--color-text-muted);
  font-size: 0.9em;
  border-top: 1px solid var(--color-border);
}


/* ===========================================================
   PAYMENT / CONFIRMATION MODALS
   =========================================================== */
.payment-modal,
.confirmation-modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.payment-modal {
  z-index: 1000;
}

.confirmation-modal {
  z-index: 1001;
}

.payment-modal.show {
  display: block;
}

.confirmation-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-content,
.confirmation-content {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
}

.payment-content {
  margin: 10% auto;
  padding: 30px;
  width: 90%;
  max-width: 500px;
}

.confirmation-content {
  padding: 40px;
  text-align: center;
  max-width: 500px;
}

.payment-content h2,
.confirmation-content h2 {
  color: var(--color-text);
}

.payment-content h2 {
  margin-bottom: 20px;
  text-align: center;
}

.confirmation-content h2 {
  margin-bottom: 15px;
}

.confirmation-content p {
  color: var(--color-text-muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

.confirmation-icon {
  font-size: 3em;
  color: #2ecc71;
  margin-bottom: 20px;
}

.confirmation-details {
  text-align: left;
}

.confirmation-details p {
  margin: var(--space-sm) 0;
}


/* ===========================================================
   PAYMENT SECTION
   =========================================================== */
.payment-info {
  background: var(--color-bg-soft);
  padding: 15px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border-left: 4px solid var(--color-primary);
}

.payment-info p {
  margin: var(--space-sm) 0;
  color: var(--color-text-muted);
}

.price-display {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin: 15px 0;
}

.payment-methods {
  margin: 20px 0;
}

.payment-method {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.payment-method:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-softer);
}

.payment-method input {
  margin-right: var(--space-md);
}

.payment-method label {
  cursor: pointer;
  flex: 1;
}

.payment-summary-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-warning-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  background: #fff7e6;
  border: 1px solid #f5c97a;
  border-left: 5px solid #f0b429;

  padding: 14px 16px;
  border-radius: 10px;
  margin-top: 16px;
}

/* Icon */
.warning-icon {
  font-size: 20px;
  margin-top: 2px;
}

/* Text container */
.warning-text {
  flex: 1;
}

/* Title */
.warning-title {
  font-size: 15px;
  font-weight: 700;
  color: #8a5a00;
  margin-bottom: 4px;
}

/* Description */
.warning-desc {
  font-size: 14px;
  color: #5f4300;
  line-height: 1.5;
}

.warning-desc strong {
  color: #3d2b00;
}

/* Buttons row */
.payment-footer-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* Make buttons equal */
.payment-footer-buttons button {
  flex: 1;
}

/* ===========================================================
   MODAL BUTTON ROW
   =========================================================== */
.modal-buttons {
  display: flex;
  gap: var(--space-md);
  margin-top: 20px;
}

.modal-buttons button {
  flex: 1;
  padding: 12px;
}


/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 768px) {
  body {
    padding: var(--space-md);
  }

  .container {
    margin: 0;
    border-radius: 0;
  }

  .header {
    padding: 20px 15px;
  }

  .header h1 {
    font-size: 1.8em;
  }

  .nav-tabs {
    flex-wrap: wrap;
  }

  .nav-tabs button {
    padding: 12px;
    font-size: 0.9em;
  }

  .login-form,
  .booking-form {
    max-width: 100%;
    padding: 0;
  }

  .button-group,
  .modal-buttons {
    flex-direction: column;
  }

  .button-group button,
  .modal-buttons button {
    width: 100%;
  }

  .logo-img {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .logout-btn {
    position: static;
    width: 100%;
    margin-top: 15px;
  }

  .payment-content {
    margin: 30% auto;
    width: 95%;
  }

  .confirmation-content {
    margin: 20px;
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.4em;
  }

  .header p {
    font-size: 0.8em;
  }

  .nav-tabs button {
    padding: 10px;
    font-size: 0.8em;
  }

  .booking-details {
    padding: 15px;
  }

  .detail-row {
    font-size: 0.9em;
  }

  .form-group input,
  .form-group select {
    padding: 10px;
    font-size: 0.95em;
  }
}
/* ===============================
   FULL PAGE LOADER
================================ */
#appLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6B46C1 0%, #553C9A 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.loader-box {
    text-align: center;
    color: white;
    padding: 40px;
}

.loader-box h2 {
    margin-top: 20px;
    font-size: 1.8em;
    font-weight: bold;
}

.loader-box p {
    margin-top: 10px;
    font-size: 1em;
    opacity: 0.9;
}

.loader-spinner {
    width: 70px;
    height: 70px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid white;
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
    margin: 0 auto;
}

@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================
   BUTTON LOADER SPINNER
   ============================================================ */

.btn-loader {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top: 3px solid white;
  border-radius: 50%;
  display: inline-block;
  margin-left: 10px;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ============================================================
ROUTE CARD BASE
============================================================ */
.route-card {
  border: 1px solid #ddd;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  transition: all 0.25s ease;
  position: relative;
}

/* ============================================================
HOVER STATE
============================================================ */
.route-card:hover {
  background-color: #f8f8f8;
  border-color: #bbb;
}

/* ============================================================
SELECTED STATE (MAIN FEATURE)
============================================================ */
.route-card.selected {
  border: 2px solid #6f49d9;
  background: #f3f0ff;
  box-shadow: 0 4px 12px rgba(111, 73, 217, 0.15);
}

/* Title highlight */
.route-card.selected h3 {
  color: #6f49d9;
}

/* ============================================================
SELECTED BADGE (✔ Selected)
============================================================ */
.route-card.selected::after {
  content: "✔ Selected";
  position: absolute;
  top: 10px;
  right: 10px;
  background: #6f49d9;
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
}

/* ============================================================
BUTTON STYLING WHEN SELECTED
============================================================ */
.route-card.selected .select-route-btn {
  background: #6f49d9 !important;
  color: #fff !important;
}

/* ============================================================
ACTIVE CLICK EFFECT
============================================================ */
.route-card:active {
  transform: scale(0.98);
}

/* ===========================================================
   MY TRIPS - FULLY UPDATED + OPTIMIZED + RESPONSIVE
   -----------------------------------------------------------
   PURPOSE
   -----------------------------------------------------------
   1. Top trip tabs
   2. Trip cards with clean compact layout
   3. Status shown first with colored badge
   4. Mobile-friendly details grid
   5. Premium trip modal
   6. Policy and cancellation preview sections
   7. Better spacing, wrapping, and responsiveness
   =========================================================== */


/* ===========================================================
   TABS
   =========================================================== */
.trip-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.trip-tab {
  padding: 10px 16px;
  border: none;
  background: #eeeeee;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  transition: all 0.2s ease;
}

.trip-tab.active {
  background: #6B46C1;
  color: #ffffff;
}

.trip-tab:hover {
  background: #dddddd;
}


/* ===========================================================
   INFO MESSAGE
   =========================================================== */
.info-message {
  text-align: center;
  color: #777777;
  padding: 16px;
  font-size: 14px;
}

.info-message.error {
  color: #dc2626;
}


/* ===========================================================
   TRIP CARD
   -----------------------------------------------------------
   Compact premium card with route on top and details below
   =========================================================== */
.trip-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.trip-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
}


/* ===========================================================
   ROUTE
   =========================================================== */
.trip-route {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.35;
  color: #111827;
  margin-bottom: 14px;
  word-break: break-word;
}


/* ===========================================================
   CARD DETAILS GRID
   -----------------------------------------------------------
   Layout:
   - Status full width first row
   - Date + Timings
   - Seats + Total
   =========================================================== */
.trip-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.trip-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #4b5563;
}

.trip-detail-item strong {
  color: #444444;
  font-weight: 700;
  white-space: nowrap;
}

.trip-detail-item span {
  min-width: 0;
  text-align: right;
  word-break: break-word;
}

.trip-detail-full {
  grid-column: 1 / -1;
}


/* ===========================================================
   STATUS ROW IN CARD
   -----------------------------------------------------------
   Appears first and stays highlighted
   =========================================================== */
.trip-status-row {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 2px;
}


/* ===========================================================
   STATUS BADGES
   -----------------------------------------------------------
   IMPORTANT:
   JS should pass uppercase classes like:
   CONFIRMED / HOLD / CANCELLED / REFUNDED / NO_REFUND
   =========================================================== */
.trip-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.trip-status.CONFIRMED {
  color: #166534;
  background: #dcfce7;
}

.trip-status.HOLD {
  color: #92400e;
  background: #fef3c7;
}

.trip-status.CANCELLED {
  color: #991b1b;
  background: #fee2e2;
}

.trip-status.REFUNDED {
  color: #1e3a8a;
  background: #dbeafe;
}

.trip-status.NO_REFUND {
  color: #7c2d12;
  background: #ffedd5;
}

.trip-status.SUCCESS {
  color: #166534;
  background: #dcfce7;
}

.trip-status.PAID {
  color: #1d4ed8;
  background: #dbeafe;
}


/* ===========================================================
   MOBILE - CARD SECTION
   =========================================================== */
@media (max-width: 768px) {
  .trip-card {
    padding: 15px;
  }

  .trip-route {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .trip-details {
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
  }

  .trip-detail-item {
    font-size: 13px;
  }

  .trip-detail-item strong {
    font-size: 13px;
  }

  .trip-detail-item span {
    font-size: 13px;
  }

  .trip-status-row {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .trip-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 13px;
  }

  .trip-card {
    padding: 14px;
    border-radius: 14px;
  }

  .trip-route {
    font-size: 15px;
    line-height: 1.4;
  }

  .trip-details {
    gap: 9px 12px;
  }

  .trip-detail-item {
    font-size: 13px;
    gap: 8px;
  }

  .trip-status {
    font-size: 11px;
    padding: 4px 9px;
  }
}


/* ===========================================================
   TRIP MODAL OVERLAY
   =========================================================== */
.trip-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;

  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);

  z-index: 999;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ===========================================================
   MODAL BOX
   =========================================================== */
.trip-modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;

  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.20);

  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}


/* ===========================================================
   MODAL HEADER
   =========================================================== */
.trip-modal-header {
  position: relative;
  text-align: center;
  margin-bottom: 18px;
  padding-top: 4px;
}

.trip-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

.trip-close {
  position: absolute;
  top: -6px;
  right: 0;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  cursor: pointer;

  font-size: 18px;
  font-weight: bold;
  color: #555555;

  transition: all 0.2s ease;
}

.trip-close:hover {
  background: #f5f5f5;
  color: #dc2626;
}


/* ===========================================================
   MODAL DETAILS GRID
   -----------------------------------------------------------
   Desktop: 2 columns
   Mobile: 1 column
   =========================================================== */
.trip-popup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 10px;
}

.trip-popup-grid > div {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 11px 12px;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;

  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.trip-popup-grid strong {
  color: #111827;
  font-weight: 700;
  white-space: nowrap;
}

/* Special modal row for timings */
.trip-timings-cell {
  min-width: 0;
}


/* ===========================================================
   POLICY VIEW
   =========================================================== */
.trip-policy-wrapper {
  margin-top: 8px;
}

.trip-policy-highlight {
  background: #f5f0ff;
  border-left: 4px solid #6B46C1;
  color: #2d1b69;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.trip-policy-list {
  display: grid;
  gap: 12px;
}

.trip-policy-card {
  background: #f9fafb;
  border: 1px solid #eceff3;
  border-radius: 12px;
  padding: 14px 16px;
}

.trip-policy-card-danger {
  background: #fff5f5;
  border: 1px solid #ffd6d6;
}

.trip-policy-heading {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
}

.trip-policy-text {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}


/* ===========================================================
   CANCELLATION PREVIEW NOTE
   =========================================================== */
.trip-preview-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}


/* ===========================================================
   MODAL ACTION BUTTONS
   -----------------------------------------------------------
   All buttons same width and same height
   =========================================================== */
.trip-popup-actions {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.trip-popup-actions .btn {
  width: 100%;
  min-height: 54px;
  height: 54px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.trip-popup-actions .btn:hover {
  transform: translateY(-1px);
}

.trip-popup-actions .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
/* Only for cancellation preview popup */
.trip-popup-actions--cancel-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}


/* ===========================================================
   MOBILE - MODAL SECTION
   =========================================================== */
@media (max-width: 768px) {
  .trip-modal {
    padding: 12px;
    padding-top: 28px;
    align-items: flex-start;
  }

  .trip-modal-content {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    padding: 18px;
    border-radius: 16px;
  }

  .trip-title {
    font-size: 20px;
    padding: 0 28px;
  }

  .trip-close {
    top: -4px;
    right: -2px;
  }

  .trip-popup-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .trip-popup-grid > div {
    padding: 11px 12px;
    font-size: 14px;
  }

  .trip-popup-grid strong {
    color: #555555;
    font-weight: 600;
  }

  .trip-timings-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .trip-popup-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .trip-popup-actions .btn {
    min-height: 50px;
    height: 50px;
    font-size: 14px;
  }

  .trip-policy-card,
  .trip-policy-highlight,
  .trip-preview-note {
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .trip-modal-content {
    padding: 16px;
    border-radius: 14px;
  }

  .trip-title {
    font-size: 18px;
  }

  .trip-popup-grid > div,
  .trip-policy-text,
  .trip-preview-note,
  .trip-policy-highlight {
    font-size: 13px;
  }

  .trip-policy-heading {
    font-size: 14px;
  }

  .trip-popup-actions .btn {
    font-size: 13px;
    padding: 11px;
  }
}

/* ===========================================================
   WALLET MODAL OVERLAY
   -----------------------------------------------------------
   Full screen dark background behind wallet popup
   =========================================================== */
.wallet-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;

  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
}


/* ===========================================================
   WALLET MODAL BOX
   =========================================================== */
.wallet-modal {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow: hidden;

  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

  animation: walletModalFadeIn 0.22s ease;
}


/* ===========================================================
   WALLET MODAL ANIMATION
   =========================================================== */
@keyframes walletModalFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ===========================================================
   WALLET MODAL HEADER
   =========================================================== */
.wallet-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 22px;
  background: linear-gradient(135deg, #6B46C1 0%, #553C9A 100%);
  color: #fff;
}

.wallet-modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}


/* ===========================================================
   CLOSE BUTTON
   =========================================================== */
.wallet-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.wallet-close-btn:hover {
  opacity: 0.85;
}


/* ===========================================================
   BALANCE CARD
   =========================================================== */
.wallet-balance-card {
  margin: 20px;
  padding: 18px;
  text-align: center;

  border-radius: 16px;
  border: 1px solid #e5d9ff;
  background: #f6f1ff;
}

.wallet-balance-label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
}

.wallet-balance-card h3 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  color: #6B46C1;
}


/* ===========================================================
   GENERIC WALLET SECTION
   =========================================================== */
.wallet-section {
  padding: 0 20px 20px;
}

.wallet-section h4 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}


/* ===========================================================
   QUICK AMOUNT BUTTONS
   =========================================================== */
.wallet-amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.wallet-amount-chips button {
  border: 1px solid #dbcaff;
  background: #f8f4ff;
  color: #6B46C1;

  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wallet-amount-chips button:hover {
  background: #ede4ff;
  transform: translateY(-1px);
}

.wallet-amount-chips button:active {
  transform: translateY(0);
}


/* ===========================================================
   INPUT FIELD
   =========================================================== */
.wallet-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  margin-bottom: 14px;

  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;

  font-size: 16px;
  box-sizing: border-box;
}

.wallet-input:focus {
  border-color: #6B46C1;
  box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.10);
}


/* ===========================================================
   ADD MONEY BUTTON
   =========================================================== */
.wallet-add-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;

  background: linear-gradient(135deg, #6B46C1 0%, #553C9A 100%);
  color: #fff;

  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wallet-add-btn:hover {
  opacity: 0.96;
  transform: translateY(-1px);
}

.wallet-add-btn:active {
  transform: translateY(0);
}


/* ===========================================================
   TRANSACTION LIST
   =========================================================== */
.wallet-transactions-list {
  max-height: 280px;
  overflow-y: auto;
  border-top: 1px solid #eee;
}

.wallet-transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;

  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.wallet-transaction-left {
  flex: 1;
  min-width: 0;
}

.wallet-transaction-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.wallet-transaction-date {
  font-size: 13px;
  color: #777;
}

.wallet-transaction-right {
  min-width: 110px;
  text-align: right;
}

.wallet-transaction-amount {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.wallet-credit {
  color: #169c45;
}

.wallet-debit {
  color: #d93025;
}

.wallet-transaction-status {
  font-size: 12px;
  font-weight: 600;
  color: #777;
}


/* ===========================================================
   EMPTY STATE
   =========================================================== */
.wallet-empty-state {
  padding: 24px 0;
  text-align: center;
  color: #888;
  font-size: 14px;
}


/* ===========================================================
   TABLET RESPONSIVE
   =========================================================== */
@media (max-width: 1100px) {
  .header {
    align-items: flex-start;
  }

  .header-title {
    font-size: 1.9em;
  }

  .header-right {
    width: 160px;
  }
}


/* ===========================================================
   MOBILE RESPONSIVE
   =========================================================== */
@media (max-width: 768px) {

  .wallet-modal-overlay {
    padding: 14px;
  }

  .wallet-modal {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 14px;
  }

  .wallet-modal-header {
    padding: 16px 18px;
  }

  .wallet-modal-header h2 {
    font-size: 20px;
  }

  .wallet-balance-card {
    margin: 16px;
    padding: 16px;
  }

  .wallet-balance-card h3 {
    font-size: 28px;
  }

  .wallet-section {
    padding: 0 16px 16px;
  }

  .wallet-amount-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .wallet-amount-chips button {
    width: 100%;
  }

  .wallet-transaction-item {
    align-items: center;
  }

  .wallet-transaction-right {
    min-width: 90px;
  }
}

/* ===========================================================
   PAYMENT SUMMARY MODAL
=========================================================== */
.payment-summary-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.payment-summary-modal {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.payment-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: linear-gradient(135deg, #6B46C1 0%, #553C9A 100%);
  color: #fff;
}

.payment-summary-header h2 {
  margin: 0;
  font-size: 22px;
}

.payment-summary-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.payment-summary-body {
  padding: 20px;
}

.payment-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}

.payment-wallet-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  font-weight: 600;
  cursor: pointer;
}

.payment-wallet-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.payment-summary-footer {
  display: flex;
  gap: 12px;
  padding: 20px;
}

.payment-summary-cancel-btn,
.payment-summary-confirm-btn {
  flex: 1;
  height: 46px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.payment-summary-cancel-btn {
  background: #f1f1f1;
  color: #333;
}

.payment-summary-confirm-btn {
  background: linear-gradient(135deg, #6B46C1 0%, #553C9A 100%);
  color: white;
}

/* ===========================================================
   CONTENT SECTION VISIBILITY
   -----------------------------------------------------------
   Ensures only active dashboard section is visible
   =========================================================== */
.content-section {
  display: none;
}

.content-section.active {
  display: block;
}


/* ===========================================================
   TRAVEL PASS
   =========================================================== */
.travel-pass-wrap {
  padding: 20px;
}

.travel-pass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.travel-pass-title {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  color: #4b2aad;
}

.travel-pass-subtitle {
  margin: 6px 0 0;
  color: #666;
  font-size: 15px;
}

.active-pass-card,
.no-pass-card {
  background: linear-gradient(135deg, #6f42c1, #8b63d2);
  color: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  margin-bottom: 22px;
}

.no-pass-card h3,
.active-pass-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.no-pass-card p {
  margin: 0;
  opacity: 0.95;
}

.active-pass-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.active-pass-label {
  margin: 0 0 6px;
  font-size: 13px;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.active-pass-badge {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
}

.active-pass-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.active-pass-item {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
}

.active-pass-item span {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 6px;
}

.active-pass-item strong {
  font-size: 16px;
}

.pass-section-header h3 {
  margin: 0 0 14px;
  color: #333;
  font-size: 22px;
}

.pass-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pass-card {
  background: #fff;
  border: 1px solid #e8e3f7;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(92, 53, 177, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.pass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(92, 53, 177, 0.14);
}

.pass-card-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.pass-card-name {
  margin: 0;
  font-size: 22px;
  color: #4b2aad;
  font-weight: 800;
}

.pass-card-code {
  font-size: 12px;
  color: #7d6ea8;
  background: #f3effc;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pass-card-desc {
  color: #666;
  font-size: 14px;
  margin: 0 0 16px;
  min-height: 38px;
  line-height: 1.4;
}

.pass-price {
  font-size: 30px;
  font-weight: 800;
  color: #222;
  margin-bottom: 14px;
}

.pass-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.pass-feature {
  background: #faf8ff;
  border: 1px solid #eee7ff;
  border-radius: 12px;
  padding: 10px;
  min-width: 0;
}

.pass-feature span {
  display: block;
  font-size: 12px;
  color: #7a7a7a;
  margin-bottom: 4px;
}

.pass-feature strong {
  font-size: 15px;
  color: #333;
  word-break: break-word;
}

.pass-card .btn {
  width: 100%;
}

.pass-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: #777;
  padding: 30px 0;
}

#tripPassAlert {
  display: none;
  margin-bottom: 16px;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
}


/* ===========================================================
   TABLET
   =========================================================== */
@media (max-width: 900px) {
  .pass-cards-grid {
    grid-template-columns: 1fr;
  }

  .active-pass-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ===========================================================
   MOBILE
   =========================================================== */
@media (max-width: 600px) {
  .travel-pass-wrap {
    padding: 14px;
  }

  .travel-pass-title {
    font-size: 24px;
  }

  .travel-pass-subtitle {
    font-size: 14px;
  }

  .active-pass-grid {
    grid-template-columns: 1fr;
  }

  .pass-features {
    grid-template-columns: 1fr 1fr;
  }

  .pass-card {
    padding: 16px;
  }

  .pass-price {
    font-size: 26px;
  }

  .pass-card-name {
    font-size: 20px;
  }
}

/* ===========================================================
   TRAVEL PASS - EXTRA UI
   Uses same trip-tabs / container style as My Trips
   =========================================================== */

.pass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pass-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.pass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.pass-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.pass-name {
  font-size: 20px;
  font-weight: 700;
  color: #5b3cc4;
  margin: 0;
}

.pass-code {
  font-size: 12px;
  background: #f2edff;
  color: #5b3cc4;
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.pass-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
  line-height: 1.45;
}

.pass-price {
  font-size: 28px;
  font-weight: 800;
  color: #222;
  margin-bottom: 12px;
}

.pass-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.pass-info-box {
  background: #faf8ff;
  border: 1px solid #ece6ff;
  border-radius: 8px;
  padding: 10px;
}

.pass-info-box span {
  display: block;
  font-size: 12px;
  color: #777;
  margin-bottom: 4px;
}

.pass-info-box strong {
  display: block;
  font-size: 14px;
  color: #333;
}

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

.pass-status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pass-status.active {
  background: #e8f7ec;
  color: #1b7f3b;
}

.pass-status.expired {
  background: #fff1f1;
  color: #c0392b;
}

.pass-status.cancelled {
  background: #f3f4f6;
  color: #555;
}

.pass-table-wrap {
  overflow-x: auto;
}

.pass-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.pass-table th,
.pass-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 14px;
}

.pass-table th {
  background: #f7f7fb;
  color: #444;
  font-weight: 700;
}

.pass-empty {
  text-align: center;
  color: #999;
  padding: 30px 0;
}

.pass-detail-title {
  font-size: 24px;
  font-weight: 800;
  color: #5b3cc4;
  margin-bottom: 14px;
}

.pass-detail-section {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}

.pass-detail-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pass-detail-section h4 {
  margin: 0 0 10px;
  color: #333;
  font-size: 16px;
}

.pass-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.pass-detail-item span {
  display: block;
  font-size: 12px;
  color: #777;
  margin-bottom: 3px;
}

.pass-detail-item strong {
  display: block;
  color: #222;
  font-size: 14px;
  word-break: break-word;
}

@media (max-width: 900px) {
  .pass-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .pass-info-grid,
  .pass-detail-grid {
    grid-template-columns: 1fr;
  }

  .pass-name {
    font-size: 18px;
  }

  .pass-price {
    font-size: 24px;
  }
}
/* ===========================================================
   TRAVEL PASS UI
   Matches overall card + tab style of My Trips
   =========================================================== */

.pass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pass-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.pass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.pass-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.pass-name {
  font-size: 20px;
  font-weight: 700;
  color: #5b3cc4;
  margin: 0;
}

.pass-code {
  font-size: 12px;
  background: #f2edff;
  color: #5b3cc4;
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.pass-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 14px;
  line-height: 1.45;
}

.pass-price {
  font-size: 28px;
  font-weight: 800;
  color: #222;
  margin-bottom: 12px;
}

.pass-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.pass-info-box {
  background: #faf8ff;
  border: 1px solid #ece6ff;
  border-radius: 8px;
  padding: 10px;
}

.pass-info-box span {
  display: block;
  font-size: 12px;
  color: #777;
  margin-bottom: 4px;
}

.pass-info-box strong {
  display: block;
  font-size: 14px;
  color: #333;
}

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

.pass-status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pass-status.active {
  background: #e8f7ec;
  color: #1b7f3b;
}

.pass-status.expired {
  background: #fff1f1;
  color: #c0392b;
}

.pass-status.cancelled {
  background: #f3f4f6;
  color: #555;
}

.pass-table-wrap {
  overflow-x: auto;
}

.pass-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.pass-table th,
.pass-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 14px;
}

.pass-table th {
  background: #f7f7fb;
  color: #444;
  font-weight: 700;
}

.pass-empty {
  text-align: center;
  color: #999;
  padding: 30px 0;
}

.pass-detail-title {
  font-size: 24px;
  font-weight: 800;
  color: #5b3cc4;
  margin-bottom: 14px;
}

.pass-detail-section {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
}

.pass-detail-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.pass-detail-section h4 {
  margin: 0 0 10px;
  color: #333;
  font-size: 16px;
}

.pass-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.pass-detail-item span {
  display: block;
  font-size: 12px;
  color: #777;
  margin-bottom: 3px;
}

.pass-detail-item strong {
  display: block;
  color: #222;
  font-size: 14px;
  word-break: break-word;
}

@media (max-width: 900px) {
  .pass-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .pass-info-grid,
  .pass-detail-grid {
    grid-template-columns: 1fr;
  }

  .pass-name {
    font-size: 18px;
  }

  .pass-price {
    font-size: 24px;
  }
}