/* ===================================
   Delhi Metro - Ultra Premium Design
   World-Class UI/UX 2026
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===================================
   CSS Variables - Premium Color Palette
   Inspired by: Teal + Emerald + Gold Accents
   =================================== */
:root {
    /* Background Colors - Deep Blue/Slate */
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: rgba(30, 41, 59, 0.5);
    --bg-card-hover: rgba(51, 65, 85, 0.6);
    --border: rgba(148, 163, 184, 0.12);
    --border-hover: rgba(148, 163, 184, 0.25);

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: rgba(248, 250, 252, 0.75);
    --text-muted: rgba(148, 163, 184, 0.8);

    /* Accent Colors - Emerald + Cyan Theme */
    --accent: #10b981;
    --accent-light: #34d399;
    --accent-secondary: #06b6d4;
    --accent-gold: #f59e0b;
    --accent-rose: #f43f5e;

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Metro Line Colors - Keep Original for Authenticity */
    --line-red: #EF4444;
    --line-blue: #3B82F6;
    --line-yellow: #FBBF24;
    --line-green: #10B981;
    --line-violet: #8B5CF6;
    --line-pink: #EC4899;
    --line-magenta: #D946EF;
    --line-orange: #F97316;
    --line-aqua: #06B6D4;
    --line-grey: #64748B;

    /* Gradients - Premium Emerald/Cyan */
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
    --gradient-glow: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0.2) 100%);
    --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);

    /* Spacing (8px grid) */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);
    --shadow-glow-pink: 0 0 60px rgba(236, 72, 153, 0.2);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;
}

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

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

body {
    font-family: 'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Gradient Animation */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 80% at 20% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 80% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: bgPulse 6s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
    font-size: 1.125rem;
}

p {
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Layout
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }
}

/* ===================================
   Animations
   =================================== */
.animate-fade-in {
    animation: fadeIn 0.6s var(--ease-out) backwards;
}

.animate-slide-up {
    animation: slideUp 0.8s var(--ease-out) backwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-out);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Typewriter Animation
   =================================== */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s steps(40, end) forwards;
}

.typewriter-cursor::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: var(--accent);
    font-weight: 100;
    margin-left: 2px;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Hero title with typewriter - responsive */
.hero-title-animated {
    display: inline-block;
    overflow: hidden;
    animation: revealText 1.5s var(--ease-out) forwards;
}

@keyframes revealText {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

/* Text reveal animation */
.text-reveal {
    position: relative;
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    animation: textReveal 0.8s var(--ease-out) forwards;
    opacity: 0;
    transform: translateY(100%);
}

@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered letter animation */
.animate-letters span {
    display: inline-block;
    opacity: 0;
    animation: letterFade 0.5s var(--ease-out) forwards;
}

@keyframes letterFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   3D Icon Effect
   =================================== */
.logo-3d,
.stat-icon-3d,
.feature-icon-3d,
.fare-icon-3d {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transform: perspective(500px) rotateX(10deg);
    animation: float 3s ease-in-out infinite;
}

.stat-icon-3d {
    font-size: 3rem;
}

.feature-icon-3d {
    font-size: 3.5rem;
}

.fare-icon-3d {
    font-size: 3rem;
}

@keyframes float {

    0%,
    100% {
        transform: perspective(500px) rotateX(10deg) translateY(0);
    }

    50% {
        transform: perspective(500px) rotateX(10deg) translateY(-8px);
    }
}

/* ===================================
   Pulse Animation for Prices
   =================================== */
@keyframes pulseFare {

    0%,
    100% {
        transform: scale(1);
        text-shadow: 0 0 0 transparent;
    }

    50% {
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
    }
}

.fare-table td:nth-child(2),
.fare-table td:nth-child(3) {
    font-weight: 700;
    font-size: 1.1rem;
}

.fare-table td:nth-child(2) {
    animation: pulseFare 3s ease-in-out infinite;
}

.fare-table td:nth-child(3) {
    color: var(--success);
    animation: pulseFare 3s ease-in-out infinite 0.5s;
}

/* ===================================
   Animated Metro Train
   =================================== */
.metro-animation {
    position: relative;
    height: 60px;
    overflow: hidden;
    margin: var(--space-6) 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
}

.metro-track {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--line-red), var(--line-blue), var(--line-yellow), var(--line-green), var(--line-pink));
    border-radius: 2px;
}

.metro-train {
    position: absolute;
    bottom: 20px;
    left: -100px;
    font-size: 2.5rem;
    animation: trainMove 8s linear infinite;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
}

.metro-train-lottie {
    position: absolute;
    bottom: 5px;
    left: -120px;
    animation: trainMove 10s linear infinite;
    filter: drop-shadow(0 4px 20px rgba(99, 102, 241, 0.6));
}

@keyframes trainMove {
    0% {
        left: -100px;
    }

    100% {
        left: calc(100% + 100px);
    }
}

.track-stations {
    position: absolute;
    bottom: 14px;
    left: 10%;
    right: 10%;
    display: flex;
    justify-content: space-between;
}

.track-station-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: stationPulse 2s ease-in-out infinite;
}

.track-station-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.track-station-dot:nth-child(3) {
    animation-delay: 0.6s;
}

.track-station-dot:nth-child(4) {
    animation-delay: 0.9s;
}

.track-station-dot:nth-child(5) {
    animation-delay: 1.2s;
}

@keyframes stationPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-2xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 var(--space-6);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logo strong {
    font-weight: 800;
}

.logo .logo-3d {
    font-size: 1.75rem;
    animation: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-3);
    background: rgba(0, 0, 0, 0.2);
    padding: .675rem;
    /* padding: var(--space-2) var(--space-3); */
    border-radius: var(--radius-full);
}

.nav-link {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    font-weight: 600;
    animation: navSlideIn 0.3s ease-out;
}

@keyframes navSlideIn {
    from {
        transform: translateX(-10px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--duration-base) var(--ease-out);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(100px + var(--space-16)) 0 var(--space-16);
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    animation: heroPulse 4s ease-in-out infinite;
}

@keyframes heroPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.7;
    }
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.hero h1 {
    margin-bottom: var(--space-4);
    font-weight: 800;
}

.hero-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto var(--space-10);
}

/* ===================================
   Route Planner
   =================================== */
.route-planner {
    max-width: 750px;
    margin: 0 auto;
    padding: var(--space-8);
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.input-group {
    display: flex;
    /* flex-direction: column; */
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    z-index: 2;
}

.premium-input {
    width: 100%;
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--duration-fast) var(--ease-out);
}

.premium-input::placeholder {
    color: var(--text-muted);
}

.premium-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* Swap Button */
.swap-btn {
    align-self: center;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-spring);
}

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

.swap-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(180deg);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Suggestions Dropdown */
.suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: rgba(18, 18, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--duration-fast) var(--ease-out);
}

.suggestions.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggestions::-webkit-scrollbar {
    width: 6px;
}

.suggestions::-webkit-scrollbar-track {
    background: transparent;
}

.suggestions::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: var(--radius-full);
}

.suggestion-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-4);
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background var(--duration-fast);
}

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

.suggestion-item:hover,
.suggestion-item.selected {
    background: var(--bg-card-hover);
}

.suggestion-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.suggestion-name .interchange-icon {
    color: var(--warning);
}

.suggestion-lines {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.line-tag {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
}

.line-tag.red {
    background: var(--line-red);
}

.line-tag.blue {
    background: var(--line-blue);
}

.line-tag.yellow {
    background: var(--line-yellow);
    color: #000;
}

.line-tag.green {
    background: var(--line-green);
}

.line-tag.violet {
    background: var(--line-violet);
}

.line-tag.pink {
    background: var(--line-pink);
}

.line-tag.magenta {
    background: var(--line-magenta);
}

.line-tag.orange {
    background: var(--line-orange);
}

.line-tag.aqua {
    background: var(--line-aqua);
}

.line-tag.grey {
    background: var(--line-grey);
}

/* Find Button */
.find-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.find-btn svg {
    width: 20px;
    height: 20px;
    transition: transform var(--duration-base) var(--ease-out);
}

.find-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

.find-btn:hover svg {
    transform: translateX(4px);
}

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

/* Popular Routes */
.popular-routes {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
    flex-wrap: wrap;
    justify-content: center;
}

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

.route-chip {
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.route-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

/* ===================================
   Route Result
   =================================== */
.route-result {
    margin-top: var(--space-8);
    display: none;
}

.route-result.active {
    display: block;
    animation: slideUp 0.5s var(--ease-out);
}

.result-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.result-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
}

.result-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Stats Grid */
.result-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    padding: var(--space-5);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
}

.result-stat {
    text-align: center;
}

.result-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-1);
}

/* Interchange Alert */
.interchange-alert {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.interchange-alert-icon {
    font-size: 1.5rem;
}

.interchange-alert-text h4 {
    font-size: 0.9rem;
    color: var(--warning);
    margin-bottom: var(--space-1);
}

.interchange-alert-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Track Container */
.track-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: var(--space-2);
}

.track-container::-webkit-scrollbar {
    width: 6px;
}

.track-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
}

.track-container::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: var(--radius-full);
}

/* Track Steps */
.track-step {
    display: flex;
    gap: var(--space-4);
    position: relative;
}

.track-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 24px;
    flex-shrink: 0;
}

.track-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--line-blue);
    position: relative;
    z-index: 2;
    transition: all var(--duration-fast);
}

.track-dot.start {
    width: 18px;
    height: 18px;
    background: var(--success);
    border-color: var(--success);
}

.track-dot.end {
    width: 18px;
    height: 18px;
    background: var(--error);
    border-color: var(--error);
}

.track-dot.interchange {
    width: 20px;
    height: 20px;
    background: var(--warning);
    border-color: var(--warning);
}

.track-line {
    width: 3px;
    flex: 1;
    min-height: 40px;
    background: var(--line-blue);
    margin: 4px 0;
}

.track-step:last-child .track-line {
    display: none;
}

.track-content {
    flex: 1;
    padding: var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    transition: all var(--duration-fast);
}

.track-step:hover .track-content {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.track-station {
    font-weight: 600;
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.station-badge {
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.station-badge.start {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.station-badge.end {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.station-badge.change {
    background: rgba(249, 115, 22, 0.2);
    color: var(--warning);
}

.track-meta {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    align-items: center;
}

.track-meta .line-tag {
    padding: 3px 10px;
    font-size: 0.7rem;
}

.gate-info {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 2px 8px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-top: var(--space-2);
}

.gate-info strong {
    color: var(--text-secondary);
}

/* No Interchange Badge */
.no-interchange-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--success);
    margin-bottom: var(--space-6);
}

/* ===================================
   Enhanced Route Result Card
   =================================== */

/* Route Options Toggle */
.route-options {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    justify-content: center;
}

.route-option-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
}

.route-option-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
}

.route-option-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.route-option-icon {
    font-size: 1rem;
}

/* Interchange Badges Container */
.interchange-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

/* Glassmorphism Interchange Badge */
.interchange-badge {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    transition: all var(--duration-base) var(--ease-out);
}

.interchange-badge:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.interchange-badge-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-secondary);
    border-radius: 50%;
    font-size: 1.2rem;
}

.interchange-badge-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.interchange-badge-station {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.interchange-badge-lines {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.interchange-badge-lines .line-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.interchange-badge-lines span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.interchange-badge-platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: var(--space-3);
    border-left: 1px solid var(--border);
    margin-left: var(--space-2);
}

.platform-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.platform-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

/* Enhanced Result Card with Glassmorphism */
.route-result.active {
    display: block;
    animation: slideUp 0.5s var(--ease-out);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Enhanced Result Stats */
.result-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
    padding: var(--space-5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
}

.result-stat {
    text-align: center;
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    transition: all var(--duration-fast);
}

.result-stat:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Enhanced Interchange Alert */
.interchange-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0.05) 100%);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
}

/* Interchange Section with Cards */
.interchange-section {
    margin-bottom: var(--space-6);
}

.interchange-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Track Dot with Line Colors Animation */
.track-dot.interchange {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--warning) 0%, #F59E0B 100%);
    border-color: var(--warning);
    box-shadow: 0 0 20px var(--warning);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 15px var(--warning);
    }

    50% {
        box-shadow: 0 0 25px var(--warning);
    }
}

/* Enhanced Gate Info */
.gate-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: var(--space-2) var(--space-3);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    margin-top: var(--space-2);
}

.gate-info strong {
    color: var(--accent);
}

.platform-info {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 2px 8px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    margin-left: var(--space-2);
}

.platform-info strong {
    color: var(--line-blue);
}

/* Route Type Indicator */
.route-type-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-4);
}

@media (max-width: 640px) {
    .route-result.active {
        padding: var(--space-5);
    }

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

    .interchange-badges {
        flex-direction: column;
    }

    .route-options {
        flex-direction: column;
        align-items: stretch;
    }

    .route-option-btn {
        justify-content: center;
    }
}

/* ===================================
   Stats Section
   =================================== */
.stats-section {
    padding: var(--space-16) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.stat-card {
    text-align: center;
    padding: var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all var(--duration-base) var(--ease-out);
}

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-2);
}

/* ===================================
   Features Section
   =================================== */
.features-section {
    padding: var(--space-20) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-title {
    margin-bottom: var(--space-3);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.feature-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--duration-base);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin: var(--space-4) 0 var(--space-2);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex: 1;
}

.feature-arrow {
    font-size: 1.25rem;
    color: var(--accent);
    margin-top: var(--space-4);
    transition: transform var(--duration-base);
}

.feature-card:hover .feature-arrow {
    transform: translateX(8px);
}

/* ===================================
   Lines Section
   =================================== */
.lines-section {
    padding: var(--space-20) 0;
    background: rgba(255, 255, 255, 0.01);
}

.lines-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.line-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--duration-base) var(--ease-out);
}

.line-card:hover {
    border-color: var(--line-color);
    transform: translateX(8px);
    box-shadow: 0 0 30px color-mix(in srgb, var(--line-color) 30%, transparent);
}

.line-indicator {
    width: 6px;
    height: 48px;
    background: var(--line-color);
    border-radius: var(--radius-full);
    box-shadow: 0 0 12px var(--line-color);
}

.line-info h4 {
    font-size: 0.95rem;
    margin-bottom: var(--space-1);
}

.line-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
}

.line-stats {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ===================================
   Fare Section
   =================================== */
.fare-section {
    padding: var(--space-20) 0;
}

.fare-card {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
}

.fare-header {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.fare-header h3 {
    margin-bottom: var(--space-1);
}

.fare-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.fare-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

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

.fare-table th,
.fare-table td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.fare-table th {
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

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

.fare-table tr:hover td {
    background: var(--bg-card-hover);
}

.fare-table .savings {
    color: var(--success);
    font-weight: 600;
}

.fare-tip {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
    padding: var(--space-4);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    color: var(--success);
}

.tip-icon {
    font-size: 1.25rem;
}

/* ===================================
   FAQ Section
   =================================== */
.faq-section {
    padding: var(--space-20) 0;
    background: rgba(255, 255, 255, 0.01);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--duration-fast);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    color: var(--text-primary);
    cursor: pointer;
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--accent);
    transition: transform var(--duration-base);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-base) var(--ease-out);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 var(--space-5) var(--space-5);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1.25rem;
    margin-bottom: var(--space-4);
}

.footer-logo .logo-3d {
    font-size: 1.75rem;
    animation: none;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-5);
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 1rem;
    transition: all var(--duration-fast);
}

.social-link:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--duration-fast);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ===================================
   Error State
   =================================== */
.error-state {
    text-align: center;
    padding: var(--space-8);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-xl);
}

.error-state h4 {
    color: var(--error);
    margin: var(--space-4) 0 var(--space-2);
}

/* ===================================
   Interchange Grid
   =================================== */
.interchange-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

.interchange-card {
    text-align: center;
    padding: var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all var(--duration-base) var(--ease-out);
}

.interchange-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.interchange-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-3);
    animation: rotateIcon 4s linear infinite;
}

@keyframes rotateIcon {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(90deg);
    }

    50% {
        transform: rotate(180deg);
    }

    75% {
        transform: rotate(270deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.interchange-card h4 {
    margin-bottom: var(--space-2);
}

.interchange-card p {
    font-size: 0.85rem;
    margin-bottom: var(--space-4);
}

.interchange-lines {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .interchange-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ===================================
   SEO Content Sections
   =================================== */
.seo-intro-section {
    padding: var(--space-12) 0;
}

.seo-intro-card {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    text-align: center;
}

.intro-text strong {
    color: var(--text-primary);
}

/* Quick Info Table */
.quick-info-section {
    padding: var(--space-12) 0;
}

.info-table-card {
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

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

.info-table td {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border);
}

.info-table th {
    padding: var(--space-4) var(--space-5);
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(16, 185, 129, 0.1);
    border-bottom: 2px solid var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-table th:last-child {
    text-align: right;
}

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

.info-table tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.info-table thead tr:nth-child(odd) {
    background: transparent;
}

.info-table tr:hover {
    background: var(--bg-card-hover);
}

.info-table thead tr:hover {
    background: rgba(16, 185, 129, 0.1);
}

.info-table td:first-child {
    font-weight: 500;
    color: var(--text-secondary);
}

.info-table td:last-child {
    color: var(--text-primary);
    text-align: right;
}

/* SEO Long Content */
.seo-content-section {
    padding: var(--space-16) 0;
}

.seo-content-card {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-10);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
}

.seo-content-card h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-6);
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seo-content-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border);
}

.seo-content-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

.seo-content-card ul {
    margin: var(--space-4) 0;
    padding-left: var(--space-6);
}

.seo-content-card li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.seo-content-card li strong {
    color: var(--text-primary);
}

/* ===================================
   Responsive Design  
   =================================== */
@media (max-width: 1024px) {

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        padding: var(--space-6);
        gap: var(--space-2);
        transform: translateX(100%);
        transition: transform var(--duration-base) var(--ease-out);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: auto;
        padding: calc(72px + var(--space-12)) 0 var(--space-12);
    }

    .route-planner {
        padding: var(--space-6);
    }

    .features-grid,
    .lines-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

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

    .popular-routes {
        flex-direction: column;
        gap: var(--space-2);
    }

    .seo-content-card {
        padding: var(--space-6);
    }

    .info-table td {
        display: block;
        padding: var(--space-2) var(--space-4);
    }

    .info-table td:first-child {
        padding-top: var(--space-4);
    }

    .info-table td:last-child {
        text-align: left;
        padding-bottom: var(--space-4);
        border-bottom: 1px solid var(--border);
    }
}

/* ===================================
   Scrollbar Global
   =================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ===================================
   Fare Calculator Page Styles
   =================================== */

/* Fare Cards Grid */
.fare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.fare-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all var(--duration-base) var(--ease-out);
    animation-delay: var(--delay, 0s);
}

.fare-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.fare-distance {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
}

.fare-prices {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.fare-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
}

.fare-price.token {
    border-left: 3px solid var(--accent-gold);
}

.fare-price.card {
    border-left: 3px solid var(--accent);
}

.fare-price .label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.fare-price .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.fare-price .savings {
    font-size: 0.75rem;
    color: var(--accent);
    background: rgba(16, 185, 129, 0.15);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
}

/* Airport Express Cards */
.airport-fare-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
    max-width: 700px;
    margin: 0 auto;
}

.airport-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    position: relative;
    transition: all var(--duration-base) var(--ease-out);
}

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

.airport-card.smart {
    border-color: var(--accent);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.1) 0%, rgba(30, 41, 59, 0.9) 100%);
}

.airport-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.airport-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

.airport-card h3 {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.airport-price {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-3);
}

.airport-card.smart .airport-price {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

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

/* Info Card */
.info-card {
    display: flex;
    gap: var(--space-5);
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(30, 41, 59, 0.8) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1.125rem;
    color: var(--accent-gold);
    margin-bottom: var(--space-2);
}

.info-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 640px) {
    .fare-grid {
        grid-template-columns: 1fr;
    }

    .airport-fare-cards {
        grid-template-columns: 1fr;
    }

    .info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ===================================
   Exit Gate Cards (Stations Page)
   =================================== */
.exit-gate-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
}

.exit-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: all var(--duration-base) var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.exit-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.exit-destination {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.exit-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

.exit-station {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.exit-gate {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(16, 185, 129, 0.15);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.exit-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Line Tags */
.line-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.line-tag.red {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.line-tag.blue {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.line-tag.yellow {
    background: rgba(234, 179, 8, 0.2);
    color: #EAB308;
}

.line-tag.green {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.line-tag.violet {
    background: rgba(139, 92, 246, 0.2);
    color: #8B5CF6;
}

.line-tag.pink {
    background: rgba(236, 72, 153, 0.2);
    color: #EC4899;
}

.line-tag.magenta {
    background: rgba(217, 70, 239, 0.2);
    color: #D946EF;
}

.line-tag.orange {
    background: rgba(249, 115, 22, 0.2);
    color: #F97316;
}

.line-tag.grey {
    background: rgba(107, 114, 128, 0.2);
    color: #9CA3AF;
}

.line-tag.aqua {
    background: rgba(6, 182, 212, 0.2);
    color: #06B6D4;
}

@media (max-width: 640px) {
    .exit-gate-cards {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Timing Page Styles
   =================================== */

/* Live Status Card */
.live-status-card {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(30, 41, 59, 0.9) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-full);
    padding: var(--space-3) var(--space-6);
    margin-top: var(--space-6);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background: #22C55E;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.status-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #22C55E;
}

/* Timing Grid */
.timing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

/* Timing Card */
.timing-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out);
}

.timing-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-color, var(--accent));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timing-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    border-bottom: 1px solid var(--border);
}

.timing-line-indicator {
    width: 8px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: var(--line-color, var(--accent));
    flex-shrink: 0;
}

.timing-line-info h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timing-line-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timing-schedule {
    padding: var(--space-4);
}

.timing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
    background: rgba(255, 255, 255, 0.02);
}

.timing-row.last {
    background: rgba(255, 255, 255, 0.05);
}

.timing-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.timing-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timing-row.last .timing-value {
    color: var(--accent);
}

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

    .live-status-card {
        padding: var(--space-2) var(--space-4);
    }
}

/* Selection */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: white;
}

/* ===================================
   Fare Price Animation
   =================================== */
.info-table td:nth-child(3) {
    font-weight: 700;
    color: var(--accent);
    animation: fareGlow 2s ease-in-out infinite;
}

@keyframes fareGlow {

    0%,
    100% {
        text-shadow: 0 0 5px rgba(16, 185, 129, 0.3);
    }

    50% {
        text-shadow: 0 0 20px rgba(16, 185, 129, 0.6), 0 0 30px rgba(6, 182, 212, 0.4);
    }
}

.fare-price-highlight {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.fare-price-highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    animation: pricePulse 2s ease-in-out infinite;
}

@keyframes pricePulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.fare-price-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    animation: priceFloat 3s ease-in-out infinite;
}

@keyframes priceFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.fare-price-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: var(--space-1);
    position: relative;
    z-index: 1;
}