* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a2e 0%, #1a0a3e 50%, #0d0d3d 100%);
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="15">⬛</text></svg>') repeat;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* Хедер */
header {
    text-align: center;
    padding: 50px 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid rgba(100, 100, 255, 0.3);
}

.server-status {
    background: rgba(0, 255, 100, 0.15);
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 255, 100, 0.3);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #00ff64;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 100, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 100, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 100, 0); }
}

.server-name {
    font-size: 3.5em;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d, #6bcbff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
}

.server-ip {
    font-size: 1.4em;
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 30px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.server-version {
    margin-top: 10px;
    color: #888;
    font-size: 0.9em;
}

/* Навигация */
nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-btn {
    color: #ccc;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn:hover, .nav-btn.active {
    background: rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.5);
    color: #fff;
    transform: scale(1.05);
}

/* Секции */
section {
    padding: 60px 20px;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2em;
    color: #fff;
}

/* Карточки привилегий */
.donate-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.donate-card {
    background: rgba(20, 20, 60, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    width: 310px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid rgba(100, 100, 200, 0.2);
}

.donate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(100, 100, 255, 0.5);
}

.donate-card.premium {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.donate-card.legend {
    border-color: rgba(255, 0, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.1);
}

.card-header {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #fff;
}

.card-price {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-features {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
    font-size: 0.9em;
    max-height: 350px;
    overflow-y: auto;
}

.card-features li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ccc;
}

.card-features li:last-child {
    border-bottom: none;
}

.card-features::-webkit-scrollbar {
    width: 4px;
}

.card-features::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.buy-btn {
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-weight: bold;
}

.buy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.4);
}

/* Секция кейсов */
.cases-section {
    background: rgba(0, 0, 0, 0.2);
}

.cases-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.case-card {
    background: rgba(20, 20, 60, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    width: 250px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid rgba(100, 100, 200, 0.2);
    position: relative;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.case-card.popular {
    border-color: rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
}

.case-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ffd700, #ffaa00);
    color: #000;
    padding: 5px 20px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9em;
}

.case-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.case-title {
    font-size: 1.3em;
    color: #fff;
    margin-bottom: 10px;
}

.case-price {
    font-size: 2em;
    font-weight: bold;
    color: #ffd700;
}

.case-single-price {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.case-btn {
    margin-top: 15px;
}

/* Секция команд */
.command-block {
    max-width: 800px;
    margin: 0 auto 30px;
    background: rgba(20, 20, 60, 0.4);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(100, 100, 200, 0.2);
}

.command-block h3 {
    color: #a855f7;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.commands-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cmd {
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #6bcbff;
    border: 1px solid rgba(100, 100, 200, 0.2);
}

/* Правила */
.rules-section {
    background: rgba(0, 0, 0, 0.2);
}

.rules-content {
    max-width: 700px;
    margin: 0 auto;
}

.rule {
    background: rgba(20, 20, 60, 0.4);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(100, 100, 200, 0.1);
}

.rule-num {
    background: #a855f7;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a0a3e, #0a0a2e);
    padding: 40px;
    border-radius: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 350px;
    text-align: center;
    border: 2px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.3);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
}

#nickname-input {
    width: 100%;
    padding: 12px;
    margin: 20px 0;
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 10px;
    font-size: 1.1em;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
}

.confirm-btn {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-weight: bold;
}

.confirm-btn:hover {
    background: linear-gradient(135deg, #00cec9, #00b894);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 206, 201, 0.4);
}

/* Футер */
footer {
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
    color: #888;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* Широкое модальное окно */
.modal-content-wide {
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

/* Скролл внутри модальных окон */
.modal-scroll {
    text-align: left;
    font-size: 0.9em;
    line-height: 1.6;
}

.modal-scroll h4 {
    color: #ffd700;
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-scroll p {
    margin-bottom: 8px;
    color: #ccc;
}

/* Стили для правил */
.rules-section {
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.rules-content {
    max-width: 700px;
    margin: 0 auto;
}

.rule {
    background: rgba(20, 20, 60, 0.4);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(100, 100, 200, 0.1);
}

.rule-num {
    background: #a855f7;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}
/* Кнопки соцсетей */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.discord-btn {
    background: #5865F2;
    color: white;
}

.discord-btn:hover {
    background: #4752C4;
}

.telegram-btn {
    background: #0088cc;
    color: white;
}

.telegram-btn:hover {
    background: #006699;
}

.modal-input-group {
    margin-bottom: 15px;
    text-align: left;
}

.modal-label {
    display: block;
    color: #ccc;
    font-size: 0.9em;
    margin-bottom: 5px;
    font-weight: bold;
}

.modal-input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 10px;
    font-size: 1.1em;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    transition: border-color 0.3s;
}

.modal-input:focus {
    outline: none;
    border-color: #00cec9;
    box-shadow: 0 0 10px rgba(0, 206, 201, 0.3);
}

.modal-status {
    display: block;
    font-size: 0.8em;
    margin-top: 4px;
    min-height: 16px;
}

.modal-status.success {
    color: #00ff64;
}

.modal-status.error {
    color: #ff4444;
}

.modal-status.loading {
    color: #ffd700;
}

.confirm-btn:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

.confirm-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.modal-hint {
    color: #888;
    font-size: 0.8em;
    margin-top: 10px;
    text-align: center;
}