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

:root {
    --primary-gold: #D4AF37;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --border-color: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-gold: #FFD700;
    --shadow-gold: rgba(212, 175, 55, 0.3);
    --transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    background-attachment: fixed;
    z-index: -2;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    z-index: -1;
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.8) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-gold);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
    animation: slideDown 0.6s ease-out;
}

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

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 2px solid var(--primary-gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--shadow-gold), inset 0 0 20px rgba(212, 175, 55, 0.1);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--shadow-gold), inset 0 0 20px rgba(212, 175, 55, 0.1);
    }
    50% {
        box-shadow: 0 0 30px var(--shadow-gold), inset 0 0 30px rgba(212, 175, 55, 0.2);
    }
}

.logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

.header-text h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5), 0 2px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
    margin-bottom: 0.25rem;
}

.header-text .subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.stat-value.online {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--primary-gold), transparent);
}

/* Navigation Section */
.nav-section {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: flex;
    gap: 1rem;
    width: 100%;
}

.search-bar {
    flex: 1;
    position: relative;
    animation: slideUp 0.6s ease-out 0.1s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    background: rgba(26, 26, 26, 0.95);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.4) 0%, rgba(212, 175, 55, 0.15) 100%);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-enable:hover {
    border-color: #00ff00;
    color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

.btn-disable:hover {
    border-color: #ff4444;
    color: #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
}

/* Tabs */
.tabs-container {
    max-width: 1400px;
    margin: 1.5rem auto;
    padding: 0 2rem;
    width: 100%;
    animation: slideUp 0.6s ease-out 0.2s both;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tabs::-webkit-scrollbar {
    height: 4px;
}

.tabs::-webkit-scrollbar-track {
    background: rgba(212, 175, 55, 0.05);
    border-radius: 2px;
}

.tabs::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 2px;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.tab-btn.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* Weapons Grid */
.weapons-grid {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    animation: slideUp 0.6s ease-out 0.3s both;
}

/* Weapon Card */
.weapon-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.7) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    animation: cardAppear 0.5s ease-out backwards;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.weapon-card:nth-child(1) { animation-delay: 0.1s; }
.weapon-card:nth-child(2) { animation-delay: 0.15s; }
.weapon-card:nth-child(3) { animation-delay: 0.2s; }
.weapon-card:nth-child(n+4) { animation-delay: 0.25s; }

.weapon-card:hover {
    border-color: var(--primary-gold);
    background: linear-gradient(135deg, rgba(26, 26, 26, 1) 0%, rgba(26, 26, 26, 0.85) 100%);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4), inset 0 0 20px rgba(212, 175, 55, 0.05);
    transform: translateY(-5px);
}

.weapon-header {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.03);
}

.weapon-info {
    flex: 1;
}

.weapon-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 0.25rem;
}

.weapon-category {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weapon-toggle {
    width: 50px;
    height: 28px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2px;
    transition: var(--transition);
    position: relative;
}

.weapon-toggle.active {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
    justify-content: flex-end;
}

.weapon-toggle::after {
    content: '';
    width: 22px;
    height: 22px;
    background: var(--primary-gold);
    border-radius: 12px;
    transition: var(--transition);
}

.weapon-toggle.active::after {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

.weapon-stats {
    padding: 1rem 1.25rem;
    background: rgba(212, 175, 55, 0.02);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    font-size: 0.85rem;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 4px;
    border-left: 3px solid var(--primary-gold);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-val {
    color: var(--primary-gold);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.weapon-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.weapon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.weapon-card:hover .weapon-image img {
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(26, 26, 26, 0.95) 100%);
    border: 2px solid var(--primary-gold);
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3), 0 0 100px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
    position: relative;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-gold);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.close:hover {
    color: #ff4444;
    text-shadow: 0 0 10px #ff4444;
}

.modal-header {
    padding: 2rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.05);
}

.modal-header h2 {
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.weapon-category {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    min-height: 400px;
    overflow: hidden;
}

.modal-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-settings {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    max-height: 500px;
    padding-right: 1rem;
}

.modal-settings::-webkit-scrollbar {
    width: 6px;
}

.modal-settings::-webkit-scrollbar-track {
    background: rgba(212, 175, 55, 0.05);
    border-radius: 3px;
}

.modal-settings::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 3px;
}

.settings-group {
    background: rgba(212, 175, 55, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    padding: 1rem;
}

.settings-group h3 {
    color: var(--primary-gold);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 0.75rem;
}

.setting-item {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-item label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(212, 175, 55, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-gold);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    width: 18px;
    height: 18px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-gold);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    border: none;
    transition: var(--transition);
}

.slider::-moz-range-thumb:hover {
    width: 18px;
    height: 18px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

.value-display {
    font-size: 0.8rem;
    color: var(--primary-gold);
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 4px;
    transition: var(--transition);
    font-size: 0.85rem;
}

.checkbox-label:hover {
    background: rgba(212, 175, 55, 0.1);
}

.checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-gold);
}

.checkbox-label span {
    color: var(--text-secondary);
    font-weight: 600;
}

.checkbox:checked + span {
    color: var(--primary-gold);
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 1.5rem 2rem;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.5) 0%, rgba(26, 26, 26, 0.8) 100%);
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.separator {
    color: var(--primary-gold);
    margin: 0 0.75rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .weapons-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1.5rem;
    }

    .header-text h1 {
        font-size: 2rem;
    }

    .nav-section {
        flex-direction: column;
        padding: 0 1rem;
    }

    .action-buttons {
        width: 100%;
    }

    .btn {
        flex: 1;
    }

    .weapons-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-text h1 {
        font-size: 1.5rem;
    }

    .header-stats {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .tabs {
        gap: 0.25rem;
    }

    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .weapon-stats {
        grid-template-columns: 1fr;
    }
}
