/* ============================================================
   ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
    --bg-deep: #05050f;
    --bg-dark: #0a0a1e;

    --accent-1: #6C3CE1;
    --accent-2: #A855F7;
    --accent-3: #4A90D9;
    --accent-gradient: linear-gradient(135deg, #6C3CE1, #4A90D9);
    --accent-gradient-2: linear-gradient(135deg, #A855F7, #6C3CE1);

    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --gold: #FFD700;

    --text: #ffffff;
    --text-muted: #8888aa;
    --text-dim: #555577;

    --border: rgba(108, 60, 225, 0.15);
    --border-light: rgba(108, 60, 225, 0.08);

    --shadow-glow: 0 0 30px rgba(108, 60, 225, 0.15);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.5);

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    --t-fast: 0.15s ease;
    --t-base: 0.25s ease;
    --t-slow: 0.4s ease;

    --content-max: 900px;
}


/* ============================================================
   RESET
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

input, textarea, select {
    font-family: inherit;
}


/* ============================================================
   КОСМИЧЕСКИЙ ФОН
   ============================================================ */
.space-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 15%, rgba(108, 60, 225, 0.10), transparent 55%),
        radial-gradient(ellipse at 80% 85%, rgba(74, 144, 217, 0.07), transparent 55%),
        var(--bg-deep);
}

.space-nebula {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(108, 60, 225, 0.06), transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(74, 144, 217, 0.05), transparent 45%);
    animation: nebulaPulse 15s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes nebulaPulse {
    0%   { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1;   transform: scale(1.05); }
}

#spaceCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}


/* ============================================================
   ГАМБУРГЕР (menu-toggle)
   ============================================================ */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 50;
    width: 48px;
    height: 48px;
    background: rgba(20, 20, 50, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: all var(--t-base);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.menu-toggle:hover {
    background: rgba(108, 60, 225, 0.15);
    border-color: var(--accent-1);
    transform: scale(1.05);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--t-base);
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   ВЫДВИЖНАЯ ПАНЕЛЬ (side-panel)
   ============================================================ */
.side-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    z-index: 60;

    background: rgba(10, 10, 30, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--border);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);

    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;

    transform: translateX(-100%);
    transition: transform var(--t-slow) cubic-bezier(0.34, 1.2, 0.64, 1);
}

.side-panel.open {
    transform: translateX(0);
}

.side-panel-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    color: var(--text-dim);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-base);
}

.side-panel-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    transform: rotate(90deg);
}


/* ===== ПРОФИЛЬ В ПАНЕЛИ ===== */
.side-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0 24px;
    border-bottom: 1px solid var(--border-light);
}

.side-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 14px;
    border: 2px solid var(--accent-1);
    box-shadow: 0 0 30px rgba(108, 60, 225, 0.3);
    background: rgba(108, 60, 225, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-avatar-placeholder {
    font-size: 40px;
    color: var(--text-dim);
}

.side-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.3;
    word-break: break-word;
}

.side-role {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(108, 60, 225, 0.12);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.side-role.role-owner {
    background: rgba(255, 215, 0, 0.12);
    color: var(--gold);
    border-color: rgba(255, 215, 0, 0.3);
}

.side-role.role-admin {
    background: rgba(168, 85, 247, 0.12);
    color: var(--accent-2);
    border-color: rgba(168, 85, 247, 0.3);
}


/* ===== КНОПКИ В ПАНЕЛИ ===== */
.side-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--t-base);
}

.side-btn:hover {
    background: rgba(108, 60, 225, 0.12);
    color: var(--text);
    border-color: var(--border);
    transform: translateX(4px);
}

.side-btn-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.side-btn-admin:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
}

.side-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.side-btn-logout {
    color: var(--danger);
}

.side-btn-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}


/* ============================================================
   ОВЕРЛЕЙ
   ============================================================ */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 15, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-base);
}

.overlay.show {
    opacity: 1;
    pointer-events: auto;
}


/* ============================================================
   ОСНОВНОЙ КОНТЕНТ
   ============================================================ */
.main-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 88px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-content-guest {
    padding: 40px 20px;
    justify-content: center;
}

.home-container {
    width: 100%;
    max-width: var(--content-max);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   ГЛАВНАЯ — НОВОСТИ
   ============================================================ */
.home-header {
    margin-bottom: 28px;
    padding: 0 4px;
}

.home-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff, #b8b8e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.home-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card {
    background: rgba(20, 20, 50, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px 28px;
    transition: all var(--t-base);
    animation: fadeInUp 0.5s ease-out;
}

.news-card:hover {
    border-color: rgba(108, 60, 225, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(108, 60, 225, 0.15);
}

.news-card-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.news-card-meta {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.news-card-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    white-space: pre-wrap;
}

.news-empty {
    text-align: center;
    padding: 60px 20px;
    background: rgba(20, 20, 50, 0.4);
    border: 1px dashed var(--border);
    border-radius: var(--radius-xl);
}

.news-empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

.news-empty-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.news-empty-text {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}


/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--t-base);
    line-height: 1.2;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-full { width: 100%; }

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 0 30px rgba(108, 60, 225, 0.15);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(108, 60, 225, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-outline:hover:not(:disabled) {
    background: rgba(108, 60, 225, 0.05);
    color: var(--text);
    border-color: var(--accent-1);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}


/* ============================================================
   КАРТОЧКИ
   ============================================================ */
.card {
    background: rgba(20, 20, 50, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    overflow: hidden;
}


/* ============================================================
   ФОРМЫ
   ============================================================ */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: all var(--t-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-1);
    background: rgba(108, 60, 225, 0.05);
    box-shadow: 0 0 30px rgba(108, 60, 225, 0.08);
}

.form-group input.input-error {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.04);
}

.field-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-dim);
}

.field-error {
    margin-top: 6px;
    font-size: 13px;
    color: var(--danger);
    display: none;
}

.field-error.show {
    display: block;
}

.form-error {
    margin: 12px 0;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius);
    color: #ff8a8a;
    font-size: 13px;
    text-align: center;
    display: none;
}

.form-error.show {
    display: block;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 18px;
    padding: 6px;
    transition: color var(--t-base);
    line-height: 1;
}

.password-toggle:hover {
    color: var(--text);
}


/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius);
    background: rgba(20, 20, 50, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    color: var(--text);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transform: translateX(120%);
    transition: transform var(--t-slow) cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 260px;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.toast-message {
    color: var(--text-muted);
    font-size: 13px;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 16px;
    padding: 0 4px;
    transition: color var(--t-base);
}

.toast-close:hover {
    color: var(--text);
}

.toast.success { border-color: rgba(34, 197, 94, 0.4); }
.toast.error   { border-color: rgba(239, 68, 68, 0.4); }
.toast.warning { border-color: rgba(245, 158, 11, 0.4); }


/* ============================================================
   LOADER
   ============================================================ */
.loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 900px) {
    .main-content {
        padding: 80px 20px 32px;
    }

    .home-title {
        font-size: 24px;
    }

    .news-card {
        padding: 20px;
    }

    .side-panel {
        width: 280px;
    }

    .toast-container {
        right: 12px;
        left: 12px;
        bottom: 12px;
        max-width: none;
    }

    .toast {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .main-content {
        padding: 76px 16px 24px;
    }

    .home-title {
        font-size: 22px;
    }

    .news-card {
        padding: 18px 16px;
        border-radius: var(--radius-lg);
    }

    .news-empty {
        padding: 40px 16px;
    }

    .news-empty-icon {
        font-size: 44px;
    }

    .side-panel {
        width: 260px;
        padding: 20px 16px;
    }

    .side-avatar {
        width: 72px;
        height: 72px;
    }
}

/* ============================================================
   БЕЙДЖИ (должности + теги)
   ============================================================ */
.side-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
    max-width: 100%;
    padding: 0 4px;
}

.badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.3px;
    white-space: nowrap;
    text-transform: uppercase;

    color: #fff;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--badge-color, #888) 85%, #fff 15%),
        color-mix(in srgb, var(--badge-color, #888) 60%, #000 40%)
    );
    border: 1px solid color-mix(in srgb, var(--badge-color, #888) 70%, #000 30%);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.badge:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 6px 18px color-mix(in srgb, var(--badge-color, #888) 40%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Лёгкая подсветка сверху */
.badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent 50%);
    pointer-events: none;
}

/* Обычный пользователь — серый, без агрессии */
.badge-default {
    --badge-color: #6a6a85;
    background: linear-gradient(135deg, #3a3a55, #23233a);
    border-color: #4a4a65;
    color: #b0b0c8;
    text-shadow: none;
    font-weight: 600;
}

/* Теги «Команда Проекта» / «Команда Сайта» — компактнее, чуть мягче */
.badge-tag {
    padding: 5px 10px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.7px;
    border-radius: 6px;
}

/* ============================================================
   ПРОФИЛЬ
   ============================================================ */
.profile-page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease-out;
}

/* Баннер */
.profile-banner {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #6C3CE1 0%, #A855F7 50%, #4A90D9 100%);
    background-size: cover;
    background-position: center;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.profile-banner-edit {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(20, 20, 50, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-banner-edit:hover {
    background: rgba(108, 60, 225, 0.9);
    transform: scale(1.08);
}

/* Шапка профиля */
.profile-header {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding: 0 32px 24px;
    background: rgba(20, 20, 50, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 20px 20px;
    position: relative;
    margin-top: -60px;
    padding-top: 20px;
}

/* Аватар */
.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    margin-top: -60px;
}

.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-deep);
    background: rgba(108, 60, 225, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar.empty::before {
    content: '👤';
    color: var(--text-dim);
}

.profile-avatar-edit {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(108, 60, 225, 0.9);
    border: 2px solid var(--bg-deep);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-avatar-edit:hover:not(.disabled) {
    transform: scale(1.1);
}
.profile-avatar-edit.disabled {
    background: rgba(100, 100, 120, 0.6);
    cursor: not-allowed;
}

/* Информация */
.profile-info {
    flex: 1;
    min-width: 0;
    padding-bottom: 8px;
}

.profile-name {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    text-shadow: 0 0 var(--glow, 0) currentColor;
    transition: text-shadow 0.3s;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Кнопки действий */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    padding-bottom: 8px;
}

/* Плитки статистики */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.stat-tile {
    background: rgba(20, 20, 50, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}
.stat-tile:hover {
    border-color: rgba(108, 60, 225, 0.3);
    transform: translateY(-2px);
}
.stat-tile-icon { font-size: 24px; margin-bottom: 8px; }
.stat-tile-value { font-size: 22px; font-weight: 800; color: var(--text); }
.stat-tile-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Заглушка стены */
.profile-wall-placeholder {
    margin-top: 24px;
    padding: 60px 20px;
    text-align: center;
    background: rgba(20, 20, 50, 0.4);
    border: 1px dashed var(--border);
    border-radius: 20px;
}
.profile-wall-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.profile-wall-text { color: var(--text-muted); }

/* Модалки */
.modal-box-wide { max-width: 700px; }

.upload-preview {
    margin: 20px 0;
    border: 2px dashed var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.upload-preview:hover { border-color: var(--accent-1); }

.upload-preview-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.upload-preview-banner {
    width: 100%;
    height: 220px;
}

.upload-placeholder { color: var(--text-dim); font-size: 13px; }

/* Адаптив */
@media (max-width: 700px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    .profile-info { text-align: center; }
    .profile-name { font-size: 22px; }
    .profile-actions { width: 100%; }
    .profile-stats { grid-template-columns: repeat(2, 1fr); }
    .profile-banner { height: 160px; }
    .profile-avatar-wrapper { margin-top: -80px; }
    .profile-avatar { width: 110px; height: 110px; }
}

.profile-name {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 0 0 transparent;
    transition: text-shadow 0.3s, color 0.3s;
}

/* ============================================================
   ПРОФИЛЬ
   ============================================================ */
.profile-page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease-out;
}

/* Баннер */
.profile-banner {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #6C3CE1 0%, #A855F7 50%, #4A90D9 100%);
    background-size: cover;
    background-position: center;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.profile-banner-edit {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(20, 20, 50, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-banner-edit:hover {
    background: rgba(108, 60, 225, 0.9);
    transform: scale(1.08);
}

/* Шапка профиля */
.profile-header {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding: 0 32px 24px;
    background: rgba(20, 20, 50, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 20px 20px;
    position: relative;
    margin-top: -60px;
    padding-top: 20px;
}

/* Аватар */
.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    margin-top: -60px;
}

.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-deep);
    background: rgba(108, 60, 225, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-empty {
    font-size: 52px;
    color: var(--text-dim);
    line-height: 1;
}

.profile-avatar-edit {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(108, 60, 225, 0.9);
    border: 2px solid var(--bg-deep);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.profile-avatar-edit:hover:not(.disabled) {
    transform: scale(1.1);
}

.profile-avatar-edit.disabled {
    background: rgba(100, 100, 120, 0.6);
    cursor: not-allowed;
}

/* Информация */
.profile-info {
    flex: 1;
    min-width: 0;
    padding-bottom: 8px;
}

.profile-name {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 0 0 transparent;
    transition: text-shadow 0.3s, color 0.3s;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Кнопки действий */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    padding-bottom: 8px;
}

/* Плитки статистики */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.stat-tile {
    background: rgba(20, 20, 50, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.stat-tile:hover {
    border-color: rgba(108, 60, 225, 0.3);
    transform: translateY(-2px);
}

.stat-tile-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-tile-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.stat-tile-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Заглушка стены */
.profile-wall-placeholder {
    margin-top: 24px;
    padding: 60px 20px;
    text-align: center;
    background: rgba(20, 20, 50, 0.4);
    border: 1px dashed var(--border);
    border-radius: 20px;
}

.profile-wall-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.profile-wall-text {
    color: var(--text-muted);
}

/* Модалки */
.modal-box-wide {
    max-width: 700px;
}

.upload-preview {
    margin: 20px 0;
    border: 2px dashed var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-preview:hover {
    border-color: var(--accent-1);
}

.upload-preview-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.upload-preview-banner {
    width: 100%;
    height: 220px;
}

.upload-placeholder {
    color: var(--text-dim);
    font-size: 13px;
}

/* Адаптив */
@media (max-width: 700px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .profile-info {
        text-align: center;
    }

    .profile-name {
        font-size: 22px;
    }

    .profile-actions {
        width: 100%;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-banner {
        height: 160px;
    }

    .profile-avatar-wrapper {
        margin-top: -80px;
    }

    .profile-avatar {
        width: 110px;
        height: 110px;
    }
}

/* ============================================================
   СТЕНА ПРОФИЛЯ
   ============================================================ */
.wall-section {
    margin-top: 24px;
    background: rgba(20, 20, 50, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
}

/* Форма */
.wall-form {
    margin-bottom: 24px;
}

.wall-input {
    width: 100%;
    min-height: 80px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: all 0.2s;
}
.wall-input:focus {
    border-color: var(--accent-1);
    background: rgba(108, 60, 225, 0.05);
}

.wall-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.wall-hint {
    font-size: 11px;
    color: var(--text-dim);
}

.wall-reply-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: rgba(108, 60, 225, 0.1);
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.wall-reply-indicator b { color: var(--accent-2); }
.wall-reply-cancel {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 14px;
}
.wall-reply-cancel:hover { color: var(--text); }

.wall-notice {
    padding: 20px;
    text-align: center;
    background: rgba(108, 60, 225, 0.05);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}
.wall-notice a { color: var(--accent-2); font-weight: 600; }

/* Список */
.wall-comments {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.wall-loading,
.wall-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dim);
    font-size: 13px;
}

/* Комментарий */
.wall-comment {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    transition: background 0.2s;
}
.wall-comment:hover {
    background: rgba(108, 60, 225, 0.05);
}

.wall-comment-left { flex-shrink: 0; }

.wall-avatar {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(108, 60, 225, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 2px solid var(--border);
    text-decoration: none;
}
.wall-avatar img { width: 100%; height: 100%; object-fit: cover; }

.wall-avatar-sm { width: 36px; height: 36px; }

.wall-comment-body {
    flex: 1;
    min-width: 0;
}

.wall-comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.wall-name {
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.wall-name:hover { opacity: 0.8; }

.wall-time {
    font-size: 11px;
    color: var(--text-dim);
    margin-left: auto;
}

.wall-reply-to {
    font-size: 11px;
    color: var(--accent-2);
}

.wall-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.wall-text a { color: var(--accent-2); }

/* Кнопки действий */
.wall-actions {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}
.wall-action-btn {
    padding: 4px 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.wall-action-btn:hover {
    background: rgba(108, 60, 225, 0.1);
    color: var(--text);
}

/* Реакции */
.wall-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.wall-reaction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.wall-reaction:hover { background: rgba(108, 60, 225, 0.1); }
.wall-reaction.mine {
    background: rgba(108, 60, 225, 0.2);
    border-color: var(--accent-1);
}
.wall-reaction b { font-weight: 700; color: var(--text); }

/* Ответы */
.wall-replies {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wall-comment-reply {
    padding: 10px;
}

.wall-more-btn {
    padding: 6px 12px;
    background: transparent;
    border: none;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    border-radius: 8px;
    transition: all 0.15s;
}
.wall-more-btn:hover { background: rgba(108, 60, 225, 0.1); }

/* Панель реакций */
.reaction-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: rgba(20, 20, 50, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 340px;
    animation: ctxFadeIn 0.15s ease-out;
}
.reaction-pick-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.15s;
}
.reaction-pick-btn:hover {
    background: rgba(108, 60, 225, 0.15);
    transform: scale(1.15);
}

/* ============================================================
   МОДАЛЬНЫЕ ОКНА (glassmorphism)
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 15, 0.55);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    z-index: 9998;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay.show {
    display: flex;
    animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 32px 32px 28px;

    /* Стеклянный эффект */
    background: linear-gradient(
        135deg,
        rgba(108, 60, 225, 0.12) 0%,
        rgba(20, 20, 50, 0.85) 40%,
        rgba(10, 10, 30, 0.92) 100%
    );
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 24px;

    /* Свечение и тени */
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(108, 60, 225, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

/* Блик сверху */
.modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(168, 85, 247, 0.6),
        transparent
    );
    border-radius: 24px 24px 0 0;
}

/* Мягкое свечение в углу */
.modal-box::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 70%;
    height: 100%;
    background: radial-gradient(
        ellipse,
        rgba(108, 60, 225, 0.18),
        transparent 70%
    );
    pointer-events: none;
    border-radius: 24px;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.94); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-box-wide {
    max-width: 700px;
}

/* ============================================================
   КРЕСТИК
   ============================================================ */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 50%;
    color: #c084fc;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: inherit;
    z-index: 2;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(168, 85, 247, 0.3);
    color: #fff;
    border-color: #a855f7;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

/* ============================================================
   ЗАГОЛОВКИ
   ============================================================ */
.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    padding-right: 48px;
    letter-spacing: -0.4px;
    position: relative;
    z-index: 1;
}

.modal-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

/* ============================================================
   ФОРМА ВНУТРИ МОДАЛКИ
   ============================================================ */
.modal-box .form-group {
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.modal-box .form-group label {
    display: block;
    color: #b8b8d0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.modal-box .form-group input,
.modal-box .form-group select,
.modal-box .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 14px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.25s;
    -webkit-appearance: none;
    appearance: none;
}

.modal-box .form-group input:focus,
.modal-box .form-group select:focus,
.modal-box .form-group textarea:focus {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.08);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
}

/* ============================================================
   SELECT — убираем белые линии и стрелку браузера
   ============================================================ */
.modal-box select {
    cursor: pointer;
    padding-right: 44px;

    /* Кастомная стрелка */
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}

/* Убираем системный вид в IE/Edge */
.modal-box select::-ms-expand {
    display: none;
}

/* Опции в выпадающем списке */
.modal-box select option {
    background: #1a1a3a;
    color: #fff;
    padding: 10px;
    border: none;
    font-size: 14px;
}

.modal-box select option:checked,
.modal-box select option:hover {
    background: linear-gradient(135deg, #6C3CE1, #4A90D9);
    color: #fff;
}

/* Убираем белые полоски у input в Chrome autofill */
.modal-box input:-webkit-autofill,
.modal-box input:-webkit-autofill:hover,
.modal-box input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px rgba(20, 20, 50, 0.9) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* ============================================================
   КНОПКИ В МОДАЛКЕ
   ============================================================ */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.modal-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
    border-radius: 14px;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 480px) {
    .modal-box {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-actions {
        flex-direction: column;
    }
}

/* ============================================================
   АКТИВНЫЕ НАКАЗАНИЯ
   ============================================================ */
.profile-bans {
    margin-top: 16px;
    padding: 16px 20px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 16px;
}

.profile-bans-title {
    font-size: 13px;
    font-weight: 700;
    color: #ff8a8a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.profile-bans-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ban-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 10px;
    font-size: 13px;
}

.ban-item-info {
    flex: 1;
    min-width: 0;
}

.ban-item-name {
    font-weight: 700;
    color: #ff8a8a;
    margin-bottom: 3px;
}

.ban-item-meta {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.ban-item-meta b {
    color: var(--text);
    font-weight: 600;
}

.ban-lift-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.ban-lift-btn:hover {
    background: rgba(34, 197, 94, 0.3);
    color: #fff;
    border-color: #22c55e;
}

/* ============================================================
   МОДАЛКА ПОДТВЕРЖДЕНИЯ НАКАЗАНИЯ
   ============================================================ */
.confirm-modal {
    max-width: 440px;
    text-align: center;
}

.confirm-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 16px;
    display: inline-block;
    animation: confirmPulse 1.5s ease-in-out infinite;
}

@keyframes confirmPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.4)); }
    50%      { transform: scale(1.08); filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.7)); }
}

.confirm-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 24px 0;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 14px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.confirm-label {
    color: var(--text-muted);
    flex-shrink: 0;
}

.confirm-value {
    color: var(--text);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.confirm-value-danger {
    color: #ff8a8a;
    font-weight: 700;
}

.confirm-modal .modal-actions {
    margin-top: 8px;
}

.confirm-modal .modal-actions .btn {
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 14px;
}

/* ============================================================
   ПОДТВЕРЖДЕНИЕ СНЯТИЯ НАКАЗАНИЯ
   ============================================================ */
.confirm-icon-success {
    animation: confirmPulseSuccess 1.5s ease-in-out infinite;
}

@keyframes confirmPulseSuccess {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.4));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.7));
    }
}

.confirm-value-success {
    color: #4ade80;
    font-weight: 700;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.15);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(34, 197, 94, 0.35);
}

/* ============================================================
   СПИСОК РЕАКЦИЙ
   ============================================================ */
.reactions-popup {
    background: rgba(20, 20, 50, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    min-width: 180px;
    max-width: 260px;
    animation: ctxFadeIn 0.15s ease-out;
}

.reactions-popup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    font-weight: 600;
}

.reactions-popup-emoji {
    font-size: 20px;
}

.reactions-popup-count {
    color: var(--text-muted);
    font-size: 12px;
}

.reactions-popup-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 220px;
    overflow-y: auto;
}

.reactions-popup-item {
    padding: 5px 8px;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reactions-popup-item:hover {
    background: rgba(108, 60, 225, 0.15);
    color: var(--accent-2);
}

@media (max-width: 700px) {
    .wall-section {
        padding: 16px;
        border-radius: 16px;
    }

    .wall-comment {
        padding: 10px;
        gap: 10px;
    }

    .wall-avatar { width: 36px; height: 36px; font-size: 14px; }
    .wall-avatar-sm { width: 30px; height: 30px; }

    .wall-comment-header {
        flex-wrap: wrap;
        gap: 4px;
    }

    .wall-name { font-size: 13px; }
    .wall-time { font-size: 10px; }

    .wall-actions {
        flex-wrap: wrap;
        gap: 2px;
    }

    .wall-action-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .wall-input {
        min-height: 60px;
        font-size: 13px;
    }

    .wall-replies {
        padding-left: 12px;
    }
}

.ban-appeal-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    background: rgba(108, 60, 225, 0.15);
    border: 1px solid rgba(108, 60, 225, 0.4);
    color: var(--accent-2);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.ban-appeal-btn:hover {
    background: rgba(108, 60, 225, 0.3);
    color: #fff;
}

/* ============================================================
   ПОДПИСКИ
   ============================================================ */
.profile-meta-link {
    cursor: pointer;
    transition: color 0.2s;
}

.profile-meta-link:hover {
    color: var(--accent-2);
}

.profile-meta-link b {
    color: var(--text);
    font-weight: 700;
}

.btn-subscribe {
    transition: all 0.2s;
}

.btn-subscribe[data-state="subscribed"]:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ff8a8a;
    border-color: rgba(239, 68, 68, 0.4);
}

.btn-subscribe[data-state="subscribed"]:hover::after {
    content: '';
}

/* Список в модалке */
.subs-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 8px;
}

.subs-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: background 0.15s;
}

.subs-item:hover {
    background: rgba(108, 60, 225, 0.1);
}

.subs-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(108, 60, 225, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 2px solid var(--border);
    flex-shrink: 0;
    text-decoration: none;
}

.subs-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subs-item-name {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.15s;
}

.subs-item-name:hover {
    color: var(--accent-2);
}

.subs-empty {
    text-align: center;
    padding: 30px;
    color: var(--text-dim);
    font-size: 13px;
}

/* ============================================================
   КОЛОКОЛЬЧИК УВЕДОМЛЕНИЙ
   ============================================================ */
.notif-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.notif-bell {
    position: relative;
    width: 48px;
    height: 48px;
    background: rgba(20, 20, 50, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-base);
    padding: 0;
    font-family: inherit;
}

.notif-bell:hover {
    background: rgba(108, 60, 225, 0.2);
    border-color: var(--accent-1);
    transform: scale(1.05);
}

.notif-icon {
    font-size: 20px;
    line-height: 1;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-deep);
    line-height: 1;
}

/* Выпадашка */
.notif-dropdown {
    position: absolute;
    top: 56px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    max-height: 520px;
    background: rgba(20, 20, 50, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: notifFadeIn 0.2s ease-out;
}

.notif-dropdown.open {
    display: flex;
}

@keyframes notifFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Шапка */
.notif-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    background: rgba(108, 60, 225, 0.04);
}

.notif-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.notif-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.notif-action-btn {
    padding: 6px 10px;
    background: rgba(108, 60, 225, 0.1);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: all var(--t-base);
    white-space: nowrap;
}

.notif-action-btn:hover {
    background: rgba(108, 60, 225, 0.25);
    color: var(--text);
}

/* Список */
.notif-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.notif-list::-webkit-scrollbar {
    width: 6px;
}
.notif-list::-webkit-scrollbar-thumb {
    background: rgba(108, 60, 225, 0.3);
    border-radius: 3px;
}

/* Уведомление */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.notif-item:hover {
    background: rgba(108, 60, 225, 0.08);
}

.notif-item.unread {
    background: rgba(108, 60, 225, 0.05);
}

.notif-item.unread .notif-item-title {
    font-weight: 700;
    color: var(--text);
}

.notif-dot {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-2);
    display: none;
}

.notif-item.unread .notif-dot {
    display: block;
}

.notif-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(108, 60, 225, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 2px;
    line-height: 1.3;
}

.notif-item-text {
    font-size: 12px;
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notif-item-time {
    font-size: 11px;
    color: var(--text-dim);
}

/* Пусто */
.notif-loading,
.notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
}

.notif-empty-icon {
    font-size: 48px;
    opacity: 0.4;
    margin-bottom: 12px;
}

.notif-empty-title {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
}

.notif-empty-text {
    font-size: 12px;
    color: var(--text-dim);
    max-width: 260px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Адаптив */
@media (max-width: 480px) {
    .notif-wrapper {
        top: 12px;
        right: 12px;
    }

    .notif-bell {
        width: 42px;
        height: 42px;
    }

    .notif-icon {
        font-size: 18px;
    }

    .notif-dropdown {
        width: calc(100vw - 24px);
        right: -6px;
    }
}

/* ============================================================
   СТРАНИЦА УВЕДОМЛЕНИЙ
   ============================================================ */
.notifications-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeInUp 0.5s ease-out;
}

.notif-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 0 4px;
}

.notif-page-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff, #b8b8e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.notif-page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* Вкладки */
.notif-tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: rgba(20, 20, 50, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: fit-content;
    margin-bottom: 24px;
}

.notif-tab {
    padding: 10px 22px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.notif-tab:hover {
    background: rgba(108, 60, 225, 0.12);
    color: var(--text);
    border-color: rgba(108, 60, 225, 0.25);
}

.notif-tab.active {
    background: linear-gradient(135deg, #6C3CE1, #4A90D9);
    color: #ffffff;
    border-color: transparent;
    box-shadow:
        0 4px 16px rgba(108, 60, 225, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.notif-tab.active:hover {
    background: linear-gradient(135deg, #7C4CE1, #5AA0E9);
    color: #ffffff;
}

.notif-tab-count {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
    line-height: 1;
    color: var(--text-muted);
}

.notif-tab.active .notif-tab-count {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.notif-tab:hover {
    background: rgba(108, 60, 225, 0.08);
    color: var(--text);
}

.notif-tab.active {
    background: linear-gradient(135deg, #6C3CE1, #4A90D9);
    color: #fff;
    box-shadow: 0 4px 12px rgba(108, 60, 225, 0.3);
}

.notif-tab-count {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    min-width: 18px;
    text-align: center;
}

.notif-tab.active .notif-tab-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Список */
.notif-page-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 900px) {
    .notif-page-list {
        grid-template-columns: 1fr 1fr;
    }
}

.notif-page-list .notif-item {
    background: rgba(20, 20, 50, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notif-page-list .notif-item:hover {
    border-color: rgba(108, 60, 225, 0.4);
    background: rgba(108, 60, 225, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 60, 225, 0.15);
}

.notif-page-list .notif-item.unread {
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.12), rgba(74, 144, 217, 0.08));
    border-color: rgba(108, 60, 225, 0.35);
    box-shadow: 0 4px 20px rgba(108, 60, 225, 0.1);
}

.notif-page-list .notif-item.unread .notif-item-title {
    font-weight: 700;
    color: #ffffff;
}

.notif-page-list .notif-item.unread .notif-dot {
    display: block;
}

.notif-page-list .notif-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(108, 60, 225, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    border: 1px solid rgba(108, 60, 225, 0.2);
}

.notif-page-list .notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-page-list .notif-item-title {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.4;
}

.notif-page-list .notif-item-text {
    font-size: 13px;
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notif-page-list .notif-item-time {
    font-size: 12px;
    color: var(--text-dim);
}
/* Показать ещё */
.notif-page-more {
    text-align: center;
    margin-top: 20px;
    padding: 16px;
}

/* Адаптив */
@media (max-width: 480px) {
    .notif-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .notif-page-title {
        font-size: 22px;
    }

    .notif-tabs {
        width: 100%;
    }

    .notif-tab {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================================
   НАСТРОЙКИ
   ============================================================ */
.settings-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 140px;   /* отступ снизу под остров */
    animation: fadeInUp 0.5s ease-out;
}

.settings-content {
    width: 100%;
}

.settings-tab-content {
    animation: fadeInUp 0.35s ease-out;
}

.settings-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #fff, #b8b8e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.settings-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.settings-placeholder {
    padding: 80px 20px;
    text-align: center;
    background: rgba(20, 20, 50, 0.4);
    border: 1px dashed var(--border);
    border-radius: 20px;
}

.settings-placeholder-icon {
    font-size: 56px;
    margin-bottom: 14px;
    animation: float 3s ease-in-out infinite;
}

.settings-placeholder-text {
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================================
   СТЕКЛЯННЫЙ ОСТРОВ С ВКЛАДКАМИ
   ============================================================ */
.settings-island {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;

    display: flex;
    gap: 6px;
    padding: 8px;

    background: rgba(20, 20, 50, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 20px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(108, 60, 225, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.settings-island::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(168, 85, 247, 0.6),
        transparent
    );
    border-radius: 20px 20px 0 0;
}

.settings-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;

    background: transparent;
    border: 1px solid transparent;
    border-radius: 14px;

    color: var(--text-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.settings-tab-btn:hover {
    background: rgba(108, 60, 225, 0.12);
    color: var(--text);
    transform: translateY(-1px);
}

.settings-tab-btn.active {
    background: linear-gradient(135deg, #6C3CE1, #4A90D9);
    color: #fff;
    box-shadow:
        0 8px 24px rgba(108, 60, 225, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.settings-tab-btn.active:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #7C4CE1, #5AA0E9);
}

.settings-tab-icon {
    font-size: 18px;
    line-height: 1;
}

.settings-tab-label {
    line-height: 1;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 700px) {
    .settings-page {
        padding-bottom: 120px;
    }

    .settings-island {
        bottom: 16px;
        padding: 6px;
        gap: 4px;
        border-radius: 16px;
    }

    .settings-tab-btn {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 12px;
    }

    .settings-tab-icon {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .settings-island {
        width: calc(100% - 32px);
        justify-content: space-around;
    }

    .settings-tab-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
    }

    .settings-tab-label {
        display: none;   
    }

    .settings-tab-icon {
        font-size: 20px;
    }

    .settings-title {
        font-size: 24px;
    }
}

/* ============================================================
   НАСТРОЙКИ — секции и строки
   ============================================================ */
.settings-section {
    background: rgba(20, 20, 50, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 20px;
    animation: fadeInUp 0.4s ease-out;
}

.settings-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-2);
    margin-bottom: 16px;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.settings-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-row:first-of-type {
    padding-top: 0;
}

.settings-row-info {
    flex: 1;
    min-width: 0;
}

.settings-row-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.settings-row-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.settings-row-control {
    flex-shrink: 0;
}

/* ============================================================
   ПЕРЕКЛЮЧАТЕЛЬ (тумблер)
   ============================================================ */
.settings-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.settings-toggle-track {
    position: relative;
    width: 52px;
    height: 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.settings-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.settings-toggle[data-enabled="true"] .settings-toggle-track {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.settings-toggle[data-enabled="true"] .settings-toggle-thumb {
    left: calc(100% - 25px);
}

.settings-toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
    min-width: 90px;
}

.settings-toggle[data-enabled="true"] .settings-toggle-label {
    color: #4ade80;
}

.settings-toggle:hover .settings-toggle-track {
    border-color: rgba(108, 60, 225, 0.5);
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 600px) {
    .settings-section {
        padding: 20px;
    }

    .settings-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .settings-row-control {
        align-self: flex-end;
    }
}

/* ============================================================
   2FA МОДАЛКА
   ============================================================ */
#tfaModal .code-inputs {
    margin: 24px 0 12px;
}

.settings-code-hint {
    margin-top: 20px;
    padding: 14px 16px;
    background: rgba(108, 60, 225, 0.06);
    border: 1px solid rgba(108, 60, 225, 0.15);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: left;
}

.settings-resend-btn {
    background: none;
    border: none;
    color: var(--accent-2);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    text-decoration: underline;
    transition: color 0.15s;
}

.settings-resend-btn:hover:not(:disabled) {
    color: #c084fc;
}

.settings-resend-btn:disabled {
    color: var(--text-dim);
    text-decoration: none;
    cursor: not-allowed;
}

#tfaResendTimer {
    color: var(--text-dim);
    margin-left: 3px;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   СМЕНА ПАРОЛЯ
   ============================================================ */
.pwd-step-indicator {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.pwd-step-dot {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

.pwd-step-dot.active {
    background: linear-gradient(90deg, #6C3CE1, #A855F7);
    box-shadow: 0 0 10px rgba(108, 60, 225, 0.5);
}

#pwdModal .modal-title,
#pwdModal .modal-subtitle {
    text-align: center;
}

#pwdModal .modal-actions .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#pwdModal .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
}

#pwdModal .password-toggle:hover {
    color: var(--text);
}

/* ============================================================
   ВНЕШНИЙ ВИД — слайдер + шрифты
   ============================================================ */
.settings-row-column {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.settings-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.settings-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.settings-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #6C3CE1, #A855F7);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(108, 60, 225, 0.5);
    transition: transform 0.15s;
}

.settings-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.settings-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #6C3CE1, #A855F7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(108, 60, 225, 0.5);
}

.settings-slider-value {
    min-width: 60px;
    text-align: right;
    font-weight: 700;
    color: var(--accent-2);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

/* Предпросмотр */
.settings-preview {
    margin-top: 8px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(168, 85, 247, 0.3);
    border-radius: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    transition: font-size 0.15s, font-family 0.15s;
}

.settings-preview b {
    color: var(--text);
}

/* Выбор шрифта */
.settings-fonts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.settings-font-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.settings-font-option:hover {
    background: rgba(108, 60, 225, 0.06);
    border-color: rgba(108, 60, 225, 0.3);
}

.settings-font-option.active {
    background: rgba(108, 60, 225, 0.1);
    border-color: var(--accent-1);
    box-shadow: 0 0 30px rgba(108, 60, 225, 0.15);
}

.settings-font-option input[type="radio"] {
    display: none;
}

.settings-font-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: transparent;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s;
    position: relative;
}

.settings-font-option.active .settings-font-radio {
    border-color: var(--accent-2);
    background: rgba(168, 85, 247, 0.15);
}

.settings-font-option.active .settings-font-radio::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6C3CE1, #A855F7);
    box-shadow: 0 0 10px rgba(108, 60, 225, 0.6);
}

.settings-font-body {
    flex: 1;
    min-width: 0;
}

.settings-font-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.settings-font-preview {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Адаптив */
@media (max-width: 600px) {
    .settings-slider-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .settings-slider-value {
        text-align: left;
    }
}

/* ============================================================
   НАСТРОЙКИ — аватарка и баннер
   ============================================================ */
.settings-image-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.settings-image-preview {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px dashed rgba(168, 85, 247, 0.35);
    background-color: rgba(108, 60, 225, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
}

.settings-image-preview:hover {
    border-color: rgba(168, 85, 247, 0.6);
    background-color: rgba(108, 60, 225, 0.12);
}

.settings-image-preview-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto;
}

.settings-image-preview-banner {
    width: 100%;
    max-width: 600px;
    height: 200px;
    border-radius: 16px;
}

.settings-image-placeholder {
    color: var(--text-dim);
    font-size: 13px;
    text-align: center;
    padding: 0 20px;
    line-height: 1.4;
}

.settings-image-preview-avatar .settings-image-placeholder {
    font-size: 60px;
    padding: 0;
}

.settings-image-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 600px) {
    .settings-image-preview-banner {
        height: 140px;
    }
}

/* ============================================================
   НАСТРОЙКИ — селекты приватности
   ============================================================ */
.settings-select {
    padding: 10px 36px 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    min-width: 160px;
}

.settings-select:hover {
    border-color: rgba(108, 60, 225, 0.4);
    background-color: rgba(108, 60, 225, 0.06);
}

.settings-select:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 4px rgba(108, 60, 225, 0.15);
}

.settings-select option {
    background: #1a1a3a;
    color: #fff;
    padding: 10px;
}

@media (max-width: 600px) {
    .settings-select {
        min-width: 120px;
        font-size: 12px;
        padding: 8px 32px 8px 12px;
    }
}

.profile-hidden {
    color: var(--text-dim);
    font-style: italic;
    opacity: 0.7;
}

/* ============================================================
   МОИ НАКАЗАНИЯ (в настройках)
   ============================================================ */
.my-bans-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.my-bans-empty {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-dim);
    font-size: 13px;
}

.my-ban-item {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    transition: all 0.2s;
    position: relative;
}

.my-ban-item.active {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.3);
}

.my-ban-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.my-ban-name {
    font-weight: 700;
    color: var(--text);
    font-size: 14px;
}

.my-ban-item.active .my-ban-name {
    color: #ff8a8a;
}

.my-ban-status {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.my-ban-active {
    background: rgba(239, 68, 68, 0.15);
    color: #ff8a8a;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.my-ban-lifted {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.my-ban-meta {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.my-ban-lift {
    position: absolute;
    top: 14px;
    right: 18px;
    margin-left: auto;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    background: none;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent-2);
}

.faq-arrow {
    color: var(--text-dim);
    font-size: 12px;
    transition: transform 0.25s;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    color: var(--accent-2);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 0 16px;
}

/* ============================================================
   ФОРМА ПОДДЕРЖКИ
   ============================================================ */
.settings-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: all 0.2s;
    min-height: 120px;
}

.settings-textarea:focus {
    border-color: var(--accent-1);
    background: rgba(108, 60, 225, 0.05);
    box-shadow: 0 0 0 4px rgba(108, 60, 225, 0.15);
}

.settings-char-counter {
    text-align: right;
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 6px;
}

/* ============================================================
   МОИ ОБРАЩЕНИЯ
   ============================================================ */
.my-reports-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-item {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    transition: all 0.2s;
}

.report-item:hover {
    border-color: rgba(108, 60, 225, 0.25);
}

.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.report-id {
    font-weight: 700;
    color: var(--text);
    font-size: 13px;
}

.report-status {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-open {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.report-closed {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.report-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 6px;
    word-break: break-word;
}

.report-time {
    font-size: 11px;
    color: var(--text-dim);
}

/* Адаптив */
@media (max-width: 600px) {
    .report-header {
        flex-wrap: wrap;
    }
}

/* ============================================================
   ОФОРМЛЕНИЯ (косметика)
   ============================================================ */
.settings-section-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.cosmetics-types {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cosmetics-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cosmetics-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cosmetics-block-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.cosmetics-unequip-btn {
    padding: 4px 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ff8a8a;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.cosmetics-unequip-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
}

.cosmetics-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.cosmetic-item {
    position: relative;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.cosmetic-item:hover {
    background: rgba(108, 60, 225, 0.08);
    border-color: rgba(108, 60, 225, 0.35);
    transform: translateY(-2px);
}

.cosmetic-item.equipped {
    background: rgba(108, 60, 225, 0.15);
    border-color: var(--accent-1);
    box-shadow: 0 0 25px rgba(108, 60, 225, 0.25);
}

.cosmetic-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.cosmetic-preview {
    width: 100%;
    height: 80px;
    border-radius: 10px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 8px;
    background-color: rgba(108, 60, 225, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cosmetic-preview-empty {
    font-size: 32px;
    opacity: 0.6;
}

.cosmetic-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cosmetic-rarity {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cosmetic-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

.cosmetic-lock {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 14px;
    opacity: 0.7;
}

.cosmetics-empty {
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    grid-column: 1 / -1;
}

@media (max-width: 480px) {
    .cosmetics-items {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
    .cosmetic-preview {
        height: 60px;
    }
}

/* ============================================================
   ОФОРМЛЕНИЯ НА ПРОФИЛЕ
   ============================================================ */

/* --- ФОН --- */
.profile-page {
    position: relative;
}

.profile-page[style*="--profile-bg"]::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: var(--profile-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    filter: blur(2px);
}

.profile-page {
    z-index: 1;
}

/* --- РАМКА ВОКРУГ АВАТАРКИ (CSS-обводка) --- */
.profile-avatar-wrapper.has-frame .profile-avatar {
    border-width: 3px;
    border-style: solid;
}

.profile-avatar-wrapper.rarity-common .profile-avatar {
    border-color: #8888aa;
    box-shadow: 0 0 20px rgba(136, 136, 170, 0.4);
}

.profile-avatar-wrapper.rarity-rare .profile-avatar {
    border-color: #4A90D9;
    box-shadow: 0 0 30px rgba(74, 144, 217, 0.5);
}

.profile-avatar-wrapper.rarity-epic .profile-avatar {
    border-color: #A855F7;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.6);
}

.profile-avatar-wrapper.rarity-legendary .profile-avatar {
    border-color: #FFD700;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.7);
    animation: legendaryPulse 2.5s ease-in-out infinite;
}

@keyframes legendaryPulse {
    0%, 100% { box-shadow: 0 0 50px rgba(255, 215, 0, 0.5); }
    50%      { box-shadow: 0 0 70px rgba(255, 215, 0, 0.9); }
}

/* --- РАМКА — КАРТИНКА ПОВЕРХ АВЫ --- */
.profile-frame-img {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    pointer-events: none;
    z-index: 2;
    object-fit: contain;
}

/* --- ДЕКОР НА АВЕ --- */
.profile-badge-decor {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    line-height: 1;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
}

.profile-badge-decor img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.badge-emoji {
    font-size: 40px;
    display: block;
    line-height: 1;
}

/* Позиции декора */
.profile-badge-decor.pos-top-left {
    top: -12px;
    left: -12px;
    transform: rotate(-15deg);
}

.profile-badge-decor.pos-top-right {
    top: -12px;
    right: -12px;
    transform: rotate(15deg);
}

.profile-badge-decor.pos-bottom {
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
}

.profile-badge-decor.pos-bottom-left {
    bottom: -10px;
    left: -10px;
    transform: rotate(-15deg);
}

.profile-badge-decor.pos-bottom-right {
    bottom: -10px;
    right: -10px;
    transform: rotate(15deg);
}

/* Размеры для разных декораций — по коду */
.profile-badge-decor[data-code="badge_crown"] .badge-emoji { font-size: 44px; }
.profile-badge-decor[data-code="badge_star"] .badge-emoji { font-size: 32px; }
.profile-badge-decor[data-code="badge_leaves"] .badge-emoji { font-size: 48px; }
.profile-badge-decor[data-code="badge_leaf"] .badge-emoji { font-size: 30px; }
.profile-badge-decor[data-code="badge_snowflake"] .badge-emoji { font-size: 34px; }
.profile-badge-decor[data-code="badge_fire"] .badge-emoji { font-size: 36px; }
.profile-badge-decor[data-code="badge_diamond"] .badge-emoji { font-size: 30px; }
.profile-badge-decor[data-code="badge_heart"] .badge-emoji { font-size: 32px; }

/* На мобильном — декор чуть меньше */
@media (max-width: 700px) {
    .badge-emoji { font-size: 30px !important; }
    .profile-frame-img {
        top: -6px; left: -6px; right: -6px; bottom: -6px;
        width: calc(100% + 12px);
        height: calc(100% + 12px);
    }
}

.report-pending { background: rgba(74, 144, 217, 0.15); color: #4A90D9; }

/* ===== ЮЗЕРСКАЯ СТРАНИЦА ТИКЕТА ===== */
.user-ticket-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 40px 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .user-ticket-page {
        padding: 20px 16px 40px;
    }
}
.user-ticket-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.user-ticket-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.user-ticket-back {
    color: #9aa0b4;
    text-decoration: none;
    font-size: 14px;
    align-self: flex-start;
    transition: color 0.15s ease;
}
.user-ticket-back:hover { color: #fff; }

.user-ticket-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.user-ticket-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: #6a6f80;
}

.user-ticket-status {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.user-ticket-status.status-open    { background: rgba(234, 179, 8, 0.15);  color: #eab308; }
.user-ticket-status.status-pending { background: rgba(74, 144, 217, 0.15); color: #4A90D9; }
.user-ticket-status.status-closed  { background: rgba(34, 197, 94, 0.15);  color: #22c55e; }

.user-ticket-subject {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    padding: 14px 16px;
    background: rgba(108, 60, 225, 0.08);
    border-left: 3px solid #6C3CE1;
    border-radius: 8px;
}

.user-ticket-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 400px;
    max-height: 65vh;
    overflow-y: auto;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.user-ticket-msg {
    padding: 14px 18px;
    border-radius: 12px;
    max-width: 65%;
    background: rgba(255, 255, 255, 0.03);
    font-size: 14px;
}
.user-ticket-msg.from-me {
    align-self: flex-end;
    background: rgba(108, 60, 225, 0.1);
    border-left: 3px solid #6C3CE1;
}
.user-ticket-msg.from-staff {
    align-self: flex-start;
    border-left: 3px solid #4A90D9;
}

.user-ticket-msg-head {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
}
.user-ticket-msg-author {
    font-weight: 600;
    color: #fff;
}
.user-ticket-msg-time {
    color: #6a6f80;
}

.user-ticket-msg-text {
    font-size: 14px;
    color: #d0d4e0;
    line-height: 1.5;
    word-wrap: break-word;
}

.user-ticket-reply {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.user-ticket-reply .support-textarea,
.user-ticket-page .support-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: all 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.user-ticket-page .support-textarea::placeholder {
    color: #6a6f80;
}

.user-ticket-page .support-textarea:focus {
    border-color: #6C3CE1;
    background: rgba(108, 60, 225, 0.05);
    box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.15);
}

.user-ticket-page .support-textarea:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.user-ticket-reply-actions {
    display: flex;
    justify-content: flex-end;
}

.user-ticket-closed {
    padding: 20px;
    text-align: center;
    color: #9aa0b4;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.report-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}
.report-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(108, 60, 225, 0.4);
}

.profile-quote {
    margin: 10px 0 0 0;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid #6C3CE1;
    border-radius: 8px;
    font-style: italic;
    color: #9aa0b4;
    font-size: 13px;
    line-height: 1.5;
}