/* ===== GLOBAL RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #0f3460;
    --accent: #e94560;
    --bg: #0a0a23;
    --card: #16213e;
    --text: #e0e0e0;
    --text-muted: #8892a4;
    --border: #1a1a4a;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --radius: 10px;
    --shadow: 0 8px 32px rgba(0, 0, 0, .45);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #ff6b81; }

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(15, 52, 96, .85);
    backdrop-filter: blur(12px);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.navbar .brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.navbar .brand span { color: var(--accent); }

.navbar nav a {
    color: var(--text);
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color .2s;
}

.navbar nav a:hover { color: var(--accent); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a4a 50%, #e94560 100%);
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(233,69,96,.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.hero h1 span { color: var(--accent); }

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero .btn-hero {
    display: inline-block;
    padding: .9rem 2.4rem;
    background: var(--accent);
    color: #fff;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s;
}

.hero .btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(233,69,96,.45);
    color: #fff;
}

/* ===== DESTINATIONS / PROMOS ===== */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    font-weight: 700;
}

.destinations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.dest-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

.dest-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.dest-card .thumb {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.dest-card .info {
    padding: 1rem 1.2rem;
}

.dest-card .info h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.dest-card .info p { color: var(--text-muted); font-size: .9rem; }

.promo-banner {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    text-align: center;
    padding: 2.5rem 1rem;
    margin: 0 2rem 3rem;
    border-radius: var(--radius);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.promo-banner h2 { font-size: 1.8rem; margin-bottom: .5rem; }
.promo-banner p { color: rgba(255,255,255,.8); }

/* ===== AUTH FORMS ===== */
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
    display: block;
    margin-bottom: .4rem;
    font-weight: 500;
    font-size: .95rem;
}

.form-group input {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    transition: border-color .2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn {
    display: inline-block;
    padding: .75rem 1.6rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(233,69,96,.4);
}

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

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

.auth-footer {
    text-align: center;
    margin-top: 1.2rem;
    font-size: .9rem;
    color: var(--text-muted);
}

/* ===== FLASH MESSAGES ===== */
.flashes {
    list-style: none;
    max-width: 600px;
    margin: 1rem auto;
    padding: 0 1rem;
}

.flashes li {
    padding: .8rem 1.2rem;
    border-radius: 6px;
    margin-bottom: .5rem;
    font-size: .95rem;
}

.flash-success { background: rgba(46,204,113,.15); border: 1px solid var(--success); color: var(--success); }
.flash-danger  { background: rgba(231,76,60,.15);  border: 1px solid var(--danger);  color: var(--danger); }
.flash-warning { background: rgba(243,156,18,.15); border: 1px solid var(--warning); color: var(--warning); }
.flash-info    { background: rgba(52,152,219,.15); border: 1px solid #3498db;        color: #3498db; }

/* ===== DASHBOARD ===== */
.dashboard {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
    flex: 1;
}

.dashboard .welcome {
    font-size: 1.8rem;
    margin-bottom: .5rem;
}

.dashboard .subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.dash-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.dash-card h3 { margin-bottom: .8rem; font-size: 1.15rem; }
.dash-card p  { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }

.flight-row {
    display: flex;
    justify-content: space-between;
    padding: .6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
}

.flight-row:last-child { border-bottom: none; }

/* ===== UPLOAD PAGE ===== */
.upload-wrapper {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 2rem;
    flex: 1;
}

.upload-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.upload-card h2 { margin-bottom: 1rem; }

.file-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.file-input-group input[type="file"] {
    flex: 1;
    padding: .6rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
}

.hint-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.2rem;
    margin-top: 1.5rem;
}

.hint-box h4 {
    margin-bottom: .5rem;
    color: var(--accent);
}

.hint-box pre {
    background: rgba(0,0,0,.3);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: .85rem;
    line-height: 1.5;
    color: #c8d6e5;
}

/* ===== RESULT TABLE ===== */
.result-wrapper {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
    flex: 1;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.result-table th {
    background: var(--primary);
    padding: .9rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: .95rem;
}

.result-table td {
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
}

.result-table tr:last-child td { border-bottom: none; }
.result-table tr:hover td { background: rgba(255,255,255,.03); }

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: .85rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    .navbar { flex-direction: column; gap: .5rem; }
    .file-input-group { flex-direction: column; }
}
