:root {
    --primary-color: #ffd700;
    --primary-hover: #e6c200;
    --secondary-color: #0a192f;
    --accent-color: #64ffda;
    --bg-main: #020c1b;
    --bg-card: #112240;
    --text-main: #e6f1ff;
    --text-muted: #8892b0;
    --text-light: #ccd6f6;
    --success-color: #64ffda;
    --danger-color: #ff5f5f;

    --glass-bg: rgba(17, 34, 64, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

body {
    background-color: var(--bg-main);
    background-image:
        radial-gradient(circle at 15% 15%, rgba(100, 255, 218, 0.04), transparent 25%),
        radial-gradient(circle at 85% 85%, rgba(255, 215, 0, 0.04), transparent 25%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
}

main {
    flex: 1;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.navbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Outfit', sans-serif;
}

.logo i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: rgba(255, 215, 0, 0.05);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input,
select,
textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hidden {
    display: none !important;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(10, 25, 47, 0.2);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 0.8s linear infinite;
}

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

.flight-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    gap: 2rem;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.1);
}

.airline-logo {
    font-weight: 700;
    color: black;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.route-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.time-group {
    display: flex;
    flex-direction: column;
}

.time {
    font-size: 1.25rem;
    font-weight: 700;
    color: black;
}

.airport-code {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.duration-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 100px;
}

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

.line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.line::after {
    content: '✈';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    background: var(--bg-card);
    padding: 0 0.25rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.price-section {
    text-align: right;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: black;
    display: block;
    margin-bottom: 0.25rem;
}

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

footer {
    margin-top: auto;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #020c1b;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .container {
        padding: 0 1.5rem;
    }

    .flight-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .route-info {
        justify-content: center;
    }

    .price-section {
        text-align: center;
    }
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e6c200 100%);
    color: var(--secondary-color);
    border: none;
    padding: 0 2rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    min-width: 160px;
    height: 50px;
    margin-top: 1.3rem;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    filter: brightness(1.1);
}

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

.search-btn:disabled {
    opacity: 0.7;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0 5px;
}

.book-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.book-btn:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.text-black-important {
    color: black !important;
}

.hidden {
    display: none !important;
}
