/* ========================================= */
/* 1. DESIGN SYSTEM & VARIABLES              */
/* ========================================= */
:root {
    --primary: #0052cc;
    --accent: #00c2ff;
    --accent-hover: #00a8e0;
    --bg-body: #f7f9fc;
    --bg-card: #ffffff;
    --bg-answer: #f1f5f9;
    --text-heading: #172b4d;
    --text-body: #42526e;
    --border: #ebecf0;
    --shadow-sm: 0 1px 2px rgba(9, 30, 66, 0.25);
    --shadow-lg: 0 20px 40px -10px rgba(9, 30, 66, 0.15);
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-pill: 50px;
}

body.dark-mode {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-answer: #162033;
    --text-heading: #f8fafc;
    --text-body: #94a3b8;
    --border: #334155;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --accent: #00d4ff;
}

/* ========================================= */
/* 2. GLOBAL RESET & BASE STYLES             */
/* ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body { 
    font-family: 'DM Sans', sans-serif; 
    background-color: var(--bg-body); 
    color: var(--text-body); 
    line-height: 1.6;
    overflow-x: hidden;
    transition: 0.3s;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; color: var(--text-heading); font-weight: 700; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
section { padding: 6rem 5%; position: relative; }
.container { max-width: 1280px; margin: 0 auto; }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(50px); transition: all 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ========================================= */
/* 3. COMPONENTS (Buttons, Titles, Badges)   */
/* ========================================= */
.btn-primary {
    background: var(--accent); color: white; padding: 0.9rem 2rem;
    border-radius: var(--radius-pill); font-weight: 700; border: none; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 194, 255, 0.3); transition: 0.3s;
    display: inline-flex; align-items: center; gap: 8px; font-size: 1rem;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 194, 255, 0.5); }

.btn-secondary {
    background: transparent; border: 2px solid var(--primary); color: var(--primary);
    padding: 0.8rem 2rem; border-radius: var(--radius-pill); font-weight: 600; cursor: pointer; transition: 0.3s;
}
.btn-secondary:hover { background: var(--primary); color: white; }

.section-title { text-align: center; margin-bottom: 4rem; max-width: 700px; margin-inline: auto; }
.section-title h2 { font-size: 2.8rem; margin-bottom: 1rem; letter-spacing: -1px; }
.section-title span { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Badges */
.badge { padding: 5px 12px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-pending { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-failed { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ========================================= */
/* 4. NAVBAR (PERBAIKAN POSISI TENGAH)       */
/* ========================================= */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 1rem 5%; transition: 0.4s; 
    display: flex; justify-content: center; /* Memastikan nav container di tengah */
}
header.scrolled {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px);
    padding: 0.8rem 5%; box-shadow: var(--shadow-sm);
}
body.dark-mode header.scrolled { background: rgba(15, 23, 42, 0.95); }

nav { 
    width: 100%; max-width: 1400px; 
    display: flex; justify-content: space-between; align-items: center; 
    position: relative; /* PENTING: Jadi acuan absolute center */
}

.logo { 
    font-size: 1.5rem; font-weight: 800; color: #fff; 
    display: flex; align-items: center; gap: 8px; 
    font-family: 'Outfit', sans-serif; text-shadow: 0 2px 5px rgba(0,0,0,0.3); 
    z-index: 1002; /* Di atas elemen lain */
    position: relative;
}
header.scrolled .logo { color: var(--text-heading); text-shadow: none; }
.logo i { color: var(--accent); }

/* Nav Links Default (Mobile / Hidden) */
.nav-links { display: flex; gap: 2rem; align-items: center; }

/* Nav Links Item Style */
.nav-links a { color: #fff; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.3); position: relative; white-space: nowrap; }
.nav-links a.active { color: var(--accent); } 
.nav-links a::after { content: ''; position: absolute; width: 0; height: 3px; background: var(--accent); bottom: -6px; left: 0; transition: 0.3s; border-radius: 2px; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
header.scrolled .nav-links a { color: var(--text-body); text-shadow: none; }

/* Icons (Right Side) */
.nav-actions { 
    display: flex; align-items: center; gap: 1.5rem; 
    z-index: 1002; /* Di atas elemen lain */
    position: relative;
}
.icon-btn { color: #fff; cursor: pointer; font-size: 1.2rem; transition: 0.3s; background: none; border: none; padding: 5px; }
header.scrolled .icon-btn { color: var(--text-heading); }
.icon-btn:hover { color: var(--accent); transform: scale(1.1); }

.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: #fff; z-index: 1002; }
header.scrolled .hamburger { color: var(--text-heading); }
.close-menu { display: none; }

/* ========================================= */
/* 5. HERO SECTION (HOME)                    */
/* ========================================= */
.hero {
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
    background: linear-gradient(to bottom, rgba(0, 60, 150, 0.7), rgba(0, 20, 50, 0.4)), url('https://images.unsplash.com/photo-1516690561799-46d8f74f9dab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=85');
    background-size: cover; background-position: center; background-attachment: fixed;
    text-align: center; color: #fff; padding: 8rem 5% 4rem; position: relative; overflow: hidden;
}
body.dark-mode .hero { background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1516690561799-46d8f74f9dab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=85'); background-size: cover; background-position: center; background-attachment: fixed; }

/* Hero Effects */
.hero-effects { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: hidden; }
.hero-clouds { position: absolute; width: 200%; height: 100%; top: 0; left: 0; background: transparent url('https://assets.codepen.io/123865/clouds-white.png') repeat-x; background-size: contain; opacity: 0.3; animation: driftClouds 80s linear infinite; }
.hero-mist { position: absolute; width: 300%; height: 50%; bottom: 0; left: 0; background: transparent url('https://assets.codepen.io/123865/clouds-white.png') repeat-x bottom center; background-size: cover; opacity: 0.2; animation: driftMist 120s linear infinite; }
.hero-particles-1 { position: absolute; width: 100%; height: 200%; top:0; left: 0; background-image: radial-gradient(rgba(255,255,255,0.7) 1px, transparent 1px), radial-gradient(rgba(255,255,255,0.6) 1px, transparent 1px); background-size: 550px 550px; background-position: 0 0, 40px 60px; opacity: 0.4; animation: particlesUp 60s linear infinite; }
.hero-particles-2 { position: absolute; width: 100%; height: 200%; top:0; left: 0; background-image: radial-gradient(rgba(255,255,255,0.9) 1.5px, transparent 1.5px); background-size: 400px 400px; background-position: 20px 30px; opacity: 0.6; animation: particlesUp 35s linear infinite; }
.hero-plane { position: absolute; color: rgba(255, 255, 255, 0.9); text-shadow: 0 0 10px rgba(255,255,255,0.6); left: -10%; animation: flyPlane linear infinite; }
.plane-1 { top: 20%; font-size: 2rem; animation-duration: 25s; }
.plane-2 { top: 10%; font-size: 1.2rem; animation-duration: 35s; animation-delay: 8s; opacity: 0.7; }
.plane-3 { top: 30%; font-size: 1.5rem; animation-duration: 28s; animation-delay: 15s; opacity: 0.8; }

.hero-content { position: relative; z-index: 10; width: 100%; max-width: 1140px; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.hero h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 0.5rem; text-shadow: 0 4px 30px rgba(0,0,0,0.6); animation: fadeUp 1s ease; letter-spacing: -2px; }
.hero p { font-size: 1.3rem; max-width: 700px; margin-bottom: 1rem; text-shadow: 0 2px 15px rgba(0,0,0,0.7); font-weight: 500; animation: fadeUp 1.2s ease; opacity: 0.95; }

/* ========================================= */
/* 6. SEARCH WIDGET                          */
/* ========================================= */
.search-widget {
    width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px);
    border-radius: var(--radius-lg); padding: 2.5rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.5);
    animation: fadeUp 1.4s ease; text-align: left;
}
body.dark-mode .search-widget { background: rgba(30, 41, 59, 0.95); border-color: rgba(255,255,255,0.1); }

.widget-tabs { display: flex; gap: 2rem; margin-bottom: 1.5rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 1rem; }
.tab-btn { background: none; border: none; font-weight: 700; color: #42526e; cursor: pointer; font-size: 1rem; padding-bottom: 5px; opacity: 0.7; transition: 0.3s; }
.tab-btn.active { opacity: 1; color: var(--primary); border-bottom: 3px solid var(--primary); }
body.dark-mode .tab-btn { color: #cbd5e1; border-color: #475569; }

.widget-form { display: grid; grid-template-columns: 2fr 0.1fr 2fr 1.5fr 1fr 1fr; gap: 1rem; align-items: center; }
.input-group label { display: block; font-size: 0.75rem; font-weight: 700; color: #42526e; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
body.dark-mode .input-group label { color: #cbd5e1; }

.input-field-wrapper { 
    background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: var(--radius-md); 
    padding: 0.8rem; display: flex; align-items: center; gap: 10px; transition: 0.3s;
}
body.dark-mode .input-field-wrapper { background: rgba(0,0,0,0.3); border-color: #475569; }
.input-field-wrapper:focus-within { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.15); }
body.dark-mode .input-field-wrapper:focus-within { background: #1e293b; }

.input-field-wrapper input { border: none; background: transparent; width: 100%; outline: none; font-weight: 700; color: var(--text-heading); font-size: 1rem; font-family: 'DM Sans', sans-serif; cursor: pointer; }

/* Custom Select Styling */
.custom-select {
    width: 100%; background: transparent; border: none; outline: none;
    font-weight: 700; color: var(--text-heading); font-size: 1rem; cursor: pointer;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    font-family: 'DM Sans', sans-serif; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300c2ff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat; background-position: right 0.7rem top 50%; background-size: 0.65rem auto; padding-right: 1.5rem;
}
.custom-select option { color: #172b4d; background: #fff; padding: 10px; font-weight: 500; }

.swap-icon { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--primary); box-shadow: var(--shadow-sm); cursor: pointer; transition: 0.3s; margin-top: 22px; border: 1px solid #cbd5e1; }
body.dark-mode .swap-icon { background: #334155; border-color: #475569; color: #fff; }
.swap-icon:hover { transform: rotate(180deg) scale(1.1); color: var(--accent); }

/* Service Tabs */
.service-tabs { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.service-btn {
    background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3); color: white;
    padding: 0.8rem 2rem; border-radius: 50px; font-weight: 700;
    cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 10px;
}
.service-btn:hover { background: rgba(255, 255, 255, 0.4); }
.service-btn.active {
    background: white; color: var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ========================================= */
/* 7. HOME SECTIONS (Partners, Promo, etc)   */
/* ========================================= */
.partners { padding: 3rem 0; background: var(--bg-body); border-bottom: 1px solid var(--border); overflow: hidden; }
.marquee { display: flex; gap: 4rem; animation: scroll 30s linear infinite; width: max-content; }
.partner-logo { font-size: 1.5rem; font-weight: 700; color: var(--text-body); opacity: 0.5; display: flex; align-items: center; gap: 10px; filter: grayscale(100%); transition: 0.3s; }
.partner-logo:hover { filter: grayscale(0%); opacity: 1; color: var(--primary); }

.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.promo-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: 0.4s; position: relative; border: 1px solid var(--border); }
.promo-visual { height: 150px; display: flex; align-items: center; justify-content: center; color: white; font-size: 3rem; }
.promo-body { padding: 2rem; }
.code-display { background: rgba(0, 194, 255, 0.05); border: 1px dashed var(--accent); padding: 0.8rem; border-radius: var(--radius-md); text-align: center; color: var(--accent); font-weight: 700; margin-top: 1rem; cursor: pointer; transition: 0.2s; }

.route-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.route-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: 0.4s; position: relative; }
.route-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.route-img { height: 220px; width: 100%; object-fit: cover; transition: 0.5s; }
.airline-tag { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.95); padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; color: var(--text-heading); display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.route-details { padding: 1.5rem; }
.route-flight { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.airport-code { font-size: 1.8rem; font-weight: 800; color: var(--text-heading); }
.flight-line { flex: 1; height: 2px; background: var(--border); margin: 0 15px; position: relative; }
.flight-line i { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); color: var(--accent); background: var(--bg-card); padding: 0 5px; }
.route-price { display: flex; justify-content: space-between; align-items: flex-end; }
.price-label { font-size: 0.85rem; color: var(--text-body); }
.price-amount { font-size: 1.4rem; font-weight: 700; color: var(--primary); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.feature-item { padding: 2.5rem; background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); text-align: center; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; overflow: hidden; }
.feature-item:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 194, 255, 0.15); border-color: var(--accent); }
.feature-icon { width: 80px; height: 80px; background: rgba(0, 194, 255, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2rem; color: var(--accent); transition: 0.4s; }
.feature-item:hover .feature-icon { background: var(--accent); color: white; transform: rotateY(180deg); }

.app-banner { background: linear-gradient(120deg, var(--primary), var(--accent)); border-radius: 30px; overflow: hidden; display: flex; align-items: center; justify-content: space-between; padding: 5rem 6%; color: white; position: relative; box-shadow: var(--shadow-lg); }
.app-text { max-width: 550px; z-index: 2; }
.store-badges { display: flex; gap: 1rem; }
.badge-btn { background: #000; color: #fff; padding: 0.8rem 1.5rem; border-radius: 12px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,0.2); transition: 0.3s; cursor: pointer; }
.app-mockup { width: 450px; position: absolute; right: 5%; bottom: -60px; transition: 0.5s; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3)); }

.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testi-card { background: var(--bg-card); padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); position: relative; }
.testi-card::before { content: '\201C'; font-family: serif; font-size: 5rem; color: var(--accent); opacity: 0.2; position: absolute; top: 10px; left: 20px; }
.stars { color: #facc15; margin-bottom: 1rem; }
.testi-text { font-size: 1.1rem; font-style: italic; color: var(--text-body); margin-bottom: 2rem; position: relative; z-index: 2; }
.user-profile { display: flex; align-items: center; gap: 1rem; }
.user-avatar { width: 50px; height: 50px; background: #e2e8f0; border-radius: 50%; }

/* How It Works */
.how-section { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 3rem; position: relative; margin-top: 3rem; }
.step-item { text-align: center; position: relative; z-index: 1; }
.step-icon-box { width: 80px; height: 80px; background: var(--bg-card); border: 2px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 1.8rem; color: var(--primary); box-shadow: var(--shadow-sm); transition: 0.4s; position: relative; }
.step-item:hover .step-icon-box { border-color: var(--accent); color: var(--accent); background: white; transform: scale(1.1); box-shadow: 0 10px 25px rgba(0, 194, 255, 0.2); }
.step-number { position: absolute; top: -5px; right: -5px; width: 28px; height: 28px; background: var(--primary); color: white; border-radius: 50%; font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 3px solid var(--bg-card); }
.step-item:hover .step-number { background: var(--accent); }
.step-title { font-size: 1.25rem; margin-bottom: 0.5rem; font-weight: 700; }
.step-desc { font-size: 0.95rem; color: var(--text-body); line-height: 1.6; padding: 0 10px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.blog-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: 0.4s; height: 100%; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.blog-img { height: 200px; width: 100%; object-fit: cover; }
.blog-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-date { font-size: 0.85rem; color: var(--text-body); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 5px; }
.blog-title { font-size: 1.3rem; margin-bottom: 0.8rem; line-height: 1.4; }
.blog-excerpt { font-size: 0.95rem; color: var(--text-body); margin-bottom: 1.5rem; flex: 1; }
.read-more { color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; display: flex; align-items: center; gap: 5px; transition: 0.3s; margin-top: auto; }
.read-more:hover { color: var(--accent); gap: 10px; }

/* Newsletter */
.newsletter-section { padding: 4rem 5%; }
.newsletter-banner { background: url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80'); background-size: cover; background-position: center; border-radius: 30px; position: relative; overflow: hidden; padding: 5rem 2rem; text-align: center; color: white; }
.newsletter-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0, 82, 204, 0.9), rgba(0, 194, 255, 0.8)); z-index: 1; }
.newsletter-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.newsletter-content h2 { color: white; font-size: 2.5rem; margin-bottom: 1rem; }
.newsletter-form-wrapper { position: relative; max-width: 500px; margin: 2rem auto 0; }
.newsletter-input { width: 100%; padding: 1.2rem; padding-right: 4rem; border-radius: 50px; border: none; outline: none; font-size: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.newsletter-submit { position: absolute; right: 5px; top: 5px; height: calc(100% - 10px); padding: 0 1.5rem; background: var(--primary); color: white; border: none; border-radius: 40px; cursor: pointer; font-weight: 700; transition: 0.3s; }
.newsletter-submit:hover { background: #000; }

/* FAQ */
.faq-wrapper { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border); margin-bottom: 1rem; overflow: hidden; transition: 0.3s; box-shadow: var(--shadow-sm); }
.faq-item.active { border-color: var(--accent); box-shadow: var(--shadow-md); }
.faq-question { padding: 1.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--text-heading); transition: 0.3s; font-size: 1.1rem; }
.faq-question:hover { background: var(--bg-body); color: var(--primary); }
.faq-answer-wrapper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s ease-out; }
.faq-item.active .faq-answer-wrapper { grid-template-rows: 1fr; }
.faq-answer { overflow: hidden; color: var(--text-body); background: var(--bg-answer); border-top: 1px solid transparent; }
.faq-item.active .faq-answer { border-top-color: var(--border); }
.faq-content { padding: 1.5rem; line-height: 1.7; font-size: 1rem; border-left: 3px solid var(--accent); }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--accent); }

/* ========================================= */
/* 8. ABOUT PAGE STYLES                      */
/* ========================================= */
.about-hero { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: linear-gradient(rgba(0,82,204,0.7), rgba(0,30,80,0.5)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); background-size: cover; background-position: center; color: white; padding-top: 6rem; }
.about-hero h1 { font-size: 4rem; margin-bottom: 1rem; text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.about-hero p { font-size: 1.2rem; max-width: 600px; opacity: 0.9; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.story-img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transition: 0.3s; }
.story-img:hover { transform: scale(1.02); }
.story-content h3 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--primary); }
.story-content p { margin-bottom: 1rem; font-size: 1.05rem; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.value-card { background: var(--bg-card); padding: 2.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border); transition: 0.4s; position: relative; overflow: hidden; }
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.value-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 1.5rem; background: rgba(0,194,255,0.1); width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.value-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; background: var(--bg-card); padding: 3rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.stat-item h2 { font-size: 3rem; color: var(--accent); margin-bottom: 0.5rem; }
.stat-item p { color: var(--text-body); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }
.timeline-wrapper { position: relative; max-width: 800px; margin: 0 auto; border-left: 2px solid var(--border); padding-left: 2rem; }
.timeline-item { position: relative; margin-bottom: 3rem; }
.timeline-dot { position: absolute; left: -2.6rem; top: 0; width: 20px; height: 20px; background: var(--accent); border-radius: 50%; border: 4px solid var(--bg-body); }
.timeline-year { font-size: 1.2rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; display: block; }
.timeline-content h4 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem; }
.team-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: 0.3s; text-align: center; }
.team-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.team-img { width: 100%; height: 300px; object-fit: cover; }
.team-info { padding: 1.5rem; }
.team-info h4 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.team-role { color: var(--accent); font-weight: 600; font-size: 0.9rem; }
.cta-box { background: linear-gradient(120deg, var(--primary), var(--accent)); border-radius: 30px; padding: 5rem 2rem; text-align: center; color: white; box-shadow: var(--shadow-lg); }
.cta-box h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-box p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; max-width: 600px; margin-inline: auto; }
.btn-white { background: white; color: var(--primary); padding: 1rem 2.5rem; border-radius: 50px; font-weight: 700; border: none; cursor: pointer; transition: 0.3s; }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* ========================================= */
/* 9. FLIGHTS & TRAINS PAGE STYLES           */
/* ========================================= */
/* Mini Hero */
.page-header {
    background: linear-gradient(to right, var(--primary), var(--accent));
    padding: 8rem 5% 3rem;
    color: white;
    text-align: center;
}
.page-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-header p { opacity: 0.9; }

/* ========================================= */
/* FIX LAYOUT & FILTER BAR (FLIGHTS/TRAINS)  */
/* ========================================= */

/* Spacer agar konten tidak tertutup Navbar Fixed */
.main-spacer {
    padding-top: 100px; /* Jarak aman dari atas */
}

/* Filter Bar Sticky yang Rapih */
.flight-search-bar {
    background: rgba(255, 255, 255, 0.95); /* Sedikit transparan */
    backdrop-filter: blur(10px); /* Efek blur premium */
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.05);
    top: 80px; /* Jarak dari atas layar saat discroll (Pas di bawah navbar) */
    z-index: 900; 
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.filter-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%; /* Padding kiri kanan agar sejajar konten */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-info {
    display: flex; align-items: center; gap: 12px;
    font-weight: 700; color: var(--text-heading); font-size: 1.1rem;
}
.filter-info i { color: var(--accent); font-size: 1.2rem; }

/* Grid Layout yang Lebih Rapih */
.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr; /* Sidebar - Konten */
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5% 5rem; /* Padding bawah 5rem */
}

/* Sidebar Filter Fixed Height (Opsional, agar rapi) */
.sidebar-filter {
    position: sticky;
    top: 160px; /* Jarak dari atas (80px header + 80px filter bar) */
    height: fit-content;
}

/* Responsive: Mobile Layout */
@media (max-width: 900px) {
    .flight-search-bar { top: 70px; padding: 1rem; }
    .search-layout { grid-template-columns: 1fr; } /* Jadi 1 kolom */
    .sidebar-filter { position: static; margin-bottom: 20px; }
    .filter-info span { font-size: 0.9rem; }
}

/* Flight List Container */
.flight-list-section { padding: 3rem 5%; background: var(--bg-body); min-height: 80vh; }
.flight-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
}
.flight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

/* Airline Info (Left) */
.ticket-airline { display: flex; align-items: center; gap: 1rem; width: 25%; }
.airline-logo { width: 50px; height: 50px; object-fit: contain; }
.airline-name { font-weight: 700; color: var(--text-heading); display: block; }
.flight-code { font-size: 0.85rem; color: var(--text-body); }

/* Route Info (Center) */
.ticket-route { display: flex; align-items: center; gap: 2rem; width: 40%; text-align: center; justify-content: center; }
.time-group { text-align: center; }
.time-group h3 { font-size: 1.5rem; color: var(--text-heading); margin-bottom: 0; line-height: 1; }
.time-group span { font-size: 0.9rem; color: var(--text-body); background: var(--bg-body); padding: 2px 8px; border-radius: 4px; margin-top: 5px; display: inline-block; }

.duration-line { flex: 1; position: relative; height: 2px; background: var(--border); display: flex; justify-content: center; align-items: center; }
.duration-line span { position: absolute; top: -20px; font-size: 0.8rem; color: var(--text-body); }
.duration-line i { color: var(--accent); background: var(--bg-card); padding: 0 5px; font-size: 0.9rem; }

/* Price & Action (Right) */
.ticket-action { text-align: right; width: 25%; }
.ticket-price { font-size: 1.5rem; font-weight: 800; color: var(--primary); display: block; margin-bottom: 0.5rem; }
.ticket-type { display: block; font-size: 0.8rem; color: var(--text-body); margin-bottom: 10px; }

/* Flight Controls */
.flight-controls-section { background: var(--bg-body); padding: 2rem 5% 0; }
.price-calendar-wrapper { position: relative; margin-bottom: 2rem; }
.price-calendar { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.price-calendar::-webkit-scrollbar { display: none; }
.calendar-card { min-width: 110px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 0.5rem; text-align: center; cursor: pointer; transition: 0.3s; flex-shrink: 0; }
.calendar-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.calendar-card.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 5px 15px rgba(0, 82, 204, 0.3); }
.cal-day { font-size: 0.85rem; font-weight: 600; display: block; margin-bottom: 5px; opacity: 0.8; }
.cal-date { font-size: 1.1rem; font-weight: 800; display: block; margin-bottom: 5px; }
.cal-price { font-size: 0.8rem; font-weight: 700; color: #10b981; }
.calendar-card.active .cal-price { color: #86efac; }

.sorting-container { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.sort-label { font-weight: 700; color: var(--text-heading); margin-right: 1rem; }
.sort-tabs { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.sort-btn { background: var(--bg-card); border: 1px solid var(--border); padding: 0.6rem 1.2rem; border-radius: 50px; font-size: 0.9rem; font-weight: 600; color: var(--text-body); cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 5px; }
.sort-btn:hover { border-color: var(--accent); color: var(--accent); }
.sort-btn.active { background: rgba(0, 194, 255, 0.1); color: var(--primary); border-color: var(--primary); }

/* Train Specifics */
.page-header.train-mode { background: linear-gradient(to right, #ea580c, #c2410c); }
.train-class-badge { font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; background: #e0f2fe; color: var(--primary); font-weight: 700; border: 1px solid #bae6fd; }
.sort-btn.active.train-active { background: rgba(234, 88, 12, 0.1); color: #ea580c; border-color: #ea580c; }
.page-btn.active.train-active { background: #ea580c; border-color: #ea580c; }

/* Pagination */
.pagination-wrapper { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 3rem; padding-bottom: 2rem; }
.page-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-body); font-weight: 700; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 10px rgba(0, 82, 204, 0.3); }
.page-btn.disabled { opacity: 0.5; cursor: not-allowed; }

/* ========================================= */
/* 10. BOOKING PAGE STYLES                   */
/* ========================================= */
.booking-hero { background: linear-gradient(to bottom, rgba(0, 82, 204, 0.85), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1569154941061-e231b4725ef1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80'); background-size: cover; background-position: center; padding-top: 9rem; padding-bottom: 7rem; text-align: center; color: white; border-bottom-left-radius: 50px; border-bottom-right-radius: 50px; position: relative; z-index: 0; box-shadow: 0 4px 20px rgba(0, 82, 204, 0.2); }
.booking-hero-animated { background: linear-gradient(to bottom, rgba(0, 60, 150, 0.85), rgba(0, 20, 50, 0.9)), url('https://images.unsplash.com/photo-1516690561799-46d8f74f9dab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=85'); background-size: cover; background-position: center; position: relative; overflow: hidden; padding-top: 10rem; padding-bottom: 8rem; text-align: center; color: white; border-bottom-left-radius: 50px; border-bottom-right-radius: 50px; z-index: 0; box-shadow: 0 4px 20px rgba(0, 82, 204, 0.3); }
.booking-hero-content-wrapper { position: relative; z-index: 10; }
.booking-hero h1, .booking-hero-animated h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 0.5rem;color:white; text-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.booking-hero p, .booking-hero-animated p { font-size: 1.2rem; opacity: 0.95; max-width: 600px; margin: 0 auto; text-shadow: 0 1px 5px rgba(0,0,0,0.5); }

.booking-section { margin-top: -4rem; padding-bottom: 4rem; position: relative; z-index: 10; }
.stepper-wrapper { max-width: 650px; margin: 0 auto 3rem; display: flex; justify-content: space-between; position: relative; background: white; padding: 20px 40px; border-radius: 50px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); border: 1px solid var(--border); }
.stepper-wrapper::before { content: ''; position: absolute; top: 50%; left: 50px; right: 50px; height: 3px; background: #f1f5f9; z-index: -1; transform: translateY(-50%); }
.step-item-book { position: relative; z-index: 1; text-align: center; background: white; padding: 0 10px; }
.step-circle { width: 35px; height: 35px; border-radius: 50%; background: #f1f5f9; color: #94a3b8; display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto; transition: 0.3s; }
.step-item-book.active .step-circle { background: var(--primary); color: white; box-shadow: 0 0 0 5px rgba(0, 82, 204, 0.15); }
.step-item-book.completed .step-circle { background: #10b981; color: white; }
.step-label { display: block; font-size: 0.85rem; font-weight: 600; margin-top: 8px; color: #64748b; }
.step-item-book.active .step-label { color: var(--primary); font-weight: 700; }

.booking-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; max-width: 1100px; margin: 0 auto; }
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; margin-bottom: 2rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02); }
.form-header { margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.form-header h3 { font-size: 1.2rem; color: var(--text-heading); display: flex; align-items: center; gap: 10px; }
.form-header h3 i { color: var(--accent); }
.booking-form-group { margin-bottom: 1.2rem; }
.booking-form-group label { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text-body); margin-bottom: 8px; }
.booking-input { width: 100%; padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-body); font-family: 'DM Sans', sans-serif; font-size: 1rem; outline: none; transition: 0.3s; color: var(--text-heading); }
.booking-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(0, 194, 255, 0.1); }

.toggle-wrapper { display: flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; cursor: pointer; background: var(--bg-body); padding: 10px 15px; border-radius: 8px; border: 1px solid var(--border); width: fit-content; }
.toggle-switch { width: 40px; height: 20px; background: #cbd5e1; border-radius: 20px; position: relative; transition: 0.3s; }
.toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: white; border-radius: 50%; transition: 0.3s; }
.toggle-input:checked + .toggle-switch { background: #10b981; }
.toggle-input:checked + .toggle-switch::after { transform: translateX(20px); }
.toggle-input { display: none; }

.summary-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; position: sticky; top: 100px; box-shadow: 0 10px 40px -5px rgba(0,0,0,0.05); }
.flight-summary-header { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.summary-airline-logo { width: 45px; height: 45px; border-radius: 50%; border: 1px solid var(--border); padding: 8px; background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.flight-route-info { flex: 1; }
.flight-route-info h4 { font-size: 1rem; line-height: 1.4; font-weight: 700; color: var(--text-heading); }
.flight-route-info p { font-size: 0.85rem; color: var(--text-body); margin-top: 2px; }
.status-badge { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; padding: 0.5rem; border-radius: 8px; font-size: 0.85rem; font-weight: 700; text-align: center; margin-bottom: 1.5rem; display: block; }
.price-breakdown { margin: 1.5rem 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); padding: 1rem 0; }
.price-row { display: flex; justify-content: space-between; margin-bottom: 0.8rem; font-size: 0.9rem; color: var(--text-body); }
.price-row.total { font-weight: 800; font-size: 1.3rem; color: var(--primary); margin-top: 1rem; margin-bottom: 0; }

/* ========================================= */
/* 11. HISTORY & INVOICE                     */
/* ========================================= */
.history-section { margin-top: -4rem; padding-bottom: 4rem; position: relative; z-index: 10; }
.history-card { background: var(--bg-card); border-radius: 16px; border: 1px solid var(--border); padding: 1.5rem; margin-bottom: 1.5rem; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; box-shadow: var(--shadow-sm); }
.history-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.history-left { display: flex; gap: 1.5rem; align-items: center; }
.history-icon { width: 60px; height: 60px; background: #f1f5f9; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--text-body); }
.history-info h4 { font-size: 1.1rem; margin-bottom: 5px; color: var(--text-heading); }
.history-info p { font-size: 0.9rem; color: var(--text-body); margin-bottom: 5px; }
.history-date { font-size: 0.85rem; color: #94a3b8; display: flex; align-items: center; gap: 5px; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(5px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.invoice-modal { background: white; width: 90%; max-width: 500px; border-radius: 20px; padding: 2.5rem; position: relative; transform: translateY(20px); transition: 0.3s; max-height: 90vh; overflow-y: auto; }
.modal-overlay.active .invoice-modal { transform: translateY(0); }
.close-modal { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; color: var(--text-body); cursor: pointer; transition: 0.3s; }
.close-modal:hover { color: var(--primary); transform: rotate(90deg); }
.invoice-header { text-align: center; border-bottom: 2px dashed var(--border); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.invoice-header h2 { font-size: 1.8rem; color: var(--primary); margin-bottom: 5px; }
.invoice-id { font-family: monospace; font-size: 1rem; color: var(--text-body); background: #f1f5f9; padding: 2px 8px; border-radius: 4px; }
.invoice-details { margin-bottom: 1.5rem; }
.inv-row { display: flex; justify-content: space-between; margin-bottom: 0.8rem; font-size: 0.95rem; }
.inv-label { color: var(--text-body); }
.inv-value { font-weight: 700; color: var(--text-heading); text-align: right; }
.invoice-total { background: var(--bg-body); padding: 1rem; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; border: 1px solid var(--border); }
.total-label { font-weight: 700; color: var(--text-heading); }
.total-amount { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.invoice-footer { text-align: center; font-size: 0.85rem; color: #94a3b8; }

/* ========================================= */
/* 12. FOOTER                                */
/* ========================================= */
footer { background: #0f172a; color: #cbd5e1; padding-top: 6rem; margin-top: 4rem; border-top-left-radius: 40px; border-top-right-radius: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 4rem; }
.footer-brand h2 { color: white; font-size: 2rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.footer-brand h2 i { color: var(--accent); }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #1e293b; padding: 2rem 5%; display: flex; justify-content: space-between; align-items: center; background: #0a101f; }

/* ========================================= */
/* 13. ANIMATIONS                            */
/* ========================================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes flyPlane { 0% { left: -10%; transform: rotate(10deg) scale(0.9); } 100% { left: 110%; transform: rotate(10deg) scale(1.1); } }
@keyframes driftClouds { from { background-position: 0 0; } to { background-position: 1000px 0; } }
@keyframes driftMist { from { background-position: 0 0; } to { background-position: -2000px 0; } }
@keyframes particlesUp { from { transform: translateY(0); } to { transform: translateY(-550px); } }

/* ========================================= */
/* 14. GLOBAL RESPONSIVE (MEDIA QUERIES)     */
/* ========================================= */

/* Desktop Specific Fixes */
@media (min-width: 900px) {
    /* Absolute Center Nav Links for Perfect Centering */
    .nav-links {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: max-content;
        margin: 0;
    }
}

/* Tablet & Mobile */
@media (max-width: 1024px) {
    .story-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 3.5rem; }
    .widget-form { grid-template-columns: 1fr 1fr; }
    .swap-icon { display: none; }
    .app-banner { flex-direction: column; text-align: center; padding: 4rem 2rem; }
    .app-mockup { position: static; width: 350px; margin-top: 3rem; }
    /* Nav links reset for tablet if needed, but absolute works fine usually */
}

/* Mobile Specific */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .hamburger { display: block; z-index: 1003; }
    .nav-links { 
        position: fixed; top: 0; right: -100%; width: 75%; height: 100vh; 
        background: var(--bg-card); flex-direction: column; justify-content: center; 
        box-shadow: -10px 0 30px rgba(0,0,0,0.3); transition: 0.4s; 
        z-index: 2000; left: auto; transform: none; /* Reset desktop transform */
    }
    .nav-links.active { right: 0; }
    .nav-links a { color: var(--text-heading); font-size: 1.3rem; margin: 1rem 0; text-align: center; }
    .close-menu { display: block; position: absolute; top: 25px; right: 25px; font-size: 2rem; color: var(--text-heading); cursor: pointer; }
    .nav-actions { gap: 1rem; margin-right: 1rem; }
    .logo { font-size: 1.2rem; }

    /* Hero & General */
    .hero { padding-top: 6rem; padding-bottom: 2rem; min-height: auto; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .search-widget { padding: 1.5rem; }
    .widget-form { grid-template-columns: 1fr; gap: 1rem; }
    .input-field-wrapper { padding: 0.6rem; }
    section { padding: 3rem 5%; }
    .section-title h2 { font-size: 2rem; }
    .app-mockup { width: 280px; }
    .btn-primary { display: none; } 
    .search-widget .btn-primary, .app-banner .btn-primary, .newsletter-submit { display: inline-flex; }

    /* Flights & Trains Page */
    .flight-search-bar { top: 60px; padding: 1rem; }
    .filter-container { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .flight-card { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
    .ticket-airline, .ticket-route, .ticket-action { width: 100%; }
    .ticket-route { justify-content: space-between; gap: 1rem; }
    .ticket-action { text-align: left; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 0.5rem; }
    .ticket-price { margin-bottom: 0; }
    .sorting-container { flex-direction: column; align-items: flex-start; }
    .sort-tabs { width: 100%; overflow-x: auto; padding-bottom: 5px; }
    .sort-btn { white-space: nowrap; }

    /* Booking Page */
    .booking-grid { grid-template-columns: 1fr; }
    .summary-card { position: static; margin-bottom: 2rem; order: -1; }
    .booking-hero, .booking-hero-animated { border-radius: 0; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px; padding-bottom: 5rem; }
    .booking-hero-animated h1 { font-size: 2.2rem; }
    .booking-section { margin-top: -3rem; }

    /* History Page */
    .history-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .history-right { width: 100%; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 1rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .footer-brand p { max-width: 300px; margin: 0 auto 1.5rem; }
    .footer-links { padding: 0; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; padding-bottom: 6rem; }
}

/* --- BOOKING NOTICE STYLES --- */
.info-alert-box {
    background: #eff6ff; /* Biru sangat muda */
    border: 1px solid #bfdbfe; /* Garis biru muda */
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: #1e3a8a; /* Biru tua */
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-alert-box i {
    font-size: 1.2rem;
    color: #2563eb; /* Biru standar */
    margin-top: 2px;
    text-align: center;
}

.badge-pending-calc {
    background: #f1f5f9;
    color: #64748b;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    display: inline-block;
}

/* --- BEAUTIFIED SEARCH MODAL --- */

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); /* Lebih gelap & elegan */
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-box {
    background: #ffffff;
    width: 90%;
    max-width: 550px;
    padding: 2rem;
    border-radius: 24px; /* Lebih bulat */
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modal-overlay.active .search-modal-box {
    transform: scale(1) translateY(0);
}

/* Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.close-modal {
    width: 36px; height: 36px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: 0.2s;
}
.close-modal:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

/* Form Grid */
.search-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
    align-items: flex-end; /* Supaya label sejajar */
}

/* Full Width untuk Kelas Kabin */
.modal-form-group.full-width {
    grid-column: 1 / -1;
}

.modal-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

/* Input Wrapper & Icon */
.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i:first-child {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    z-index: 1;
}

/* Custom Select Arrow (Kanan) */
.select-arrow {
    position: absolute !important;
    right: 14px !important;
    left: auto !important;
    color: #94a3b8 !important;
    font-size: 0.8rem !important;
    pointer-events: none;
}

.modal-input {
    width: 100%;
    padding: 12px 12px 12px 42px; /* Padding kiri ikon */
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    color: #334155;
    outline: none;
    transition: 0.2s;
    /* Hilangkan panah default select browser */
    appearance: none; 
    -webkit-appearance: none;
    cursor: pointer;
}

.modal-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Swap Button */
.swap-btn-circle {
    width: 44px; height: 44px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    position: absolute;
    left: 50%; top: 36px; /* Posisi presisi di antara input */
    transform: translate(-50%, 0);
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.swap-btn-circle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translate(-50%, 0) rotate(180deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Footer Buttons */
.modal-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}

.btn-text {
    background: none; border: none;
    color: #64748b; font-weight: 600;
    padding: 0 1rem; cursor: pointer;
    transition: 0.2s;
}
.btn-text:hover { color: #0f172a; }

/* Responsive */
@media (max-width: 600px) {
    .search-modal-grid { grid-template-columns: 1fr; gap: 15px; }
    .swap-btn-circle {
        position: relative; left: auto; top: auto;
        transform: rotate(90deg); margin: -10px auto;
    }
    .swap-btn-circle:hover { transform: rotate(270deg); }
}

/* --- CONTACT PAGE STYLES --- */

.contact-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 1rem 4rem;
}

.contact-hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.contact-hero p { opacity: 0.9; font-size: 1.1rem; }

/* Contact Cards */
.contact-info-section {
    padding: 3rem 0;
    margin-top: -3rem; /* Overlap effect */
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s;
}

.contact-card:hover { transform: translateY(-5px); }

.contact-card .icon-box {
    width: 60px; height: 60px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.contact-card h3 { color: var(--text-heading); margin-bottom: 0.5rem; }
.contact-card p { color: #64748b; line-height: 1.6; font-size: 0.95rem; }

/* Form & Map Split */
.contact-form-section { padding-bottom: 4rem; }

.contact-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.contact-form-wrapper { padding: 3rem; }
.contact-map-wrapper { min-height: 400px; }

/* Form Elements */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block; font-size: 0.9rem; font-weight: 600; color: #475569; margin-bottom: 8px;
}

.input-with-icon { position: relative; }
.input-with-icon i:first-child {
    position: absolute; left: 14px; top: 14px; color: #94a3b8;
}

.contact-form-wrapper input,
.contact-form-wrapper select,
.contact-form-wrapper textarea {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    transition: 0.2s;
}

.contact-form-wrapper textarea { padding-left: 14px; resize: vertical; }

.contact-form-wrapper input:focus,
.contact-form-wrapper select:focus,
.contact-form-wrapper textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-send {
    width: 100%; justify-content: center; font-size: 1rem; padding: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-split-layout { grid-template-columns: 1fr; }
    .contact-map-wrapper { height: 300px; }
    .contact-form-wrapper { padding: 2rem; }
}

/* =========================================
   LUXURY AUTH PAGE STYLES
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

.auth-wrapper {
    display: flex;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #fff;
}

/* --- KIRI: ARTWORK --- */
.auth-artwork {
    flex: 1.3;
    position: relative;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    align-items: flex-end;
    padding: 4rem;
    color: white;
}

.auth-artwork .bg-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.6;
    transition: transform 10s ease;
}
.auth-wrapper:hover .bg-img { transform: scale(1.05); }

.artwork-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
}

.artwork-text { position: relative; z-index: 2; max-width: 600px; }

.glass-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 1.5rem; color: #fbbf24;
}

.artwork-text h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1rem; font-weight: 800; }
.artwork-text p { font-size: 1.1rem; opacity: 0.8; margin-bottom: 2rem; }

.testimonial-mini { display: flex; align-items: center; gap: 15px; }
.avatars { display: flex; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #0f172a; margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }

/* --- KANAN: PANEL FORM --- */
.auth-panel {
    flex: 1;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding: 2rem; position: relative;
}

.back-home {
    position: absolute; top: 2rem; right: 2rem;
    color: #64748b; font-weight: 600; font-size: 0.9rem;
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 50px;
    transition: 0.3s;
}
.back-home:hover { background: #f1f5f9; color: #0f172a; }

.panel-content { width: 100%; max-width: 400px; }

.auth-brand {
    font-size: 1.5rem; font-weight: 800; color: #2563eb;
    margin-bottom: 2rem; display: flex; align-items: center; gap: 10px;
}

/* Sections & Transition */
.auth-section {
    display: none; /* Controlled by JS */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-section.active { display: block; }

.section-header { margin-bottom: 2rem; }
.section-header h2 { font-size: 1.8rem; color: #1e293b; margin-bottom: 0.5rem; }
.section-header p { color: #64748b; }

/* MODERN INPUTS */
.input-group-modern { position: relative; margin-bottom: 1.2rem; }
.input-group-modern label {
    display: block; font-size: 0.85rem; font-weight: 600; color: #475569;
    margin-bottom: 8px;
}
.input-group-modern input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem; color: #1e293b;
    transition: 0.3s; outline: none;
}
.input-group-modern input:focus {
    background: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.input-group-modern .icon {
    position: absolute; left: 16px; top: 42px; color: #94a3b8; font-size: 1.1rem;
}
.input-group-modern .toggle-eye {
    position: absolute; right: 16px; top: 42px; color: #94a3b8; cursor: pointer;
}

/* Extras */
.form-extras {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem; font-size: 0.9rem;
}
.check-box { display: flex; align-items: center; gap: 8px; cursor: pointer; color: #64748b; }
.forgot-pass { color: #2563eb; font-weight: 600; }

/* Buttons */
.btn-block-gradient {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white; border: none;
    padding: 16px; border-radius: 12px;
    font-size: 1rem; font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
    transition: 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-block-gradient:hover { transform: translateY(-2px); box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.5); }

.auth-separator {
    text-align: center; margin: 1.5rem 0;
    position: relative;
}
.auth-separator::before {
    content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: #e2e8f0;
}
.auth-separator span {
    background: #fff; padding: 0 15px; color: #94a3b8; font-size: 0.85rem; position: relative;
}

.btn-social-google {
    width: 100%; background: #fff; border: 1px solid #e2e8f0;
    padding: 14px; border-radius: 12px;
    font-weight: 600; color: #1e293b;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    cursor: pointer; transition: 0.3s;
}
.btn-social-google:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn-social-google img { width: 20px; }

.bottom-text { text-align: center; margin-top: 2rem; color: #64748b; font-size: 0.95rem; }
.bottom-text a { color: #2563eb; font-weight: 700; }

/* Responsive Mobile */
@media (max-width: 900px) {
    .auth-artwork { display: none; }
    .auth-panel { padding: 1.5rem; }
}

/* ========================================= */
/* USER PROFILE DROPDOWN                     */
/* ========================================= */
.user-nav-profile {
    position: relative; /* Penting agar dropdown muncul relatif terhadap elemen ini */
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.user-nav-profile:hover {
    opacity: 0.8;
}

.profile-dropdown {
    position: absolute;
    top: 120%; /* Muncul sedikit di bawah navbar */
    right: 0;
    width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1100;
}

/* Class untuk memunculkan dropdown via JS */
.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    color: var(--text-body);
    border-radius: 8px;
    transition: 0.2s;
    text-decoration: none;
    font-weight: 500;
}

.profile-dropdown a:hover {
    background: var(--bg-body);
    color: var(--primary);
}

.profile-dropdown a.logout-btn {
    border-top: 1px solid var(--border);
    margin-top: 5px;
    color: #ef4444; /* Warna merah untuk logout */
}

.profile-dropdown a.logout-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Dark mode adjustment khusus logout */
body.dark-mode .profile-dropdown a.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ========================================= */
/* PREMIUM TICKET & MODAL ADDONS             */
/* ========================================= */

/* Container Utama agar tidak terlalu lebar di layar besar */
.search-results-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* HEADER PENCARIAN (Baris Atas) */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
}

.route-info h2 { font-size: 1.4rem; color: var(--text-heading); margin: 0; }
.route-info p { color: #64748b; margin: 5px 0 0; font-size: 0.95rem; }

/* KARTU TIKET PREMIUM */
.ticket-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ticket-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.ticket-body {
    display: grid;
    grid-template-columns: 80px 1fr 180px; /* Logo | Info | Harga & Tombol */
    gap: 30px;
    align-items: center;
}

/* Info Maskapai */
.airline-info img { width: 60px; height: 60px; object-fit: contain; }
.airline-name { font-weight: 700; color: var(--text-heading); display: block; margin-top: 5px; font-size: 0.9rem; text-align: center; }

/* Timeline Penerbangan/Kereta */
.flight-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    position: relative;
}

.time-group h3 { font-size: 1.5rem; color: var(--text-heading); margin: 0; }
.time-group p { font-size: 0.9rem; color: #64748b; margin: 5px 0 0; background: #f8fafc; padding: 4px 10px; border-radius: 8px; display: inline-block; font-weight: 600; }

.timeline-divider {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-divider i {
    color: var(--text-body);
    background: white;
    padding: 0 10px;
    font-size: 0.9rem;
}

/* Harga & Tombol */
.ticket-action { text-align: right; }
.price-tag { display: block; font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.btn-select {
    background: var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}
.btn-select:hover { background: var(--secondary); box-shadow: 0 10px 20px rgba(67, 24, 255, 0.2); }

/* HISTORY CARD (Revisi) */
.history-item {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}
.history-item:hover { border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.history-left { display: flex; gap: 20px; align-items: center; }
.history-icon-box {
    width: 60px; height: 60px;
    background: #eff6ff; color: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}

/* SEARCH MODAL (Pop-up) */
.search-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.search-modal-overlay.active { opacity: 1; visibility: visible; }

.search-modal-box {
    background: white; padding: 30px; border-radius: 24px;
    width: 90%; max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px); transition: 0.3s;
}
.search-modal-overlay.active .search-modal-box { transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
    .ticket-body { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .ticket-action { text-align: center; border-top: 1px dashed #e2e8f0; padding-top: 15px; }
    .timeline-divider { display: none; } /* Sederhanakan di HP */
    .history-item { flex-direction: column; gap: 15px; text-align: center; }
    .history-left { flex-direction: column; }
}

/* ========================================= */
/* PREMIUM INDEX CARDS (JADWAL TERBARU)      */
/* ========================================= */

/* 1. Container Grid (Supaya berjejer 3 ke samping) */
.latest-schedules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsif otomatis */
    gap: 25px;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

/* 2. Card Style (Kotak Cantik) */
.index-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.index-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

/* Bagian Atas Card (Logo & Background Halus) */
.card-top {
    padding: 1.5rem;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    border-bottom: 1px dashed var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-logo {
    height: 45px;
    object-fit: contain;
}

.card-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-plane { background: #eff6ff; color: var(--primary); border: 1px solid #bfdbfe; }
.badge-train { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }

/* Bagian Tengah (Rute) */
.card-body {
    padding: 1.5rem;
    flex: 1;
}

.route-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.city-code {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-heading);
    display: block;
}

.city-name {
    font-size: 0.85rem;
    color: #64748b;
    display: block;
}

.route-arrow {
    flex: 1;
    text-align: center;
    position: relative;
    margin: 0 15px;
}
.route-arrow::before {
    content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: #e2e8f0; z-index: 0;
}
.route-arrow i {
    position: relative; z-index: 1; background: white; padding: 0 8px; color: #cbd5e1;
}

/* Bagian Bawah (Harga & Tombol) */
.card-footer {
    padding: 1rem 1.5rem;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
}

.price-display small { display: block; font-size: 0.8rem; color: #94a3b8; }
.price-display span { font-size: 1.2rem; font-weight: 800; color: var(--primary); }

.btn-card-action {
    background: var(--text-heading);
    color: white;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.index-card:hover .btn-card-action {
    background: var(--primary);
    transform: rotate(-45deg); /* Efek panah miring */
}

/* ========================================= */
/* PREMIUM INDEX CARDS (JADWAL TERBARU)      */
/* ========================================= */

/* 1. Container Grid (Supaya berjejer 3 ke samping) */
.latest-schedules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsif otomatis */
    gap: 25px;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

/* 2. Card Style (Kotak Cantik) */
.index-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.index-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

/* Bagian Atas Card (Logo & Background Halus) */
.card-top {
    padding: 1.5rem;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    border-bottom: 1px dashed var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-logo {
    height: 45px;
    object-fit: contain;
}

.card-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-plane { background: #eff6ff; color: var(--primary); border: 1px solid #bfdbfe; }
.badge-train { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }

/* Bagian Tengah (Rute) */
.card-body {
    padding: 1.5rem;
    flex: 1;
}

.route-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.city-code {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-heading);
    display: block;
}

.city-name {
    font-size: 0.85rem;
    color: #64748b;
    display: block;
}

.route-arrow {
    flex: 1;
    text-align: center;
    position: relative;
    margin: 0 15px;
}
.route-arrow::before {
    content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background: #e2e8f0; z-index: 0;
}
.route-arrow i {
    position: relative; z-index: 1; background: white; padding: 0 8px; color: #cbd5e1;
}

/* Bagian Bawah (Harga & Tombol) */
.card-footer {
    padding: 1rem 1.5rem;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
}

.price-display small { display: block; font-size: 0.8rem; color: #94a3b8; }
.price-display span { font-size: 1.2rem; font-weight: 800; color: var(--primary); }

.btn-card-action {
    background: var(--text-heading);
    color: white;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.index-card:hover .btn-card-action {
    background: var(--primary);
    transform: rotate(-45deg); /* Efek panah miring */
}

/* SKELETON LOADER GRID */
.skeleton-card {
    height: 280px;
    background: #f1f5f9;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}
.skeleton-card::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}