/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --rust-primary: #cd412b;
    --rust-secondary: #8f2527;
    --rust-dark: #232323;
    --rust-darker: #1a1a1a;
    --rust-light: #e6e6e8;
    --rust-text: #c5bbb4;
    --rust-accent: #738d45;
    --rust-online: #738d45;
    --rust-offline: #cd412b;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(135deg, #cd412b 0%, #8f2527 100%);
    --gradient-dark: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    --gradient-accent: linear-gradient(135deg, #738d45 0%, #5a6d35 100%);
}

body {
    font-family: 'Roboto Slab', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--rust-text);
    background-color: var(--rust-dark);
    overflow-x: hidden;
    font-size: 16px;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, rgba(23, 23, 23, 0.9) 0%, rgba(35, 35, 35, 0.85) 100%) !important;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(205, 65, 43, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(23, 23, 23, 0.98) 0%, rgba(35, 35, 35, 0.95) 100%) !important;
    box-shadow: 0 8px 32px rgba(205, 65, 43, 0.2);
    border-bottom-color: rgba(205, 65, 43, 0.4);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rust-primary) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(205, 65, 43, 0.3);
}

.navbar-brand:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(205, 65, 43, 0.6);
}

.navbar-brand i {
    font-size: 2rem;
    animation: fireFlicker 2s ease-in-out infinite;
}

@keyframes fireFlicker {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(205, 65, 43, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(205, 65, 43, 0.8));
    }
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(230, 230, 232, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    color: var(--rust-light) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--rust-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: 0;
    height: 2px;
    background: var(--rust-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: calc(100% - 2rem);
}

/* Hero Section (Face) */
.face {
    min-height: 100vh;
    position: relative;
    background-position: center;
    background-size: cover;
    align-items: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.fullvideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.fullvideo video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.face-body {
    align-items: center;
    display: flex;
    background: linear-gradient(rgba(6, 0, 10, 0.5), rgba(6, 0, 10, 0.75), #06000a);
    z-index: 2;
    flex-grow: 1;
    flex-shrink: 0;
    padding: 3rem 1.5rem;
    position: relative;
}

.face-title.one {
    font-size: 4rem;
    font-weight: 700;
    color: var(--rust-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(205, 65, 43, 0.5),
                 0 0 60px rgba(205, 65, 43, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 30px rgba(205, 65, 43, 0.5),
                     0 0 60px rgba(205, 65, 43, 0.3);
    }
    to {
        text-shadow: 0 0 40px rgba(205, 65, 43, 0.7),
                     0 0 80px rgba(205, 65, 43, 0.5),
                     0 0 100px rgba(205, 65, 43, 0.3);
    }
}

.face-subtitle {
    font-size: 1.5rem;
    color: var(--rust-text);
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.wipe-info {
    font-size: 1.1rem;
    color: var(--rust-text);
    margin: 1rem 0 2rem;
    padding: 0.75rem 1.5rem;
    background: rgba(205, 65, 43, 0.1);
    border-left: 3px solid var(--rust-primary);
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: wipeGlow 3s ease-in-out infinite;
}

@keyframes wipeGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(205, 65, 43, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(205, 65, 43, 0.6);
    }
}

.hero-stats {
    margin: 2rem 0;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(205, 65, 43, 0.1) 0%, rgba(143, 37, 39, 0.05) 100%);
    border-radius: 0;
    border: 2px solid rgba(205, 65, 43, 0.3);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(205, 65, 43, 0.2) 0%, transparent 70%);
    animation: statRotate 10s linear infinite;
}

@keyframes statRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.stat-box:hover {
    transform: scale(1.05);
    border-color: var(--rust-primary);
    box-shadow: 0 10px 30px rgba(205, 65, 43, 0.4);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--rust-primary);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(205, 65, 43, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--rust-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.hero-buttons {
    margin-top: 2rem;
}

.btn {
    border-radius: 0 !important;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e04a32 0%, #a02a2c 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(205, 65, 43, 0.5);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-outline-light::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: -1;
}

.btn-outline-light:hover::before {
    width: 300%;
    height: 300%;
}

.btn-outline-light:hover {
    color: var(--rust-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-success {
    background: var(--gradient-accent);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-success:hover::before {
    left: 100%;
}

.btn-success:hover {
    background: linear-gradient(135deg, #8bc53f 0%, #6a9d2f 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(115, 141, 69, 0.5);
}

.btn-outline-primary {
    border: 2px solid var(--rust-primary);
    color: var(--rust-primary);
}

.btn-outline-primary:hover {
    background: var(--rust-primary);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #555 0%, #333 100%);
    border: none;
    color: #999;
    cursor: not-allowed;
}

.btn-secondary:disabled {
    opacity: 0.6;
}

/* Section Styles */
.section {
    padding: 5rem 1.5rem;
    display: block;
}

.section-title {
    color: var(--rust-primary);
    margin-bottom: 2em;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    width: 100%;
    text-shadow: 0 0 20px rgba(205, 65, 43, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    animation: titleUnderline 2s ease-in-out infinite;
}

@keyframes titleUnderline {
    0%, 100% {
        width: 100px;
    }
    50% {
        width: 150px;
    }
}

/* Servers Section */
.servers {
    background-color: transparent;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(230, 230, 232, 0.1);
}

.tabs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 2rem;
}

.spoon {
    padding: 0.75rem 2rem;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    display: inline-flex;
    border: 0;
    cursor: default;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.6rem;
    position: relative;
    overflow: hidden;
}

.spoon.is-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 5px 20px rgba(205, 65, 43, 0.4);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.spoon.is-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: spoonShine 3s linear infinite;
}

@keyframes spoonShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.one-server {
    background: var(--gradient-dark);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(205, 65, 43, 0.2);
}

.one-server::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(205, 65, 43, 0.1), transparent);
    transition: left 0.5s ease;
}

.one-server:hover::before {
    left: 100%;
}

.one-server:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(205, 65, 43, 0.3);
    border-color: var(--rust-primary);
}

.Online {
    border-bottom: 3px solid var(--rust-online);
    position: relative;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.Offline {
    border-bottom: 3px solid var(--rust-offline);
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.Offline > img.server-header {
    opacity: 0.3;
}

.server-header {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.one-server > h2 {
    margin-top: 1em;
    font-size: 1.5rem;
    padding: 1rem 1.5rem 0.5rem;
    color: var(--rust-light);
    border-bottom: 1px solid rgba(230, 230, 232, 0.1);
}

.one-server > p {
    padding: 1rem 1.5rem;
    color: var(--rust-text);
    border-bottom: 1px solid rgba(230, 230, 232, 0.1);
    margin: 0;
}

.players {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--rust-text);
    font-weight: 600;
}

.progress {
    margin: 0 1.5rem 1.5rem;
    height: 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(205, 65, 43, 0.2);
}

.progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(205, 65, 43, 0.3), transparent);
    animation: progressShine 3s infinite;
}

@keyframes progressShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.progress-bar {
    background: linear-gradient(90deg, #738d45 0%, #8bc53f 100%);
    border-radius: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(115, 141, 69, 0.5);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

.server-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.server-actions .btn {
    flex: 1;
}

/* Features Section */
.features {
    background-color: var(--rust-dark);
}

.feature-card {
    background: var(--gradient-dark);
    padding: 2.5rem;
    border-radius: 0;
    border: 1px solid rgba(205, 65, 43, 0.2);
    text-align: center;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(205, 65, 43, 0.3);
    border-color: var(--rust-primary);
    background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--rust-primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotateY(360deg);
    filter: drop-shadow(0 0 20px rgba(205, 65, 43, 0.6));
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--rust-light);
}

.feature-card p {
    color: var(--rust-text);
    margin: 0;
}

/* Rules Section */
.rules {
    background-color: var(--rust-darker);
    border-bottom: 1px solid rgba(230, 230, 232, 0.1);
}

.rule-card {
    background: var(--gradient-dark);
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--rust-primary);
    border-left: 1px solid rgba(205, 65, 43, 0.2);
    border-right: 1px solid rgba(205, 65, 43, 0.2);
    border-bottom: 1px solid rgba(205, 65, 43, 0.2);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(205, 65, 43, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rule-card:hover::before {
    opacity: 1;
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(205, 65, 43, 0.3);
    border-top-width: 6px;
}

.rule-icon {
    font-size: 3.5rem;
    color: var(--rust-primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(205, 65, 43, 0.5));
}

.rule-card:hover .rule-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(205, 65, 43, 0.8));
}

.rule-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--rust-light);
}

.rule-card ul {
    list-style: none;
    padding: 0;
}

.rule-card ul li {
    padding: 0.5rem 0;
    color: var(--rust-text);
    position: relative;
    padding-left: 1.5rem;
}

.rule-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--rust-primary);
    font-weight: bold;
}

/* Store Section */
.store {
    background-color: var(--rust-dark);
    border-bottom: 1px solid rgba(230, 230, 232, 0.1);
}

.store-item {
    background: var(--gradient-dark);
    padding: 2.5rem;
    border-radius: 0;
    border: 2px solid rgba(205, 65, 43, 0.3);
    text-align: center;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.store-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(205, 65, 43, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.store-item:hover::before {
    opacity: 1;
}

.store-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(205, 65, 43, 0.4);
    border-color: var(--rust-primary);
    border-width: 3px;
}

.store-icon {
    font-size: 4rem;
    color: var(--rust-primary);
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(205, 65, 43, 0.6));
}

.store-item:hover .store-icon {
    transform: scale(1.3) rotateZ(10deg);
    filter: drop-shadow(0 0 30px rgba(205, 65, 43, 1));
}

.store-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--rust-light);
}

.store-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rust-primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(205, 65, 43, 0.5);
    position: relative;
    display: inline-block;
}

.store-price::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.store-item:hover .store-price::after {
    width: 100%;
}

.store-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    text-align: left;
}

.store-features li {
    padding: 0.5rem 0;
    color: var(--rust-text);
    position: relative;
    padding-left: 1.5rem;
}

.store-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--rust-online);
    font-weight: bold;
}

/* Discord/Community Section */
.community {
    background-color: var(--rust-darker);
    border-bottom: 1px solid rgba(230, 230, 232, 0.1);
}

.members {
    font-size: 3rem;
    border-bottom: 1px solid rgba(230, 230, 232, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.members:hover {
    transform: scale(1.05);
}

.members > span {
    font-size: 1rem;
    display: block;
    color: var(--rust-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.members#discord {
    color: var(--rust-online);
    padding-top: 10px;
    text-shadow: 0 0 20px rgba(115, 141, 69, 0.5);
}

.members#discord::before {
    content: '👥';
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 2rem;
    opacity: 0.3;
}

.members#online {
    color: #5865F2;
    text-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
}

.members#online::before {
    content: '🟢';
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 1.5rem;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.discord-stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
    position: relative;
}

.discord-stat-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.members:hover .discord-stat-number::after {
    transform: scaleX(1);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.discord-invite {
    margin-top: 2rem;
}

.discord-invite iframe {
    border-radius: 0;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--rust-dark) 0%, var(--rust-darker) 100%);
    color: var(--rust-text);
    padding: 3rem 0 1rem;
    border-top: 2px solid rgba(205, 65, 43, 0.3);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rust-primary);
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
}

.footer h5 {
    color: var(--rust-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--rust-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--rust-primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.3rem;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.footer-social a:hover::before {
    width: 200%;
    height: 200%;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #e04a32 0%, #a02a2c 100%);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 25px rgba(205, 65, 43, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--rust-text);
    font-size: 0.9rem;
    margin-top: 2rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* Modal Styles */
.modal-content {
    background: var(--modal-bg, #f5f5f5);
    border-radius: 0;
    border-top: 3px solid var(--rust-primary);
    color: var(--modal-text, #2c3e50);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    border-bottom: 2px solid var(--modal-border, #e0e0e0);
    background: linear-gradient(135deg, rgba(205, 65, 43, 0.05) 0%, transparent 100%);
}

.modal-title {
    color: var(--modal-heading, #cd412b);
    font-weight: 700;
}

.modal-title i {
    color: var(--modal-heading, #cd412b);
    margin-right: 0.5rem;
}

.btn-close {
    filter: none;
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

.modal-body {
    color: var(--modal-text, #2c3e50);
    max-height: 70vh;
    overflow-y: auto;
    background: var(--modal-bg, #f5f5f5);
}

.modal-body h6 {
    color: var(--modal-heading, #cd412b);
    font-weight: 700;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--modal-border, #e0e0e0);
}

.modal-body h6 i {
    margin-right: 0.5rem;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
}

.modal-body ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.modal-body ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--modal-heading, #cd412b);
    font-weight: bold;
}

.modal-body .alert {
    background: rgba(205, 65, 43, 0.1);
    border: 1px solid var(--modal-heading, #cd412b);
    border-radius: 4px;
    color: var(--modal-text, #2c3e50);
}

.modal-body .alert a {
    color: var(--modal-heading, #cd412b);
    text-decoration: none;
    font-weight: 600;
}

.modal-body .alert a:hover {
    text-decoration: underline;
}

.modal-footer {
    border-top: 2px solid var(--modal-border, #e0e0e0);
    background: var(--modal-bg, #f5f5f5);
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: var(--rust-light);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--rust-primary);
    color: var(--rust-light);
    box-shadow: none;
}

kbd {
    background: var(--rust-primary);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .face-title.one {
        font-size: 2.5rem;
    }

    .face-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .server-actions {
        flex-direction: column;
    }

    .server-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .face-title.one {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .discord-stat-number {
        font-size: 2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--rust-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--rust-primary);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rust-secondary);
}

/* Lazy Load */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}


/* Main Server Card - Enhanced Design */
.main-server {
    background: var(--gradient-dark);
    border: 3px solid rgba(205, 65, 43, 0.5);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(205, 65, 43, 0.3);
}

.main-server::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-server:hover::before {
    opacity: 0.15;
}

.main-server h2 {
    font-size: 2rem !important;
    color: var(--rust-primary);
    text-shadow: 0 0 20px rgba(205, 65, 43, 0.5);
    margin-top: 1.5rem !important;
}

.main-server > p {
    font-size: 1.1rem;
    padding: 1.5rem 2rem;
}

.main-server .players {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 1.5rem 2rem;
}

.main-server .player-count {
    color: var(--rust-primary);
    font-size: 1.8rem;
    text-shadow: 0 0 15px rgba(205, 65, 43, 0.5);
}

.main-server .max-players {
    font-size: 1.5rem;
}

.main-server .progress {
    height: 10px !important;
    margin: 0 2rem 2rem;
}

.main-server .server-actions {
    padding: 0 2rem 2rem;
}

.main-server .server-actions .btn {
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

/* Store buttons clickable */
.store-item .btn {
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.store-item .btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(205, 65, 43, 0.4);
}

.store-item .btn i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.store-item .btn:hover i {
    transform: scale(1.2);
}

/* Server actions enhanced */
.server-actions .btn {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
}

/* Hosting Banner */
.hosting-banner {
    background: linear-gradient(135deg, rgba(115, 141, 69, 0.1) 0%, rgba(115, 141, 69, 0.05) 100%);
    border: 2px solid rgba(115, 141, 69, 0.3);
    padding: 2rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.hosting-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(115, 141, 69, 0.1) 0%, transparent 70%);
    animation: hostingGlow 10s linear infinite;
}

@keyframes hostingGlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hosting-banner h3 {
    color: var(--rust-online);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.hosting-banner h3 i {
    margin-right: 0.5rem;
}

.hosting-banner p {
    color: var(--rust-text);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.hosting-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hosting-features li {
    color: var(--rust-text);
    font-size: 0.95rem;
}

.hosting-features li i {
    color: var(--rust-online);
    margin-right: 0.5rem;
}

/* Privilege Tiers */
.privilege-tier {
    background: rgba(205, 65, 43, 0.05);
    border-left: 3px solid var(--rust-primary);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.privilege-tier h6 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: none !important;
}

.privilege-tier .compact-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.privilege-tier .compact-list li {
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    font-size: 0.9rem;
}

.privilege-tier .compact-list li::before {
    content: '▸';
    left: 0;
}

/* VK Widget */
.vk-widget {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 0;
    border: 1px solid rgba(205, 65, 43, 0.2);
}

/* VK News */
.vk-news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vk-news-item {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--rust-primary);
    padding: 1rem;
    transition: all 0.3s ease;
}

.vk-news-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-left-width: 5px;
    transform: translateX(5px);
}

.vk-news-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 1px solid rgba(205, 65, 43, 0.2);
}

.vk-news-content {
    color: var(--rust-text);
}

.vk-news-text {
    margin-bottom: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.vk-news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(205, 65, 43, 0.2);
}

.vk-news-date {
    color: var(--rust-text);
    font-size: 0.9rem;
    opacity: 0.7;
}

.vk-news-link {
    color: var(--rust-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vk-news-link:hover {
    color: var(--rust-light);
    transform: translateX(5px);
}

.vk-news-link i {
    margin-right: 0.5rem;
}

/* Info button */
.btn-info {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    border: none;
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #6875F5 0%, #5562D4 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   💳 СПОСОБЫ ОПЛАТЫ
   ═══════════════════════════════════════════════════════════ */

.payment-methods {
    background: rgba(35, 35, 35, 0.5);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(205, 65, 43, 0.2);
}

.payment-methods h4 {
    color: var(--rust-text);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.payment-card {
    background: rgba(35, 35, 35, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid rgba(205, 65, 43, 0.3);
    transition: all 0.3s ease;
    height: 100%;
}

.payment-card:hover {
    border-color: var(--rust-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(205, 65, 43, 0.3);
}

.payment-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--rust-primary), #e74c3c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-icon i {
    font-size: 2rem;
    color: white;
}

.payment-card h5 {
    color: var(--rust-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.payment-card p {
    color: var(--rust-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 40px;
}

.payment-card .btn {
    margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════
   📊 СТАТИСТИКА СООБЩЕСТВА (Discord + VK)
   ═══════════════════════════════════════════════════════════ */

.community-stats {
    background: rgba(35, 35, 35, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(205, 65, 43, 0.2);
    transition: all 0.3s ease;
}

.community-stats:hover {
    border-color: var(--rust-primary);
    box-shadow: 0 5px 20px rgba(205, 65, 43, 0.2);
}

.community-stats h5 {
    color: var(--rust-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.community-stats h5 i {
    margin-right: 0.5rem;
}

.community-stats .members {
    padding: 1rem;
}

.community-stats .discord-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rust-accent);
    text-shadow: 0 0 10px rgba(115, 141, 69, 0.5);
}

.community-stats .discord {
    font-size: 0.9rem;
    color: var(--rust-text);
    opacity: 0.8;
}


/* ═══════════════════════════════════════════════════════════
   ПЛАВАЮЩИЙ БЛОК С ПРОМОКОДОМ
   ═══════════════════════════════════════════════════════════ */

.promo-float {
    position: fixed;
    bottom: 20px;
    right: -400px;
    width: 320px;
    background: linear-gradient(135deg, var(--rust-primary) 0%, #a33424 100%);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.promo-float.show {
    right: 20px;
}

.promo-float::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: promoShine 3s infinite;
}

@keyframes promoShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.promo-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.promo-close:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: rotate(90deg);
}

.promo-content {
    padding: 25px 20px;
    text-align: center;
    position: relative;
}

.promo-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 10px;
    animation: promoBounce 2s infinite;
}

@keyframes promoBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.promo-content h4 {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.promo-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin-bottom: 15px;
}

.promo-content p strong {
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: 700;
}

.promo-code-box {
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.promo-code-box code {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    flex: 1;
}

.promo-copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.promo-copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.promo-copy-btn.copied {
    background: #4caf50;
    transform: scale(1.2);
}

.btn-promo {
    background: white;
    color: var(--rust-primary);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.btn-promo:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--rust-primary);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .promo-float {
        width: calc(100% - 40px);
        right: -100%;
        bottom: 10px;
    }
    
    .promo-float.show {
        right: 20px;
    }
}

/* ═══════════════════════════════════════════════════════════
   СЕКЦИЯ ДЛЯ СТРИМЕРОВ
   ═══════════════════════════════════════════════════════════ */

.streamers {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 80px 0;
}

.streamer-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(205, 65, 43, 0.3);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.streamer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(205, 65, 43, 0.3);
    border-color: var(--rust-primary);
}

.streamer-icon {
    font-size: 4rem;
    color: var(--rust-primary);
    margin-bottom: 20px;
    animation: streamPulse 2s infinite;
}

@keyframes streamPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.streamer-card h3 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.streamer-card > p {
    color: var(--rust-text);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.streamer-benefits {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--rust-text);
    font-size: 1rem;
    padding: 8px 0;
}

.benefit-item i {
    font-size: 1.3rem;
    min-width: 25px;
}

.streamer-platforms {
    margin: 30px 0;
}

.streamer-platforms p {
    color: white;
    font-size: 1rem;
    margin-bottom: 15px;
}

.platform-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.platform-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.platform-badge.youtube {
    background: #ff0000;
    color: white;
}

.platform-badge.twitch {
    background: #9146ff;
    color: white;
}

.platform-badge.vk {
    background: #0077ff;
    color: white;
}

.platform-badge.other {
    background: var(--rust-accent);
    color: white;
}

.streamer-requirements {
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--rust-primary);
    border-radius: 8px;
    padding: 15px 20px;
    margin: 25px 0;
    text-align: left;
}

.streamer-requirements p {
    margin-bottom: 10px;
}

.streamer-requirements ul {
    margin: 0;
    padding-left: 20px;
}

.streamer-requirements li {
    margin-bottom: 5px;
}

/* Адаптив */
@media (max-width: 768px) {
    .streamer-card {
        padding: 30px 20px;
    }
    
    .streamer-icon {
        font-size: 3rem;
    }
    
    .streamer-card h3 {
        font-size: 1.5rem;
    }
    
    .platform-icons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .platform-badge {
        justify-content: center;
    }
}


/* ═══════════════════════════════════════════════════════════
   КАРТОЧКИ СТРИМОВ
   ═══════════════════════════════════════════════════════════ */

.stream-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(205, 65, 43, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(205, 65, 43, 0.3);
    border-color: var(--rust-primary);
}

.stream-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stream-platform {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.stream-platform.youtube {
    background: #ff0000;
    color: white;
}

.stream-platform.twitch {
    background: #9146ff;
    color: white;
}

.stream-name {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.stream-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 соотношение */
    height: 0;
    overflow: hidden;
    background: #000;
}

.stream-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.stream-description {
    padding: 15px 20px;
    color: var(--rust-text);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stream-footer {
    padding: 15px 20px;
    text-align: center;
}

.btn-stream {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-stream:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--rust-primary);
    color: white;
    transform: translateY(-2px);
}

/* Анимация появления стримов */
@keyframes streamFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stream-card {
    animation: streamFadeIn 0.5s ease-out;
}

/* Индикатор LIVE */
.stream-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #ff0000;
    color: white;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.stream-live-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: liveDot 1.5s infinite;
}

@keyframes liveDot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Адаптив */
@media (max-width: 768px) {
    .stream-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .stream-name {
        font-size: 1rem;
    }
}


/* ═══════════════════════════════════════════════════════════
   СТРАНИЦА НОВОСТЕЙ
   ═══════════════════════════════════════════════════════════ */

body {
    background: var(--rust-dark);
}

.news-hero {
    background: linear-gradient(135deg, var(--rust-primary) 0%, #a33424 100%);
    padding: 120px 0 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L100 100M100 0L0 100" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.news-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.news-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
}

.news-filters {
    background: linear-gradient(180deg, rgba(35, 35, 35, 0.95) 0%, rgba(35, 35, 35, 0.98) 100%);
    padding: 25px 0;
    position: sticky;
    top: 70px;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(205, 65, 43, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.filter-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: var(--rust-text);
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--rust-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(205, 65, 43, 0.3);
}

.filter-btn.active {
    background: var(--rust-primary);
    border-color: var(--rust-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(205, 65, 43, 0.5);
}

.news-section {
    padding: 60px 0;
    min-height: 60vh;
    background: var(--rust-dark);
}

.news-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--rust-primary);
}

.news-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #f5f5f5;
}

.news-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.news-category.rust-news {
    background: #738d45;
    color: white;
}

.news-category.errors {
    background: #ff6b6b;
    color: white;
}

.news-category.contests {
    background: #ffd700;
    color: #000;
}

.news-category.server-news {
    background: #4a90e2;
    color: white;
}

.news-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.news-date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-title {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.btn-news {
    background: transparent;
    color: var(--rust-primary);
    border: 2px solid var(--rust-primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}

.btn-news:hover {
    background: var(--rust-primary);
    color: white;
    transform: translateX(5px);
}

.no-news {
    text-align: center;
    padding: 80px 20px;
    color: var(--rust-text);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.no-news i {
    font-size: 4rem;
    color: rgba(205, 65, 43, 0.3);
    margin-bottom: 20px;
}

.no-news p {
    font-size: 1.2rem;
    color: #c5bbb4;
}

/* Модальное окно новости */
.news-modal-content {
    background: linear-gradient(145deg, #2d2d2d 0%, #232323 100%);
    color: white;
    border: 2px solid rgba(205, 65, 43, 0.3);
}

.news-modal-content .modal-header {
    border-bottom: 2px solid rgba(205, 65, 43, 0.3);
    background: rgba(0, 0, 0, 0.2);
}

.news-modal-content .modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.1);
}

.news-modal-content .modal-body::-webkit-scrollbar {
    width: 10px;
}

.news-modal-content .modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.news-modal-content .modal-body::-webkit-scrollbar-thumb {
    background: var(--rust-primary);
    border-radius: 5px;
}

.news-modal-content .modal-body h3 {
    color: var(--rust-primary);
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.news-modal-content .modal-body p {
    color: #c5bbb4;
    line-height: 1.9;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.news-modal-content .modal-body ul,
.news-modal-content .modal-body ol {
    color: #c5bbb4;
    line-height: 1.9;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.news-modal-content .modal-body li {
    margin-bottom: 8px;
}

.news-modal-content .modal-body code {
    background: rgba(0, 0, 0, 0.6);
    padding: 3px 10px;
    border-radius: 5px;
    color: #ffd700;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.news-modal-content .modal-body pre {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--rust-primary);
    overflow-x: auto;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.news-modal-content .modal-body pre code {
    background: none;
    padding: 0;
    border: none;
}

.news-modal-content .alert {
    padding: 18px 22px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 5px solid;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 1.05rem;
}

.news-modal-content .alert i {
    margin-right: 8px;
}

.news-modal-content .alert-info {
    background: rgba(74, 144, 226, 0.25);
    border-color: #4a90e2;
    color: #b8dcff;
}

.news-modal-content .alert-success {
    background: rgba(115, 141, 69, 0.25);
    border-color: var(--rust-accent);
    color: #c8e8a6;
}

.news-modal-content .alert-warning {
    background: rgba(255, 215, 0, 0.25);
    border-color: #ffd700;
    color: #ffe880;
}

.news-modal-content .modal-footer {
    border-top: 2px solid rgba(205, 65, 43, 0.3);
    background: rgba(0, 0, 0, 0.2);
}

/* Адаптив */
@media (max-width: 768px) {
    .news-hero {
        padding: 100px 0 40px;
    }
    
    .news-hero h1 {
        font-size: 2rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        justify-content: center;
    }
    
    .news-filters {
        position: relative;
        top: 0;
    }
}


/* ═══════════════════════════════════════════════════════════
   NEWS PAGE STYLES - Individual News Pages
   ═══════════════════════════════════════════════════════════ */

/* News Page Container */
.news-page {
    padding: 120px 0 60px;
    min-height: 100vh;
}

/* News Page Header */
.news-page-header {
    margin-bottom: 40px;
    text-align: center;
}

.news-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 20px 0;
    line-height: 1.3;
}

.news-page-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.news-page-date,
.news-page-author {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.news-page-date i,
.news-page-author i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* News Page Image */
.news-page-image {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.news-page-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* News Page Content */
.news-page-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.news-page-content h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 30px 0 15px;
    font-weight: 600;
}

.news-page-content h3:first-child {
    margin-top: 0;
}

.news-page-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.news-page-content ul,
.news-page-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.news-page-content li {
    margin-bottom: 10px;
}

.news-page-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

.news-page-content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.news-page-content pre code {
    background: none;
    padding: 0;
}

.news-page-content .alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid;
}

.news-page-content .alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
    color: #fff;
}

.news-page-content .alert-success {
    background: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
    color: #fff;
}

.news-page-content .alert-warning {
    background: rgba(241, 196, 15, 0.1);
    border-color: #f1c40f;
    color: #fff;
}

.news-page-content .alert i {
    margin-right: 10px;
}

/* Share Section */
.share-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

.share-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.share-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-share {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-share i {
    font-size: 1.1rem;
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-vk {
    background: #0077FF;
    color: #fff;
}

.btn-vk:hover {
    background: #0066DD;
}

.btn-telegram {
    background: #0088cc;
    color: #fff;
}

.btn-telegram:hover {
    background: #0077BB;
}

.btn-discord {
    background: #5865F2;
    color: #fff;
}

.btn-discord:hover {
    background: #4752C4;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Related News Section */
.related-news-section {
    margin: 60px 0;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-news-heading {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.related-news-heading i {
    margin-right: 15px;
    color: var(--primary-color);
}

.related-news-card {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    height: 100%;
}

.related-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.related-news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.related-news-content {
    padding: 20px;
}

.related-news-title {
    color: #fff;
    font-size: 1.1rem;
    margin: 10px 0;
    font-weight: 600;
    line-height: 1.4;
}

.related-news-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Back Button */
.news-page-back {
    margin: 40px 0;
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateX(-5px);
}

.btn-back i {
    transition: transform 0.3s ease;
}

.btn-back:hover i {
    transform: translateX(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-page {
        padding: 100px 0 40px;
    }

    .news-page-title {
        font-size: 1.8rem;
    }

    .news-page-content {
        padding: 25px;
    }

    .news-page-content h3 {
        font-size: 1.3rem;
    }

    .share-section {
        padding: 20px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .btn-share {
        width: 100%;
        justify-content: center;
    }

    .related-news-heading {
        font-size: 1.5rem;
    }

    .related-news-image {
        height: 150px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .share-section,
    .related-news-section,
    .news-page-back {
        display: none;
    }

    .news-page {
        padding: 0;
    }

    .news-page-content {
        background: none;
        border: none;
        color: #000;
    }
}


/* Clickable News Card Link */
.news-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.news-card-link .news-card {
    height: 100%;
}

.news-card-link .btn-news {
    display: inline-block;
}


/* Fallback для изображений новостей */
.news-image {
    background-color: #2c3e50;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(205, 65, 43, 0.3) 0%, rgba(115, 141, 69, 0.3) 100%);
    z-index: 0;
}

.news-category {
    position: relative;
    z-index: 1;
}

/* Fallback для ошибок загрузки изображений */
.news-card .news-image,
.news-page-image img {
    background-color: #34495e;
}

/* News Filters */
.news-filters {
    background: var(--rust-darker);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(205, 65, 43, 0.1);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.filter-btn {
    background: rgba(42, 42, 42, 0.8);
    border: 2px solid rgba(205, 65, 43, 0.3);
    color: var(--rust-text);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(205, 65, 43, 0.2);
    border-color: var(--rust-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(205, 65, 43, 0.3);
}

.filter-btn.active {
    background: var(--gradient-primary);
    border-color: var(--rust-primary);
    color: #fff;
    box-shadow: 0 5px 20px rgba(205, 65, 43, 0.4);
}

.filter-btn i {
    font-size: 1.1rem;
}

.filter-count {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.3rem;
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        justify-content: center;
        width: 100%;
    }
}
