@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a2338 100%);
    color: #e0e7ff;
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* Навигация */
.navbar {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(90deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links { display: flex; gap: 24px; }
.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding-bottom: 4px;
}
.nav-links a:hover { color: #a5b4fc; }
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: #a5b4fc; transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* Основной контент */
.main-content { flex: 1; padding-bottom: 40px; }
.container {
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 0 24px;
    text-align: center;
}

h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    background: linear-gradient(90deg, #60a5fa, #c084fc, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    line-height: 1.2;
}
.subtitle { font-size: clamp(16px, 2vw, 20px); color: #94a3b8; margin-bottom: 40px; }

/* Сетка товаров (Flex для идеального центрирования) */
.products-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 20px;
}
.product-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 28px 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden;
    width: 100%; max-width: 340px;
    display: flex; flex-direction: column;
}
.product-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #6366f1, #a855f7); opacity: 0.6;
}
.product-card:hover {
    transform: translateY(-8px); border-color: rgba(168, 85, 247, 0.3);
    background: rgba(255, 255, 255, 0.07); box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15);
}
.product-card h3 { font-size: 22px; margin-bottom: 8px; color: #e0e7ff; font-weight: 700; }
.price { font-size: 32px; font-weight: 800; color: #c4d0ff; margin: 8px 0 16px; letter-spacing: -0.5px; }

.feature-list { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; flex-grow: 1; }
.feature-list li {
    position: relative; padding-left: 26px; margin-bottom: 10px;
    color: #cbd5e1; font-size: 14px; line-height: 1.5;
}
.feature-list li::before {
    content: '✦'; position: absolute; left: 0; color: #8b5cf6; font-weight: bold; font-size: 16px;
}

.buy-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    color: white; padding: 14px 32px; border-radius: 14px; text-decoration: none;
    font-weight: 600; font-size: 16px; transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3); border: none; cursor: pointer; margin-top: auto;
}
.buy-button:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 25px rgba(168, 85, 247, 0.45); }

/* Правила */
.rules-box {
    background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px; padding: 32px 28px; margin: 20px auto 40px;
    max-width: 800px; text-align: left; position: relative; overflow: hidden;
}
.rules-box::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #f59e0b, #ef4444); opacity: 0.8; }
.rules-box ul { display: flex; flex-direction: column; gap: 14px; list-style: none; }
.rules-box li { position: relative; padding-left: 28px; font-size: 16px; color: #cbd5e1; line-height: 1.6; }
.rules-box li::before { content: '⚠'; position: absolute; left: 0; color: #f59e0b; font-size: 18px; }
.rules-box li strong { color: #f8fafc; font-weight: 600; }
.rules-note {
    margin-top: 24px; font-size: 15px; color: #94a3b8; font-style: italic; text-align: center;
    background: rgba(245, 158, 11, 0.1); padding: 12px; border-radius: 10px; border-left: 3px solid #f59e0b;
}

/* Статус сервера */
.status-container { max-width: 650px; margin: 40px auto; text-align: center; }
.status-card {
    background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px; padding: 32px; position: relative; overflow: hidden;
}
.status-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #10b981, #3b82f6); }
.server-ip { font-size: 14px; color: #94a3b8; margin-bottom: 16px; font-family: monospace; background: rgba(0,0,0,0.3); display: inline-block; padding: 6px 14px; border-radius: 8px; }
.status-indicator { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; margin: 16px 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: #6b7280; box-shadow: 0 0 8px currentColor; transition: all 0.3s; }
.dot.online { background: #10b981; color: #10b981; animation: pulse 2s infinite; }
.dot.offline { background: #ef4444; color: #ef4444; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.players-count { font-size: 56px; font-weight: 800; color: #e0e7ff; margin: 10px 0 5px; line-height: 1; }
.players-label { color: #94a3b8; font-size: 16px; margin-bottom: 20px; }
.status-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.info-item span { display: block; color: #64748b; font-size: 14px; margin-bottom: 4px; }
.info-item strong { color: #e0e7ff; font-size: 18px; }
.refresh-btn {
    margin-top: 24px; background: rgba(255,255,255,0.08); color: #e0e7ff;
    border: 1px solid rgba(255,255,255,0.15); padding: 10px 24px; border-radius: 10px;
    cursor: pointer; transition: all 0.3s; font-weight: 500;
}
.refresh-btn:hover { background: rgba(255,255,255,0.15); }
.refresh-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Уведомления (успех/ошибка) */
.status-box { max-width: 600px; margin: 30px auto; padding: 32px 24px; border-radius: 18px; text-align: center; }
.status-box.success { background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.25); }
.status-box.success h2 { color: #4ade80; margin-bottom: 12px; font-size: 24px; }
.status-box.success p { color: #cbd5e1; margin: 8px 0; }
.status-box.fail { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.25); }
.status-box.fail h2 { color: #f87171; margin-bottom: 12px; font-size: 24px; }
.status-box.fail p { color: #cbd5e1; margin: 8px 0; }

/* Футер */
.site-footer {
    margin-top: 80px; padding: 24px 0;
    background: rgba(15, 23, 42, 0.6); border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-content { max-width: 1200px; margin: 0 auto; padding: 0 24px; text-align: center; }
.footer-content p { color: #64748b; font-size: 14px; margin: 4px 0; }
.footer-note { font-size: 13px !important; opacity: 0.7; }

/* Адаптивность */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 12px; }
    .nav-links { gap: 16px; }
    .product-card { max-width: 100%; }
    .rules-box, .status-card { padding: 24px 20px; }
    .container { margin: 30px auto 0; }
}
