* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d0a11;
    color: #e1e1e1;
    font-family: 'Poppins', Arial, sans-serif;
    overflow-x: hidden;
}

/* Hlavní Hero Header (Pozadí obrazovky) */
.hero-header {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Zvýšeno na 100vh, když nahoře není top-bar */
    background: url('https://i.pinimg.com/1200x/b2/17/67/b21767ae46c8c139364e5e7fcb1f9778.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(13,10,17,0.7) 0%, rgba(13,10,17,0.95) 100%);
    z-index: 1;
}

.center-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* NOVÁ NAVIGACE (Zarovnání prvků nahoře) */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0; /* Mírně zvětšený padding, když je to úplně nahoře */
    position: relative;
}

/* Hamburger menu tlačítko (skryté na desktopu) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: #ac7dd9;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

/* Spojovací kontejner pro menu a status na pravé straně */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Přepínač světlého/tmavého módu */
.theme-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: #ac7dd9;
}

body.light-mode .theme-toggle {
    color: #ac7dd9;
}

body.light-mode .theme-toggle:hover {
    color: #6b3fa0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    color: #e1e1e1;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-menu a:hover, .nav-menu li.active a {
    background-color: #5c3277;
    color: #fff;
}

/* NOVÉ UMÍSTĚNÍ STATUSU (Doprava nahoru) */
.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(92, 50, 119, 0.2); /* Jemné fialové pozadí */
    border: 1px solid rgba(172, 125, 217, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
}

/* Texty uprostřed */
.hero-content {
    text-align: center;
    margin: auto 0;
    padding: 2.5rem 0;
}

.sub-title {
    font-size: 1.1rem;
    color: #ac7dd9;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.main-title {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.description {
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    color: #b3b3b3;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Tlačítka */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-play {
    background-color: #5c3277;
    color: #fff;
    box-shadow: 0 4px 15px rgba(92, 50, 119, 0.4);
}

.btn-play:hover {
    background-color: #452659;
    transform: translateY(-2px);
}

.btn-info {
    background-color: transparent;
    color: #fff;
    border: 2px solid #221a2b;
}

.btn-info:hover {
    border-color: #ac7dd9;
    transform: translateY(-2px);
}

/* Klikací karty dole */
.widgets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 3rem;
}

.widget-card {
    position: relative;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    text-decoration: none;
    border: 1px solid #221a2b;
    transition: all 0.3s ease;
}

.widget-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s ease;
}

.widget-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 10, 17, 0.75);
    z-index: 2;
    transition: background 0.3s ease;
}

.widget-content {
    position: relative;
    z-index: 3;
}

.widget-content h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.widget-content p {
    color: #a0a0a0;
    font-size: 0.85rem;
}

.widget-card:hover {
    border-color: #ac7dd9;
    box-shadow: 0 5px 15px rgba(172, 125, 217, 0.2);
}

.widget-card:hover .widget-bg {
    transform: scale(1.05);
}

.widget-card:hover .widget-overlay {
    background: rgba(92, 50, 119, 0.6);
}

/* Patička */
.main-footer {
    background-color: #08060a;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid #221a2b;
}

/* Mobilní responzivita */
@media (max-width: 1000px) {
    .main-nav { flex-direction: column; gap: 15px; }
    .nav-right { flex-direction: column; gap: 15px; }
    .main-title { font-size: 2.5rem; }
    .widgets-grid { grid-template-columns: 1fr; }
    .widget-card { height: 100px; }
}

/* Mobil */
@media (max-width: 1067px) {
    .menu-toggle {
        display: block;
    }

    .nav-right {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #120e17;
        border: 1px solid #221a2b;
        border-top: none;
        flex-direction: column;
        gap: 0;
        padding: 0;
        display: none;
        z-index: 9999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-right.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #221a2b;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        padding: 1rem 1.5rem;
        border-radius: 0;
        text-align: left;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .nav-menu a:hover,
    .nav-menu li.active a {
        background-color: rgba(92, 50, 119, 0.3);
        border-left: 3px solid #ac7dd9;
    }

    .server-status {
        margin-top: 1rem;
        padding: 1rem 1.5rem;
        border-top: 1px solid #221a2b;
        width: 100%;
        justify-content: center;
    }

    .theme-toggle {
        margin-top: 0.5rem;
        padding: 0.8rem;
        align-self: center;
    }
}

/* ==========================================
   SVĚTLÝ MÓD (LIGHT MODE)
   ========================================== */
body.light-mode {
    background-color: #f5f5f5;
    color: #1a1a1a;
}

body.light-mode .hero-overlay {
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
}


body.light-mode .nav-menu a {
    color: #1a1a1a;
}

body.light-mode .nav-menu a:hover,
body.light-mode .nav-menu li.active a {
    background-color: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

body.light-mode .server-status {
    background-color: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

body.light-mode .sub-title {
    color: #667eea;
}

body.light-mode .main-title {
    color: #fff;
}

body.light-mode .description {
    color: rgba(255, 255, 255, 0.9);
}

body.light-mode .btn-play {
    background-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

body.light-mode .btn-play:hover {
    background-color: #5568d3;
}

body.light-mode .btn-info {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

body.light-mode .btn-info:hover {
    border-color: #fff;
}

body.light-mode .widget-card {
    border-color: rgba(255, 255, 255, 0.3);
}

body.light-mode .widget-overlay {
    background: rgba(0, 0, 0, 0.4);
}

body.light-mode .widget-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

body.light-mode .widget-card:hover .widget-overlay {
    background: rgba(102, 126, 234, 0.4);
}

body.light-mode .main-footer {
    background-color: #e0e0e0;
    border-top: 1px solid #ccc;
    color: #666;
}

/* Světlý mód pro podstránky */
body.light-mode header.hero-header[style*="background: #0d0a11"] {
    background: #f5f5f5 !important;
}

body.light-mode h1[style*="color: #fff"],
body.light-mode h2[style*="color: #fff"],
body.light-mode h3[style*="color: #fff"] {
    color: #1a1a1a !important;
}

body.light-mode p[style*="color: #a0a0a0"],
body.light-mode p[style*="color: #b3b3b3"] {
    color: #666 !important;
}

body.light-mode div[style*="background: #120e17"] {
    background: #fff !important;
    border-color: #ddd !important;
}

body.light-mode label[style*="color: #fff"] {
    color: #1a1a1a !important;
}

body.light-mode input[style*="background: #0d0a11"],
body.light-mode textarea[style*="background: #0d0a11"] {
    background: #f5f5f5 !important;
    border-color: #ddd !important;
    color: #1a1a1a !important;
}

body.light-mode .status-dot {
    background-color: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

/* Světlý mód pro mobilní navigaci */
@media (max-width: 1064px) {
    body.light-mode .nav-right {
        background-color: #fff;
        border-color: #ddd;
    }

    body.light-mode .nav-menu li {
        border-bottom-color: #ddd;
    }

    body.light-mode .nav-menu a:hover,
    body.light-mode .nav-menu li.active a {
        background-color: rgba(102, 126, 234, 0.1);
        border-left-color: #667eea;
    }

    body.light-mode .server-status {
        border-top-color: #ddd;
    }

    body.light-mode .theme-toggle {
        color: #1a1a1a;
    }

    body.light-mode .theme-toggle:hover {
        color: #667eea;
    }
}

/* ==========================================
   ORDER MODAL STYLES
   ========================================== */
.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #120e17;
    border: 1px solid #221a2b;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #221a2b;
}

.modal-header h2 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ac7dd9;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #0d0a11;
    border: 1px solid #221a2b;
    border-radius: 8px;
    color: #e1e1e1;
    font-size: 1rem;
    font-family: 'Poppins', Arial, sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: #ac7dd9;
}

.form-group input[type="text"]:readonly {
    background: #1a1520;
    color: #ac7dd9;
}

.payment-methods {
    display: flex;
    gap: 1rem;
}

.payment-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: #0d0a11;
    border: 1px solid #221a2b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #ac7dd9;
}

.payment-option input[type="radio"] {
    accent-color: #ac7dd9;
}

.payment-option i {
    color: #ac7dd9;
    font-size: 1.2rem;
}

/* Light mode for order modal */
body.light-mode .modal-content {
    background: #fff;
    border-color: #ddd;
}

body.light-mode .modal-header {
    border-bottom-color: #ddd;
}

body.light-mode .modal-header h2 {
    color: #1a1a1a;
}

body.light-mode .modal-close {
    color: #666;
}

body.light-mode .modal-close:hover {
    color: #667eea;
}

body.light-mode .form-group label {
    color: #1a1a1a;
}

body.light-mode .form-group input[type="text"] {
    background: #f5f5f5;
    border-color: #ddd;
    color: #1a1a1a;
}

body.light-mode .form-group input[type="text"]:focus {
    border-color: #667eea;
}

body.light-mode .form-group input[type="text"]:readonly {
    background: #e0e0e0;
    color: #667eea;
}

body.light-mode .payment-option {
    background: #f5f5f5;
    border-color: #ddd;
}

body.light-mode .payment-option:hover {
    border-color: #667eea;
}

body.light-mode .payment-option i {
    color: #667eea;
}

/* ==========================================
   CAR TIERS STYLES
   ========================================== */
.car-tier {
    margin-bottom: 2rem;
}

.tier-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    background: #120e17;
    border: 1px solid #221a2b;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.tier-title:hover {
    border-color: #ac7dd9;
    background: #1a1520;
}

.tier-title i {
    transition: transform 0.3s ease;
}

.tier-content {
    padding: 0 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.car-card {
    background: #120e17;
    border: 1px solid #221a2b;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.car-card:hover {
    border-color: #ac7dd9;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(172, 125, 217, 0.2);
}

.car-image-placeholder {
    height: 150px;
    background: linear-gradient(135deg, #1a1520 0%, #0d0a11 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #221a2b;
}

.car-image-placeholder i {
    font-size: 3rem;
    color: #ac7dd9;
}

.car-info {
    padding: 1.5rem;
    text-align: center;
}

.car-info h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.car-price {
    color: #ac7dd9;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Light mode for car tiers */
body.light-mode .tier-title {
    background: #fff;
    border-color: #ddd;
    color: #1a1a1a;
}

body.light-mode .tier-title:hover {
    border-color: #667eea;
    background: #f5f5f5;
}

body.light-mode .car-card {
    background: #fff;
    border-color: #ddd;
}

body.light-mode .car-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

body.light-mode .car-image-placeholder {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-bottom-color: #ddd;
}

body.light-mode .car-image-placeholder i {
    color: #667eea;
}

body.light-mode .car-info h4 {
    color: #1a1a1a;
}

body.light-mode .car-price {
    color: #667eea;
}

/* ==========================================
   TAB NAVIGATION STYLES
   ========================================== */
.tab-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.tab-btn {
    background: #120e17;
    border: 1px solid #221a2b;
    color: #e1e1e1;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', Arial, sans-serif;
}

.tab-btn:hover {
    border-color: #ac7dd9;
    background: #1a1520;
}

.tab-btn.active {
    background: #5c3277;
    border-color: #ac7dd9;
    color: #fff;
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Light mode for tab navigation */
body.light-mode .tab-btn {
    background: #fff;
    border-color: #ddd;
    color: #1a1a1a;
}

body.light-mode .tab-btn:hover {
    border-color: #667eea;
    background: #f5f5f5;
}

body.light-mode .tab-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

/* Responsive tab navigation */
@media (max-width: 768px) {
    .tab-navigation {
        flex-direction: column;
        gap: 0.75rem;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
}

/* ==========================================
   FACTION CARDS STYLES
   ========================================== */
.faction-image-placeholder {
    height: 150px;
    background: linear-gradient(135deg, #1a1520 0%, #0d0a11 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #221a2b;
}

.faction-image-placeholder i {
    font-size: 3rem;
    color: #ac7dd9;
}

/* Light mode for faction cards */
body.light-mode .faction-image-placeholder {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-bottom-color: #ddd;
}

body.light-mode .faction-image-placeholder i {
    color: #667eea;
}

/* Light mode for faction card text */
body.light-mode .faction-image-placeholder + div h3 {
    color: #1a1a1a !important;
}

body.light-mode .faction-image-placeholder + div p {
    color: #666;
}

body.light-mode .faction-image-placeholder + div > div > div[style*="font-size: 1.6rem"] {
    color: #1a1a1a !important;
}

body.light-mode .faction-image-placeholder + div > div > div[style*="font-size: 1.6rem"] span {
    color: #666;
}

/* Light mode for VIP cards */
body.light-mode #vip-section .widgets-grid > div h3 {
    color: #1a1a1a !important;
}

body.light-mode #vip-section .widgets-grid > div p {
    color: #666;
}

body.light-mode #vip-section .widgets-grid > div > div > div[style*="font-size: 1.6rem"] {
    color: #1a1a1a !important;
}

body.light-mode #vip-section .widgets-grid > div > div > div[style*="font-size: 1.6rem"] span {
    color: #666;
}