@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Inter:wght@400;600;700&display=swap');

:root {
    --bg-dark: #111625; /* Deep Space Navy */
    --bg-section: #1D2436; /* Cards & Sections */
    --accent-yellow: #FFC800; /* Cyber Yellow */
    --white: #ffffff;
    --text-muted: #a0aec0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: #e5b300;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 200, 0, 0.2);
}

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

.btn-outline:hover {
    background-color: var(--accent-yellow);
    color: var(--bg-dark);
}

.btn-discord {
    background-color: #5865F2;
    color: white;
}

.btn-discord:hover {
    background-color: #4752c4;
    transform: translateY(-2px);
}

/* --- Hazard Pattern Branding --- */
.hazard-line {
    height: 4px;
    width: 100%;
    background: repeating-linear-gradient(45deg, var(--accent-yellow), var(--accent-yellow) 10px, var(--bg-dark) 10px, var(--bg-dark) 20px);
}

.hazard-border {
    position: relative;
}

.hazard-border::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: repeating-linear-gradient(45deg, var(--accent-yellow), var(--accent-yellow) 10px, var(--bg-dark) 10px, var(--bg-dark) 20px);
}

/* --- Header --- */
header {
    background-color: rgba(17, 22, 37, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
}

.logo svg {
    margin-right: 12px;
    width: 40px;
    height: 40px;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-right: 30px;
}

nav ul li a {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

nav ul li a:hover {
    color: var(--accent-yellow);
}

/* Profile Dropdown */
.profile-area {
    margin-left: 20px;
}

.user-profile {
    display: none; /* Shown via JS when logged in */
    align-items: center;
    gap: 12px;
    background: var(--bg-section);
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: var(--transition);
}

/* Tier Specific UI Accents for Profile */
.user-profile.status-bronze img { border-color: #cd7f32; }
.user-profile.status-silver img { border-color: #c0c0c0; }
.user-profile.status-gold img { border-color: var(--accent-yellow); box-shadow: 0 0 10px rgba(255, 200, 0, 0.3); }

/* Dropdown Menu Styles */
.profile-area {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 240px;
    background-color: var(--bg-section);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    z-index: 1100;
    padding: 15px 0;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
}

.user-name-large {
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
}

.user-tier-badge {
    font-size: 0.7rem;
    color: var(--accent-yellow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 10px 0;
}

.dropdown-info {
    padding: 10px 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

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

.info-item .value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}

.dropdown-item {
    width: 100%;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
}

.logout-btn {
    color: #ff4d4d;
}

.logout-btn:hover {
    background: rgba(255, 77, 77, 0.05);
    color: #ff4d4d;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-size: 0.8rem;
    font-weight: 700;
}

.user-stats {
    font-size: 0.65rem;
    color: var(--accent-yellow);
}

/* --- Hero --- */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(rgba(17, 22, 37, 0.8), rgba(17, 22, 37, 0.8)), url('https://images.unsplash.com/photo-1542296332-2e4473faf563?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

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

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

/* --- Sections --- */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-family: 'Montserrat', sans-serif;
}

.section-title span {
    color: var(--accent-yellow);
}

/* Tiers Grid */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.tier-card {
    background: var(--bg-section);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.tier-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-yellow);
}

.tier-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.tier-rate {
    font-size: 0.9rem;
    color: var(--accent-yellow);
    font-weight: 700;
    margin-bottom: 25px;
}

.tier-benefits {
    margin-top: auto;
}

.tier-benefits li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.tier-benefits li::before {
    content: "✓";
    color: var(--accent-yellow);
    margin-right: 10px;
    font-weight: bold;
}

/* Specific Tier Accents */
.tier-silver { border-color: rgba(192, 192, 192, 0.3); }
.tier-gold {
    border-color: rgba(255, 200, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 200, 0, 0.1);
}

/* Fleet & Destinations */
.fleet-grid, .dest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-section);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 30px;
}

.card h3 {
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* --- Stats --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h2 {
    font-size: 3.5rem;
    color: var(--accent-yellow);
    font-family: 'Montserrat', sans-serif;
}

.stat-item p {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Discord CTA --- */
.discord-promo {
    background: linear-gradient(135deg, #1D2436 0%, #111625 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
}

/* --- Footer --- */
footer {
    padding: 80px 0 40px;
    background-color: #0d111b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-text {
    font-size: 0.75rem;
    color: #4a5568;
    max-width: 900px;
    margin: 40px auto 0;
    text-align: center;
    line-height: 1.8;
}

/* --- Mobile --- */
.mobile-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

/* Mobile Menu Active State */
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

@media (max-width: 992px) {
    header .container {
        padding: 0 30px;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 40px 0;
        border-bottom: 2px solid var(--accent-yellow);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0 0 20px 0;
    }

    .mobile-toggle {
        display: block;
    }

    .profile-area {
        margin-left: 0;
    }

    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .btn { width: 100%; }
    .hero .container > div { flex-direction: column; }
}
