:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-color: #00ff85;
    --error-color: #ff4d4d;
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-accent: #e94560;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 40px rgba(0, 255, 133, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--primary-gradient);
    color: #fff;
    padding: 40px 0;
    text-align: center;
    border-bottom: 4px solid var(--border-accent);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

header h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

header p {
    margin: 10px 0 0;
    font-size: 18px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Main Content */
main {
    padding: 50px 0;
}

section {
    background: var(--bg-secondary);
    padding: 40px;
    margin-bottom: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(233, 69, 96, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Server List Section */
#server-list h2,
#donate h2 {
    color: var(--text-primary);
    margin-bottom: 30px;
    font-size: 32px;
    text-align: center;
    position: relative;
}

#server-list h2::after,
#donate h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-gradient);
    margin: 10px auto;
    border-radius: 2px;
}

#server-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.server-item {
    background: var(--bg-primary);
    padding: 25px;
    border-radius: 15px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid transparent;
    position: relative;
    overflow: hidden;
}

.server-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--secondary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.server-item.online {
    border-left-color: var(--success-color);
}

.server-item.offline {
    border-left-color: var(--error-color);
}

.server-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.server-item:hover::before {
    opacity: 1;
}

.server-item h3 {
    margin: 0 0 15px;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}

.server-item p {
    margin: 12px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.server-item .status-online {
    color: var(--success-color);
    font-weight: 600;
    font-size: 16px;
}

.server-item .status-offline {
    color: var(--error-color);
    font-weight: 600;
    font-size: 16px;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-donate, .delete-button {
    background: var(--secondary-gradient);
    color: #fff;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover, .btn-secondary:hover, .btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

.btn-secondary {
    background: var(--primary-gradient);
}

.delete-button {
    background: var(--error-color);
    padding: 10px 20px;
    font-size: 14px;
    margin-top: 15px;
    width: 100%;
}

.delete-button:hover {
    background: #cc3d3d;
    transform: translateY(-1px);
}

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

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

.modal-content {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(233, 69, 96, 0.2);
    animation: slideUp 0.3s ease;
}

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

.modal-content h2 {
    color: var(--text-primary);
    margin-bottom: 25px;
    text-align: center;
    font-size: 28px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-content label {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.modal-content input {
    padding: 12px;
    border: 2px solid rgba(233, 69, 96, 0.3);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--border-accent);
}

.modal-content button {
    background: var(--secondary-gradient);
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-content button:hover:not(.close-modal) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.3);
}

.modal-content .close-modal {
    background: var(--text-secondary);
}

.modal-content .close-modal:hover {
    background: #6c757d;
}

/* Donate Section */
#donate {
    text-align: center;
}

#donate p {
    margin-bottom: 25px;
    color: var(--text-secondary);
    font-size: 16px;
}

#payment-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

#payment-forms .payment-form {
    padding: 35px;
    border: 2px solid rgba(233, 69, 96, 0.2);
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
}

#payment-forms h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 24px;
}

#payment-forms p {
    margin-bottom: 25px;
    color: var(--text-secondary);
}

#payment-forms .payment-link {
    display: inline-block;
    background: var(--success-color);
    color: var(--bg-primary);
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

#payment-forms .payment-link:hover {
    background: #00cc6a;
    transform: scale(1.05);
}

#payment-forms .payment-description {
    font-size: 14px;
    color: #999;
    margin-top: 20px;
}

/* Footer */
footer {
    background: var(--bg-primary);
    color: var(--text-secondary);
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(233, 69, 96, 0.1);
}

footer a {
    color: var(--border-accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Loading & Error */
#loading-indicator {
    text-align: center;
    font-size: 18px;
    color: var(--success-color);
    display: none;
}

.error {
    color: var(--error-color);
    text-align: center;
    font-size: 16px;
    padding: 20px;
    background: rgba(255, 77, 77, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--error-color);
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    header h1 {
        font-size: 28px;
    }

    header p {
        font-size: 16px;
    }

    section {
        padding: 30px 20px;
    }

    #server-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content {
        width: 95%;
        padding: 30px 20px;
    }

    #payment-options {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 24px;
    }

    .server-item {
        padding: 20px;
    }

    .server-item h3 {
        font-size: 20px;
    }
}