@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Press Start 2P Font - локальная загрузка с Google Fonts */
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/pressstart2p/v16/e3t4euO8T-267oIAQAu6jDQyK3nYivN04w.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/pressstart2p/v16/e3t4euO8T-267oIAQAu6jDQyK3nRivN04w.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/pressstart2p/v16/e3t4euO8T-267oIAQAu6jDQyK3nWivN04w.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/pressstart2p/v16/e3t4euO8T-267oIAQAu6jDQyK3nbivN04w.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/pressstart2p/v16/e3t4euO8T-267oIAQAu6jDQyK3nVivM.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Основные цвета Minecraft */
    --minecraft-green: #3c8527;
    --minecraft-dark-green: #2a5c1a;
    --minecraft-stone: #8b8b8b;
    --minecraft-dark-stone: #6b6b6b;
    --minecraft-dirt: #8b5a2b;
    --minecraft-diamond: #2eb0d4;
    --minecraft-gold: #f0b30a;
    --minecraft-iron: #c0c0c0;
    --minecraft-red: #b3312c;
    --minecraft-purple: #7b2f9b;
    
    /* Современные акценты */
    --primary: #7b2f9b;
    --primary-light: #9b4dca;
    --primary-dark: #5c1a7a;
    --secondary: #2eb0d4;
    --secondary-dark: #1a8aaa;
    
    /* Фоны */
    --bg-dark: #1a1a2e;
    --bg-darker: #0f0f1a;
    --bg-card: rgba(30, 30, 50, 0.95);
    --bg-card-hover: rgba(40, 40, 65, 0.98);
    
    /* Текст */
    --text: #ffffff;
    --text-secondary: #b0b0d0;
    --text-muted: #7a7a9a;
    
    /* Статусы */
    --success: #3c8527;
    --success-light: #5ca840;
    --danger: #b3312c;
    --danger-light: #d44a44;
    --warning: #f0b30a;
    --info: #2eb0d4;
    
    /* Эффекты */
    --border: rgba(139, 92, 246, 0.3);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 48px rgba(123, 47, 155, 0.3);
    --glow: 0 0 20px rgba(123, 47, 155, 0.5);
    
    /* Шрифт Press Start 2P */
    --font-press-start: 'Press Start 2P', 'Courier New', monospace;
}

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

body {
    font-family: var(--font-press-start);
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* Все текстовые элементы используют Press Start 2P */
body, p, span, div, a, li, input, textarea, select, label,
button, .btn, .logo, .nav a, h1, h2, h3, h4, h5, h6,
.news-meta, .comment-text, .server-name, .server-players-badge, 
.server-ip, .user-rank, .user-balance, .vote-btn, .social-link,
.stat-card div, .admin-tab, .rank-name, .rank-price, .buy-btn,
.servers-header, .card-title, .modal-header h3, .rule-header h3,
.rule-content h4, .server-spoiler-btn, .server-copy-btn,
.pagination .btn, .server-player-name, .online-user span,
.footer .copyright, .form-control, label, .transaction-desc,
.transaction-date, .setting-item label, .comment-author strong,
.news-title, .news-preview, .news-full, .likes-section,
.like-button, .likes-more, .modal-close, .btn-edit, .btn-delete,
.btn-save, .btn-warning, .notification, .alert, .stat-value,
.rank-features li, .service-card h3, .service-price,
.rule-content p, .punishment-table th, .punishment-table td,
.tab, .server-status-dot, .server-progress-bar,
.data-table th, .data-table td, .admin-section h3,
.setting-item label, .rcon-server-btn, #rcon-output {
    font-family: var(--font-press-start);
    letter-spacing: 0.5px;
}

/* Размеры шрифтов для Press Start 2P */
h1 { font-size: 18px; font-weight: 400; text-shadow: 2px 2px 0 rgba(0,0,0,0.5); margin-bottom: 20px; }
h2 { font-size: 16px; font-weight: 400; margin-bottom: 15px; }
h3 { font-size: 14px; font-weight: 400; margin-bottom: 12px; }
h4 { font-size: 12px; font-weight: 400; margin-bottom: 10px; }
p { font-size: 11px; line-height: 1.6; }
small, .small-text { font-size: 9px; }

/* 3D Background */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Header */
.header {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 14px;
    font-weight: bold;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 2px 2px 0 var(--primary-dark);
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 20px;
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    position: relative;
}

.nav a:hover {
    color: var(--primary-light);
    background: rgba(123, 47, 155, 0.1);
}

/* Кнопки */
.btn-play, .theme-toggle {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    top: 0;
}

.btn-play {
    background: linear-gradient(135deg, var(--minecraft-green), var(--minecraft-dark-green));
    color: white;
    box-shadow: 0 4px 0 var(--minecraft-dark-green);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--minecraft-dark-green);
}

.theme-toggle {
    background: linear-gradient(135deg, var(--minecraft-purple), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 0 var(--primary-dark);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--primary-dark);
}

.btn-play:active, .theme-toggle:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--minecraft-dark-green);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Карточки и блоки */
.servers-card,
.sidebar-card,
.voting-sites,
.social-links-container,
.user-profile-container {
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.servers-card:hover,
.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Единый стиль для всех заголовков блоков */
.servers-header,
.sidebar-card .card-title,
.voting-sites > h3,
.social-links-container > h3,
.user-profile-container > h3 {
    background: linear-gradient(135deg, rgba(123, 47, 155, 0.3), rgba(46, 176, 212, 0.1));
    padding: 10px 15px;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    border-radius: 12px 12px 0 0;
}

.servers-header i,
.sidebar-card .card-title i,
.voting-sites > h3 i,
.social-links-container > h3 i,
.user-profile-container > h3 i {
    color: var(--primary);
    font-size: 12px;
}

/* Контент внутри карточек */
.servers-list,
.sidebar-card > div:not(.card-title):not(.servers-header),
.voting-sites > div:not(h3),
.social-links-container > div:not(h3),
.user-profile-container > div:not(h3) {
    padding: 12px;
}

/* Профиль пользователя в сайдбаре */
.user-profile {
    text-align: center;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    border: 3px solid var(--primary);
    object-fit: cover;
    background: var(--primary);
}

.user-rank {
    font-size: 10px;
    margin: 5px 0;
}

.user-balance {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 6px 12px;
    border-radius: 20px;
    margin: 4px 0;
    font-weight: bold;
    font-size: 10px;
    cursor: pointer;
}

.user-balance:hover {
    transform: scale(1.05);
}

.user-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 0.8rem;
}

.user-actions .btn-sm {
    font-size: 9px;
    padding: 5px 10px;
}

/* Сервера - мониторинг */
.servers-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.server-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
}

.server-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.server-content {
    padding: 0.8rem;
}

.server-row-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.server-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.server-status-dot.online {
    background-color: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse 1.5s infinite;
}

.server-status-dot.offline {
    background-color: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.server-status-dot.checking {
    background-color: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: spin 1s linear infinite;
}

.server-name {
    font-size: 11px;
    color: var(--primary-light);
    font-weight: bold;
}

.server-players-badge {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 9px;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.server-ip {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 5px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
    font-size: 10px;
    border: 1px solid var(--border);
}

.server-ip code {
    color: var(--secondary);
    background: transparent;
}

.server-copy-btn {
    background: var(--primary);
    border: none;
    padding: 3px 6px;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    font-size: 9px;
    transition: all 0.2s;
}

.server-copy-btn:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

.server-spoiler-btn {
    width: 100%;
    background: rgba(123, 47, 155, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 10px;
    color: var(--text);
    font-size: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
}

.server-spoiler-btn:hover {
    background: rgba(123, 47, 155, 0.4);
    border-color: var(--primary);
}

.server-spoiler-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-top: 0;
}

.server-spoiler-content.open {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 0.5rem;
    padding: 0.5rem;
}

.server-players-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.server-player-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    border-radius: 6px;
    transition: all 0.2s;
}

.server-player-item:hover {
    background: rgba(123, 47, 155, 0.2);
    transform: translateX(4px);
}

.server-player-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary-dark);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.server-player-name {
    font-size: 10px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
    flex: 1;
}

.server-player-name:hover {
    color: var(--primary-light);
}

.server-progress {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.server-progress-bar-container {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    height: 3px;
    overflow: hidden;
}

.server-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

/* Социальные ссылки */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-darker);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    flex: 1;
    justify-content: center;
    font-size: 10px;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link i {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.social-link.vk:hover { background: #4C75A3; }
.social-link.discord:hover { background: #5865F2; }
.social-link.telegram:hover { background: #0088cc; }
.social-link.youtube:hover { background: #FF0000; }
.social-link.tiktok:hover { background: #000000; }

/* Голосование */
.vote-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vote-btn {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 10px;
}

.vote-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 2px 0 var(--primary-dark);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 0 var(--primary-dark);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: var(--success-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 4px 8px;
    font-size: 9px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Формы */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 11px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--glow);
}

/* Таблицы */
.data-table {
    width: 100%;
    overflow-x: auto;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 10px;
}

.data-table th {
    background: var(--bg-darker);
    color: var(--primary-light);
    font-weight: 600;
}

.data-table tr:hover td {
    background: rgba(123, 47, 155, 0.1);
}

/* Пагинация */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.pagination .btn {
    font-size: 10px;
    padding: 6px 12px;
}

.pagination .btn.active {
    background: var(--primary);
    color: white;
}

.search-box {
    margin-bottom: 20px;
}

.search-box form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box input {
    flex: 1;
    min-width: 250px;
}

/* Макет */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.content-area {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

/* Новости */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s;
    border: 1px solid var(--border);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.news-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-content {
    padding: 1.2rem;
}

.news-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--primary-light);
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-title a:hover {
    color: var(--primary-light);
}

.news-meta {
    color: var(--text-secondary);
    font-size: 9px;
    margin-bottom: 0.8rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.news-preview {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    font-size: 10px;
}

.news-full {
    line-height: 1.5;
    font-size: 11px;
}

.news-full p {
    margin-bottom: 0.8rem;
}

/* Комментарии */
.comment {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-date {
    font-size: 8px;
    color: var(--text-muted);
}

.comment-text {
    line-height: 1.5;
    margin-left: 36px;
    font-size: 10px;
}

.btn-delete-comment {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 11px;
    padding: 4px;
    transition: transform 0.2s;
}

.btn-delete-comment:hover {
    transform: scale(1.1);
    color: var(--danger-light);
}

/* Лайки */
.likes-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.like-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    transition: transform 0.2s;
    color: var(--text-secondary);
}

.like-button.liked {
    color: var(--danger);
}

.like-button:hover {
    transform: scale(1.1);
}

.likes-avatars {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.like-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.likes-more {
    background: var(--bg-darker);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 9px;
    cursor: pointer;
    transition: background 0.2s;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
    padding: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    margin: 0;
    font-size: 12px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text);
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 16px;
    border-radius: 10px;
    z-index: 100000;
    animation: slideInRight 0.3s ease-out;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 10px;
}

.notification-success {
    background: linear-gradient(135deg, var(--success), var(--minecraft-dark-green));
}

.notification-error {
    background: linear-gradient(135deg, var(--danger), #8b2a25);
}

.notification-info {
    background: linear-gradient(135deg, var(--info), var(--secondary-dark));
}

.notification-warning {
    background: linear-gradient(135deg, var(--warning), #d4940a);
}

/* Админ-панель */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-darker));
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-light);
}

.stat-card div:not(.stat-number) {
    font-size: 9px;
    margin-top: 6px;
}

.admin-section {
    background: var(--bg-card);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

.admin-section h3 {
    margin-bottom: 15px;
    color: var(--primary-light);
    font-size: 12px;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.admin-tab {
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 11px;
    font-weight: 500;
}

.admin-tab:hover {
    background: rgba(123, 47, 155, 0.2);
}

.admin-tab.active {
    background: var(--primary);
    color: white;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.setting-item {
    background: var(--bg-darker);
    padding: 12px;
    border-radius: 8px;
}

.setting-item label {
    font-size: 10px;
    display: block;
    margin-bottom: 6px;
}

/* RCON консоль */
#rcon-output {
    font-size: 10px;
    background: #0a0a0f;
    color: #00ff00;
}

.rcon-server-btn {
    font-size: 10px;
}

/* Правила */
.rules-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rule-category {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.rule-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 12px 15px;
    color: white;
}

.rule-header h3 {
    margin: 0;
    font-size: 11px;
}

.rule-list {
    padding: 15px;
}

.rule-item {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

.rule-item:last-child {
    border-bottom: none;
}

.rule-icon {
    font-size: 18px;
    color: var(--primary);
}

.rule-content h4 {
    margin: 0 0 4px 0;
    color: var(--primary);
    font-size: 11px;
}

.rule-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 9px;
}

.punishment-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.punishment-table th,
.punishment-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 10px;
}

.punishment-table th {
    background: var(--bg-darker);
    color: var(--primary);
    font-weight: 600;
}

/* Донат */
.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.rank-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-darker));
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.rank-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.rank-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.rank-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.rank-name {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

.rank-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 15px;
}

.rank-price span {
    font-size: 9px;
    color: var(--text-secondary);
}

.rank-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    text-align: left;
}

.rank-features li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
}

.rank-features li i {
    color: var(--success);
    width: 16px;
}

.buy-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    transition: transform 0.2s;
}

.buy-btn:hover {
    transform: scale(1.02);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.service-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-2px);
}

.service-icon {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 12px;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 9px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.service-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    margin: 8px 0;
}

/* Профиль */
.profile-header {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.profile-avatar {
    text-align: center;
    position: relative;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-stats {
    display: flex;
    gap: 15px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.stat {
    background: var(--bg-darker);
    padding: 8px 15px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
}

.stat div:not(.stat-value) {
    font-size: 9px;
    margin-top: 4px;
}

/* Вкладки профиля */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.tab {
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s;
    font-size: 11px;
    font-weight: 500;
}

.tab.active {
    background: var(--primary);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Футер */
.footer {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding: 1rem 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.online-users {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.online-users span {
    font-weight: 600;
    font-size: 10px;
    color: var(--success);
}

.online-users-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.online-user {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text);
    transition: color 0.2s;
    font-size: 9px;
}

.online-user:hover {
    color: var(--primary-light);
}

.online-user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* Кнопки редактирования */
.btn-edit, .btn-delete, .btn-save, .btn-warning {
    padding: 4px 8px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin: 0 2px;
    font-weight: 500;
    font-size: 9px;
}

.btn-edit { background: var(--secondary); color: white; }
.btn-delete { background: var(--danger); color: white; }
.btn-save { background: var(--success); color: white; }
.btn-warning { background: var(--warning); color: #1a1a2e; }

/* Адаптив */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav {
        justify-content: center;
    }
    
    .nav a {
        font-size: 9px;
        padding: 5px 8px;
    }
    
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .news-title {
        font-size: 12px;
    }
    
    .btn-play, .theme-toggle {
        padding: 6px 12px;
        font-size: 9px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .online-users {
        justify-content: center;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .tabs {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Анимации */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-left: 1px solid var(--border);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
}

/* Светлая тема */
body[data-theme="light"] {
    --bg-dark: #f0f0f0;
    --bg-darker: #e0e0e0;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-hover: rgba(245, 245, 245, 0.98);
    --text: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8a8aaa;
    --border: rgba(123, 47, 155, 0.2);
}

body[data-theme="light"] .form-control {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

body[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.95);
}

body[data-theme="light"] .footer {
    background: rgba(255, 255, 255, 0.95);
}

body[data-theme="light"] .server-item {
    background: rgba(0, 0, 0, 0.03);
}

body[data-theme="light"] .server-ip {
    background: rgba(0, 0, 0, 0.03);
}

body[data-theme="light"] .theme-toggle {
    background: linear-gradient(135deg, #f0b30a, #d4940a);
    box-shadow: 0 4px 0 #d4940a;
    color: #1a1a2e;
}

/* Модальное окно стили */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    max-height: 80%;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    animation: fadeIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(123, 47, 155, 0.2), transparent);
}

.modal-header h3 {
    margin: 0;
    font-size: 14px;
    font-family: 'Press Start 2P', monospace;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h3 i {
    color: var(--danger);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
    transition: transform 0.2s;
    padding: 0 8px;
}

.modal-close:hover {
    transform: scale(1.1);
    color: var(--danger);
}

.likes-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.like-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.like-item:hover {
    background: rgba(123, 47, 155, 0.1);
}

.like-item:last-child {
    border-bottom: none;
}

.like-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.like-item-name {
    color: var(--text);
    text-decoration: none;
    font-family: 'Press Start 2P', monospace;
    font-size: 11px;
    transition: color 0.2s;
    flex: 1;
}

.like-item-name:hover {
    color: var(--primary-light);
}

/* Анимация */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стилизация скроллбара для модального окна */
.likes-list::-webkit-scrollbar {
    width: 6px;
}

.likes-list::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 3px;
}

.likes-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.likes-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}



