/* ============================================================
   BookTatkal.online — Premium White & Blue Design System
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
    --primary: #1769FF;
    --primary-dark: #123B78;
    --primary-light: #4D8FFF;
    --primary-lighter: #EBF2FF;
    --primary-bg: #F2F7FF;
    
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFD;
    --bg-section: #F2F7FF;
    
    --text-primary: #172B4D;
    --text-secondary: #5E6C84;
    --text-muted: #97A0AF;
    --text-white: #FFFFFF;
    
    --border: #E4EBF5;
    --border-light: #F0F4FA;
    
    --success: #0D9F6E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    
    --shadow-sm: 0 1px 3px rgba(23, 43, 77, 0.06);
    --shadow-md: 0 4px 12px rgba(23, 43, 77, 0.08);
    --shadow-lg: 0 8px 30px rgba(23, 43, 77, 0.12);
    --shadow-xl: 0 20px 50px rgba(23, 43, 77, 0.15);
    --shadow-blue: 0 4px 20px rgba(23, 105, 255, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'DM Sans', 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img { max-width: 100%; height: auto; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* ── Navbar ── */
body.page-home {
    background: radial-gradient(circle at 85% 10%, rgba(23, 105, 255, 0.12) 0%, transparent 48%),
                radial-gradient(circle at 10% 20%, rgba(77, 143, 255, 0.08) 0%, transparent 40%),
                linear-gradient(180deg, #F0F6FF 0%, #FFFFFF 650px);
}

/* ── Top Announcement Bar & Live Clock ── */
.top-announcement {
    background: linear-gradient(90deg, #123B78 0%, #1769FF 100%);
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

.live-clock-pill {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.live-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulse 2s infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes livePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.live-date-val {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
}

.live-time-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.03em;
    min-width: 82px;
    text-align: center;
    display: inline-block;
}

.live-tz-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

/* ── Running Train Animation in Header ── */
.header-train-track {
    position: relative;
    width: 100%;
    height: 18px;
    background: rgba(18, 59, 120, 0.05);
    overflow: hidden;
    border-bottom: 1px dashed rgba(23, 105, 255, 0.22);
    z-index: 1040;
}

.train-rail {
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(23, 105, 255, 0.2) 0%, rgba(23, 105, 255, 0.6) 50%, rgba(23, 105, 255, 0.2) 100%);
}

.running-train-anim {
    position: absolute;
    bottom: 2px;
    left: 0;
    animation: runTrainLeftToRight 12s linear infinite;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    will-change: transform;
}

.train-composite {
    display: flex;
    align-items: flex-end;
    position: relative;
}

/* Engine */
.train-engine {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.engine-body {
    width: 48px;
    height: 12px;
    background: linear-gradient(135deg, #FFFFFF 0%, #EBF2FF 100%);
    border: 1px solid #1769FF;
    border-radius: 0 10px 2px 2px;
    position: relative;
    box-shadow: 0 1px 4px rgba(18, 59, 120, 0.2);
    overflow: visible;
}

.engine-stripe {
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1769FF 0%, #123B78 100%);
}

.engine-cab {
    position: absolute;
    top: 1px;
    right: 6px;
    width: 10px;
    height: 5px;
    background: #172B4D;
    border-radius: 1px 4px 0 0;
}

.engine-nose {
    position: absolute;
    top: 3px;
    right: -1px;
    width: 4px;
    height: 4px;
    background: #FFB800;
    border-radius: 50%;
    box-shadow: 0 0 6px #FFD700, 4px 0 10px rgba(255, 215, 0, 0.8);
}

.headlight-beam {
    position: absolute;
    top: -3px;
    right: -34px;
    width: 34px;
    height: 15px;
    background: linear-gradient(90deg, rgba(255, 230, 0, 0.55) 0%, rgba(255, 230, 0, 0) 100%);
    clip-path: polygon(0 40%, 100% 0%, 100% 100%, 0 60%);
    pointer-events: none;
}

/* Coaches */
.train-coach {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.coach-body {
    width: 38px;
    height: 11px;
    background: #FFFFFF;
    border: 1px solid #1769FF;
    border-radius: 2px;
    position: relative;
    box-shadow: 0 1px 3px rgba(18, 59, 120, 0.15);
}

.coach-stripe {
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: #1769FF;
}

.coach-windows {
    position: absolute;
    top: 2px;
    left: 4px;
    right: 4px;
    display: flex;
    justify-content: space-between;
}

.coach-windows span {
    width: 6px;
    height: 4px;
    background: #7FB0FF;
    border-radius: 1px;
}

/* Coupler */
.train-coupler {
    width: 4px;
    height: 2px;
    background: #172B4D;
    margin-bottom: 3px;
}

/* Wheels */
.train-wheels {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin-top: -1px;
}

.train-wheels span {
    width: 3.5px;
    height: 3.5px;
    background: #123B78;
    border-radius: 50%;
}

/* Smoke / Speed particles */
.train-smoke {
    position: relative;
    width: 15px;
    height: 10px;
    margin-right: -2px;
}

.train-smoke span {
    position: absolute;
    background: rgba(23, 105, 255, 0.35);
    border-radius: 50%;
    animation: smokePuff 1s infinite linear;
}

.smoke-p1 { width: 4px; height: 4px; bottom: 4px; right: 0; animation-delay: 0s; }
.smoke-p2 { width: 5px; height: 5px; bottom: 6px; right: 4px; animation-delay: 0.3s; }
.smoke-p3 { width: 6px; height: 6px; bottom: 8px; right: 8px; animation-delay: 0.6s; }

@keyframes smokePuff {
    0% { transform: scale(0.6) translateX(0); opacity: 0.8; }
    100% { transform: scale(1.4) translateX(-12px); opacity: 0; }
}

@keyframes runTrainLeftToRight {
    0% {
        transform: translateX(-180px);
    }
    100% {
        transform: translateX(calc(100vw + 60px));
    }
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-header {
    background: transparent;
    padding: 0.65rem 0;
    transition: var(--transition);
    z-index: 1050;
}

.page-home .site-header {
    margin-bottom: -76px;
}

.navbar-bt {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 0.6rem 1.25rem;
    box-shadow: 0 4px 20px rgba(18, 59, 120, 0.08);
    transition: var(--transition);
    z-index: 1050;
}

.navbar-bt.scrolled {
    box-shadow: 0 10px 30px rgba(18, 59, 120, 0.14);
    border-color: rgba(23, 105, 255, 0.18);
    background: rgba(255, 255, 255, 0.98);
}

.navbar-bt .navbar-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-bt .navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.navbar-bt .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.navbar-bt .nav-link:hover,
.navbar-bt .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-lighter);
}

.navbar-bt .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

@media (max-width: 991.98px) {
    .site-header {
        padding: 0.45rem 0;
    }
    .page-home .site-header {
        margin-bottom: -62px;
    }
    .page-home .hero-fullscreen {
        padding-top: calc(62px + 1.5rem);
    }
    .navbar-bt {
        border-radius: var(--radius-lg);
        padding: 0.5rem 0.9rem;
    }
    .navbar-bt .navbar-collapse {
        margin-top: 0.6rem;
        padding-top: 0.6rem;
        border-top: 1px solid var(--border-light);
    }
}

/* ── Buttons ── */
.btn-primary-bt {
    background: linear-gradient(135deg, var(--primary) 0%, #1158DD 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary-bt::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary-bt:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
    color: white;
}

.btn-primary-bt:hover::before {
    left: 100%;
}

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

.btn-outline-bt {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.65rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-bt:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.btn-sm-bt {
    padding: 0.45rem 1.25rem;
    font-size: 0.85rem;
}

.btn-lg-bt {
    padding: 0.85rem 2.25rem;
    font-size: 1rem;
}

.btn-white-bt {
    background: white;
    color: var(--primary);
    border: none;
    padding: 0.7rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-white-bt:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

/* ── Hero Section ── */
.hero-section {
    background: linear-gradient(160deg, #FFFFFF 0%, var(--bg-section) 50%, #E8F0FE 100%);
    padding: 7rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(23, 105, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(23, 105, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    position: relative;
    border: 1px solid var(--border-light);
}

.hero-card .train-route {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-card .station {
    text-align: center;
}

.hero-card .station-code {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.hero-card .station-name {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-card .route-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    position: relative;
}

.hero-card .route-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.hero-card .route-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

.hero-card .route-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.hero-stat-item .stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.hero-stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Floating Badge ── */
.floating-badge {
    position: absolute;
    background: white;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
    border: 1px solid var(--border-light);
}

.floating-badge.badge-top {
    top: 1rem;
    right: -1rem;
    animation-delay: 0s;
}

.floating-badge.badge-bottom {
    bottom: 2rem;
    left: -1rem;
    animation-delay: 1.5s;
}

.floating-badge i {
    font-size: 1.1rem;
}

.floating-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ── Service Cards ── */
.services-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: var(--primary-lighter);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .card-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.service-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card .price-tag {
    display: inline-block;
    background: var(--primary-lighter);
    color: var(--primary-dark);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ── How It Works ── */
.how-it-works {
    padding: 5rem 0;
    background: var(--bg-section);
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 auto 1.25rem;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-blue);
}

.step-connector {
    position: absolute;
    top: 3.5rem;
    left: 60%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--border));
    z-index: 1;
}

.step-card h5 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ── Trust Bar ── */
.trust-section {
    padding: 3.5rem 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.trust-item {
    text-align: center;
    padding: 1rem;
}

.trust-item i {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
}

.trust-item h6 {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.trust-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ── CTA Section ── */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.cta-section h2 {
    color: white;
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ── Footer ── */
.footer {
    background: #0D1B3E;
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

.footer h5 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.footer a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: block;
    padding: 0.3rem 0;
    transition: var(--transition-fast);
}

.footer a:hover {
    color: white;
    padding-left: 4px;
}

.footer .footer-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer .footer-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.footer p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.4);
}

.footer .disclaimer {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    margin-top: 1.5rem;
    border-left: 3px solid var(--primary);
}

/* ── Auth Pages ── */
body.page-register,
body.page-login,
body.page-forgot-password,
body.page-reset-password {
    background: radial-gradient(circle at 85% 10%, rgba(23, 105, 255, 0.12) 0%, transparent 48%),
                radial-gradient(circle at 10% 25%, rgba(77, 143, 255, 0.08) 0%, transparent 40%),
                linear-gradient(180deg, #F0F6FF 0%, #FFFFFF 650px);
    min-height: 100vh;
}

.auth-card-enhanced {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(23, 105, 255, 0.14) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 20px 50px rgba(18, 59, 120, 0.10) !important;
    transition: var(--transition);
}

.auth-card-enhanced:hover {
    box-shadow: 0 24px 60px rgba(18, 59, 120, 0.13) !important;
}

.toggle-password {
    border-color: #dee2e6;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.toggle-password:hover {
    color: var(--primary) !important;
    background-color: var(--primary-lighter) !important;
    border-color: var(--primary-light) !important;
}

.input-group .form-control:focus ~ .toggle-password {
    border-color: #86b7fe;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--bg-section) 0%, #E8F0FE 100%);
    padding: 2rem 1rem;
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 460px;
    border: 1px solid var(--border-light);
}

.auth-card .auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card .auth-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-card .auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ── Form Styles ── */
.form-floating-bt {
    margin-bottom: 1.25rem;
}

.form-floating-bt label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    display: block;
}

.form-control-bt {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition-fast);
    font-family: var(--font-primary);
}

.form-control-bt:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.1);
}

.form-control-bt::placeholder {
    color: var(--text-muted);
}

.form-control-bt.is-invalid {
    border-color: var(--danger);
}

.form-select-bt {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%235E6C84' viewBox='0 0 16 16'%3e%3cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px;
    padding-right: 2.5rem;
}

/* ── Dashboard ── */
.dashboard-layout {
    min-height: 100vh;
    background: var(--bg-light);
}

.dashboard-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.dashboard-content {
    padding: 2rem 0;
}

.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    height: 100%;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.stat-card .stat-icon.blue { background: var(--primary-lighter); color: var(--primary); }
.stat-card .stat-icon.green { background: #D1FAE5; color: var(--success); }
.stat-card .stat-icon.yellow { background: #FEF3C7; color: var(--warning); }
.stat-card .stat-icon.red { background: #FEE2E2; color: var(--danger); }

.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Data Table ── */
.data-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.data-card .card-header-bt {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-white);
}

.data-card .card-header-bt h5 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.table-bt {
    width: 100%;
    border-collapse: collapse;
}

.table-bt thead th {
    padding: 0.85rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table-bt tbody td {
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table-bt tbody tr {
    transition: var(--transition-fast);
}

.table-bt tbody tr:hover {
    background: var(--bg-section);
}

.table-bt tbody tr:last-child td {
    border-bottom: none;
}

/* ── Status Badges ── */
.badge-bt {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-bt.badge-success { background: #D1FAE5; color: #065F46; }
.badge-bt.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-bt.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-bt.badge-info { background: #DBEAFE; color: #1E40AF; }
.badge-bt.badge-primary { background: var(--primary-lighter); color: var(--primary-dark); }
.badge-bt.badge-secondary { background: #F3F4F6; color: #4B5563; }
.badge-bt.badge-dark { background: #374151; color: #F9FAFB; }

.badge-bt .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ── Clean distraction-free header for portal pages ── */
.page-booking .header-train-track,
.page-dashboard .header-train-track,
.page-track .header-train-track {
    display: none !important;
}

/* ── Enhanced Booking Wizard (Simple & Clean) ── */
.alert {
    border-radius: 12px !important;
    font-size: 0.88rem !important;
    padding: 0.85rem 1.25rem !important;
    border-width: 1px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

.booking-page-container {
    background-color: #f8fafc;
    min-height: calc(100vh - 120px);
    padding: 2rem 0 4rem;
}

.booking-hero-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.75rem 0;
    margin-bottom: 2rem;
}

.booking-wizard {
    max-width: 880px;
    margin: 0 auto;
}

/* Stepper Card */
.stepper-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
}

.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 0.5rem;
}

.stepper-track-bg {
    position: absolute;
    top: 18px;
    left: 45px;
    right: 45px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
    border-radius: 4px;
}

.stepper-track-fill {
    position: absolute;
    top: 18px;
    left: 45px;
    height: 3px;
    background: #2563eb;
    z-index: 2;
    border-radius: 4px;
    transition: width 0.35s ease-in-out;
}

.wizard-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    text-align: center;
    cursor: default;
}

.wizard-step .step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    color: #64748b;
    font-weight: 700;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.wizard-step.active .step-circle {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18), 0 2px 6px rgba(37, 99, 235, 0.25);
}

.wizard-step.completed .step-circle {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.wizard-step .step-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 0.45rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.wizard-step.active .step-title {
    color: #1e293b;
    font-weight: 700;
}

.wizard-step.completed .step-title {
    color: #059669;
    font-weight: 600;
}

/* Wizard Form Card */
.wizard-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
    position: relative;
    z-index: 2;
}

.wizard-panel {
    display: none;
    padding: 2.25rem 2.5rem;
}

.wizard-panel.active {
    display: block;
    animation: fadeSlideIn 0.25s ease-out;
}

.panel-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1.25rem;
    margin-bottom: 1.75rem;
}

.panel-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0;
}

/* Form Input Enhancements */
.form-field-group {
    margin-bottom: 1.15rem;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    margin-bottom: 0.45rem;
}

.field-label .required {
    color: #ef4444;
}

.clean-input {
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    padding: 0.68rem 0.95rem !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.2s ease !important;
}

.clean-input:hover {
    border-color: #cbd5e1 !important;
}

.clean-input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
    background-color: #ffffff !important;
}

/* Station Swap Button */
.station-row-wrapper {
    position: relative;
}

.btn-swap-stations {
    position: absolute;
    left: 50%;
    top: 58%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.btn-swap-stations:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
    transform: translate(-50%, -50%) rotate(180deg);
}

@media (max-width: 767.98px) {
    .btn-swap-stations {
        position: static;
        transform: none;
        margin: 0.5rem auto;
        display: flex;
    }
    .btn-swap-stations:hover {
        transform: rotate(180deg);
    }
}

/* Quick Date Chips */
.quick-date-chips {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.quick-chip {
    font-size: 0.72rem;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.quick-chip:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

/* Alternative Train Rows */
.alternative-train-row {
    animation: fadeSlideIn 0.2s ease-out;
}

.btn-add-train {
    background: #f8fafc;
    border: 1.5px dashed #93c5fd;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.38rem 0.85rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-train:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}

.btn-remove-train {
    width: 38px;
    height: 38px;
    border: 1.5px solid #fee2e2;
    background: #fff5f5;
    color: #ef4444;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.btn-remove-train:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

/* Passenger Entry Card */
.passenger-entry {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.passenger-entry:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.passenger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #f1f5f9;
}

.passenger-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    font-size: 0.82rem;
    color: #1e3a8a;
    background: #e0e7ff;
    padding: 3px 10px;
    border-radius: 20px;
}

.remove-passenger {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.remove-passenger:hover {
    background-color: #fee2e2;
}

.btn-add-passenger {
    border: 2px dashed #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-passenger:hover {
    background: #dbeafe;
    border-color: #2563eb;
    color: #1e40af;
}

/* Step 4 Review & Breakdown */
.review-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.price-breakdown-box {
    background: #ffffff;
    border: 1.5px solid #bfdbfe;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.88rem;
    color: #475569;
}

.price-row.total {
    border-top: 1.5px solid #e2e8f0;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

/* Action Navigation Buttons */
.wizard-nav-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.btn-wizard-next {
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.94rem;
    padding: 0.65rem 1.6rem;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-wizard-next:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-wizard-prev {
    background: #ffffff;
    color: #475569;
    border: 1.5px solid #cbd5e1;
    font-weight: 600;
    font-size: 0.94rem;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-wizard-prev:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.btn-wizard-submit {
    background: #10b981;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.7rem 1.75rem;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-wizard-submit:hover {
    background: #059669;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* ── Station Search ── */
.station-search-wrapper,
.train-search-wrapper {
    position: relative;
    width: 100%;
}

.station-dropdown,
.train-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1060;
    display: none;
    overscroll-behavior: contain;
}

.station-dropdown.dropup,
.train-dropdown.dropup {
    top: auto;
    bottom: calc(100% + 4px);
    box-shadow: 0 -20px 45px -8px rgba(15, 23, 42, 0.22), 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.station-dropdown::-webkit-scrollbar,
.train-dropdown::-webkit-scrollbar {
    width: 6px;
}
.station-dropdown::-webkit-scrollbar-thumb,
.train-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.station-dropdown::-webkit-scrollbar-thumb:hover,
.train-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.station-dropdown.show,
.train-dropdown.show {
    display: block;
    animation: fadeSlideIn 0.15s ease-out;
}

.dropdown-header-banner {
    padding: 0.5rem 0.95rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
}

.station-dropdown .station-option,
.train-dropdown .train-option {
    padding: 0.72rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: all 0.16s ease;
    border-bottom: 1px solid #f1f5f9;
    border-left: 3.5px solid transparent;
}

.station-dropdown .station-option:last-child,
.train-dropdown .train-option:last-child {
    border-bottom: none;
}

.station-dropdown .station-option:hover,
.station-dropdown .station-option.active,
.train-dropdown .train-option:hover,
.train-dropdown .train-option.active {
    background-color: #f0f7ff;
    border-left-color: #2563eb;
}

.opt-select-pill {
    opacity: 0;
    transform: translateX(4px);
    transition: all 0.18s ease;
    flex-shrink: 0;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
}

.station-dropdown .station-option:hover .opt-select-pill,
.station-dropdown .station-option.active .opt-select-pill,
.train-dropdown .train-option:hover .opt-select-pill,
.train-dropdown .train-option.active .opt-select-pill {
    opacity: 1;
    transform: translateX(0);
}

.train-dropdown .custom-train-option,
.station-dropdown .custom-station-option {
    background-color: #f8fafc;
    padding: 0.65rem 0.95rem;
}

.train-dropdown .custom-train-option:hover,
.train-dropdown .custom-train-option.active,
.station-dropdown .custom-station-option:hover,
.station-dropdown .custom-station-option.active {
    background-color: #eff6ff !important;
    border-left-color: #2563eb;
}

/* Fallback badge overrides - ensuring crisp contrast and readability */
.train-dropdown .custom-train-option .train-number-badge.bg-primary,
.station-dropdown .custom-station-option .station-code.bg-primary {
    background: #2563eb !important;
    color: #ffffff !important;
    border: 1px solid #1d4ed8 !important;
    font-weight: 700;
}

.train-dropdown .custom-train-option .train-number-badge.bg-secondary,
.station-dropdown .custom-station-option .station-code.bg-secondary {
    background: #475569 !important;
    color: #ffffff !important;
    border: 1px solid #334155 !important;
    font-weight: 700;
}

.train-dropdown .custom-train-sub,
.station-dropdown .custom-station-sub {
    font-size: 0.74rem;
    color: #64748b;
    line-height: 1.25;
    margin-top: 1px;
}

.station-dropdown .station-code {
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    color: #1e40af;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    padding: 3px 8px;
    border-radius: 7px;
    min-width: 58px;
    text-align: center;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.station-dropdown .station-name {
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.3;
}

.station-dropdown .station-state {
    font-size: 0.72rem;
    color: #64748b;
}

.train-dropdown .train-number-badge {
    font-weight: 700;
    font-size: 0.82rem;
    font-family: monospace, ui-monospace;
    color: #c2410c;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    padding: 3px 8px;
    border-radius: 7px;
    min-width: 62px;
    text-align: center;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.train-dropdown .train-name-text {
    font-size: 0.88rem;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.3;
}

.autocomplete-empty {
    padding: 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.84rem;
}

.autocomplete-highlight {
    font-weight: 700;
    color: #2563eb;
    text-decoration: underline;
    text-decoration-color: #93c5fd;
    text-underline-offset: 2px;
}

/* ── Price Breakdown ── */
.price-breakdown {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.price-row.total {
    border-top: 2px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

/* ── Alerts / Notifications ── */
.alert-bt {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    animation: fadeSlideIn 0.3s ease;
}

.alert-bt.alert-success { background: #D1FAE5; color: #065F46; border-left: 4px solid var(--success); }
.alert-bt.alert-error { background: #FEE2E2; color: #991B1B; border-left: 4px solid var(--danger); }
.alert-bt.alert-warning { background: #FEF3C7; color: #92400E; border-left: 4px solid var(--warning); }
.alert-bt.alert-info { background: #DBEAFE; color: #1E40AF; border-left: 4px solid var(--info); }

/* ── Skeleton Loader ── */
.skeleton {
    background: linear-gradient(90deg, var(--bg-light) 0%, var(--border-light) 50%, var(--bg-light) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 22px; width: 60%; margin-bottom: 12px; }
.skeleton-card { height: 120px; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Loading Overlay ── */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

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

.spinner-bt {
    width: 42px;
    height: 42px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ── Booking Success ── */
.success-page {
    text-align: center;
    padding: 4rem 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #D1FAE5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--success);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ── Admin Sidebar & Layout (Light, White & Blue Theme) ── */
.admin-layout-body {
    background-color: #f8fafc;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: #ffffff;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 16px rgba(37, 99, 235, 0.04);
}

.admin-sidebar .sidebar-brand {
    padding: 1.15rem 1.4rem;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.admin-sidebar .sidebar-brand a {
    color: #0f172a;
    font-family: var(--font-display, 'DM Sans', sans-serif);
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.admin-sidebar .brand-badge {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
}

.admin-sidebar .sidebar-menu-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.6rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.admin-sidebar .sidebar-heading {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.85rem 0.95rem 0.35rem;
}

.admin-sidebar .nav-item {
    margin-bottom: 2px;
}

.admin-sidebar .nav-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.62rem 0.95rem;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 9px;
    transition: all 0.18s ease;
    border-left: none;
}

.admin-sidebar .nav-item a:hover {
    color: #1d4ed8;
    background: #f0f7ff;
}

.admin-sidebar .nav-item a.active {
    color: #1d4ed8;
    background: #eff6ff;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08);
    position: relative;
}

.admin-sidebar .nav-item a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 3.5px;
    background: #2563eb;
    border-radius: 0 4px 4px 0;
}

.admin-sidebar .nav-item a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    transition: color 0.18s ease;
}

.admin-sidebar .nav-item a:hover i,
.admin-sidebar .nav-item a.active i {
    color: #2563eb;
}

.admin-sidebar .sidebar-footer {
    padding: 0.9rem 1.15rem;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    flex-shrink: 0;
}

.admin-sidebar .sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-sidebar .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.admin-sidebar .user-info {
    min-width: 0;
    flex-grow: 1;
}

.admin-sidebar .user-name {
    color: #0f172a;
    font-size: 0.825rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar .user-role {
    font-size: 0.68rem;
    color: #2563eb;
    text-transform: uppercase;
    font-weight: 700;
}

.admin-sidebar .btn-logout-icon {
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 0.35rem 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
}

.admin-sidebar .btn-logout-icon:hover {
    color: #dc2626;
    background: #fee2e2;
    border-color: #fca5a5;
}

.admin-sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.admin-sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.admin-main {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
    background: #f8fafc;
}

.admin-topbar {
    background: #ffffff;
    height: 64px;
    padding: 0 1.75rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.admin-content {
    flex: 1;
    padding: 1.5rem 0;
}

/* ── Admin Portal Content Styling (Light, White & Blue Theme) ── */
.admin-content .card {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 3px 14px rgba(37, 99, 235, 0.04) !important;
}

.admin-content .card-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.admin-content .table {
    --bs-table-bg: transparent;
}

.admin-content .table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.85rem 1rem;
}

.admin-content .table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.admin-content .table-hover tbody tr:hover td {
    background-color: #f8fbff;
}

.admin-content .form-control,
.admin-content .form-select {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #0f172a;
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-content .form-control:focus,
.admin-content .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.admin-main .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.admin-main .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.admin-main .btn-outline-primary {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #ffffff;
}

.admin-main .btn-outline-primary:hover {
    color: #ffffff;
    background: #2563eb;
    border-color: #2563eb;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .hero-title { font-size: 2.5rem; }
    .hero-section { padding: 5rem 0 3rem; }
    .section-title { font-size: 1.75rem; }
    
    .step-connector { display: none; }
    
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { gap: 1rem; }
    
    .wizard-progress .step-label { font-size: 0.65rem; }
    .wizard-panel { padding: 1.25rem; }
    
    .auth-card { padding: 1.75rem; }
    
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn-primary-bt,
    .hero-buttons .btn-outline-bt { width: 100%; justify-content: center; }
}

/* ── Page Header ── */
.page-header,
.page-services .py-5.bg-light.border-bottom,
.page-how-it-works .py-5.bg-light.border-bottom,
.page-track .py-5.bg-light.border-bottom,
.page-help .py-5.bg-light.border-bottom,
.page-about .py-5.bg-light.border-bottom,
.page-contact .py-5.bg-light.border-bottom,
.page-terms .py-5.bg-light.border-bottom,
.page-privacy .py-5.bg-light.border-bottom,
.page-cancellation .py-5.bg-light.border-bottom,
.page-refund .py-5.bg-light.border-bottom,
.page-dashboard .py-4.bg-light.border-bottom,
.page-booking .py-4.bg-light.border-bottom {
    background: radial-gradient(circle at 85% 15%, rgba(23, 105, 255, 0.08) 0%, transparent 45%),
                linear-gradient(135deg, #F0F6FF 0%, #FFFFFF 50%, #F5F9FF 100%) !important;
}

.page-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ── Timeline ── */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    z-index: 1;
}

.timeline-item:first-child::before {
    background: var(--primary);
}

.timeline-item .timeline-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.timeline-item .timeline-content {
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ── Utility classes ── */
.text-primary-bt { color: var(--primary) !important; }
.text-muted-bt { color: var(--text-muted) !important; }
.bg-section { background: var(--bg-section) !important; }
.border-bt { border: 1px solid var(--border) !important; }
.shadow-bt { box-shadow: var(--shadow-md) !important; }

/* ── Toast Notification ── */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast-bt {
    background: white;
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 320px;
    max-width: 420px;
    animation: slideInRight 0.4s ease;
    border-left: 4px solid var(--primary);
}

.toast-bt.toast-success { border-left-color: var(--success); }
.toast-bt.toast-error { border-left-color: var(--danger); }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── Fullscreen Hero Section ── */
.hero-fullscreen {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 85% 15%, rgba(23, 105, 255, 0.12) 0%, transparent 48%),
                radial-gradient(circle at 10% 85%, rgba(77, 143, 255, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 15% 15%, rgba(23, 105, 255, 0.06) 0%, transparent 35%),
                linear-gradient(135deg, #F0F6FF 0%, #FFFFFF 50%, #F5F9FF 100%);
    padding: calc(76px + 2rem) 0 3.5rem;
    overflow: hidden;
}

.hero-fullscreen::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(23, 105, 255, 0.16) 0%, rgba(23, 105, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-fullscreen::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(77, 143, 255, 0.12) 0%, rgba(77, 143, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-content-col {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 4.2vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: #0F172A;
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #475569;
    max-width: 520px;
}

/* ── Value Props Clean Modern Cards ── */
.hero-prop-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 0.9rem 1.1rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
    height: 100%;
}

.hero-prop-card:hover {
    transform: translateY(-2px);
    border-color: #CBD5E1;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.hero-prop-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


/* ── Wizard Box Card (Clean & Minimal with Premium Shadow) ── */
.hero-card {
    border-radius: 26px !important;
    border: 1px solid rgba(23, 105, 255, 0.12) !important;
    box-shadow: 0 30px 70px -15px rgba(18, 59, 120, 0.22), 0 12px 30px -8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.9) inset !important;
    background: #ffffff;
    position: relative;
    z-index: 2;
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
    box-shadow: 0 35px 80px -15px rgba(18, 59, 120, 0.28), 0 15px 35px -8px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.9) inset !important;
}

.hero-card .card-header {
    background: linear-gradient(135deg, #1769FF 0%, #0F56D9 100%);
    padding: 1.1rem 1.5rem;
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
    border-bottom: 0;
}

.hero-card .card-body {
    padding: 1.5rem 1.75rem;
    overflow: visible;
}

.hero-card .form-label {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #64748B;
    margin-bottom: 0.35rem;
    display: block;
}

/* ── All Form Inputs & Options Rounded ── */
.hero-card .input-group {
    border-radius: 50px !important;
    overflow: hidden;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
}

.hero-card .input-group:focus-within {
    border-color: #1769FF;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.12);
}

.hero-card .input-group-text {
    background: transparent !important;
    border: 0 !important;
    color: #1769FF;
    padding-left: 1.1rem;
    padding-right: 0.4rem;
    font-size: 0.95rem;
}

.hero-card .form-control {
    background: transparent !important;
    border: 0 !important;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1E293B;
    padding: 0.65rem 1.1rem 0.65rem 0.2rem;
}

.hero-card .form-control:focus {
    box-shadow: none !important;
}

.hero-card .form-select,
.hero-card .input-group .form-select {
    background-color: transparent !important;
    border: 0 !important;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1E293B;
    padding: 0.65rem 1.85rem 0.65rem 0.2rem;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: none !important;
    outline: none !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231769FF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.95rem center !important;
    background-size: 11px 7px !important;
}

.hero-card .form-select:focus,
.hero-card .input-group .form-select:focus {
    box-shadow: none !important;
    border: 0 !important;
    outline: none !important;
}

/* ── Custom Select Dropdown UI ── */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 50px;
    padding: 0.62rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1E293B;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    outline: none;
}

.custom-select-trigger:hover {
    border-color: #CBD5E1;
    background: #FFFFFF;
}

.custom-select-wrapper.open .custom-select-trigger,
.custom-select-trigger:focus {
    border-color: #1769FF;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.12);
}

.custom-select-icon {
    color: #1769FF;
    font-size: 0.95rem;
    margin-right: 0.45rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.custom-select-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1E293B;
}

.custom-select-arrow {
    color: #1769FF;
    font-size: 0.72rem;
    margin-left: 0.45rem;
    display: flex;
    align-items: center;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.custom-select-wrapper.open .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 100%;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 20px 45px -10px rgba(18, 59, 120, 0.22), 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 0.4rem;
    z-index: 1050;
    max-height: 270px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select-menu::-webkit-scrollbar {
    width: 5px;
}
.custom-select-menu::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 10px;
}
.custom-select-menu::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}
.custom-select-menu::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

.custom-select-wrapper.open .custom-select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.custom-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #334155;
    font-weight: 500;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.custom-select-option:last-child {
    margin-bottom: 0;
}

.custom-select-option:hover {
    background: #F1F5F9;
    color: #0F172A;
}

.custom-select-option.selected {
    background: #EFF6FF;
    color: #1769FF;
    font-weight: 600;
}

.opt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
    background: #E8F0FE;
    color: #1769FF;
    padding: 2px 7px;
    min-width: 28px;
    letter-spacing: 0.02em;
    transition: all 0.15s ease;
}

.custom-select-option.selected .opt-badge {
    background: #1769FF;
    color: #FFFFFF;
}

.opt-badge-num {
    border-radius: 50%;
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 0;
}

.opt-title {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.opt-tag {
    font-size: 0.68rem;
    font-weight: 600;
    background: #DCFCE7;
    color: #15803D;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.opt-check {
    font-size: 1rem;
    color: #1769FF;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.custom-select-option.selected .opt-check {
    opacity: 1;
}

/* ── Submit Button Pill ── */
.hero-card .btn-submit-hero {
    background: linear-gradient(135deg, #1769FF 0%, #0F56D9 100%);
    border: none;
    padding: 0.85rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px !important;
    box-shadow: 0 8px 20px -2px rgba(23, 105, 255, 0.35);
    transition: all 0.25s ease;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-card .btn-submit-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -2px rgba(23, 105, 255, 0.45);
    background: linear-gradient(135deg, #2575FC 0%, #1769FF 100%);
    color: #ffffff;
}

.hero-cta-btn {
    border-radius: 50px !important;
    padding: 0.95rem 2.25rem !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    background: linear-gradient(135deg, #1769FF 0%, #0F56D9 100%) !important;
    border: none !important;
    box-shadow: 0 12px 28px -5px rgba(23, 105, 255, 0.45) !important;
    transition: all 0.25s ease !important;
}

.hero-cta-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 35px -5px rgba(23, 105, 255, 0.55) !important;
    background: linear-gradient(135deg, #2575FC 0%, #1769FF 100%) !important;
}

@media (max-width: 991.98px) {
    .hero-fullscreen {
        min-height: auto;
        padding: 2.5rem 0;
    }
    .hero-card .card-body {
        padding: 1.25rem 1.25rem;
    }
}

/* ── Enhanced Form Custom Select Styling ── */
.form-select-style.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.form-select-style .custom-select-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 45px !important;
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 0.65rem 0.95rem !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.form-select-style .custom-select-trigger:hover {
    border-color: #cbd5e1 !important;
    background-color: #ffffff !important;
}

.form-select-style.open .custom-select-trigger,
.form-select-style .custom-select-trigger:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
    background-color: #ffffff !important;
}

.form-select-style .custom-select-menu {
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    padding: 0.45rem !important;
    max-height: 320px !important;
}

.form-select-style .custom-select-option {
    padding: 0.65rem 0.85rem !important;
    border-radius: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 3px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.form-select-style .custom-select-option:hover {
    background-color: #f1f5f9 !important;
}

.form-select-style .custom-select-option.selected {
    background-color: #eff6ff !important;
}

.form-select-style .opt-badge {
    min-width: 38px;
    padding: 3px 8px;
    border-radius: 7px;
    font-weight: 700;
    font-size: 0.78rem;
    text-align: center;
}

/* ── Subtle Badge Helpers ── */
.bg-purple-subtle { background-color: #faf5ff !important; color: #7e22ce !important; border-color: #e9d5ff !important; }
.bg-teal-subtle { background-color: #f0fdfa !important; color: #0f766e !important; border-color: #99f6e4 !important; }
.bg-cyan-subtle { background-color: #ecfeff !important; color: #0e7490 !important; border-color: #a5f3fc !important; }
.bg-indigo-subtle { background-color: #eef2ff !important; color: #4338ca !important; border-color: #c7d2fe !important; }

/* ── Form Select Enhancement ── */
select.form-select.clean-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%232563eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.85rem center !important;
    background-size: 14px 10px !important;
    padding-right: 2.25rem !important;
    cursor: pointer;
}
select.form-select.clean-input option {
    padding: 0.6rem 0.85rem;
    font-size: 0.92rem;
    color: #0f172a;
    background: #ffffff;
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE & PHONE OPTIMIZATIONS (Smartphones, Viewport <= 768px & <= 576px)
   ══════════════════════════════════════════════════════════════════════════ */

/* Base phone optimizations (Tablets & Phones <= 768px) */
@media (max-width: 767.98px) {
    /* Prevent iOS Safari & Chrome auto-zoom on input focus */
    input.form-control,
    select.form-select,
    textarea.form-control,
    .clean-input,
    .station-search-input,
    .train-search-input {
        font-size: 16px !important;
        min-height: 46px;
    }

    /* Container padding on mobile devices */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Top Announcement Bar on phones */
    .top-announcement {
        padding: 0.35rem 0;
        font-size: 0.74rem;
    }
    .live-clock-pill {
        font-size: 0.74rem;
        gap: 4px;
        padding: 2px 6px;
    }
    .live-time-val {
        min-width: 70px;
        font-size: 0.78rem;
    }
    .live-tz-badge {
        font-size: 0.6rem;
    }

    /* Header & Navigation on phones */
    .site-header {
        padding: 0.45rem 0;
    }
    .navbar-bt {
        padding: 0.45rem 0.85rem;
        border-radius: 16px;
    }
    .navbar-bt .navbar-brand {
        font-size: 1.15rem;
    }
    .navbar-bt .navbar-brand .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
    .navbar-bt .navbar-collapse {
        max-height: 75vh;
        overflow-y: auto;
        padding: 0.75rem 0.25rem 0.5rem;
        margin-top: 0.5rem;
        border-top: 1px solid #f1f5f9;
    }
    .navbar-bt .nav-link {
        padding: 0.65rem 0.85rem !important;
        font-size: 0.95rem;
        border-radius: 8px;
    }
    .navbar-bt .navbar-collapse .d-flex {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid #f1f5f9;
    }
    .navbar-bt .navbar-collapse .d-flex .btn,
    .navbar-bt .navbar-collapse .d-flex .dropdown,
    .navbar-bt .navbar-collapse .d-flex .dropdown button {
        width: 100%;
        justify-content: center;
    }

    /* Hero Section on phones */
    .hero-fullscreen {
        padding: calc(60px + 1rem) 0 2rem;
    }
    .hero-title {
        font-size: clamp(1.75rem, 6.5vw, 2.35rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 0.75rem !important;
    }
    .hero-subtitle {
        font-size: 0.92rem !important;
        line-height: 1.55 !important;
        margin-bottom: 1.25rem !important;
    }
    .hero-prop-card {
        padding: 0.65rem 0.75rem;
        border-radius: 12px;
        gap: 0.5rem !important;
    }
    .hero-prop-card h6 {
        font-size: 0.82rem !important;
    }
    .hero-prop-card small {
        font-size: 0.7rem !important;
    }
    .hero-prop-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 0.9rem;
    }
    .hero-card {
        border-radius: 18px !important;
    }
    .hero-card .card-header {
        padding: 0.85rem 1.15rem;
        border-top-left-radius: 18px !important;
        border-top-right-radius: 18px !important;
    }
    .hero-card .card-body {
        padding: 1.15rem 1rem !important;
    }
    .hero-card .btn-submit-hero {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Booking Wizard Stepper & Panels on phones */
    .booking-page-container {
        padding: 1rem 0 2.5rem;
    }
    .booking-hero-header {
        padding: 1.1rem 0;
        margin-bottom: 1rem;
    }
    .booking-hero-header h1 {
        font-size: 1.35rem;
    }
    .stepper-card {
        padding: 0.85rem 0.6rem;
        margin-bottom: 1.15rem;
        border-radius: 14px;
    }
    .wizard-step .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .stepper-track-bg,
    .stepper-track-fill {
        top: 16px;
        left: 24px;
        right: 24px;
    }
    .wizard-step .step-title {
        font-size: 0.68rem;
        white-space: normal;
        max-width: 68px;
        line-height: 1.15;
        margin-top: 0.25rem;
    }
    .wizard-form-card {
        border-radius: 14px;
    }
    .wizard-panel {
        padding: 1.15rem 1rem !important;
    }
    .panel-header {
        margin-bottom: 1.15rem;
    }
    .panel-title {
        font-size: 1.15rem;
    }
    .panel-subtitle {
        font-size: 0.8rem;
    }

    /* Station row & vertical swap button on phones */
    .station-row-wrapper {
        position: relative;
    }
    .btn-swap-stations {
        position: relative;
        transform: rotate(90deg);
        margin: -6px auto;
        width: 38px;
        height: 38px;
        z-index: 5;
        display: flex;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    .btn-swap-stations:hover,
    .btn-swap-stations:active {
        transform: rotate(270deg);
    }

    /* Autocomplete dropdown on phones (virtual keyboard friendly) */
    .station-dropdown,
    .train-dropdown {
        max-height: 230px;
        border-radius: 10px;
        box-shadow: 0 12px 35px -5px rgba(15, 23, 42, 0.25);
    }
    .station-dropdown .station-option,
    .train-dropdown .train-option {
        padding: 0.65rem 0.85rem;
        min-height: 48px;
    }
    .custom-select-menu {
        max-height: 220px;
    }

    /* Passenger Cards on phones */
    .passenger-entry {
        padding: 0.85rem 0.85rem;
        border-radius: 12px;
    }
    .passenger-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }
    .btn-add-passenger {
        padding: 0.75rem 1rem;
        min-height: 46px;
    }

    /* Wizard Navigation Footer Buttons on phones */
    .wizard-nav-footer {
        margin-top: 1.5rem;
        padding-top: 1rem;
        display: flex;
        gap: 0.75rem;
    }
    .btn-wizard-prev,
    .btn-wizard-next,
    .btn-wizard-submit {
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
    }
    .btn-wizard-next,
    .btn-wizard-submit {
        flex: 1;
    }

    /* Payment checkout card on phones */
    .card.border-0.shadow-lg.rounded-4 .card-header {
        padding: 1.25rem 1.15rem !important;
    }
    .card.border-0.shadow-lg.rounded-4 .card-body {
        padding: 1.25rem 1.15rem !important;
    }
    .display-6 {
        font-size: 1.85rem !important;
    }

    /* Auth pages (login, register) on phones */
    .auth-card-enhanced {
        border-radius: 16px !important;
    }
    .auth-card-enhanced .card-body {
        padding: 1.25rem 1.15rem !important;
    }

    /* Dashboard on phones */
    .table-responsive {
        border-radius: 10px;
        border: 1px solid #e2e8f0;
    }
    .table-responsive table {
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

/* Extra small devices (< 400px, e.g. iPhone SE, Galaxy A) */
@media (max-width: 399.98px) {
    .live-date-val {
        display: none;
    }
    .wizard-step .step-title {
        font-size: 0.62rem;
        max-width: 58px;
    }
    .wizard-step .step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    .stepper-track-bg,
    .stepper-track-fill {
        top: 14px;
        left: 18px;
        right: 18px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   HOME QUICK ASSISTANCE REQUEST - CONNECTED ROUTE CARD & MOBILE GRID
   ══════════════════════════════════════════════════════════════════════════ */
.home-route-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.85rem;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.route-field-box {
    width: 100%;
}

.route-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #475569;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.route-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.route-dot.origin-dot {
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.route-dot.dest-dot {
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.route-input-group {
    background: #ffffff;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.route-input-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.route-input-group .input-group-text {
    background: transparent;
    border: none;
    padding-left: 0.85rem;
    padding-right: 0.45rem;
    font-size: 1rem;
}

.route-input-group .form-control {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.55rem 0.85rem 0.55rem 0;
    font-size: 0.88rem;
    color: #1e293b;
    font-weight: 500;
}

.route-input-group .form-control::placeholder {
    color: #94a3b8;
    font-size: 0.84rem;
}

/* Floating Swap Button */
.btn-home-swap {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    cursor: pointer;
    z-index: 5;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.btn-home-swap:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
    transform: scale(1.08);
}

.btn-home-swap.rotating {
    transform: scale(0.92) rotate(180deg);
}

/* Desktop positioning: center of the 2 columns */
@media (min-width: 768px) {
    .btn-home-swap {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin-top: 10px;
    }
    .btn-home-swap:hover {
        transform: translate(-50%, -50%) scale(1.08);
    }
    .btn-home-swap.rotating {
        transform: translate(-50%, -50%) rotate(180deg);
    }
}

/* Mobile positioning: between the 2 rows on right side */
@media (max-width: 767.98px) {
    .btn-home-swap {
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    .btn-home-swap.rotating {
        transform: translateY(-50%) rotate(180deg);
    }
}

/* Compact form labels */
.form-label-compact {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #475569;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

/* Mobile responsive adjustments for the 2-column grid */
@media (max-width: 767.98px) {
    .hero-card {
        padding: 1.15rem !important;
        border-radius: 20px;
    }
    .hero-card .card-header {
        padding: 0.75rem 1rem !important;
        border-radius: 14px !important;
    }
    .home-route-card {
        padding: 0.65rem 0.65rem;
        border-radius: 14px;
    }
    .route-input-group .form-control {
        font-size: 0.84rem !important;
        padding-right: 28px;
    }
    .custom-select-trigger {
        padding: 0.5rem 0.65rem;
        border-radius: 12px;
        min-height: 44px;
    }
    .custom-select-label {
        font-size: 0.82rem;
    }
    .custom-select-icon {
        font-size: 0.85rem;
        margin-right: 0.35rem;
    }
    .route-input-group {
        border-radius: 12px;
    }
    input[type="date"].form-control {
        font-size: 0.82rem !important;
        min-height: 44px;
        padding: 0.5rem 0.65rem;
    }
    .btn-submit-hero {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        border-radius: 12px;
    }
}






