/* ==========================================================================
   СВЕТЛАЯ ТЕМА — Liquid Glass
   Apple-inspired glassmorphism: translucent panels, blur, saturation, specular highlights.
   Inspired by https://olii-dev.github.io/liquid-glass/
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS — Liquid Glass
   -------------------------------------------------------------------------- */

:root {
    /* ── Palette ── */
    --primary-color:   #2563eb;
    --primary-dark:    #1d4ed8;
    --primary-light:   #3b82f6;
    --primary-subtle:  rgba(37, 99, 235, 0.12);
    --primary-border:  rgba(37, 99, 235, 0.28);

    --accent-color:   #f59e0b;
    --accent-dark:    #d97706;
    --accent-subtle:  rgba(245, 158, 11, 0.12);

    --success-color:  #10b981;
    --success-subtle: rgba(16, 185, 129, 0.12);
    --warning-color:  #f59e0b;
    --warning-subtle: rgba(245, 158, 11, 0.12);
    --danger-color:   #ef4444;
    --danger-subtle:  rgba(239, 68, 68, 0.12);

    /* ── Liquid Glass surfaces (low opacity = content shows through) ── */
    --surface-bg:      transparent;
    --surface-card:    rgba(255, 255, 255, 0.18);
    --surface-sidebar: rgba(255, 255, 255, 0.20);
    --surface-header:  rgba(255, 255, 255, 0.25);

    /* ── Liquid Glass tokens ── */
    --liquid-bg:        rgba(255, 255, 255, 0.18);
    --liquid-bg-strong: rgba(255, 255, 255, 0.32);
    --liquid-border:    rgba(255, 255, 255, 0.35);
    --liquid-border-subtle: rgba(255, 255, 255, 0.22);
    --liquid-blur:      blur(24px) saturate(180%);
    --liquid-blur-sm:   blur(16px) saturate(170%);
    --liquid-blur-xs:   blur(12px) saturate(160%);
    /* Матовое стекло (мутность): контент сзади не читается */
    --liquid-frost-bg:   rgba(255, 255, 255, 0.92);
    --liquid-frost-blur: blur(24px) saturate(180%);
    /* Для выпадающих панелей — видимый эффект стекла (блёр заметен) */
    --liquid-dropdown-bg:   rgba(255, 255, 255, 0.74);
    --liquid-dropdown-blur: blur(28px) saturate(200%);
    /* Мягкий блик только по верхнему краю (опционально), без затемнения углов */
    --liquid-shine:     none;
    --liquid-shadow:   0 4px 20px rgba(31, 38, 135, 0.06);
    --liquid-shadow-hover: 0 8px 28px rgba(31, 38, 135, 0.08);
    --liquid-shadow-xs: 0 2px 10px rgba(31, 38, 135, 0.04);
    /* Legacy aliases for existing classes */
    --glass-bg:         var(--liquid-bg);
    --glass-bg-strong:  var(--liquid-bg-strong);
    --glass-border:     var(--liquid-border);
    --glass-blur:       var(--liquid-blur);
    --glass-blur-sm:    var(--liquid-blur-sm);
    --glass-shine:      var(--liquid-shine);
    --glass-shadow:     var(--liquid-shadow);
    --glass-shadow-hover: var(--liquid-shadow-hover);

    /* Liquid glass scrollbar (в тон теме) */
    --scrollbar-track: rgba(255, 255, 255, 0.06);
    --scrollbar-track-border: rgba(255, 255, 255, 0.1);
    --scrollbar-thumb: rgba(255, 255, 255, 0.38);
    --scrollbar-thumb-border: rgba(255, 255, 255, 0.5);
    --scrollbar-thumb-hover: rgba(255, 255, 255, 0.55);
    --scrollbar-thumb-active: rgba(37, 99, 235, 0.45);
    --scrollbar-thumb-shadow: 0 2px 12px rgba(31, 38, 135, 0.12);
    --scrollbar-thumb-shadow-hover: 0 4px 20px rgba(31, 38, 135, 0.18);

    /* ── Text ── */
    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #64748b;
    --text-link:      var(--primary-color);

    /* ── Border ── */
    --border-default: rgba(255, 255, 255, 0.28);
    --border-strong:  rgba(255, 255, 255, 0.45);
    --border-focus:   var(--primary-color);

    /* ── Shadow ── */
    --shadow-xs:  0 2px 8px rgba(31, 38, 135, 0.08);
    --shadow-sm:  0 4px 16px rgba(31, 38, 135, 0.12), 0 1px 3px rgba(31, 38, 135, 0.06);
    --shadow-md:  0 8px 28px rgba(31, 38, 135, 0.15), 0 2px 8px rgba(31, 38, 135, 0.08);
    --shadow-lg:  0 16px 48px rgba(31, 38, 135, 0.18), 0 4px 16px rgba(31, 38, 135, 0.08);

    /* ── Radius (softer, organic) ── */
    --profile-radius-sm: 12px;
    --profile-radius-md: 16px;
    --profile-radius-lg: 22px;
    --profile-radius-xl: 28px;

    /* ── Spacing ── */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;

    /* ── Layout ── */
    --header-height: 60px;

    /* ── Animation (fluid motion) ── */
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);

    /* ── Chat ── */
    --chat-bg:      rgba(255,255,255,0.22);
    --chat-surface: rgba(248,250,255,0.20);
    --chat-divider: rgba(255,255,255,0.2);
    --chat-hover:   rgba(255,255,255,0.15);
    --chat-active:  rgba(37,99,235,0.12);
    --chat-text:    #0f172a;
    --chat-subtext: #64748b;

    /* ── Legacy compat ── */
    --dark-color:  #0f172a;
    --gray-color:  #64748b;
    --gray-light:  rgba(241,245,249,0.5);
    --light-color: rgba(248,250,252,0.5);
}

/* --------------------------------------------------------------------------
   2. BODY & BASE
   -------------------------------------------------------------------------- */

body {
    /* Vibrant gradient so liquid glass panels pop (Liquid Glass style) */
    background: linear-gradient(160deg, #e0e7ff 0%, #f5f3ff 35%, #e0f2fe 70%, #fce7f3 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fallback: without backdrop-filter use more opaque surface for readability */
@supports not (backdrop-filter: blur(10px)) {
    header { background: rgba(255, 255, 255, 0.95); }
    .profile-main { background: rgba(255, 255, 255, 0.94); }
    .profile-main::before { display: none; }
    @media (min-width: 769px) {
        .profile-sidebar { background: rgba(255, 255, 255, 0.94); }
        .profile-sidebar::before { display: none; }
    }
    .mobile-bottom-nav { background: rgba(255, 255, 255, 0.96); }
    .info-card,
    .order-card,
    .wbal-card,
    .wallet-topup-card,
    .dash-widget,
    .stat-card,
    .svc-card,
    .transaction-item,
    #settings-section .settings-section-block,
    #security-section .settings-section-block {
        background: rgba(255, 255, 255, 0.92);
    }
    .header-balance,
    .hdr-add-btn,
    .hdr-icon-btn,
    .hdr-user { background: rgba(255, 255, 255, 0.9); }
    .form-group input,
    .form-group textarea,
    .form-group select,
    .form-select,
    .wallet-amount-wrap input,
    .wquick-btn { background: rgba(255, 255, 255, 0.85); }
    .btn-secondary,
    .btn-logout,
    .btn-danger,
    .quick-action-btn,
    .theme-option,
    .achievement-category-btn,
    .mobile-section-link,
    .mobile-nav-item.active { background: rgba(255, 255, 255, 0.92); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

a { color: var(--text-link); }
a:hover { color: var(--primary-dark); }

/* --------------------------------------------------------------------------
   3. HEADER — Liquid Glass
   -------------------------------------------------------------------------- */

header {
    background: var(--surface-header);
    backdrop-filter: var(--liquid-blur);
    -webkit-backdrop-filter: var(--liquid-blur);
    border-bottom: 1px solid var(--liquid-border);
    box-shadow: 0 1px 0 rgba(255,255,255,0.15);
    min-height: var(--header-height);
}

@media (max-width: 768px) {
    header {
        padding-top: 3rem !important;
    }
    body {
        padding-top: calc(3rem + 52px) !important;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    min-height: var(--header-height);
    max-width: 1600px;
    margin: 0 auto;
    gap: 12px;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .header-content {
        padding: 0 24px;
    }
}

/* ── Logo ── */
.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.14), 0 3px 10px rgba(37,99,235,0.32);
    animation: logo-glow 3.5s ease-in-out infinite;
}

@keyframes logo-glow {
    0%, 100% { box-shadow: 0 0 0 3px rgba(37,99,235,0.14), 0 3px 10px rgba(37,99,235,0.32); }
    50%       { box-shadow: 0 0 0 5px rgba(79,70,229,0.18), 0 4px 18px rgba(79,70,229,0.38); }
}

.logo-wordmark {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.6px;
    line-height: 1;
}

.logo-wordmark em {
    font-style: normal;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 1px;
}

.demo-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: lowercase;
    color: var(--text-muted);
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--glass-border);
    padding: 2px 6px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    margin-left: 2px;
    align-self: flex-start;
    margin-top: 1px;
}

/* ── Right panel ── */
.hdr-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;
    min-width: 0;
    flex-shrink: 0;
}

/* ── Balance wrap ── */
.header-balance-wrap {
    display: none;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* ── Пилюли баланса и кнопка + (liquid glass, без тяжёлых теней) ── */
.header-balance {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    border: 1px solid var(--liquid-border);
    border-radius: 999px;
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: none;
    min-width: 0;
    overflow: hidden;
}

.header-balance:hover {
    background: var(--liquid-bg-strong);
    border-color: rgba(255, 255, 255, 0.45);
}

/* Иконка кошелька слева в пилюле */
.hdr-bal-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: var(--transition);
}

.header-balance:hover .hdr-bal-icon {
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary-color);
}

.hdr-bal-body {
    padding: 0 12px 0 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 0;
}

.hdr-bal-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.1;
}

.hdr-bal-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    line-height: 1.2;
    white-space: nowrap;
}

/* Бонусная пилюля — отдельная, компактная */
.hdr-bal-bonus {
    padding: 0 10px 0 0;
}

.hdr-bal-bonus .hdr-bal-icon {
    width: 28px;
    height: 28px;
    font-size: 11px;
    background: rgba(245,158,11,0.15);
    color: #d97706;
}

.hdr-bal-bonus .hdr-bal-body { padding: 0 8px 0 6px; }
.hdr-bal-bonus .hdr-bal-val { font-size: 12px; }
.hdr-bal-bonus:hover .hdr-bal-icon { background: rgba(245,158,11,0.25); color: #b45309; }

/* Кнопка «+» — такая же круглая пилюля liquid glass ── */
.hdr-add-btn {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid var(--liquid-border);
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    color: var(--primary-color);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none;
}

.hdr-add-btn:hover {
    background: var(--liquid-bg-strong);
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--primary-color);
}

/* ── Separator ── */
.hdr-sep {
    display: none;
    width: 1px;
    height: 18px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.35), transparent);
    margin: 0 2px;
    flex-shrink: 0;
}

/* ── Icon buttons (колокольчик и т.д.) — такие же пилюли liquid glass ── */
.hdr-icon-btn {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--liquid-border);
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none;
}

.hdr-icon-btn:hover {
    background: var(--liquid-bg-strong);
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--primary-color);
}

.hdr-icon-btn--push {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--primary-color);
}

.hdr-icon-btn--push:hover {
    background: rgba(37, 99, 235, 0.3);
    color: var(--primary-color);
}

/* ── User pill — такая же пилюля liquid glass ── */
.hdr-user {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px 3px 3px;
    border: 1px solid var(--liquid-border);
    border-radius: 999px;
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    transition: var(--transition);
    box-shadow: none;
    flex-shrink: 0;
}

.hdr-user:hover {
    background: var(--liquid-bg-strong);
    border-color: rgba(255, 255, 255, 0.45);
}

.hdr-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0;
    user-select: none;
    box-shadow: 0 1px 4px rgba(37,99,235,0.35);
}

.hdr-username {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    display: none;
    white-space: nowrap;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 2px;
}

.hdr-logout-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hdr-logout-btn:hover {
    background: rgba(239,68,68,0.10);
    color: var(--danger-color);
}

/* Notification badge */
.notification-badge {
    position: absolute;
    width: 16px;
    height: 16px;
    font-size: 9px;
    font-weight: 700;
    top: -4px;
    right: -4px;
    border: 2px solid rgba(255,255,255,0.9);
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 6px rgba(239,68,68,0.4);
}

/* ── Desktop ── */
@media (min-width: 769px) {
    .header-balance-wrap  { display: flex; }
    .hdr-sep              { display: block; }
    .hdr-username         { display: block; }
    .hdr-user             { padding: 3px 8px 3px 3px; }
    .hdr-right            { gap: 8px; }
}

/* ── Mobile: компактный хедер, правый край без «карточки» ── */
@media (max-width: 768px) {
    .header-content {
        padding: 0 12px;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    .hdr-right {
        gap: 4px;
    }

    /* На мобильном пользователь — только иконки, без обводки пилюли */
    .hdr-user {
        border: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        padding: 0;
        gap: 2px;
    }

    .hdr-user:hover {
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .hdr-logout-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: 1px solid var(--liquid-border);
        background: var(--liquid-bg);
        backdrop-filter: var(--liquid-blur-xs);
        -webkit-backdrop-filter: var(--liquid-blur-xs);
        color: var(--text-secondary);
        font-size: 14px;
    }

    .hdr-logout-btn:hover {
        background: rgba(239,68,68,0.12);
        border-color: rgba(239,68,68,0.35);
        color: var(--danger-color);
    }

    /* Иконки в хедере чуть крупнее для тапов */
    .hdr-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* --------------------------------------------------------------------------
   4. MOBILE BOTTOM NAV — общая полоска + капля как у Apple (выделяет выбранный раздел)
   -------------------------------------------------------------------------- */

.mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    background: var(--liquid-bg-strong);
    backdrop-filter: var(--liquid-blur);
    -webkit-backdrop-filter: var(--liquid-blur);
    border-top: 1px solid var(--liquid-border);
    box-shadow: 0 -2px 16px rgba(31, 38, 135, 0.06);
    border-radius: var(--profile-radius-xl) var(--profile-radius-xl) 0 0;
    padding-bottom: 0.5rem;
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

.mobile-bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4px 8px 6px;
    position: relative;
}

.mobile-nav-item {
    position: relative;
    color: var(--text-muted);
    gap: 4px;
    padding: 8px 14px 10px;
    transition: var(--transition);
    border-radius: 999px;
    background: transparent;
    border: none;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Капля выделяет выбранный раздел — плавает сверху, не опускается вниз */
.mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 2px;
    transform: translateX(-50%);
    width: 56px;
    height: 28px;
    border-radius: 999px;
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    border: 1px solid var(--liquid-border);
    box-shadow: var(--liquid-shadow-xs);
    z-index: -1;
}

.mobile-nav-item i { font-size: 20px; }
.mobile-nav-item span { font-size: 10px; font-weight: 600; letter-spacing: 0.2px; }

.mobile-nav-item:active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   5. LAYOUT: CONTAINER / CONTENT / SIDEBAR
   -------------------------------------------------------------------------- */

.profile-section {
    background: transparent;
}

.container {
    max-width: 1400px;
    padding: 0 16px;
}

@media (min-width: 769px) {
    .container { padding: 0 24px; }

    .profile-content {
        grid-template-columns: 260px 1fr;
        gap: 0;
        margin-left: 0;
        padding: 24px 0;
    }
}

/* Мобильная: блоки от края до края, как приложение */
@media (max-width: 768px) {
    .profile-section .container {
        padding: 0;
        max-width: 100%;
    }

    .profile-content {
        padding: 0;
        max-width: 100%;
    }

    .profile-main {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 20px 0 100px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        box-shadow: none;
        min-height: calc(100vh - var(--header-height) - 60px);
    }

    .profile-main::before {
        display: none;
    }

    /* Внутренние отступы контента, чтобы текст не прилипал к краям */
    .profile-section-content {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        box-sizing: border-box;
    }

    .profile-header .container,
    .profile-header .profile-header-content {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        box-sizing: border-box;
    }
}

/* --------------------------------------------------------------------------
   6. SIDEBAR
   -------------------------------------------------------------------------- */

@media (min-width: 769px) {
    .profile-sidebar {
        width: 260px;
        min-width: 260px;
        background: var(--liquid-bg);
        backdrop-filter: var(--liquid-blur);
        -webkit-backdrop-filter: var(--liquid-blur);
        border: 1px solid var(--liquid-border);
        border-radius: var(--profile-radius-lg);
        box-shadow: var(--liquid-shadow);
        padding: 12px 8px;
        position: sticky;
        top: calc(var(--header-height) + 16px);
        height: fit-content;
        overflow: hidden;
    }

    .profile-sidebar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5) 30%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.5) 70%, transparent);
        pointer-events: none;
        border-radius: var(--profile-radius-lg) var(--profile-radius-lg) 0 0;
    }

    .profile-sidebar .sidebar-menu {
        padding: 0;
    }

    .profile-sidebar .sidebar-menu li {
        margin-bottom: 2px;
    }

    .profile-sidebar .sidebar-menu a {
        border-radius: var(--profile-radius-sm);
    }
}

.sidebar-menu { list-style: none; margin: 0; padding: 0; }
.sidebar-menu li { margin: 0; padding: 0; }

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    min-height: 40px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--profile-radius-sm);
    transition: var(--transition);
    border-left: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
}

.sidebar-menu a:hover {
    background: var(--liquid-bg);
    color: var(--text-primary);
    border-color: var(--liquid-border-subtle);
    box-shadow: var(--liquid-shine);
}

.sidebar-menu a.active {
    background: linear-gradient(90deg, rgba(37,99,235,0.12), rgba(79,70,229,0.06));
    color: var(--primary-color);
    font-weight: 600;
    padding-left: 10px;
    border: 1px solid rgba(37,99,235,0.2);
    border-left: 2px solid var(--primary-color);
    box-shadow: inset 0 0 16px rgba(37,99,235,0.04), var(--liquid-shine);
}

.sidebar-menu i:not(.submenu-toggle) {
    width: 18px;
    flex-shrink: 0;
    text-align: center;
    font-size: 14px;
    opacity: 0.85;
}

.sidebar-menu a.active i { opacity: 1; }

.sidebar-menu i.fa-chevron-right {
    margin-left: auto;
    font-size: 11px;
    opacity: 0.5;
}

/* Submenu */
.submenu {
    background: transparent;
    border-radius: 0;
    margin-left: 28px;
    padding-left: 8px;
    border-left: 2px solid var(--border-default);
}

.submenu-item {
    padding: 7px 10px;
    font-size: 13px;
    color: var(--text-secondary);
    border-left: none;
    border-radius: var(--profile-radius-sm);
    display: flex;
    align-items: center;
    min-height: 36px;
}

.submenu-item:hover,
.submenu-item.active {
    background: var(--primary-subtle);
    color: var(--primary-color);
    border-left: none;
    border-left-color: transparent;
}

/* Sidebar divider (decorative — add via label if needed) */
.sidebar-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 12px 12px 4px;
}

/* --------------------------------------------------------------------------
   7. PROFILE MAIN
   -------------------------------------------------------------------------- */

.profile-main {
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur);
    -webkit-backdrop-filter: var(--liquid-blur);
    border: 1px solid var(--liquid-border);
    border-radius: var(--profile-radius-lg);
    box-shadow: var(--liquid-shadow);
    padding: 28px 32px 40px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* Specular: light catching the top edge of the glass */
.profile-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6) 20%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.6) 80%, transparent);
    pointer-events: none;
    border-radius: var(--profile-radius-lg) var(--profile-radius-lg) 0 0;
}

@media (min-width: 769px) {
    .profile-main {
        margin-left: 20px;
        margin-right: 0;
        border-radius: var(--profile-radius-lg);
        padding: 32px 36px 48px;
    }
}

/* Мобильные стили profile-main перенесены в блок "Мобильная: блоки от края до края" выше */

/* --------------------------------------------------------------------------
   8. SECTION TITLE
   -------------------------------------------------------------------------- */

.section-title {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(90deg, #0f172a 55%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    padding-bottom: 0;
    letter-spacing: -0.5px;
    position: relative;
}

.section-title::after { display: none; }

/* Subtitle helper */
.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: -16px;
    margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   9. INFO CARDS (stat cards on dashboard)
   -------------------------------------------------------------------------- */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.info-card {
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-sm);
    -webkit-backdrop-filter: var(--liquid-blur-sm);
    border: 1px solid var(--liquid-border);
    border-radius: var(--profile-radius-md);
    padding: 20px;
    box-shadow: var(--liquid-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #4f46e5, #7c3aed);
    border-radius: var(--profile-radius-md) var(--profile-radius-md) 0 0;
}

.info-card:hover {
    box-shadow: var(--liquid-shadow-hover);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-3px) scale(1.01);
}

.info-card h3 {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    font-family: 'Roboto', sans-serif;
}

.info-card p {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

/* --------------------------------------------------------------------------
   10. BUTTONS
   -------------------------------------------------------------------------- */

.btn {
    padding: 9px 20px;
    border-radius: var(--profile-radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid transparent;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 2px 10px rgba(37,99,235,0.32), var(--liquid-shine);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #4338ca);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 6px 20px rgba(37,99,235,0.40), var(--liquid-shine);
    transform: translateY(-1px);
}

.btn-secondary,
.btn-logout {
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    color: var(--text-secondary);
    border: 1px solid var(--liquid-border);
    box-shadow: var(--liquid-shine);
}

.btn-secondary:hover,
.btn-logout:hover {
    background: var(--liquid-bg-strong);
    border-color: rgba(255,255,255,0.5);
    color: var(--text-primary);
    box-shadow: var(--liquid-shadow);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    color: var(--danger-color);
    border: 1px solid rgba(239,68,68,0.35);
    box-shadow: var(--liquid-shine);
}

.btn-danger:hover {
    background: var(--danger-subtle);
    border-color: rgba(239,68,68,0.5);
    box-shadow: 0 4px 16px rgba(239,68,68,0.15), var(--liquid-shine);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   11. FORMS
   -------------------------------------------------------------------------- */

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.1px;
}

.form-group input,
.form-group textarea,
.form-group select,
.form-select,
.form-file {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--liquid-border);
    border-radius: var(--profile-radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    transition: var(--transition);
    font-family: 'Roboto', sans-serif;
    box-shadow: var(--liquid-shine);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: var(--liquid-bg-strong);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), var(--liquid-shine);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.form-row .form-group {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .form-row .form-group { margin-bottom: 16px; }
    .form-row .form-group:last-child { margin-bottom: 0; }
}

/* --------------------------------------------------------------------------
   12. ORDER CARDS
   -------------------------------------------------------------------------- */

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: var(--profile-radius-md);
    padding: 18px 20px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.order-card:hover {
    border-color: rgba(37,99,235,0.25);
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-1px);
}

.order-card-compact {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--profile-radius-md);
    box-shadow: var(--shadow-xs);
    margin-bottom: 8px;
    transition: var(--transition);
}

.order-card-compact:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-md);
}

.order-id { color: var(--primary-color); font-weight: 700; font-size: 14px; }

/* Status badges */
.order-status,
.status-pending,
.status-processing,
.status-completed,
.status-cancelled,
.status-price-set {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.status-pending {
    background: var(--warning-subtle);
    color: var(--accent-dark);
}

.status-processing {
    background: var(--primary-subtle);
    color: var(--primary-color);
}

.status-completed {
    background: var(--success-subtle);
    color: #059669;
}

.status-cancelled {
    background: var(--danger-subtle);
    color: var(--danger-color);
}

.status-price-set {
    background: #f3e8ff;
    color: #7c3aed;
}

/* --------------------------------------------------------------------------
   13. DASHBOARD WIDGETS
   -------------------------------------------------------------------------- */

.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.dashboard-widget {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--profile-radius-md);
    padding: 20px 22px;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.dashboard-widget:hover { box-shadow: var(--shadow-sm); }

.dashboard-widget h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
}

.dashboard-widget h3 i {
    color: var(--primary-color);
    font-size: 16px;
}

/* Quick action buttons */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    border: 1px solid var(--liquid-border);
    border-radius: var(--profile-radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--liquid-shine);
}

.quick-action-btn i {
    font-size: 22px;
    color: var(--primary-color);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    border: 1px solid var(--liquid-border);
    box-shadow: var(--liquid-shine);
}

.quick-action-btn:hover {
    background: var(--liquid-bg-strong);
    border-color: rgba(37,99,235,0.35);
    color: var(--primary-color);
    box-shadow: var(--liquid-shadow);
    transform: translateY(-2px);
}

.quick-action-btn:hover i {
    color: white;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 2px 10px rgba(37,99,235,0.3), var(--liquid-shine);
}

/* Activity */
.activity-list { display: flex; flex-direction: column; gap: 8px; }

.activity-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    border-radius: var(--profile-radius-sm);
    border: 1px solid var(--liquid-border);
    transition: var(--transition);
    box-shadow: var(--liquid-shine);
}

.activity-item:hover {
    background: var(--liquid-bg-strong);
    border-color: rgba(37,99,235,0.25);
    box-shadow: var(--liquid-shadow);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--profile-radius-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    border: 1px solid var(--liquid-border);
    box-shadow: var(--liquid-shine);
}

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

.activity-content p strong { color: var(--text-primary); }

.activity-time {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

/* Recent orders in dashboard */
.recent-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    border-radius: var(--profile-radius-sm);
    border: 1px solid var(--liquid-border);
    transition: var(--transition);
    box-shadow: var(--liquid-shine);
    cursor: pointer;
}

.recent-order-item:hover {
    background: var(--liquid-bg-strong);
    border-color: rgba(37,99,235,0.25);
    box-shadow: var(--liquid-shadow);
}

.recent-order-info h4 { font-size: 13px; margin-bottom: 3px; color: var(--text-primary); }
.recent-order-info p  { font-size: 12px; color: var(--text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   14. SERVICE CARDS
   -------------------------------------------------------------------------- */

.service-order-card {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--profile-radius-lg);
    padding: 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.service-order-card:hover {
    border-color: var(--primary-border);
    box-shadow: var(--shadow-md);
}

.service-order-header {
    border-bottom: 1px solid var(--border-default);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.service-order-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--profile-radius-sm);
}

.service-order-info h3 { font-size: 20px; color: var(--text-primary); }
.service-order-info p  { font-size: 14px; color: var(--text-secondary); }
.service-price         { font-size: 18px; color: var(--primary-color); font-weight: 700; }

.service-card {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--profile-radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-border);
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   15. METRIC / ANALYTICS CARDS
   -------------------------------------------------------------------------- */

.metric-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--profile-radius-lg);
    box-shadow: var(--shadow-sm);
}

.chart-container {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--profile-radius-lg);
    box-shadow: var(--shadow-xs);
}

.analytics-card {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--profile-radius-md);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.analytics-card:hover { box-shadow: var(--shadow-md); }

/* --------------------------------------------------------------------------
   16. SETTINGS & SECURITY — минималистичный вид
   -------------------------------------------------------------------------- */

#settings-section .section-title,
#security-section .section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: -0.4px;
}

/* Карточки секций */
#settings-section .settings-section-block,
#security-section .settings-section-block {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: var(--profile-radius-lg);
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

#settings-section .settings-section-block:last-child,
#security-section .settings-section-block:last-child {
    margin-bottom: 0;
}

/* Заголовки блоков */
#settings-section .settings-section-block h3,
#security-section .settings-section-block h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#settings-section .settings-section-block h3 i,
#security-section .settings-section-block h3 i {
    color: var(--text-muted);
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* Формы внутри настроек/безопасности */
#settings-section .settings-section-block .form-group,
#security-section .settings-section-block .form-group {
    border-bottom: none;
    padding: 0 0 18px;
    margin-bottom: 18px;
}

#settings-section .settings-section-block .form-group:last-child,
#security-section .settings-section-block .form-group:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

#settings-section .settings-section-block .form-group label:not(.toggle-switch),
#security-section .settings-section-block .form-group label:not(.toggle-switch) {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

#settings-section .settings-section-block .form-row,
#security-section .settings-section-block .form-row {
    gap: 16px;
}

#settings-section .settings-section-block .btn-primary,
#security-section .settings-section-block .btn-primary {
    margin-top: 4px;
}

/* Подсказки под полями */
#settings-section .form-group small,
#security-section .form-group small {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

/* --- 2FA блок --- */
.security-2fa-block .security-2fa-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.security-2fa-block .security-2fa-title i {
    color: var(--primary-color);
}

.security-2fa-content {
    padding: 0;
}

.security-2fa-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 12px;
    background: var(--gray-light);
    border-radius: var(--profile-radius-sm);
    font-size: 13px;
}

.security-2fa-label {
    color: var(--text-muted);
}

.security-2fa-status-value {
    font-weight: 600;
    color: var(--text-secondary);
}

.security-2fa-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.security-2fa-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.security-2fa-btn {
    font-size: 13px;
    padding: 8px 16px;
}

.security-2fa-btn-danger {
    background: transparent;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.security-2fa-btn-danger:hover {
    background: var(--danger-subtle);
}

.security-2fa-verify {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

.security-2fa-code-input {
    width: 140px;
    padding: 8px 12px;
    border: 1px solid var(--border-default);
    border-radius: var(--profile-radius-sm);
    font-size: 14px;
}

.security-2fa-code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

/* --- Социальные привязки (Яндекс, VK, Telegram) --- */
.social-link-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.social-status-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--gray-light);
    border-radius: var(--profile-radius-sm);
    border: 1px solid var(--border-default);
}

/* Fallback для profile-pc / profile-phone без класса */
#yandexLinkGroup > div:not(label),
#vkLinkGroup > div:not(label),
#telegramLinkGroup > div:not(label) {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--gray-light);
    border-radius: var(--profile-radius-sm);
    border: 1px solid var(--border-default);
}

.social-status-row > div:first-child {
    flex: 1;
    min-width: 0;
}

#yandexStatus, #vkStatus, #telegramStatus,
#yandexSecurityBlock #yandexStatus,
#vkSecurityBlock #vkStatus,
#telegramSecurityBlock #telegramStatus {
    font-size: 13px !important;
    color: var(--text-secondary) !important;
}

#yandexSecurityBlock .form-group p,
#vkSecurityBlock .form-group p,
#telegramSecurityBlock .form-group p {
    font-size: 12px !important;
    color: var(--text-muted) !important;
    margin-top: 10px !important;
}

.set-hint {
    font-size: 12px !important;
    color: var(--text-muted) !important;
    margin-top: 10px !important;
}

.set-hint a { color: var(--primary-color); }

.social-status-extra {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

#linkYandexBtn {
    background: linear-gradient(135deg, #fc3f1d, #ff6b4a) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: var(--profile-radius-sm) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* Блоки подписок VK / Telegram */
#vkSubscribeBlock,
#telegramSubscribeBlock {
    margin-top: 16px !important;
    padding: 18px 20px !important;
    border-radius: var(--profile-radius-md) !important;
    border: none !important;
}

#vkSubscribeBlock h4,
#telegramSubscribeBlock h4 {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

#vkSubscribeBlock p,
#telegramSubscribeBlock p {
    font-size: 13px !important;
    margin-bottom: 12px !important;
    opacity: 0.95 !important;
}

#vkSubscribeBlock .btn,
#telegramSubscribeBlock .btn {
    font-size: 13px !important;
    padding: 8px 16px !important;
    border-radius: var(--profile-radius-sm) !important;
}

/* Предупреждения */
#unlinkYandexWarning {
    padding: 12px 14px;
    background: var(--warning-subtle);
    border-left: 3px solid var(--warning-color);
    border-radius: var(--profile-radius-sm);
    margin-bottom: 16px;
}

#unlinkYandexWarning p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Удаление аккаунта блок */
.set-block-danger,
#security-section .settings-section-block:has(#deleteAccountBtn) {
    border-color: rgba(239, 68, 68, 0.15);
    background: rgba(254, 226, 226, 0.15);
}

.set-block-danger h3,
#security-section .settings-section-block:has(#deleteAccountBtn) h3 {
    color: var(--danger-color);
}

.set-block-danger h3 i,
#security-section .settings-section-block:has(#deleteAccountBtn) h3 i {
    color: var(--danger-color);
}

.set-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
}

.set-desc:last-of-type {
    margin-bottom: 16px;
}

.set-highlight {
    font-weight: 600;
    color: var(--primary-color);
}

.set-warning {
    padding: 12px 14px;
    background: var(--warning-subtle);
    border-left: 3px solid var(--warning-color);
    border-radius: var(--profile-radius-sm);
    margin-bottom: 16px;
}

.set-warning p {
    font-size: 13px;
    margin: 0;
    color: var(--text-secondary);
}

.set-warning-danger {
    background: var(--danger-subtle);
    border-left-color: var(--danger-color);
}

.set-warning-danger p {
    color: #991b1b;
}

.set-loading {
    text-align: center;
    padding: 24px 20px;
    color: var(--text-muted);
}

.set-loading i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.set-loading p {
    font-size: 13px;
    margin: 0;
}

#deleteAccountBtn {
    background: var(--danger-color) !important;
    color: white !important;
    border: none !important;
    padding: 9px 18px !important;
    font-size: 13px !important;
    border-radius: var(--profile-radius-sm) !important;
}

#deleteAccountBtn:hover {
    background: #dc2626 !important;
}

/* История входов */
#login-history-list,
#mobile-login-history-list {
    margin-top: 12px !important;
}

.login-history-item {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 12px 14px !important;
    background: var(--gray-light) !important;
    border: 1px solid var(--border-default);
    border-radius: var(--profile-radius-sm);
    margin-bottom: 8px;
    transition: var(--transition);
}

.login-history-item:hover {
    border-color: var(--primary-border);
}

.login-history-item:last-child {
    margin-bottom: 0;
}

.login-history-item strong {
    font-size: 13px;
    color: var(--text-primary);
}

.login-history-item p {
    font-size: 12px !important;
    color: var(--text-muted) !important;
    margin: 4px 0 0 !important;
}

/* Управление сессиями */
#security-section .settings-section-block:has(#logout-all-sessions-btn) p,
#security-section .settings-section-block:has(#mobile-logout-all-sessions-btn) p {
    font-size: 13px !important;
    color: var(--text-secondary) !important;
    margin-bottom: 10px !important;
}

#logout-all-sessions-btn,
#mobile-logout-all-sessions-btn {
    background: var(--danger-color) !important;
    color: white !important;
    border: none !important;
    padding: 9px 18px !important;
    font-size: 13px !important;
    border-radius: var(--profile-radius-sm) !important;
}

#logout-all-sessions-btn:hover,
#mobile-logout-all-sessions-btn:hover {
    background: #dc2626 !important;
}

/* --- Настройки: тема --- */
.theme-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.theme-option {
    flex: 1;
    min-width: 100px;
    background: var(--liquid-bg) !important;
    backdrop-filter: var(--liquid-blur-xs) !important;
    -webkit-backdrop-filter: var(--liquid-blur-xs) !important;
    border: 1px solid var(--liquid-border) !important;
    border-radius: var(--profile-radius-md) !important;
    padding: 14px 16px !important;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: var(--liquid-shine);
}

.theme-option:hover {
    background: var(--liquid-bg-strong) !important;
    border-color: rgba(37,99,235,0.3) !important;
    box-shadow: var(--liquid-shadow);
}

.theme-option.active {
    border-color: rgba(37,99,235,0.45) !important;
    background: var(--liquid-bg-strong) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), var(--liquid-shine) !important;
}

.theme-preview {
    width: 100%;
    height: 32px;
    border-radius: 6px;
}

.theme-preview-light {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.theme-preview-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.theme-preview-auto {
    background: linear-gradient(90deg, #f1f5f9 50%, #1e293b 50%);
    border-radius: 6px;
}

.theme-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

.theme-option.active .theme-label {
    color: var(--primary-color);
}

.theme-name {
    display: block;
}

.theme-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-dark);
    background: var(--accent-subtle);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

.theme-check {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    font-size: 12px !important;
    color: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.theme-option.active .theme-check {
    opacity: 1;
}

#settings-section .form-group p[style*="color: var(--gray-color)"] {
    font-size: 12px !important;
    color: var(--text-muted) !important;
    margin-top: 10px !important;
}

/* --- Настройки: переключатели (toggles) --- */
#settings-section .settings-section-block .form-group:has(.toggle-switch) {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-direction: row !important;
    padding: 14px 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid var(--border-default);
}

#settings-section .settings-section-block .form-group:has(.toggle-switch):last-child {
    border-bottom: none;
}

#settings-section .settings-section-block .form-group:has(.toggle-switch) > label:first-of-type:not(.toggle-switch) {
    margin-bottom: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
    flex: 1;
}

#settings-section .settings-section-block .form-group .toggle-switch {
    flex-shrink: 0;
}

#settings-section .settings-section-block .form-group-theme {
    flex-direction: column;
    align-items: stretch;
    border-bottom: none;
    padding-bottom: 18px;
}

#settings-section .settings-section-block .form-group-theme label {
    margin-bottom: 10px;
}

/* Минимальный вид переключателя */
#settings-section .toggle-switch {
    width: 44px;
    height: 24px;
}

#settings-section .toggle-slider {
    border-radius: 24px;
}

#settings-section .toggle-slider::before {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    left: 2px;
    top: 2px;
}

#settings-section .toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* Кнопки в настройках (мобильные действия) */
#settings-section .mobile-only-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: var(--profile-radius-sm);
}

#settings-section .mobile-only-actions .btn:last-of-type {
    background: var(--danger-color) !important;
    color: white !important;
    border: none !important;
}

/* Отступ между блоками безопасности */
.set-block-spaced,
#security-section .settings-section-block[style*="margin-top"] {
    margin-top: 20px !important;
}

#security-section .settings-section-block[style*="border-top"] {
    border-top: 1px solid var(--border-default) !important;
    padding-top: 24px !important;
    margin-top: 24px !important;
}

#unlinkYandexBlock {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-default);
}

#unlinkYandexBlock p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

#unlinkYandexBtn {
    background: var(--warning-color);
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--profile-radius-sm);
}

#unlinkYandexBtn:hover {
    background: var(--accent-dark);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 2px 10px rgba(245,158,11,0.3), var(--liquid-shine);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 4px 16px rgba(245,158,11,0.35), var(--liquid-shine);
    transform: translateY(-1px);
}

/* Security items */
.security-item {
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    border: 1px solid var(--liquid-border);
    border-radius: var(--profile-radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: var(--transition);
    box-shadow: var(--liquid-shine);
}

.security-item:hover {
    background: var(--liquid-bg-strong);
    border-color: rgba(37,99,235,0.25);
    box-shadow: var(--liquid-shadow);
}

/* --------------------------------------------------------------------------
   17. NOTIFICATIONS — матовое стекло (blur виден, эффект «стекла»)
   -------------------------------------------------------------------------- */

.notifications-dropdown {
    background: var(--liquid-dropdown-bg);
    backdrop-filter: var(--liquid-dropdown-blur);
    -webkit-backdrop-filter: var(--liquid-dropdown-blur);
    border: 1px solid var(--liquid-border);
    border-radius: var(--profile-radius-lg);
    box-shadow: var(--liquid-shadow);
}

.notifications-dropdown-header {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--liquid-border);
}

.notifications-dropdown-list {
    background: transparent;
}

.notification-item {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid transparent;
    border-radius: var(--profile-radius-sm);
    transition: var(--transition);
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.65);
}

.notification-item.unread {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.15);
}

.notification-item h4 { font-size: 13px; color: var(--text-primary); font-weight: 600; }
.notification-item p  { font-size: 12px; color: var(--text-secondary); }
.notification-time    { font-size: 11px; color: var(--text-muted); }

.notifications-dropdown-footer {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--liquid-border);
}

/* Элементы списка уведомлений (реальные классы из разметки) */
.notification-dropdown-item {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid transparent;
    transition: var(--transition);
}

.notification-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.65);
}

.notification-dropdown-item.unread {
    background: rgba(37, 99, 235, 0.1);
}

.notification-dropdown-item.unread:hover {
    background: rgba(37, 99, 235, 0.14);
}

.notification-dropdown-content h4 { font-size: 14px; color: var(--text-primary); font-weight: 600; }
.notification-dropdown-content p  { font-size: 12px; color: var(--text-secondary); }
.notification-dropdown-time       { font-size: 11px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Всплывающие тосты (notification-container) — liquid glass
   -------------------------------------------------------------------------- */

#notification-container {
    gap: 12px;
    max-width: 400px;
}

#notification-container .notification {
    background: var(--liquid-dropdown-bg) !important;
    backdrop-filter: var(--liquid-dropdown-blur);
    -webkit-backdrop-filter: var(--liquid-dropdown-blur);
    border: 1px solid var(--liquid-border) !important;
    border-left: 1px solid var(--liquid-border) !important;
    border-radius: 20px !important;
    box-shadow: var(--liquid-shadow) !important;
    padding: 16px 20px;
    min-width: 280px;
    max-width: 400px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

#notification-container .notification:hover {
    box-shadow: var(--liquid-shadow-hover) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Мягкий акцент по типу — без полоски, в стиле liquid glass */
#notification-container .notification-info {
    box-shadow: 0 4px 20px rgba(31, 38, 135, 0.06), 0 0 0 1px rgba(37, 99, 235, 0.12) !important;
}
#notification-container .notification-info:hover {
    box-shadow: 0 8px 28px rgba(31, 38, 135, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.18) !important;
}
#notification-container .notification-success {
    box-shadow: 0 4px 20px rgba(31, 38, 135, 0.06), 0 0 0 1px rgba(16, 185, 129, 0.12) !important;
}
#notification-container .notification-success:hover {
    box-shadow: 0 8px 28px rgba(31, 38, 135, 0.08), 0 0 0 1px rgba(16, 185, 129, 0.18) !important;
}
#notification-container .notification-warning {
    box-shadow: 0 4px 20px rgba(31, 38, 135, 0.06), 0 0 0 1px rgba(245, 158, 11, 0.14) !important;
}
#notification-container .notification-warning:hover {
    box-shadow: 0 8px 28px rgba(31, 38, 135, 0.08), 0 0 0 1px rgba(245, 158, 11, 0.2) !important;
}
#notification-container .notification-error {
    box-shadow: 0 4px 20px rgba(31, 38, 135, 0.06), 0 0 0 1px rgba(239, 68, 68, 0.14) !important;
}
#notification-container .notification-error:hover {
    box-shadow: 0 8px 28px rgba(31, 38, 135, 0.08), 0 0 0 1px rgba(239, 68, 68, 0.2) !important;
}

#notification-container .notification .notification-close:hover {
    color: var(--text-primary) !important;
}

/* --------------------------------------------------------------------------
   18. CHAT / MESSAGES
   -------------------------------------------------------------------------- */

.order-chat-container {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--profile-radius-lg);
    box-shadow: var(--shadow-xs);
}

.order-chat-header {
    background: var(--surface-card);
    border-bottom: 1px solid var(--border-default);
    border-radius: var(--profile-radius-lg) var(--profile-radius-lg) 0 0;
}

.order-chat-messages { background: var(--gray-light); }

.order-chat-input-area {
    background: var(--surface-card);
    border-top: 1px solid var(--border-default);
}

.order-chat-input {
    background: var(--gray-light);
    border: 1px solid var(--border-default);
    border-radius: var(--profile-radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    padding: 10px 14px;
}

.order-chat-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
    background: white;
}

.message-item.unread { background: var(--primary-subtle); }

/* --------------------------------------------------------------------------
   19. WALLET / REFERRAL / ACHIEVEMENTS
   -------------------------------------------------------------------------- */

/* ---- Wallet header ---- */
.wallet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-5);
}

.wallet-header .section-title { margin-bottom: 2px; }

/* ---- Balance cards grid ---- */
.wallet-balances {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

@media (min-width: 600px) {
    .wallet-balances {
        grid-template-columns: repeat(3, 1fr);
    }
}

.wbal-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: var(--profile-radius-lg);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.wbal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--profile-radius-lg) var(--profile-radius-lg) 0 0;
}

.wbal-card--main::before     { background: linear-gradient(90deg, #2563eb, #4f46e5); }
.wbal-card--bonus::before    { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.wbal-card--referral::before { background: linear-gradient(90deg, #8b5cf6, #06b6d4); }

.wbal-card:hover {
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.95);
}

.wbal-top {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.wbal-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: var(--liquid-shine);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
}

.wbal-icon--blue   { background: var(--primary-subtle);  color: var(--primary-color); }
.wbal-icon--amber  { background: #fef3c7; color: #d97706; }
.wbal-icon--violet { background: #ede9fe; color: #7c3aed; }

.wbal-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wbal-amount {
    display: flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1;
}

.wbal-amount span:first-child {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1.5px;
    font-family: 'Montserrat', sans-serif;
}

.wbal-currency {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
    letter-spacing: 0 !important;
}

.wbal-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
}

.wbal-action-btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ---- Top-up card ---- */
.wallet-topup-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: var(--profile-radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-5);
    box-shadow: var(--glass-shadow);
}

.wallet-topup-head {
    margin-bottom: var(--space-5);
}

.wallet-topup-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.wallet-topup-title i {
    color: var(--primary-color);
}

/* Quick amount buttons */
.wallet-quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.wquick-btn {
    padding: 7px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(6px);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: var(--glass-shine);
}

.wquick-btn:hover,
.wquick-btn.active {
    border-color: rgba(37,99,235,0.4);
    background: rgba(37,99,235,0.09);
    color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.07), var(--glass-shine);
}

/* Amount input */
.wallet-amount-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    display: block;
}

.wallet-amount-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.wallet-amount-wrap input {
    width: 100%;
    padding: 13px 44px 13px 16px;
    border: 1.5px solid var(--glass-border);
    border-radius: var(--profile-radius-md);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(6px);
    outline: none;
    transition: var(--transition);
    box-shadow: var(--glass-shine);
}

.wallet-amount-wrap input:focus {
    border-color: rgba(37,99,235,0.5);
    background: rgba(255,255,255,0.88);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.10), var(--glass-shine);
}

.wallet-amount-suffix {
    position: absolute;
    right: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    pointer-events: none;
    user-select: none;
}

/* Pay button */
.wallet-pay-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-top: var(--space-4);
    border-radius: var(--profile-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.wallet-topup-foot {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-default);
    text-align: center;
}

.wallet-req-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.wallet-req-link:hover {
    color: var(--primary-color);
}

/* ---- Payment method selector (YooKassa) ---- */
.wpay-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-muted);
    margin-bottom: 10px;
    margin-top: 2px;
}

.wpay-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.wpay-methods--single {
    grid-template-columns: 1fr;
}
.wpay-methods--single .wpay-method {
    cursor: default;
    pointer-events: none;
}
@media (min-width: 520px) {
    .wpay-methods { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 500px) {
    .wpay-methods { grid-template-columns: 1fr; }
}

.wpay-method {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1.5px solid var(--glass-border);
    border-radius: var(--profile-radius-md);
    background: rgba(255,255,255,0.48);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.wpay-method:hover {
    border-color: rgba(37,99,235,0.35);
    background: rgba(255,255,255,0.70);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(37,99,235,0.08), inset 0 1px 0 rgba(255,255,255,0.7);
}

.wpay-method.active {
    border-color: var(--primary-color);
    background: rgba(239,246,255,0.90);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.10), inset 0 1px 0 rgba(255,255,255,0.8);
}

.wpay-commission-info {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 13px;
    cursor: help;
    opacity: 0.85;
}
.wpay-commission-info:hover { color: var(--primary-color); opacity: 1; }

.wpay-commission-note {
    font-size: 12px;
    color: var(--text-muted);
    margin: -8px 0 12px 0;
    line-height: 1.4;
}

.wpay-commission-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
    background: rgba(37,99,235,0.06);
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: var(--profile-radius-md);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}
.wpay-commission-notice i {
    color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
}
.wpay-commission-notice-text { flex: 1; min-width: 0; }

.wallet-to-pay-line {
    margin-bottom: 14px;
    padding: 10px 14px;
    background: rgba(37,99,235,0.06);
    border-radius: var(--profile-radius-md);
    border: 1px solid rgba(37,99,235,0.12);
    font-size: 14px;
}
.wallet-to-pay-label { color: var(--text-muted); margin-right: 6px; }
.wallet-to-pay-value { font-weight: 700; color: var(--text-primary); }
.wallet-to-pay-commission { color: var(--text-muted); font-size: 13px; }
.wallet-to-pay-commission--zero { color: #059669; }

.wpay-method-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    background: var(--primary-subtle);
    color: var(--primary-color);
    border: 1px solid rgba(255,255,255,0.5);
    transition: var(--transition);
}

.wpay-method.active .wpay-method-icon {
    background: rgba(37,99,235,0.18);
}

.wpay-method-icon--sbp     { background: rgba(16,185,129,0.12); color: #059669; }
.wpay-method-icon--ym      { background: rgba(245,158,11,0.12);  color: #d97706; }
.wpay-method-icon--sber    { background: rgba(34,197,94,0.12);   color: #16a34a; }
.wpay-method-icon--tinkoff { background: rgba(255,218,0,0.15);   color: #b8860b; }
.wpay-method-icon--mir     { background: rgba(0,160,80,0.12);    color: #008840; }

.wpay-method.active .wpay-method-icon--sbp     { background: rgba(16,185,129,0.22); }
.wpay-method.active .wpay-method-icon--ym      { background: rgba(245,158,11,0.22); }
.wpay-method.active .wpay-method-icon--sber    { background: rgba(34,197,94,0.22); }
.wpay-method.active .wpay-method-icon--tinkoff { background: rgba(255,218,0,0.25); }
.wpay-method.active .wpay-method-icon--mir     { background: rgba(0,160,80,0.22); }

.wpay-method-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.wpay-method-text {
    flex: 1;
    min-width: 0;
}

.wpay-method-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wpay-method-sub {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Security badge under the pay button */
.wallet-topup-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.01em;
}

.wallet-topup-secure i {
    color: #10b981;
    font-size: 12px;
}

/* ---- Transaction history ---- */
.wallet-history {
    margin-top: var(--space-2);
}

.wallet-history-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-default);
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 13px 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: var(--profile-radius-md);
    transition: var(--transition);
    position: relative;
    box-shadow: var(--glass-shine);
}

.transaction-item:hover {
    border-color: rgba(37,99,235,0.22);
    box-shadow: var(--glass-shadow);
    transform: translateX(2px);
}

/* Colored dot indicator */
.transaction-item::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.transaction-item.income::before  { background: #10b981; }
.transaction-item.expense::before { background: #ef4444; }

/* First div = description */
.transaction-item > div:first-of-type {
    flex: 1;
    min-width: 0;
}

.transaction-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-item p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Override inline font-size/color from JS */
    font-size: 12px !important;
    color: var(--text-muted) !important;
    margin-top: 2px !important;
}

/* Amount column — override JS inline styles */
.txn-amount,
.transaction-item > div:last-of-type {
    font-size: 15px !important;
    font-weight: 700 !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.txn-amount--income { color: #10b981 !important; }
.txn-amount--expense { color: #ef4444 !important; }

/* JS-rendered items: override inline color with attribute selector fallback */
.transaction-item.income > div[style*="10b981"]   { color: #10b981 !important; }
.transaction-item.expense > div[style*="ef4444"]  { color: #ef4444 !important; }

.referral-card {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    border-radius: var(--profile-radius-lg);
}

.achievement-card {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--profile-radius-md);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.achievement-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-border);
}

.achievement-card.locked { opacity: 0.55; background: var(--gray-light); }
.achievement-card h4 { color: var(--text-primary); font-size: 14px; }
.achievement-card p  { color: var(--text-secondary); font-size: 13px; }

.achievement-category-btn {
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    border: 1px solid var(--liquid-border);
    border-radius: var(--profile-radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--liquid-shine);
}

.achievement-category-btn:hover {
    background: var(--liquid-bg-strong);
    border-color: rgba(37,99,235,0.3);
    color: var(--primary-color);
    box-shadow: var(--liquid-shadow);
}

.achievement-category-btn.active {
    background: linear-gradient(135deg, rgba(37,99,235,0.2), rgba(79,70,229,0.15));
    border-color: rgba(37,99,235,0.45);
    color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37,99,235,0.15), var(--liquid-shine);
}

/* --------------------------------------------------------------------------
   20. FILE STORAGE
   -------------------------------------------------------------------------- */

.file-item {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--profile-radius-md);
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.file-item:hover { border-color: var(--primary-border); box-shadow: var(--shadow-sm); }
.file-item h4 { color: var(--text-primary); font-size: 14px; }
.file-item p  { color: var(--text-muted); font-size: 12px; }

.file-icon {
    background: var(--gray-light);
    color: var(--primary-color);
    border: 1px solid var(--border-default);
    border-radius: var(--profile-radius-sm);
}

/* --------------------------------------------------------------------------
   21. SEARCH / FILTER INPUTS
   -------------------------------------------------------------------------- */

#orderSearch, #statusFilter, #serviceFilter, #fileSearch {
    background: white;
    border: 1px solid var(--border-default);
    border-radius: var(--profile-radius-sm);
    color: var(--text-primary);
    padding: 9px 14px;
    font-size: 14px;
    box-shadow: var(--shadow-xs);
}

#orderSearch:focus, #statusFilter:focus, #serviceFilter:focus, #fileSearch:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

/* --------------------------------------------------------------------------
   22. MODALS — liquid glass, как в профиле
   -------------------------------------------------------------------------- */

.order-details-modal {
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: var(--liquid-blur);
    -webkit-backdrop-filter: var(--liquid-blur);
}

.order-details-modal-content {
    background: var(--liquid-dropdown-bg);
    backdrop-filter: var(--liquid-dropdown-blur);
    -webkit-backdrop-filter: var(--liquid-dropdown-blur);
    border: 1px solid var(--liquid-border);
    box-shadow: var(--liquid-shadow);
}

.order-details-modal-header,
.order-details-modal-footer {
    border-color: var(--liquid-border-subtle);
    background: transparent;
}

.order-details-modal-header h2 {
    color: var(--text-primary);
}

.order-details-modal-close {
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--profile-radius-sm);
    width: 36px;
    height: 36px;
}

.order-details-modal-close:hover {
    background: var(--danger-subtle);
    color: var(--danger-color);
}

/* --------------------------------------------------------------------------
   23. THEME OPTIONS (settings)
   -------------------------------------------------------------------------- */

.theme-option {
    background: var(--surface-card);
    border: 2px solid var(--border-default);
    border-radius: var(--profile-radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.theme-option:hover { border-color: var(--primary-color); box-shadow: var(--shadow-sm); }

.theme-option.active {
    border-color: var(--primary-color);
    background: var(--primary-subtle);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.theme-name { color: var(--text-secondary); font-size: 13px; font-weight: 500; }

/* --------------------------------------------------------------------------
   24. EMPTY STATES
   -------------------------------------------------------------------------- */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i { font-size: 56px; margin-bottom: 16px; opacity: 0.2; }
.empty-state h3 { font-size: 18px; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p  { font-size: 14px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   25. CHAT STATUS BADGES
   -------------------------------------------------------------------------- */

.chat-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: var(--gray-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
    white-space: nowrap;
}

.chat-status-processing,
.chat-status-in_progress,
.chat-status-paid,
.chat-status-payment_requested {
    background: var(--primary-subtle);
    color: var(--primary-color);
    border-color: var(--primary-border);
}

.chat-status-pending {
    background: var(--warning-subtle);
    color: var(--accent-dark);
    border-color: var(--accent-color);
}

.chat-status-completed {
    background: var(--success-subtle);
    color: #059669;
    border-color: #6ee7b7;
}

.chat-status-cancelled {
    background: var(--danger-subtle);
    color: var(--danger-color);
    border-color: #fca5a5;
}

/* --------------------------------------------------------------------------
   26. MATERIAL STATUS
   -------------------------------------------------------------------------- */

.material-status { border-radius: var(--profile-radius-sm); font-size: 13px; }

.material-status.in-stock {
    background: var(--success-subtle);
    color: #059669;
    border-left: 3px solid var(--success-color);
}

.material-status.out-of-stock {
    background: var(--danger-subtle);
    color: var(--danger-color);
    border-left: 3px solid var(--danger-color);
}

.material-status.on-order {
    background: var(--warning-subtle);
    color: var(--accent-dark);
    border-left: 3px solid var(--accent-color);
}

/* --------------------------------------------------------------------------
   27. LOYALTY / STORAGE PROGRESS
   -------------------------------------------------------------------------- */

.loyalty-progress,
.storage-progress {
    background: var(--gray-light);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.loyalty-progress-bar,
.storage-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.6s ease;
}

/* --------------------------------------------------------------------------
   28. MOBILE OVERLAY ELEMENTS
   -------------------------------------------------------------------------- */

.mobile-chat-back,
.mobile-chat-header {
    background: var(--surface-card);
    border-bottom: 1px solid var(--border-default);
    box-shadow: none;
}

.mobile-upload-fab {
    background: var(--primary-color);
    box-shadow: var(--shadow-md);
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   29. SUPPORT WIDGET — liquid glass (кнопка + окно и всё внутри)
   -------------------------------------------------------------------------- */

.support-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

/* Кнопка — стеклянная пилюля */
.support-widget-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: var(--liquid-blur-sm);
    -webkit-backdrop-filter: var(--liquid-blur-sm);
    border: 1px solid var(--liquid-border);
    box-shadow: var(--liquid-shadow);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
    position: relative;
}

.support-widget-button:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: var(--liquid-shadow-hover);
    transform: scale(1.05);
}

.support-widget-button.active {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
}

.support-widget-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--liquid-frost-bg);
    display: none;
}

.support-widget-badge.active { display: block; }

/* Окно — матовое стекло */
.support-widget-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 500px;
    max-height: calc(100vh - 120px);
    background: var(--liquid-frost-bg);
    backdrop-filter: var(--liquid-frost-blur);
    -webkit-backdrop-filter: var(--liquid-frost-blur);
    border: 1px solid var(--liquid-border);
    border-radius: var(--profile-radius-lg);
    box-shadow: var(--liquid-shadow);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.support-widget-window.active { display: flex; }

/* Хедер окна — лёгкое стекло */
.support-widget-header {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--liquid-border);
    color: var(--text-primary);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-widget-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.support-widget-close {
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid transparent;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.support-widget-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

/* Область сообщений — матовый фон */
.support-widget-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: rgba(249, 250, 251, 0.85);
    backdrop-filter: blur(8px);
}

.support-widget-message {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.support-widget-message.user { flex-direction: row-reverse; }

.support-widget-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--liquid-border);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.support-widget-message.user .support-widget-avatar {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

.support-widget-sender-name {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.support-widget-message-content {
    max-width: 75%;
    min-width: 0;
    padding: 12px 16px;
    border-radius: 18px;
    background: var(--liquid-frost-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--liquid-border);
    box-shadow: var(--liquid-shadow-xs);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    overflow-wrap: break-word;
    word-break: break-word;
}
.support-widget-message-content p {
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
}

.support-widget-message.user .support-widget-message-content {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

.support-widget-hints {
    padding: 8px 15px 10px;
    background: rgba(0, 0, 0, 0.04);
    border-top: 1px solid var(--liquid-border);
}
.support-widget-hints-header { margin-bottom: 6px; }
.support-widget-hints-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 12px;
    cursor: pointer;
    padding: 2px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.support-widget-hints-toggle:hover { text-decoration: underline; }
.support-widget-hints-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.support-widget-hints-sub {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--liquid-border);
}
.support-widget-hints-sub-title {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.support-widget-hints-order-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.support-widget-hint-order { font-family: monospace; }
.support-widget-no-orders { font-size: 12px; color: var(--text-secondary); }
.support-widget-hint-back {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
    border-style: dashed;
}
.support-widget-hint {
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid var(--liquid-border);
    background: var(--liquid-frost-bg);
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.support-widget-hint:hover {
    border-color: rgba(37, 99, 235, 0.4);
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
}

/* Блок ввода — матовое стекло */
.support-widget-input-area {
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--liquid-border);
    display: flex;
    gap: 10px;
}

.support-widget-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--liquid-frost-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--liquid-border);
    border-radius: 25px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    transition: var(--transition);
}

.support-widget-input::placeholder { color: var(--text-muted); }

.support-widget-input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.support-widget-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    border: 1px solid var(--liquid-border);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.support-widget-send:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: var(--liquid-shadow-hover);
    transform: scale(1.05);
}

.support-widget-resolved {
    padding: 6px 10px;
    font-size: 12px;
    color: var(--text-secondary);
    background: none;
    border: 1px solid var(--liquid-border);
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.support-widget-resolved:hover {
    color: var(--primary-color);
    border-color: rgba(37, 99, 235, 0.4);
}

@media (max-width: 768px) {
    .support-widget { bottom: 20px; right: 20px; }
    .support-widget-button { width: 56px; height: 56px; font-size: 22px; }
    .support-widget-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 100px);
        max-height: 600px;
    }
}

/* --------------------------------------------------------------------------
   30. MOBILE RESPONSIVE FIXES
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .info-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .info-card { padding: 16px; }
    .info-card p { font-size: 20px; }

    .section-title { font-size: 20px; }

    .dashboard-widget {
        padding: 16px 18px;
        border-radius: var(--profile-radius-md);
    }

    .settings-section-block {
        border-radius: var(--profile-radius-sm);
        padding: 16px;
        border-left: none;
        border-right: none;
        border-radius: 0;
        box-shadow: none;
        border-top: none;
        border-bottom: 1px solid var(--border-default);
        margin-bottom: 0;
    }

    .btn { padding: 11px 20px; font-size: 14px; min-height: 44px; }
}

/* --------------------------------------------------------------------------
   31. SCROLLBAR (desktop)
   -------------------------------------------------------------------------- */

@media (min-width: 769px) {
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
}

/* --------------------------------------------------------------------------
   32. FOCUS VISIBLE ACCESSIBILITY
   -------------------------------------------------------------------------- */

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

/* --------------------------------------------------------------------------
   33. DASHBOARD: STAT CARDS
   -------------------------------------------------------------------------- */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: var(--profile-radius-md);
    padding: 18px 16px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    min-width: 0;
}

.stat-card:hover {
    border-color: rgba(37,99,235,0.25);
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-2px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--profile-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    color: white;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: var(--liquid-shine), 0 2px 8px rgba(0,0,0,0.08);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
}

.stat-icon--blue   { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.stat-icon--amber  { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.stat-icon--violet { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.stat-icon--green  { background: linear-gradient(135deg, #10b981, #34d399); }

.stat-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   34. DASHBOARD WIDGETS
   -------------------------------------------------------------------------- */

.dash-widget {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: var(--profile-radius-md);
    box-shadow: var(--glass-shadow);
    margin-bottom: 16px;
    overflow: hidden;
}

.dash-widget:last-child { margin-bottom: 0; }

.dash-widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--liquid-border);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    box-shadow: var(--liquid-shine);
}

.dash-widget-header i {
    color: var(--primary-color);
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.dash-widget-body {
    padding: 14px 18px;
    min-height: 60px;
}

.dash-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 12px 0;
}

/* Activity in dash widget */
.dash-widget .activity-list { padding: 8px 18px 14px; }
.dash-widget .activity-item { margin-bottom: 4px; }

/* Quick actions in dash widget */
.dash-widget .quick-actions {
    padding: 14px 18px;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 640px) {
    .dash-widget .quick-actions { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════
   КАСТОМИЗАЦИЯ ДАШБОРДА
   ═══════════════════════════════════════════════════════════ */

/* Шапка дашборда */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dashboard-header .section-title { margin: 0; }

.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Кнопка «Настроить» */
.dashboard-customize-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--profile-radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.dashboard-customize-btn:hover {
    background: var(--liquid-bg-strong);
    border-color: var(--primary-border);
    color: var(--primary-color);
}

/* Контрол-панель в режиме редактирования */
.dashboard-edit-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dashboard-divider {
    width: 1px;
    height: 20px;
    background: var(--glass-border);
    display: inline-block;
    margin: 0 2px;
}

.dashboard-preset-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--profile-radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--liquid-bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.dashboard-preset-chip:hover {
    background: var(--primary-subtle);
    border-color: var(--primary-border);
    color: var(--primary-color);
}

.dashboard-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--profile-radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--liquid-bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.dashboard-reset-btn:hover {
    background: var(--danger-subtle);
    border-color: rgba(239, 68, 68, 0.35);
    color: var(--danger-color);
}

.dashboard-done-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--profile-radius-sm);
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.dashboard-done-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ── Пикер ярлыков ── */
.dashboard-picker {
    display: none;
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    border: 1px solid var(--glass-border);
    border-radius: var(--profile-radius-md);
    margin-bottom: 20px;
    overflow: hidden;
}

.dashboard-picker--open { display: block; }

.dashboard-picker-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 13px 18px 11px;
    border-bottom: 1px solid var(--glass-border);
    flex-wrap: wrap;
}

.dashboard-picker-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.dashboard-picker-label i {
    color: var(--primary-color);
    margin-right: 4px;
}

.dashboard-picker-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.dashboard-picker-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dashboard-picker-section {
    padding: 12px 16px 14px;
    border-bottom: 1px solid var(--glass-border);
}

.dashboard-picker-section:last-child {
    border-bottom: none;
}

.dashboard-picker-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    margin: 0 0 10px 2px;
}

.dashboard-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

/* Плитка виджета/ярлыка */
.dashboard-picker-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 8px;
    border: 1.5px solid var(--glass-border);
    border-radius: var(--profile-radius-md);
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-family: inherit;
    position: relative;
    color: var(--text-secondary);
    min-height: 80px;
}

.dashboard-picker-tile:hover {
    border-color: var(--primary-border);
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.1);
}

.dashboard-picker-tile--added {
    border-color: var(--primary-color);
    background: var(--primary-subtle);
    color: var(--primary-color);
}

.dashboard-picker-tile--added .dashboard-picker-tile-icon {
    background: linear-gradient(135deg, #10b981, #34d399) !important;
}

.dashboard-picker-tile--added .dashboard-picker-tile-badge {
    display: flex;
}

.dashboard-picker-tile-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
    transition: var(--transition);
}

.dashboard-picker-tile:hover .dashboard-picker-tile-icon {
    transform: scale(1.06);
}

.dashboard-picker-tile-name {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.dashboard-picker-tile-badge {
    display: none;
    position: absolute;
    top: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    background: var(--success-color);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #fff;
}

/* ── Настройки виджета (панель между ручкой и контентом) ── */
.dashboard-block-settings {
    display: none;
    background: rgba(248, 250, 255, 0.95);
    border: 1.5px dashed rgba(37, 99, 235, 0.25);
    border-top: none;
    padding: 12px 16px 14px;
}

.dashboard-block-settings--open {
    display: block;
}

.dashboard-block-settings-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 10px 0;
}

.dashboard-block-settings-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dbs-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px 7px 10px;
    border: 1.5px solid var(--glass-border);
    border-radius: 20px;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    user-select: none;
}

.dbs-toggle:hover {
    border-color: var(--primary-border);
    color: var(--primary-color);
    background: rgba(255,255,255,0.9);
}

.dbs-toggle input[type="checkbox"] {
    display: none;
}

.dbs-toggle-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    font-size: 8px;
    color: transparent;
}

.dbs-toggle.dbs-toggle--on {
    border-color: var(--primary-color);
    background: var(--primary-subtle);
    color: var(--primary-color);
}

.dbs-toggle.dbs-toggle--on .dbs-toggle-dot {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ── Поля настройки ярлыка ── */
.dbs-field-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}

.dbs-field-row:last-child { margin-bottom: 0; }

.dbs-field-row--hidden { display: none; }

.dbs-field-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dbs-field-input {
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    border: 1.5px solid var(--glass-border);
    border-radius: var(--profile-radius-sm);
    background: rgba(255,255,255,0.8);
    color: var(--text-primary);
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.dbs-field-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

/* ── Пустой дашборд ── */
.dashboard-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    border: 1.5px dashed var(--glass-border);
    border-radius: var(--profile-radius-lg);
}

.dashboard-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--profile-radius-md);
    background: var(--primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.dashboard-empty-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.dashboard-empty-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 20px 0;
    max-width: 300px;
    line-height: 1.5;
}

.dashboard-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--profile-radius-sm);
    border: 1.5px solid var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.dashboard-empty-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* В режиме редактирования скрытые блоки показываем с приглушённым стилем */
.dashboard-block[data-widget-hidden="true"] {
    display: none;
}

.dashboard-blocks--editing .dashboard-block[data-widget-hidden="true"] {
    display: block;
    opacity: 0.35;
    pointer-events: none;
}

/* ── Сетка блоков ── */
.dashboard-blocks {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    align-content: start;
}

.dashboard-block {
    position: relative;
    grid-column: span 12;
    transition: box-shadow 0.2s ease, opacity 0.2s ease;
}

.dashboard-block--span-4  { grid-column: span 4; }
.dashboard-block--span-6  { grid-column: span 6; }
.dashboard-block--span-12 { grid-column: span 12; }

@media (max-width: 900px) {
    .dashboard-block--span-4,
    .dashboard-block--span-6 { grid-column: span 12; }
}

/* ── Ручка перетаскивания (в потоке, не absolute) ── */
.dashboard-block-handle {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    height: 40px;
    background: rgba(255,255,255,0.55);
    border: 1.5px dashed rgba(37, 99, 235, 0.3);
    border-bottom: none;
    border-radius: var(--profile-radius-md) var(--profile-radius-md) 0 0;
    cursor: grab;
    transition: background 0.2s ease;
    user-select: none;
}

.dashboard-block-handle:hover {
    background: rgba(37, 99, 235, 0.07);
    border-color: rgba(37, 99, 235, 0.5);
}

.dashboard-block-handle:active { cursor: grabbing; }

.dashboard-blocks--editing .dashboard-block-handle { display: flex; }

/* В режиме редактирования убираем top-border-radius у внутреннего контента */
.dashboard-blocks--editing .dashboard-block .dash-widget,
.dashboard-blocks--editing .dashboard-block .stat-grid {
    border-radius: 0 0 var(--profile-radius-md) var(--profile-radius-md);
}

.dashboard-block-handle-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    pointer-events: none;
}

.dashboard-block-handle-left i.fa-grip-vertical {
    color: rgba(37, 99, 235, 0.5);
    font-size: 13px;
}

.dashboard-block-handle-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: all;
}

/* Кнопки размера S/M/L */
.dashboard-block-size-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 24px;
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 5px;
    background: rgba(255,255,255,0.7);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.dashboard-block-size-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(37,99,235,0.06);
}

.dashboard-block-size-btn--active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.dashboard-block-size-sep {
    width: 1px;
    height: 16px;
    background: rgba(37,99,235,0.2);
    margin: 0 2px;
}

/* Кнопка удаления (только кастомные) */
.dashboard-block-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 24px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 5px;
    background: rgba(255,255,255,0.7);
    color: var(--danger-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 11px;
}

.dashboard-block-remove-btn:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: #fff;
}

/* Состояния drag-drop */
.dashboard-block--dragging {
    opacity: 0.7;
    box-shadow: 0 12px 32px rgba(31, 38, 135, 0.18);
    z-index: 20;
}

/* Анимация удаления/скрытия блока */
@keyframes dbHide {
    0%   { opacity: 1; transform: scale(1) translateY(0); max-height: 600px; }
    40%  { opacity: 0; transform: scale(0.94) translateY(-6px); max-height: 600px; }
    100% { opacity: 0; transform: scale(0.94) translateY(-6px); max-height: 0; margin-top: 0; margin-bottom: 0; }
}

@keyframes dbShow {
    0%   { opacity: 0; transform: scale(0.94) translateY(6px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.dashboard-block--hiding {
    animation: dbHide 0.32s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    overflow: hidden;
    pointer-events: none;
    grid-column: inherit; /* keep grid slot while animating */
}

.dashboard-block--showing {
    animation: dbShow 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Плавное появление дашборда на загрузке */
@keyframes dbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.dashboard-blocks--ready {
    animation: dbFadeIn 0.22s ease forwards;
}

.dashboard-block--drag-over::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--profile-radius-md) + 3px);
    border: 2px dashed var(--primary-color);
    pointer-events: none;
    z-index: 5;
    animation: dashAnim 0.8s linear infinite;
}

@keyframes dashAnim {
    to { stroke-dashoffset: -20; }
}

/* Режим редактирования — обводка блоков */
.dashboard-blocks--editing .dashboard-block {
    border-radius: var(--profile-radius-md);
}

/* ── Кастомный ярлык (блок-ссылка) ── */
.dashboard-custom-block {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: var(--profile-radius-md);
    box-shadow: var(--glass-shadow);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.dashboard-custom-block:hover {
    border-color: var(--primary-border);
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-2px);
    background: var(--liquid-bg-strong);
}

.dashboard-blocks--editing .dashboard-custom-block {
    border-radius: 0 0 var(--profile-radius-md) var(--profile-radius-md);
}

.dashboard-custom-block-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.dashboard-custom-block-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dashboard-custom-block-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-custom-block-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.dashboard-custom-block-arrow {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: var(--transition);
}

.dashboard-custom-block:hover .dashboard-custom-block-arrow {
    color: var(--primary-color);
    transform: translateX(2px);
}

@media (max-width: 640px) {
    .dashboard-header { flex-direction: column; align-items: flex-start; }
    .dashboard-edit-controls { flex-wrap: wrap; }
    .dashboard-done-btn { width: 100%; justify-content: center; }
    .dashboard-picker-grid { grid-template-columns: repeat(3, 1fr); }
}

.activity-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* Mobile section links */
.mobile-sections-list {
    padding: 8px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-section-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
    border: 1px solid var(--liquid-border);
    border-radius: var(--profile-radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--liquid-shine);
}

.mobile-section-link:hover {
    background: var(--liquid-bg-strong);
    border-color: rgba(37,99,235,0.35);
    color: var(--primary-color);
    box-shadow: var(--liquid-shadow);
}

.mobile-section-link-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-section-link-left i {
    font-size: 22px;
    color: var(--primary-color);
    transition: var(--transition);
}

.mobile-section-link-left i:first-of-type {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--liquid-bg);
    backdrop-filter: var(--liquid-blur-xs);
    border: 1px solid var(--liquid-border);
    box-shadow: var(--liquid-shine);
}

.mobile-section-link:hover .mobile-section-link-left i:first-of-type {
    color: white;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 2px 8px rgba(37,99,235,0.3), var(--liquid-shine);
}

.mobile-section-link-left > i:last-child {
    font-size: 13px;
    color: var(--text-muted);
}

.mobile-section-link-title {
    display: block;
    font-weight: 600;
    font-size: 15px;
}

.mobile-section-link-sub {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

.mobile-section-link:hover .mobile-section-link-sub { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   35. SERVICES GRID & CARDS
   -------------------------------------------------------------------------- */

.section-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    margin-top: -16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

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

.svc-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur-sm);
    -webkit-backdrop-filter: var(--glass-blur-sm);
    border: 1px solid var(--glass-border);
    border-radius: var(--profile-radius-lg);
    padding: 24px;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.svc-card:hover {
    border-color: rgba(37,99,235,0.25);
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-3px);
}

.svc-card--disabled {
    opacity: 0.65;
    pointer-events: none;
}

.svc-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.svc-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--profile-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: var(--liquid-shine), 0 2px 10px rgba(0,0,0,0.08);
    backdrop-filter: var(--liquid-blur-xs);
    -webkit-backdrop-filter: var(--liquid-blur-xs);
}

.svc-icon--blue   { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.svc-icon--violet { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.svc-icon--amber  { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.svc-icon--green  { background: linear-gradient(135deg, #10b981, #34d399); }
.svc-icon--indigo { background: linear-gradient(135deg, #6366f1, #818cf8); }
.svc-icon--red    { background: linear-gradient(135deg, #ef4444, #f87171); }

.svc-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 3px;
    letter-spacing: -0.2px;
}

/* ---- Info-button рядом с названием услуги ---- */
.svc-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.svc-info-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    line-height: 1;
    padding: 0;
}

.svc-info-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* ---- Модальное окно цен FDM ---- */
/* ── Overlay: полностью перекрывает, сам скроллится на мобилке ── */
.fdm-price-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    /* overflow-y: auto здесь — на мобилке overlay скроллится, не модалка */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.fdm-price-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ── Модальное окно: без своей прокрутки ── */
.fdm-price-modal {
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(15,23,42,0.18), 0 4px 16px rgba(15,23,42,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
    width: 100%;
    max-width: 520px;
    /* Нет max-height и overflow-y — модалка показывается целиком, скроллится overlay */
    flex-shrink: 0;
    transform: scale(0.94) translateY(10px);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fdm-price-overlay.open .fdm-price-modal {
    transform: scale(1) translateY(0);
}

/* На ПК — модалка точно по центру без каких-либо полос */
@media (min-width: 769px) {
    .fdm-price-overlay {
        align-items: center;
        overflow: hidden; /* на ПК прокрутки нет вообще */
    }
}

/* На мобилке — overlay скроллится, модалка занимает всю ширину */
@media (max-width: 768px) {
    .fdm-price-overlay {
        align-items: flex-start;
        padding: 12px 8px 24px;
    }
    .fdm-price-modal {
        max-width: 100%;
        border-radius: 16px;
    }
}

/* Header полосой градиента */
.fdm-price-modal-header {
    background: linear-gradient(150deg, #1e3a8a, #2563eb 50%, #3b82f6);
    border-radius: 20px 20px 0 0;
    padding: 18px 20px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

@media (max-width: 768px) {
    .fdm-price-modal-header { padding: 14px 16px 12px; border-radius: 16px 16px 0 0; }
}

.fdm-price-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fdm-price-modal-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #fff;
    flex-shrink: 0;
}

.fdm-price-modal-htitle {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 1px;
    letter-spacing: -0.2px;
}

.fdm-price-modal-hsub {
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    margin: 0;
}

.fdm-price-modal-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.fdm-price-modal-close:hover {
    background: rgba(255,255,255,0.28);
    color: #fff;
}

/* Body */
.fdm-price-modal-body {
    padding: 16px 20px 20px;
}

@media (max-width: 768px) {
    .fdm-price-modal-body { padding: 14px 16px 18px; }
}

.fdm-price-section {
    margin-bottom: 14px;
}

.fdm-price-section:last-child {
    margin-bottom: 0;
}

.fdm-price-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(226,232,240,0.7);
}

/* Сетка материалов */
.fdm-materials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

@media (max-width: 360px) {
    .fdm-materials-grid { grid-template-columns: 1fr; }
}

.fdm-material-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(239,246,255,0.7);
    border: 1px solid rgba(191,219,254,0.5);
    border-radius: 10px;
    transition: var(--transition);
}

.fdm-material-chip:hover {
    background: rgba(239,246,255,1);
    border-color: rgba(147,197,253,0.8);
}

.fdm-material-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fdm-material-info {
    flex: 1;
    min-width: 0;
}

.fdm-material-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fdm-material-desc {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fdm-material-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Строки доп.услуг */
.fdm-extra-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    transition: var(--transition);
    margin-bottom: 2px;
}

.fdm-extra-row:last-child { margin-bottom: 0; }

.fdm-extra-row:hover {
    background: rgba(241,245,249,0.8);
}

.fdm-extra-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.fdm-extra-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.fdm-extra-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fdm-extra-price-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}

.fdm-extra-price-badge--free {
    background: rgba(16,185,129,0.12);
    color: #059669;
}

.fdm-extra-price-badge--paid {
    background: rgba(37,99,235,0.10);
    color: var(--primary-color);
}

/* Footer заметка */
.fdm-price-modal-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(241,245,249,0.8);
    border: 1px solid rgba(226,232,240,0.6);
    border-radius: 10px;
    margin-top: 12px;
}

.fdm-price-modal-note i {
    color: var(--primary-color);
    font-size: 13px;
    margin-top: 1px;
    flex-shrink: 0;
}

.fdm-price-modal-note span {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.svc-price {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

.svc-price--soon {
    color: var(--text-muted);
    font-weight: 500;
}

.svc-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.svc-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.svc-features li {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.svc-features li i {
    color: var(--success-color);
    font-size: 11px;
    width: 14px;
    flex-shrink: 0;
}

.svc-btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   36. SECTION TRANSITIONS
   -------------------------------------------------------------------------- */

/* Базовое состояние: секции без прыжков */
.profile-section-content {
    width: 100%;
    box-sizing: border-box;
}

/* Анимация появления при переключении (класс добавляется через JS) */
.profile-section-content.section-enter {
    animation: sectionFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* Модалка: несколько экземпляров виджета (один токен на все) */
.yookassa-multi-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.yookassa-multi-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.yookassa-multi-modal-box {
    position: relative;
    background: var(--card-bg, #fff);
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.2);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.yookassa-multi-modal-head {
    padding: 20px 24px 12px;
    border-bottom: 1px solid var(--border-default, #e5e7eb);
    flex-shrink: 0;
}
.yookassa-multi-modal-title { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--text-primary); }
.yookassa-multi-modal-sub { margin: 0; font-size: 13px; color: var(--text-muted); }
.yookassa-multi-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
}
.yookassa-multi-modal-close:hover { background: var(--border-default); color: var(--text-primary); }
.yookassa-multi-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
    gap: 24px;
    align-content: start;
}
.yookassa-method-block {
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md, 12px);
    padding: 16px;
    background: var(--bg-secondary, #f8fafc);
}
.yookassa-method-block-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.yookassa-widget-container { min-height: 120px; }

.yookassa-multi-modal-footer {
    padding: 12px 24px 20px;
    border-top: 1px solid var(--border-default);
    flex-shrink: 0;
}

/* Размытый фон (окантовка) вокруг виджета ЮKassa при открытой модалке пополнения */
body.yookassa-widget-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
