/* ========================================
   UCP CSS - Личный кабинет игрока
   Empire State Project | Версия 1.0
   ======================================== */

/* ========== ПЕРЕМЕННЫЕ ========== */
:root {
    --accent: #ff0000;
    --accent-dark: #cc0000;
    --accent-light: rgba(255, 0, 0, 0.15);
    --accent-glow: rgba(255, 0, 0, 0.3);
    
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #0f0f0f;
    --bg-card: rgba(15, 15, 15, 0.92);
    --bg-card-hover: rgba(25, 25, 25, 0.96);
    --bg-sidebar: rgba(8, 8, 8, 0.96);
    --bg-header: rgba(10, 10, 10, 0.88);
    
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #999999;
    --text-muted: #666666;
    
    --border-light: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.12);
    --border-active: rgba(255, 0, 0, 0.4);
    
    --success: #00ff00;
    --success-dark: #00cc00;
    --success-bg: rgba(0, 255, 0, 0.1);
    --warning: #ff9900;
    --warning-bg: rgba(255, 153, 0, 0.1);
    --danger: #ff4444;
    --danger-bg: rgba(255, 68, 68, 0.1);
    --info: #3498db;
    --info-bg: rgba(52, 152, 219, 0.1);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(255, 0, 0, 0.2);
    
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
}

/* ========== БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}

/* ========== МОДАЛЬНЫЕ ОКНА ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 3px;
}

.modal::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    z-index: 1;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-close-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-tertiary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 0, 0, 0.1);
    transform: translateY(-50%) scale(1.05);
}

.modal-body {
    padding: 24px;
    background: var(--bg-card);
}

/* Формы внутри модального окна */
.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.modal-body .form-group label i {
    margin-right: 6px;
    color: var(--accent);
}

.modal-body input,
.modal-body select,
.modal-body textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px 15px;
    font-size: 13px;
    border-radius: var(--radius);
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1);
}

.modal-body select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff0000'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
    padding-right: 40px;
}

.modal-body select option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px;
}

.modal-body textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-body .form-hint {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 5px;
}

.form-note {
    background: rgba(52, 152, 219, 0.1);
    border-left: 3px solid var(--info);
    padding: 12px 15px;
    font-size: 11px;
    color: var(--text-tertiary);
    border-radius: var(--radius);
    margin-top: 15px;
}

.form-note i {
    margin-right: 8px;
    color: var(--info);
}

.modal-footer {
    padding: 16px 24px;
    display: flex;
    gap: 12px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.modal-btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius);
    text-align: center;
}

.modal-btn.cancel {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.modal-btn.create {
    background: var(--accent);
    border: none;
    color: #000;
}

.modal-btn.create:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.modal-btn.create:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal {
    animation: slideIn 0.3s ease;
}

/* Стили для select option в модальном окне */
.modal select option {
    background: #1a1a1a !important;
    color: #ffffff !important;
    padding: 10px !important;
}

.modal select option:hover,
.modal select option:checked {
    background: var(--accent) !important;
    color: #000000 !important;
}

/* Стили для кнопки создания тикета */
#createTicketBtn {
    margin-left: auto;
    white-space: nowrap;
}

/* ========== МОДАЛЬНОЕ ОКНО ТИКЕТА ДЛЯ ИГРОКОВ ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    display: flex;
}

.modal-large {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    position: relative;
    background: rgba(255, 255, 255, 0.03);
}

.modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    color: var(--text-primary);
}

.modal-close-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-tertiary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 180px);
}

/* Детали тикета */
.ticket-detail-info {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 20px;
}

.ticket-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.ticket-detail-row:last-child {
    border-bottom: none;
}

.ticket-detail-label {
    color: var(--text-tertiary);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
}

.ticket-detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Сообщение */
.ticket-message {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--accent);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--radius);
}

.ticket-message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 11px;
    color: var(--text-tertiary);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.ticket-message-text {
    line-height: 1.5;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Ответы */
.ticket-replies {
    margin-top: 20px;
}

.ticket-replies-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ticket-reply {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 12px;
}

.ticket-reply.admin {
    background: rgba(255, 0, 0, 0.05);
    border-left: 3px solid var(--accent);
}

.ticket-reply.player {
    background: rgba(0, 0, 0, 0.2);
}

.ticket-reply-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 11px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.ticket-reply-author {
    font-weight: 700;
}

.ticket-reply-author.admin {
    color: var(--accent);
}

.ticket-reply-author.player {
    color: var(--info);
}

.ticket-reply-date {
    color: var(--text-tertiary);
    font-size: 10px;
}

.ticket-reply-text {
    line-height: 1.5;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Футер с полем ответа */
.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.ticket-reply-area {
    width: 100%;
}

#ticketReplyMessage {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px 15px;
    font-size: 13px;
    border-radius: var(--radius);
    resize: vertical;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
}

#ticketReplyMessage:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

#ticketReplyMessage:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Кнопки в футере */
.modal-footer .action-btn,
.modal-footer .modal-btn {
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-footer .action-btn.success {
    background: var(--success-bg);
    border: 1px solid var(--success);
    color: var(--success);
}

.modal-footer .action-btn.success:hover {
    background: var(--success);
    color: #000;
}

.modal-footer .action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.modal-footer .action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.modal-footer .modal-btn.cancel {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.modal-footer .modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    color: var(--accent);
}

.modal-footer .action-btn:disabled,
.modal-footer .modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Группа кнопок */
.modal-footer .d-flex {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .modal-large {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 15px;
    }
    
    .modal-footer .d-flex {
        flex-direction: column;
    }
    
    .modal-footer .action-btn,
    .modal-footer .modal-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Стили для статус-бейджей */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
}

.status-pending {
    background: rgba(255, 153, 0, 0.2);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.status-approved {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid var(--success);
    color: var(--success);
}

.status-rejected {
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* Стили для скроллбара */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

/* Стили для авторов ответов */
.ticket-reply-author {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticket-reply-author.admin {
    color: var(--accent);
}

.ticket-reply-author.player {
    color: var(--info);
}

.ticket-reply-author i {
    font-size: 12px;
}

.ticket-reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 11px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 8px;
}

.ticket-reply-date {
    color: var(--text-tertiary);
    font-size: 10px;
}

/* ========== КНОПКА СОЗДАНИЯ ТИКЕТА ========== */
#createTicketBtn {
    margin-left: auto;
    white-space: nowrap;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.section-header .section-title::after {
    display: none;
}

/* ========== МОДАЛЬНОЕ ОКНО СОЗДАНИЯ ПЕРСОНАЖА ========== */
.form-note {
    background: rgba(52, 152, 219, 0.1);
    border-left: 3px solid var(--info);
    padding: 12px 15px;
    font-size: 11px;
    color: var(--text-tertiary);
    border-radius: var(--radius);
    margin-top: 15px;
}

.form-note i {
    margin-right: 8px;
    color: var(--info);
}

/* Стили для секции тикетов */
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ticket-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.ticket-item:hover {
    border-color: var(--accent);
    transform: translateX(3px);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ticket-id {
    font-family: monospace;
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
}

.ticket-subject {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.ticket-category {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

.ticket-message-preview {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.ticket-meta {
    display: flex;
    gap: 15px;
    font-size: 10px;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.ticket-open {
    border-left: 3px solid var(--warning);
}

.ticket-pending {
    border-left: 3px solid var(--info);
}

.ticket-closed {
    border-left: 3px solid var(--success);
    opacity: 0.7;
}

/* Адаптивность для модальных окон */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-width: none;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 12px 20px;
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
    
    .modal-close-btn {
        width: 28px;
        height: 28px;
    }
}

/* Стили для ошибок в формах */
.modal-body input.error,
.modal-body select.error,
.modal-body textarea.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.1);
}

.error-message {
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 10px 15px;
    border-radius: var(--radius);
    font-size: 12px;
    margin-bottom: 20px;
}

.success-message {
    background: var(--success-bg);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 10px 15px;
    border-radius: var(--radius);
    font-size: 12px;
    margin-bottom: 20px;
}

/* Большое модальное окно для тикета */
.modal-large {
    max-width: 700px;
    width: 90%;
}

/* Стили для деталей тикета */
.ticket-detail {
    padding: 5px;
}

.ticket-info {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 20px;
}

.ticket-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.ticket-info-row:last-child {
    border-bottom: none;
}

.ticket-info-label {
    color: var(--text-tertiary);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
}

.ticket-info-value {
    color: var(--text-primary);
    font-weight: 500;
}

.ticket-message {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--accent);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ticket-message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 11px;
    color: var(--text-tertiary);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.ticket-message-author {
    font-weight: 700;
    color: var(--accent);
}

.ticket-message-date {
    font-size: 10px;
}

.ticket-message-text {
    line-height: 1.5;
    font-size: 13px;
}

/* Стили для ответов */
.ticket-replies {
    margin-top: 20px;
}

.ticket-replies-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ticket-reply {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 15px;
}

.ticket-reply.admin {
    background: rgba(255, 0, 0, 0.05);
    border-left: 3px solid var(--accent);
}

.ticket-reply.player {
    background: rgba(0, 0, 0, 0.2);
}

.ticket-reply-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 11px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.ticket-reply-author {
    font-weight: 700;
}

.ticket-reply-author.admin {
    color: var(--accent);
}

.ticket-reply-author.player {
    color: var(--info);
}

.ticket-reply-date {
    color: var(--text-tertiary);
    font-size: 10px;
}

.ticket-reply-text {
    line-height: 1.5;
    font-size: 13px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Поле для ответа в модальном окне */
#ticketReplyMessage {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px;
    font-size: 13px;
    border-radius: var(--radius);
    margin-bottom: 15px;
    resize: vertical;
    font-family: 'Montserrat', sans-serif;
}

#ticketReplyMessage:focus {
    outline: none;
    border-color: var(--accent);
}

.modal-footer {
    flex-direction: column;
}

.modal-footer .modal-btn {
    margin-top: 10px;
}

/* ========== КНОПКА СОЗДАНИЯ ТИКЕТА ========== */
#createTicketBtn {
    margin-left: auto;
    white-space: nowrap;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.section-header .section-title::after {
    display: none;
}

/* ========== ФОНОВЫЕ ЭФФЕКТЫ ========== */
.main-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://empirebay-gta.online/forum-assets/fon.jpg') no-repeat center center;
    background-size: cover;
    z-index: -5;
    filter: brightness(0.25) contrast(1.1);
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 20%, rgba(0, 0, 0, 0.85) 100%);
    z-index: -4;
    pointer-events: none;
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.6); }
    100% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.3); }
}

/* ========== LAYOUT ========== */
.cabinet-wrapper {
    display: flex;
    height: 100vh;
    position: relative;
    z-index: 10;
}

/* ========== САЙДБАР ========== */
.cabinet-sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    z-index: 20;
}

.cabinet-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.sidebar-header {
    padding: 28px 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.logo-box img {
    height: 45px;
    width: auto;
    margin-bottom: 18px;
    transition: var(--transition);
}

.logo-box img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.3));
}

.player-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 6px 14px;
    margin-bottom: 18px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
    border-radius: var(--radius-sm);
}

.player-info {
    text-align: center;
}

.player-name {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-badge {
    display: inline-block;
    background: var(--accent-light);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 2px 10px;
    font-size: 9px;
    border-radius: 20px;
    margin-top: 5px;
}

/* Навигация */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
    width: 3px;
}

.nav-section {
    margin-bottom: 28px;
}

.nav-section-title {
    padding: 0 20px;
    margin-bottom: 12px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border-left: 3px solid transparent;
    position: relative;
    cursor: pointer;
}

.nav-link i {
    width: 22px;
    font-size: 14px;
    text-align: center;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--border-light);
    color: var(--text-primary);
    border-left-color: var(--accent);
    padding-left: 24px;
}

.nav-link.active {
    background: var(--accent-light);
    color: var(--text-primary);
    border-left-color: var(--accent);
}

.nav-link.active i {
    color: var(--accent);
}

.nav-badge {
    position: absolute;
    right: 20px;
    background: var(--accent);
    color: #000;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
    animation: pulse 2s infinite;
}

/* Подвал сайдбара */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.sidebar-link:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.sidebar-link i {
    width: 18px;
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
.cabinet-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}

/* Шапка */
.cabinet-header {
    height: 70px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: var(--bg-header);
    backdrop-filter: blur(12px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 8px 16px;
    width: 320px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.header-search:focus-within {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-glow);
}

.header-search i {
    color: var(--text-tertiary);
    font-size: 14px;
}

.header-search input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 13px;
    width: 100%;
    outline: none;
}

.header-search input::placeholder {
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.online-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-tertiary);
    background: rgba(0, 255, 0, 0.1);
    padding: 6px 12px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.online-counter i.fa-circle {
    font-size: 8px;
    color: var(--success);
    animation: pulse 1.5s infinite;
}

/* Контентная область */
.cabinet-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    position: relative;
}

.cabinet-content::-webkit-scrollbar {
    width: 6px;
}

.cabinet-content::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 3px;
}

.cabinet-content::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.content-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.content-section.active {
    display: block;
}

/* ========== ЗАГОЛОВКИ ========== */
.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

/* ========== ПРОФИЛЬ ========== */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.profile-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.profile-avatar {
    font-size: 100px;
    color: var(--accent);
    line-height: 1;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 6px 14px;
    font-size: 11px;
    color: var(--text-tertiary);
    border-radius: 20px;
}

.profile-forum {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 15px;
    border-left: 2px solid var(--accent);
    font-size: 12px;
    color: var(--text-tertiary);
    word-break: break-all;
    border-radius: var(--radius);
}

.profile-forum a {
    color: var(--accent);
    text-decoration: none;
}

.profile-forum a:hover {
    text-decoration: underline;
}

/* ========== СТАТИСТИКА ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 0, 0, 0.05));
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    color: var(--accent);
}

.stat-card:hover .stat-icon {
    border-color: var(--accent);
    transform: scale(1.05);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* ========== ПЕРСОНАЖИ ========== */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.character-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
}

.character-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.character-card.online {
    border-left: 3px solid var(--success);
}

.character-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent);
}

.character-info {
    flex: 1;
}

.character-info h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.character-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 11px;
    color: var(--text-tertiary);
}

.character-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.character-time {
    font-size: 11px;
    color: var(--text-muted);
}

.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner i {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.form-note {
    background: rgba(52, 152, 219, 0.1);
    border-left: 3px solid var(--info);
    padding: 12px;
    font-size: 11px;
    color: var(--text-tertiary);
    border-radius: var(--radius);
    margin-top: 15px;
}

/* ========== СООБЩЕНИЯ ========== */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-item {
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    transition: var(--transition);
    border-radius: var(--radius);
}

.message-item:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.02);
    transform: translateX(3px);
}

.message-item.important {
    border-left: 3px solid var(--warning);
    background: var(--warning-bg);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.message-subject {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.message-time {
    font-size: 10px;
    color: var(--text-tertiary);
}

.message-preview {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.message-meta {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== НАКАЗАНИЯ ========== */
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-body {
    padding: 24px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 12px 15px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 12px 15px;
    font-size: 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ========== ФОРМЫ ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px 14px;
    font-size: 13px;
    transition: var(--transition);
    border-radius: var(--radius);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-glow);
}

.form-hint {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 5px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-1px);
}

/* ========== СТАТУС-БЕЙДЖИ ========== */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
}

.status-approved {
    background: var(--success-bg);
    border: 1px solid var(--success);
    color: var(--success);
}

.status-pending {
    background: var(--warning-bg);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.status-rejected {
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* ========== СТРАНИЦЫ АВТОРИЗАЦИИ ========== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
}

.auth-page .main-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    z-index: 1;
}

.auth-card {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
}

.auth-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.auth-title {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--text-tertiary);
    font-size: 12px;
    margin-bottom: 30px;
}

.auth-form {
    text-align: left;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px 15px;
    font-size: 14px;
    border-radius: var(--radius);
}

.auth-form input:focus {
    border-color: var(--accent);
    outline: none;
}

.auth-btn {
    width: 100%;
    background: var(--accent);
    border: none;
    color: #000;
    padding: 12px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.auth-footer {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-message {
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 12px;
    border-radius: var(--radius);
    font-size: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.success-message {
    background: var(--success-bg);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 12px;
    border-radius: var(--radius);
    font-size: 12px;
    margin-bottom: 20px;
    text-align: center;
}

/* ========== ПУСТЫЕ СОСТОЯНИЯ ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== СКРОЛЛБАР ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1366px) {
    .cabinet-sidebar {
        width: 260px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .cabinet-sidebar {
        width: 220px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link i {
        margin: 0 auto;
    }
    
    .nav-badge {
        right: 10px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-search {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .cabinet-sidebar {
        position: fixed;
        left: -280px;
        z-index: 30;
        transition: var(--transition);
    }
    
    .cabinet-sidebar.active {
        left: 0;
    }
    
    .cabinet-content {
        padding: 20px;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .profile-badges {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .characters-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .admin-table {
        display: block;
        overflow-x: auto;
    }
}