/* ==========================================
   L2Site - Profile Page Styles (3-Section)
   Style: Essence Downgrade (Dark Neon + Gold)
   ========================================== */

:root {
    --bg-color: #0d0f12;
    --panel-bg: #14181f;
    --accent-gold: #cca553;
    --accent-purple: #7b2cbf;
    --text-main: #e2e8f0;
    --text-muted: #718096;
    --online-green: #00f5d4;
    --offline-red: #ff0054;
    --border-rgba: rgba(204, 165, 83, 0.15);
}

/* ==========================================
   ЦВЕТОВЫЕ КЛАССЫ С НЕОНОВЫМ СВЕЧЕНИЕМ
   Для виджета "Информация аккаунта"
   ========================================== */

.info-item .gold-text {
    color: #cca553 !important;
    text-shadow: 0 0 8px rgba(204, 165, 83, 0.5);
}

.info-item .purple-text {
    color: #a944ff !important;
    text-shadow: 0 0 8px rgba(169, 68, 255, 0.4);
}

.info-item .green-text {
    color: #00f5d4 !important;
    text-shadow: 0 0 8px rgba(0, 245, 212, 0.4);
}

.info-item .offline-red {
    color: #ff0054 !important;
    text-shadow: 0 0 8px rgba(255, 0, 84, 0.5);
}

/* ==========================================
   ВКЛАДКИ КОНТЕНТА (TABS)
   ========================================== */

.tab-content {
    animation: fadeIn 0.3s ease;
}

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

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

/* 1. ОБЩИЙ СБРОС И БАЗА */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(rgba(13, 15, 18, 0.85), rgba(13, 15, 18, 0.85)),
                url('../images/bg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
    color: #e2e8f0;
    box-shadow: inset 0 0 120px rgba(13, 15, 18, 0.95),
                inset 250px 0 300px rgba(123, 44, 191, 0.15),
                inset -250px 0 300px rgba(204, 165, 83, 0.12);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* 2. ШАПКА (HEADER) */
.lk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    background: var(--panel-bg);
    border-bottom: 1px solid var(--border-rgba);
    padding: 0 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    z-index: 10;
}

.lk-header h1 {
    font-size: 22px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(204, 165, 83, 0.2);
    font-family: 'Cinzel', serif;
    font-weight: 900;
}

.nav-tabs {
    display: flex;
    gap: 5px;
}

/* Правая зона шапки с ником и кнопкой выхода */
.lk-user-zone {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lk-username {
    color: var(--accent-gold);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(204, 165, 83, 0.3);
}

/* Верхнее меню шапки - мягкий серебряный по умолчанию */
.nav-tab-link {
    color: #718096;
    text-decoration: none;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 4px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-tab-link:hover {
    color: var(--accent-gold);
    background: rgba(204, 165, 83, 0.05);
}

/* Активный пункт - золотой текст + фиолетовое подчеркивание */
.nav-tab-link.active {
    color: var(--accent-gold);
    border-bottom: 2px solid var(--accent-purple);
    background: rgba(123, 44, 191, 0.1);
}

/* 3. ТРЕХСЕКЦИОННЫЙ МАКЕТ (LAYOUT) */
.lk-main-layout {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    width: 100%;
    flex: 1;
}

/* Сайдбары */
.lk-sidebar-left,
.lk-sidebar-right {
    width: 260px;
    flex-shrink: 0;
}

/* Центральная часть */
.lk-content-center {
    flex-grow: 1;
    margin: 0 20px;
    min-width: 0; /* Fix flexbox overflow */
}

/* 4. ВИДЖЕТЫ И ПАНЕЛИ */
.lk-widget,
.chars-section {
    background: var(--panel-bg);
    border-radius: 6px;
    padding: 20px;
    border: 1px solid var(--border-rgba);
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.widget-title {
    color: var(--accent-gold);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(204, 165, 83, 0.1);
    font-family: 'Cinzel', serif;
}

/* Панели как на главной */
.panel {
    background: var(--panel-bg);
    border: 1px solid rgba(204, 165, 83, 0.1);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.panel-title {
    font-size: 14px;
    font-weight: 900;
    color: var(--accent-gold);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(204, 165, 83, 0.1);
    font-family: 'Cinzel', serif;
}

/* 5. ЛЕВЫЙ САЙДБАР - КНОПКИ МЕНЮ */
.side-menu-links {
    display: flex;
    flex-direction: column;
}

.side-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #0d0f12;
    border: 1px solid rgba(204, 165, 83, 0.1);
    border-radius: 4px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 800;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.side-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(204, 165, 83, 0.3);
    color: #fff;
}

.side-link.active {
    border-left: 3px solid var(--accent-purple);
    background: rgba(123, 44, 191, 0.1);
    box-shadow: 0 0 10px rgba(123, 44, 191, 0.1);
    color: #fff;
}

/* 6. ПРАВЫЙ САЙДБАР - КНОПКИ ДЕЙСТВИЙ */
.useful-links-box {
    display: flex;
    flex-direction: column;
}

.btn-side-action {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    padding: 12px 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

/* Основная кнопка (Фиолетовый градиент) */
.btn-side-action:not(.secondary) {
    background: linear-gradient(135deg, var(--accent-purple), #9d4edd);
    color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(123, 44, 191, 0.2);
}

/* Вторичная кнопка (Темная с золотой рамкой) */
.btn-side-action.secondary {
    background: transparent;
    border: 1px solid rgba(204, 165, 83, 0.3);
    color: var(--accent-gold);
}

/* Эффект приподнимания при наведении */
.btn-side-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.btn-side-action.secondary:hover {
    background: rgba(204, 165, 83, 0.05);
    border-color: var(--accent-gold);
}

/* 7. ТАБЛИЦА ПЕРСОНАЖЕЙ */
.char-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
    overflow: hidden;
}

.char-table thead {
    background: rgba(204, 165, 83, 0.08);
}

.char-table th {
    color: var(--accent-gold);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-rgba);
}

.char-table td {
    padding: 15px;
    color: var(--text-main);
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.2s ease;
}

.char-table tbody tr:hover {
    background: rgba(123, 44, 191, 0.08);
}

.char-table tbody tr:last-child td {
    border-bottom: none;
}

/* Статусы */
.status-online {
    color: var(--online-green);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 245, 212, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--online-green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--online-green);
}

.status-offline {
    color: var(--text-muted);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-offline::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    opacity: 0.5;
}

/* 8. ТРЕХСЕКЦИОННЫЙ ФУТЕР */
.lk-footer {
    display: flex;
    justify-content: space-between;
    background: var(--panel-bg);
    padding: 30px;
    border-top: 1px solid var(--border-rgba);
    margin-top: auto;
}

.footer-section {
    width: 30%;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: 10px;
    font-size: 14px;
    font-family: 'Cinzel', serif;
    font-weight: 900;
}

/* Адаптивность */
@media (max-width: 992px) {
    .lk-main-layout {
        flex-direction: column;
    }

    .lk-sidebar-left,
    .lk-sidebar-right {
        width: 100%;
        margin-bottom: 20px;
    }

    .lk-content-center {
        margin: 0;
    }

    .lk-footer {
        flex-direction: column;
        gap: 20px;
    }

    .footer-section {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .lk-header {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
    }

    .nav-tabs {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   ФИКСЫ КОНТРАСТНОСТИ (2025-07-09)
   ========================================== */

/* --- 1. КНОПКА ВЫХОДА В ШАПКЕ --- */
.btn-logout {
    color: #ff0054;
    text-decoration: none;
    border: 1px solid rgba(255, 0, 84, 0.4);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.btn-logout:hover {
    background: #ff0054;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 0, 84, 0.4);
}

/* --- 2. ССЫЛКИ В ФУТЕРЕ --- */
.lk-footer a {
    color: #cca553;
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.lk-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ==========================================
   ФОРМА СМЕНЫ ПАРОЛЯ (2FA)
   ========================================== */

.form-group-2fa {
    margin-bottom: 15px;
}

.form-group-2fa label {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 500;
}

.input-2fa {
    width: 100%;
    padding: 10px 14px;
    background: #0d0f12;
    border: 1px solid rgba(204, 165, 83, 0.2);
    border-radius: 6px;
    color: var(--text-main);
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
}

.input-2fa::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.input-2fa:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.15);
}

.btn-2fa {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    font-family: 'Montserrat', sans-serif;
}

.btn-2fa-primary {
    background: linear-gradient(135deg, var(--accent-purple), #9d4edd);
    color: #fff;
    box-shadow: 0 4px 10px rgba(123, 44, 191, 0.3);
}

.btn-2fa-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(123, 44, 191, 0.5);
}

.btn-2fa-confirm {
    background: linear-gradient(135deg, #00f5d4, #00c9a7);
    color: #0d0f12;
    box-shadow: 0 4px 10px rgba(0, 245, 212, 0.3);
}

.btn-2fa-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 245, 212, 0.5);
}

.btn-2fa-back {
    background: transparent;
    border: 1px solid rgba(204, 165, 83, 0.3);
    color: var(--accent-gold);
}

.btn-2fa-back:hover {
    background: rgba(204, 165, 83, 0.1);
    border-color: var(--accent-gold);
}

.btn-2fa:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Состояния статуса формы */
#passwordFormStatus.success {
    color: #00f5d4;
}

#passwordFormStatus.error {
    color: #ff0054;
}

/* ==========================================
   КАРТОЧКИ ПЕРСОНАЖЕЙ
   ========================================== */

.chars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.char-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(204,165,83,0.2);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.char-card:hover {
    border-color: #cca553;
    box-shadow: 0 0 15px rgba(204,165,83,0.2);
    transform: translateY(-2px);
}

.char-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(204,165,83,0.05);
    border-bottom: 1px solid rgba(204,165,83,0.1);
}

.char-name {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

.char-level {
    color: #cca553;
    font-size: 12px;
    font-weight: bold;
    background: rgba(204,165,83,0.1);
    padding: 3px 8px;
    border-radius: 4px;
}

.char-card-body {
    padding: 15px;
}

.char-class {
    color: #a0aec0;
    font-size: 12px;
    margin-bottom: 10px;
}

.char-status {
    margin-top: 10px;
}

.char-card-footer {
    padding: 10px 15px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(204,165,83,0.05);
    text-align: center;
}

.click-hint {
    color: #718096;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   ИНВЕНТАРЬ (МОДАЛЬНОЕ ОКНО)
   ========================================== */

.item-checkbox {
    accent-color: #cca553;
}

/* ==========================================
   АДАПТИВНОСТЬ ДЛЯ КАРТОЧЕК
   ========================================== */

@media (max-width: 768px) {
    .chars-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   АДАПТИВНОСТЬ ПРОМО-КАРТОЧЕК (профиль)
   ========================================== */

@media (max-width: 768px) {
    .promo-grid {
        flex-direction: column;
    }

    .promo-card {
        width: 100%;
        height: 50px;
    }
}

/* ==========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ ПРОФИЛЯ (до 768px)
   ========================================== */

@media (max-width: 768px) {
    .lk-header {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 12px;
    }

    .lk-nav-center {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .nav-tab-link {
        font-size: 12px;
        padding: 8px 12px;
    }

    .lk-main-layout {
        flex-direction: column;
        margin: 15px 10px;
        padding: 0;
    }

    .lk-sidebar-left,
    .lk-sidebar-right {
        width: 100%;
        margin-bottom: 15px;
    }

    .lk-content-center {
        margin: 0;
    }

    .lk-widget {
        padding: 15px;
        margin-bottom: 15px;
    }

    .widget-title {
        font-size: 13px;
        margin-bottom: 12px;
        padding-bottom: 8px;
        font-family: 'Cinzel', serif;
        font-weight: 900;
    }

    .chars-section {
        padding: 15px;
    }

.chars-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--accent-gold);
    font-family: 'Cinzel', serif;
    font-weight: 900;
    letter-spacing: 1px;
}

    .char-card-header {
        padding: 12px;
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    .char-card-body {
        padding: 12px;
    }

    .lk-footer {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px;
    }

    .footer-section {
        width: 100%;
        text-align: center;
    }

    .lk-user-zone {
        flex-direction: column;
        gap: 8px;
    }

    .btn-logout {
        font-size: 11px;
        padding: 5px 10px;
    }

    .side-menu-links {
        gap: 5px;
    }

    .side-link {
        padding: 10px 12px;
        font-size: 13px;
    }

    .info-item {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    .label {
        font-size: 11px;
    }

    .value {
        font-size: 13px;
    }
}

/* ==========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (до 480px)
   ========================================== */

@media (max-width: 480px) {
    .lk-header {
        padding: 10px;
    }

.lk-logo {
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    font-family: 'Cinzel', serif;
}

.lk-logo span {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 3px;
    font-weight: 500;
}

    .lk-logo span {
        font-size: 10px;
    }

    .nav-tab-link {
        font-size: 11px;
        padding: 6px 10px;
    }

    .lk-main-layout {
        margin: 10px 5px;
    }

    .lk-widget {
        padding: 12px;
    }

    .widget-title {
        font-size: 12px;
    }

    .chars-section {
        padding: 12px;
    }

    .chars-section h3 {
        font-size: 15px;
    }

    .char-name {
        font-size: 12px;
    }

    .char-level {
        font-size: 10px;
    }

    .char-class {
        font-size: 11px;
    }

    .click-hint {
        font-size: 9px;
    }

    .lk-footer {
        padding: 15px 10px;
    }

    .footer-section {
        font-size: 12px;
    }

    .footer-section h4 {
        font-size: 13px;
        font-family: 'Cinzel', serif;
        font-weight: 900;
    }
}

/* ==========================================
   ВИДЖЕТ СТАТУСА СЕРВЕРА (как на главной)
   ========================================== */

.server-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

.status-indicator.online {
    color: #00f5d4;
}

.status-indicator.offline {
    color: #ff0054;
}

.status-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
}

.live-online {
    font-size: 14px;
    color: #718096;
}

.live-online span {
    color: #00f5d4;
    font-weight: bold;
}

/* Топ игроков */
.top-table {
    width: 100%;
    border-collapse: collapse;
}

.top-table tr {
    border-bottom: 1px solid rgba(204, 165, 83, 0.1);
}

.top-table tr:last-child {
    border-bottom: none;
}

.top-table td {
    padding: 10px 5px;
    color: var(--text-main);
    font-size: 13px;
}

.top-table .char-name {
    font-weight: 500;
}

.top-table .char-lvl {
    text-align: right;
    color: var(--accent-gold);
}

.mini-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.mini-dot.online {
    background: #00f5d4;
    box-shadow: 0 0 4px #00f5d4;
}

.mini-dot.offline {
    background: #718096;
    opacity: 0.5;
}

/* ==========================================
   АДАПТИВНОСТЬ ДЛЯ МОДАЛЬНЫХ ОКОН
   ========================================== */

@media (max-width: 768px) {
    #invModal {
        padding: 10px;
    }

    #invModal > div {
        width: 95% !important;
        max-width: 95% !important;
        padding: 15px !important;
    }

    #itemsList {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important;
    }

    #confirmDeleteModal > div {
        width: 90% !important;
    }
}

@media (max-width: 480px) {
    #itemsList {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)) !important;
    }
}

/* ==========================================
   АДАПТИВНОСТЬ ПРОМО-КАРТОЧЕК (профиль)
   ========================================== */

@media (max-width: 768px) {
    .promo-grid {
        flex-direction: column;
    }

    .promo-card {
        width: 100%;
        height: 50px;
    }
}

