:root {
    /* Brand Premium Palette - Black & Gold */
    --brand-gold: #d4af37;
    --brand-gold-light: #f1dfa1;
    --brand-black: #0a0a0a;
    --deep-black: #000000;
    --surface-dark: #121212;
    --surface-light: #1e1e1e;

    /* System Colors */
    --accent-success: #00c853;
    --accent-error: #ff3d00;
    --ice-white: rgba(255, 255, 255, 0.95);

    /* Premium Text Colors - Adjusted for Dark Theme */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    /* System Config */
    --header-height: 72px;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Premium Shadows - Softer for Dark Theme */
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.9);

    --glass-bg: rgba(18, 18, 18, 0.85);
    --glass-border: rgba(212, 175, 55, 0.15);
}

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

body {
    background-color: var(--brand-black);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-light));
    color: var(--brand-black);
    padding: 16px 32px;
    min-height: 54px;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--brand-gold);
    color: var(--brand-gold);
    padding: 14px 30px;
    min-height: 54px;
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-secondary:hover {
    background: var(--brand-gold);
    color: var(--brand-black);
}

/* Premium Components */
.card-premium {
    background: var(--surface-dark);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-premium {
    background: #000;
    padding: 6px;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    height: 40px;
}

/* --- Unified Navigation System --- */

/* Top Navigation (Desktop/Tablet) */
.top-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    height: 80px;
    padding: 0 8%;
    align-items: center;
    justify-content: space-between;
}

.top-nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.top-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top-nav-link:hover,
.top-nav-link.active {
    color: var(--brand-gold);
}

/* Favorites Modal Styles */
#favorites-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 9000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fav-modal-content {
    background: var(--surface-dark);
    width: 100%;
    max-width: 400px;
    border-radius: 25px;
    border: 1px solid var(--brand-gold);
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.fav-modal-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: var(--transition);
}

.fav-modal-item:hover {
    background: rgba(212, 175, 55, 0.05);
}

.fav-modal-item img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

/* Bottom Navigation (Mobile App Interface) */
.bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    z-index: 2000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    flex: 1;
}

.nav-item i {
    font-size: 1.3rem;
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--brand-gold);
}

.nav-item.active i {
    transform: translateY(-2px);
}

/* Responsive Layout Handling */
@media (min-width: 769px) {
    .top-nav {
        display: flex;
    }

    .bottom-nav {
        display: none;
    }

    body {
        padding-top: 80px;
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
        padding-top: 0;
    }
}

/* Content Container Wrapper */
.main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 5%;
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Developer Credit Visibility */
.developer-credit {
    display: none;
}

@media (min-width: 769px) {
    .developer-credit {
        display: block;
        margin-top: 20px;
    }
}

/* Localization & Location UI */
.lang-toggle {
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.75rem;
    font-weight: 800;
}

.lang-btn {
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.lang-btn.active {
    color: var(--brand-gold);
}

.location-modal {
    background: rgba(10, 10, 10, 0.95) !important;
    max-width: 400px;
    text-align: center;
}

.location-modal h2 {
    color: var(--brand-gold);
    margin-bottom: 25px;
    font-weight: 900;
}

.input-pin {
    width: 100%;
    background: #111;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 15px;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 5px;
    font-weight: 900;
    margin-bottom: 20px;
}