/* ========== ОСНОВНЫЕ СТИЛИ ========== */
:root {
    --bg-dark: #121316;
    --bg-darker: #0d0e10;
    --surface: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --text: #e0e0e0;
    --text-muted: #888;
    --orange: #ff6b00;
    --orange-light: #ff9e40;
    --amber: #ffb700;
    --green: #00e676;
    --red: #ff1744;
    --blue: #2196f3;
    --purple: #9c27b0;
    --gradient-orange: linear-gradient(135deg, #ff6b00, #ff9e40);
    --shadow-orange: 0 0 20px rgba(255, 107, 0, 0.4);
    --shadow-green: 0 0 20px rgba(0, 230, 118, 0.4);
}

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

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

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 0, 0.05), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 183, 0, 0.05), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ========== ЛОАДЕР ========== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.tank-loader {
    font-size: 4rem;
    animation: tankMove 2s ease-in-out infinite;
}

@keyframes tankMove {
    0%, 100% { transform: translateX(-20px); }
    50% { transform: translateX(20px); }
}

.loader-text {
    margin-top: 1rem;
    color: var(--orange);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ========== ШАПКА ========== */
.header {
    background: rgba(18, 19, 22, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--orange);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text .highlight {
    color: var(--orange);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--orange);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== МОБИЛЬНОЕ МЕНЮ ========== */
.mobile-menu {
    display: none;
    background: var(--bg-dark);
    padding: 1rem;
    border-bottom: 2px solid var(--orange);
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu a {
    color: var(--text);
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.mobile-menu a:hover {
    background: rgba(255, 107, 0, 0.1);
    color: var(--orange);
}

/* ========== ГЕРОЙ СЕКЦИЯ ========== */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: 
        linear-gradient(135deg, rgba(255, 107, 0, 0.1), rgba(255, 183, 0, 0.1)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90">🎮</text></svg>') no-repeat center/cover;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: glowOrange 2s ease-in-out infinite;
}

.highlight-orange {
    color: var(--orange);
    text-shadow: 0 0 20px rgba(255, 107, 0, 0.6);
}

@keyframes glowOrange {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 107, 0, 0.4); }
    50% { text-shadow: 0 0 40px rgba(255, 107, 0, 0.8); }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    min-width: 150px;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-orange);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--orange);
}

.stat-label {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ========== СЕКЦИИ ========== */
.codes-section,
.news-section,
.about-section,
.calculator-section,
.stats-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.section-title,
.page-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--orange);
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

/* ========== КОДЫ ========== */
.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.code-card {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.code-card:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-green);
    transform: translateY(-3px);
}

.code-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.code-status {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.code-status.active {
    background: rgba(0, 230, 118, 0.2);
    color: var(--green);
}

.code-status.checked {
    background: rgba(33, 150, 243, 0.2);
    color: var(--blue);
}

.code-expiry {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.code-value {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--amber);
    cursor: pointer;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.code-value:hover {
    background: rgba(0, 0, 0, 0.5);
    color: var(--orange);
}

.copy-icon {
    font-size: 1rem;
    margin-left: 0.5rem;
}

.code-reward {
    margin-top: 1rem;
    color: var(--text);
}

.code-source {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ========== НОВОСТИ ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.news-card:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-orange);
    transform: translateY(-3px);
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    margin-bottom: 0.5rem;
    color: var(--orange);
}

.news-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.news-link {
    color: var(--orange);
    text-decoration: none;
    transition: color 0.3s;
}

.news-link:hover {
    color: var(--orange-light);
}

/* ========== О ПРОЕКТЕ ========== */
.about-content {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.about-content h2 {
    color: var(--orange);
    margin-bottom: 1rem;
}

.about-content ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.about-content li {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.about-content li:hover {
    background: rgba(255, 107, 0, 0.1);
}

/* ========== ФОРМЫ ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: var(--shadow-orange);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* ========== КАЛЬКУЛЯТОР ========== */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.calculator-form,
.calculator-results {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
}

.calculate-btn,
.search-btn {
    background: var(--gradient-orange);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.calculate-btn:hover,
.search-btn:hover {
    box-shadow: var(--shadow-orange);
    transform: translateY(-2px);
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.result-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--orange);
}

.result-breakdown {
    margin-top: 1.5rem;
}

.income-bar {
    margin-top: 1.5rem;
}

.bar-label {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.bar-container {
    height: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--gradient-orange);
    border-radius: 10px;
    transition: width 0.5s;
    width: 0%;
}

/* ========== СТАТИСТИКА ========== */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-form .form-control {
    flex: 1;
}

.stats-result {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
}

.stats-info {
    margin-top: 3rem;
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
}

.stats-info h3 {
    color: var(--orange);
    margin-bottom: 1rem;
}

.stats-info ul {
    list-style: none;
    padding: 0;
}

.stats-info li {
    margin: 0.5rem 0;
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-dark);
    border: 2px solid var(--orange);
    border-radius: 10px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalIn 0.3s ease-out;
}

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

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--orange);
}

/* ========== ФУТЕР ========== */
.footer {
    background: var(--bg-darker);
    border-top: 2px solid var(--orange);
    margin-top: 3rem;
    padding: 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--orange);
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--orange);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card,
.code-card,
.stat-card {
    animation: fadeInUp 0.6s ease-out;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
    }
    
    .stat-card {
        width: 100%;
    }
    
    .codes-grid {
        grid-template-columns: 1fr;
    }
}
