html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #0f1e35;
}

.headline-font {
    font-family: "Playfair Display", serif;
}

.nav-scrolled {
    background: rgba(15, 30, 53, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 35px rgba(4, 9, 19, 0.28);
}

.cta-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.cta-lift:hover {
    transform: translateY(-2px);
}

.grid-fade {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero-orb {
    background:
        radial-gradient(circle at top, rgba(0, 214, 143, 0.25), transparent 45%),
        radial-gradient(circle at 20% 40%, rgba(255, 255, 255, 0.08), transparent 35%);
}

.hero-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px;
    max-width: 480px;
    margin: 40px 0 0;
}

.field-group+.field-group {
    margin-top: 18px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
}

.field-group input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: #ffffff;
    color: #0f1e35;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field-group input:focus {
    border-color: #00d68f;
    box-shadow: 0 0 0 4px rgba(0, 214, 143, 0.18);
}

.field-group input::placeholder {
    color: #9aa5b4;
}

.field-hint {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.48);
    min-height: 18px;
}

.input-with-badge {
    position: relative;
}

.input-with-badge input {
    padding-right: 160px;
}

.badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    white-space: nowrap;
}

.badge-green {
    background: rgba(0, 214, 143, 0.15);
    color: #00d68f;
}

.badge-gray {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.72);
}

.badge-red {
    background: rgba(255, 100, 100, 0.15);
    color: #ff8b8b;
}

.hidden {
    display: none;
}

.trust-line {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.44);
    margin-top: 12px;
}

.mode-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: none;
}

.mode-tab.active {
    background: rgba(0, 214, 143, 0.15);
    color: #00d68f;
    font-weight: 500;
}

.autocomplete-wrapper {
    position: relative;
}

.airport-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #1a2f4a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.airport-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.airport-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.airline-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #1a2f4a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.airline-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.airline-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.airline-code {
    font-weight: 700;
    color: #00d68f;
    min-width: 36px;
    font-size: 14px;
}

.airline-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-align: right;
}

.airport-iata {
    font-weight: 700;
    color: #00d68f;
    min-width: 36px;
    font-size: 14px;
}

.airport-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.airport-country {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 6px;
}

.flight-confirmation-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 214, 143, 0.3);
    border-radius: 16px;
    padding: 24px;
}

.fc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.fc-flight {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.fc-route {
    font-size: 18px;
    color: #00d68f;
    font-weight: 600;
}

.fc-details {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.fc-question {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.fc-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-primary {
    background: #00d68f;
    color: #0f1e35;
    border: none;
    border-radius: 50px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 12px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
}

.flight-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flight-list-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.15s;
    width: 100%;
    text-align: left;
}

.flight-list-card:hover {
    border-color: #00d68f;
}

.flight-list-card-fallback {
    margin-top: 10px;
    border-style: dashed;
    opacity: 0.9;
}

.flight-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.flight-list-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    color: #ffffff;
}

.flight-list-number {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.flight-list-airline {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.76);
}

.flight-list-meta {
    margin-top: 7px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.62);
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.flight-list-status-row {
    margin-top: 9px;
}

.flight-list-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: rgba(255, 255, 255, 0.04);
}

.flight-list-submeta {
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.52);
}

.flight-list-submeta strong {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

.flight-list-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    flex-shrink: 0;
}

.flight-list-status-on-time {
    color: #00d68f;
    border-color: rgba(0, 214, 143, 0.34);
    background: rgba(0, 214, 143, 0.12);
}

.flight-list-status-delayed {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.34);
    background: rgba(245, 158, 11, 0.12);
}

.flight-list-status-cancelled {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.34);
    background: rgba(255, 107, 107, 0.12);
}

.flight-list-card-arrived {
    border-color: rgba(0, 214, 143, 0.22);
}

.flight-list-card-cancelled {
    border-color: rgba(255, 107, 107, 0.22);
}

.flight-list-card-delayed {
    border-color: rgba(245, 158, 11, 0.22);
}

.flight-list-empty,
.flight-list-error,
.flight-list-loading {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.flight-list-spinner {
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    border: 3px solid rgba(255, 255, 255, 0.14);
    border-top-color: #00d68f;
    animation: spin 0.85s linear infinite;
    margin: 0 auto 12px;
}

.flight-list-action {
    margin-top: 12px;
    width: 100%;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 12px;
    font-size: 14px;
    cursor: pointer;
}

.text-red {
    color: #ff6b6b;
}

.text-green {
    color: #00d68f;
}

@keyframes shake {

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

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

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

.shake {
    animation: shake 0.3s ease;
}