/* style.css - Основные стили */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #2d2d2d;
    --bg-hover: #3a3a3a;
    --bg-gradient: linear-gradient(135deg, #8b5cf6 0%, #c026d3 50%, #ec4899 100%);
    --bg-gradient-light: linear-gradient(135deg, #a78bfa 0%, #d946ef 50%, #f472b6 100%);
    --bg-gradient-dark: linear-gradient(135deg, #7c3aed 0%, #a21caf 50%, #db2777 100%);
    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-primary: #8b5cf6;
    --accent-secondary: #c026d3;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
    --accent-purple: #a855f7;
    --border-color: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
    --shadow-large: 0 10px 40px rgba(0, 0, 0, 0.6);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Beta Banner */
.beta-banner {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    border-bottom: 2px solid #ff9ff3;
    position: relative;
    overflow: hidden;
    z-index: 100;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.beta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.beta-banner .pulse {
    animation: pulse 2s infinite;
    display: inline-block;
    margin: 0 5px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Header */
.header {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    position: relative;
    overflow: visible;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(20, 20, 20, 0.98));
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
    border-radius: 20px 20px 0 0;
}

.header h1 {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
    letter-spacing: -0.5px;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 101;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.95em;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav a.active {
    background: var(--bg-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.nav a:not(.active):hover {
    color: white;
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow);
    background: var(--bg-gradient);
}

/* User Menu */
.user-menu-wrapper {
    position: relative;
    display: inline-block;
    z-index: 10000;
}

.user-menu-btn {
    background: var(--bg-gradient);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-size: 0.95em;
    font-family: inherit;
    min-width: 160px;
    justify-content: space-between;
    position: relative;
    z-index: 10001;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    letter-spacing: 0.3px;
}

.user-menu-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #2d2d2d;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 15px 0;
    min-width: 250px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: none;
    margin-top: 10px;
}

.user-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: #2d2d2d;
    border-left: 1px solid #374151;
    border-top: 1px solid #374151;
    transform: rotate(45deg);
}

.user-header {
    padding: 0 15px 15px 15px;
    border-bottom: 1px solid #374151;
    margin-bottom: 10px;
}

.user-name-display {
    font-weight: bold;
    font-size: 16px;
    color: #f8fafc;
    margin-bottom: 5px;
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #94a3b8;
}

.balance-amount {
    color: #8b5cf6;
    font-weight: bold;
    font-size: 16px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #f8fafc;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 12px;
    font-size: 14px;
}

.menu-item:hover {
    background: #3a3a3a;
    color: #8b5cf6;
    padding-left: 25px;
}

.menu-icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.menu-divider {
    height: 1px;
    background: #374151;
    margin: 8px 0;
}

.logout-item {
    color: #ef4444 !important;
}

.logout-item .menu-icon {
    color: #ef4444;
}

/* Stats */
.stats, .page-stats, .admin-stats, .profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(22, 22, 22, 0.98));
    padding: 25px;
    border-radius: 18px;
    text-align: center;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(139, 92, 246, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-gradient);
}

.stat-number {
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 25px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.content-section {
    background: linear-gradient(145deg, rgba(45, 45, 45, 0.95), rgba(40, 40, 40, 0.98));
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5em;
    font-weight: 700;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Server List */
.server-list {
    display: grid;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.server-list.compact {
    gap: 12px;
}

.server-item {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(22, 22, 22, 0.98));
    padding: 25px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.server-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-gradient);
}

.server-item:hover {
    transform: translateY(-8px);
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.95), rgba(35, 35, 35, 0.98));
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(139, 92, 246, 0.3);
}

.server-item.compact {
    padding: 18px;
    align-items: center;
    min-height: 75px;
    position: relative;
}

.server-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.server-info h3 {
    margin-bottom: 12px;
    font-size: 1.4em;
    color: var(--text-primary);
    font-weight: 700;
}

.server-info h4 {
    margin: 0 0 4px 0;
    font-size: 1em;
    color: var(--text-primary);
    font-weight: 600;
}

.server-rank {
    background: var(--bg-gradient);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
    flex-shrink: 0;
    margin-right: 12px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.server-stats {
    display: flex;
    gap: 10px;
    font-size: 0.85em;
    color: var(--text-muted);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.server-vote {
    margin-left: auto;
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    background: var(--bg-gradient);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    font-family: inherit;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.btn-full {
    width: 100%;
}

.btn-star {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-star:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    color: #1e293b;
}

.btn-outline {
    background: transparent;
    border: 2px solid #8b5cf6;
    color: #8b5cf6;
}

.btn-outline:hover {
    background: #8b5cf6;
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.5);
}

/* Server Details */
.server-address {
    font-family: 'Courier New', monospace;
    background: rgba(139, 92, 246, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    margin: 8px 0;
    font-size: 0.9em;
    color: var(--accent-primary);
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(5px);
}

.server-author {
    font-size: 0.9em;
    color: var(--text-muted);
    margin: 6px 0;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: inline-block;
}

.server-description {
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.05));
    border-radius: 10px;
    border-left: 4px solid #FFD700;
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.server-details {
    margin-top: 20px;
    padding: 18px;
    background: linear-gradient(145deg, rgba(45, 45, 45, 0.95), rgba(40, 40, 40, 0.98));
    border-radius: 12px;
    border-left: 5px solid var(--accent-purple);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.players-info {
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05em;
}

.version-info {
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05em;
}

.stars-info {
    color: #FFD700;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05em;
}

.server-offline {
    color: var(--accent-red);
    font-weight: 600;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.08));
    border-radius: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 0.95em;
    backdrop-filter: blur(5px);
}

/* Server Status */
.server-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 160px;
    position: relative;
    z-index: 1;
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 20px currentColor;
}

.dot-online {
    background: var(--accent-green);
    animation: pulse 2s infinite;
}

.dot-offline {
    background: var(--accent-red);
}

.status-online, .status-offline {
    font-weight: 700;
    font-size: 0.95em;
    padding: 6px 12px;
    border-radius: 6px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
}

.status-online {
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-offline {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status {
    font-weight: bold;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status.online {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status.offline {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Forms */
.form-group {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05em;
    letter-spacing: 0.3px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(22, 22, 22, 0.98));
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(25, 25, 25, 0.98));
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Alerts */
.alert {
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    border: 1px solid;
    position: relative;
    overflow: hidden;
    font-size: 1em;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.1));
    color: var(--accent-green);
    border-color: rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.1));
    color: var(--accent-red);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Cards */
.card {
    background: linear-gradient(145deg, rgba(45, 45, 45, 0.95), rgba(40, 40, 40, 0.98));
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-gradient);
    border-radius: 20px 20px 0 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.pagination a {
    background: #2d2d2d;
    color: #e2e8f0;
    border: 1px solid #374151;
}

.pagination a:hover {
    background: #3a3a3a;
    transform: translateY(-2px);
}

.pagination .current {
    background: var(--bg-gradient);
    color: white;
    border-color: transparent;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #1a1a1a;
}

.pagination-info {
    text-align: center;
    margin-top: 10px;
    color: #94a3b8;
    font-size: 13px;
}

.pagination-ellipsis {
    color: #94a3b8;
    padding: 8px 5px;
}

/* Top Servers */
.top-servers-container {
    background: #2d2d2d;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #374151;
    margin-top: 20px;
}

.top-servers-list {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.top-server-item {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #374151;
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: start;
}

.rank-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 60px;
}

.rank-number {
    background: var(--bg-gradient);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.rank-medal {
    font-size: 24px;
}

.medal-1 { color: #FFD700; }
.medal-2 { color: #C0C0C0; }
.medal-3 { color: #CD7F32; }

.server-main-info {
    flex: 1;
}

.server-main-info h3 {
    margin: 0 0 10px 0;
    color: #f8fafc;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.server-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7em;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.status-badge-online {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-badge-offline {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.server-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
}

.stat-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    min-width: 80px;
}

.stat-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 5px;
}

.stat-value {
    font-weight: bold;
    font-size: 16px;
    color: #f8fafc;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
}

/* Auth */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #2d2d2d;
    border: 1px solid #374151;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.auth-tab.active {
    background: var(--bg-gradient);
    color: white;
}

.auth-tab:not(.active):hover {
    background: #3a3a3a;
    color: #f8fafc;
}

.auth-form {
    display: none;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #374151;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    position: relative;
}

.auth-form.active {
    display: block;
}

.auth-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
}

/* Balance */
.balance-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 20px;
}

.current-balance {
    background: var(--bg-gradient);
    color: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

.current-balance h3 {
    margin: 0 0 20px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.current-balance .balance-amount {
    font-size: 3em;
    font-weight: bold;
    margin: 20px 0;
    color: white;
}

.packages-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 30px 0;
}

.packages-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.packages-row.bottom-row {
    grid-template-columns: repeat(2, 1fr);
    max-width: 66.666%;
    margin: 0 auto;
}

.package-card {
    background: #334155;
    border: 2px solid #475569;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-card:hover {
    border-color: #8b5cf6;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
}

.package-stars {
    font-size: 2.5em;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 10px;
}

.package-label {
    font-size: 1em;
    color: #94a3b8;
    margin-bottom: 10px;
}

.package-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #10b981;
    margin-bottom: 10px;
}

.package-bonus {
    font-size: 0.9em;
    color: #fbbf24;
    font-weight: 600;
    margin-bottom: 15px;
    min-height: 20px;
}

.buy-button {
    background: var(--bg-gradient);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
}

.buy-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.info-box {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #8b5cf6;
}

.info-box h4 {
    margin: 0 0 15px 0;
    color: #f8fafc;
    font-size: 1.1em;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    margin: 10px 0;
    color: #94a3b8;
    padding-left: 25px;
    position: relative;
}

.info-box li:before {
    content: '•';
    color: #8b5cf6;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -5px;
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.95);
    color: var(--text-secondary);
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: #60a5fa;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: #60a5fa;
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 20px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.footer-bottom p {
    margin: 5px 0;
}

.legal-info {
    color: #60a5fa;
    font-size: 12px;
    margin-top: 10px;
    line-height: 1.5;
}

/* New indicator */
.new-indicator {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    animation: newPulse 2s infinite;
}

@keyframes newPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Server meta */
.server-meta {
    font-size: 13px;
    color: #cbd5e1;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .user-menu-wrapper {
        width: 100%;
        margin-top: 15px;
    }
    
    .user-menu-btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 14px 25px;
    }
    
    .user-dropdown {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        margin: 0;
        border-radius: 12px 12px 0 0;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .user-dropdown::before {
        display: none;
    }
    
    .balance-container {
        grid-template-columns: 1fr;
    }
    
    .top-server-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .nav {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .nav a, .user-menu-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        margin-bottom: 6px;
        padding: 14px 20px;
    }
    
    .header {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .header h1 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    .stats, .page-stats, .admin-stats, .profile-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
        border-radius: 15px;
    }
    
    .stat-number {
        font-size: 2.5em;
    }
    
    .server-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
        border-radius: 15px;
    }
    
    .server-status {
        align-items: center;
        width: 100%;
    }
    
    .packages-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .packages-row.bottom-row {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
    }
    
    .nav a, .user-menu-btn {
        padding: 12px 18px;
        font-size: 0.9em;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95em;
    }
    
    .card {
        padding: 20px;
        border-radius: 15px;
    }
    
    .packages-row {
        grid-template-columns: 1fr;
    }
    
    .server-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-gradient-light);
}

/* Selection */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: white;
}

/* Focus styles */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}