*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


    * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }


body {
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--wiki_auth_bg-dark);
            margin: 0;
            padding: 0;
            color: var(--wiki_auth_text-main);
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            overflow-x: hidden;
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
                    background-color: var(--bg-dark);
        color: var(--text-main);
        font-family: 'Outfit', sans-serif;
        margin: 0;
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
        background-color: var(--bg-dark);
        color: var(--text-light);
        font-family: 'Outfit', sans-serif;
        margin: 0;
        overflow-x: hidden;
        margin: 0; padding: 0;
            font-family: 'Outfit', system-ui, sans-serif;
            background-color: var(--nw-bg);
            color: #f8fafc;
            min-height: 100vh;
            overflow-x: hidden;
            /* СЕТКА КАК НА СТРАНИЦЕ ПРЕДЛОЖЕНИЙ */
            background-image: 
                linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 40px 40px;
            margin: 0; padding: 0;
            font-family: 'Outfit', sans-serif;
            background-color: var(--nw-bg);
            color: #f8fafc;
            min-height: 100vh;
            overflow-x: hidden;
            background-image: 
                linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 40px 40px;
            margin: 0;
        font-family: var(--font-main);
        background: var(--bg-dark);
        color: var(--text-main);
        min-height: 100vh;
                    background-color: var(--bg-dark);
            color: var(--text-main);
            font-family: 'Space Grotesk', sans-serif;
            margin: 0;
            overflow-x: hidden;
            min-height: 100vh;
}

/* =========================================================
   WIKI VARIABLES
========================================================= */

:root {
    --wiki-primary: #5865f2;
    --wiki-primary-dark: #4752c4;
    --wiki-primary-hover: #4752c4;

    --wiki-secondary: #8b5cf6;
    --wiki-accent: #06b6d4;

    --wiki-bg: #f5f6fa;
    --wiki-white: #ffffff;
    --wiki-card: #ffffff;

    --wiki-text: #1f2330;
    --wiki-muted: #777c8d;
    --wiki-text-light: #656977;

    --wiki-border: rgba(23, 25, 37, .08);

    --wiki-green: #16a34a;
    --wiki-gold: #f59e0b;

    --wiki-like: #e63956;
    --wiki-like-bg: rgba(230, 57, 86, .08);

    --wiki-shadow:
        0 10px 40px rgba(31, 35, 70, .07);

    --wiki-shadow-hover:
        0 22px 55px rgba(72, 80, 170, .16);

    --wiki-radius: 22px;
    --wiki_auth_bg-dark: #020617;
            --wiki_auth_glass-bg: rgba(15, 23, 42, 0.65);
            --wiki_auth_glass-border: rgba(255, 255, 255, 0.1);
            --wiki_auth_primary: #8b5cf6;
            --wiki_auth_primary-hover: #7c3aed;
            --wiki_auth_gradient: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 50%, #ec4899 100%);
            --wiki_auth_text-main: #f8fafc;
            --wiki_auth_text-muted: #94a3b8;
            --wiki_auth_input-bg: rgba(255, 255, 255, 0.04);
            --wiki_auth_shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
                    --bg-dark: #020617;
        --bg-card: rgba(15, 23, 42, 0.6);
        --glass-border: rgba(255, 255, 255, 0.08);
        --primary-gradient: linear-gradient(135deg, #8b5cf6, #3b82f6, #ec4899);
        --text-main: #f8fafc;
        --text-muted: #94a3b8;
        --success: #10b981;
        --danger: #ef4444;
                --av_rp_bg_dark: #0f172a; /* Темный фон для бара */
        --av_rp_glass: rgba(15, 23, 42, 0.85); /* Прозрачность */
        --av_rp_border: rgba(255, 255, 255, 0.1);
        --av_rp_text_main: #f8fafc;
        --av_rp_text_muted: #94a3b8;
        --av_rp_primary: #8b5cf6; /* Фиолетовый акцент как в форме */
        --av_rp_primary_glow: rgba(139, 92, 246, 0.3);
        --av_rp_danger: #ef4444;
        --av_rp_hover: rgba(255, 255, 255, 0.05);
                    --newforile_wiki-cyan: #00f0ff;
            --newforile_wiki-magenta: #ff00aa;
            --newforile_wiki-violet: #8b5cf6;
            --newforile_wiki-lime: #c4ff3d;
            --newforile_wiki-bg-0: #0a0613;
            --newforile_wiki-bg-1: #120a24;
            --newforile_wiki-bg-2: #1a0f33;
            --newforile_wiki-glass: rgba(18, 10, 36, 0.55);
            --newforile_wiki-glass-border: rgba(0, 240, 255, 0.15);
            --newforile_wiki-text: #e9e7ff;
            --newforile_wiki-text-dim: #8a86b8;
            --newforile_wiki-success: #10ffaa;
            --newforile_wiki-danger: #ff3d7f;
            --newforile_wiki-warning: #ffb547;
            --newforile_wiki-radius-lg: 24px;
            --newforile_wiki-radius-md: 16px;
            --newforile_wiki-radius-sm: 10px;
            --nwl-primary: #6366f1; /* Indigo */
            --nwl-secondary: #d946ef; /* Fuchsia */
            --nwl-accent: #0ea5e9; /* Sky Blue */
            
            --nwl-bg-dark: #020204;
            --nwl-card-bg: rgba(20, 20, 25, 0.4);
            --nwl-border: rgba(255, 255, 255, 0.08);
            --nwl-glow: rgba(99, 102, 241, 0.15);
            
            --nwl-text: #ffffff;
            --nwl-muted: #94a3b8;
            
            --status-pending: #fbbf24;
            --status-implemented: #4ade80;
            --status-rejected: #f87171;
            --status-awaiting: #c084fc;
                        
            --font-main: 'Inter', sans-serif;
            --font-mono: 'JetBrains Mono', monospace;
            
            --global-bg-deep: #050507;     
            --btn-gradient: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
            --btn-glow: rgba(124, 58, 237, 0.4);
            
            --bg-dark: #020617;
            --text-light: #f8fafc;
            --text-muted: #94a3b8;   
             --nw-primary: #6366f1;
            --nw-accent: #ec4899;
            --nw-bg: #020617;
            --nw-surface: rgba(15, 23, 42, 0.6);
            --nw-border: rgba(255, 255, 255, 0.08);
            --nw-glass: rgba(255, 255, 255, 0.03);
            --nw-muted: #94a3b8; 
            --nw-primary: #6366f1;
            --nw-accent: #ec4899;
            --nw-bg: #020617;
            --nw-surface: rgba(15, 23, 42, 0.6);
            --nw-border: rgba(255, 255, 255, 0.08);
            --nw-glass: rgba(255, 255, 255, 0.03);
            --nw-muted: #94a3b8;
            
            /* Цвета статусов */
            --status-pending: #f59e0b;
            --status-implemented: #10b981;
            --status-rejected: #ef4444;
            --status-awaiting: #6366f1;
            --status-in-progress: #3b82f6;
            --status-postponed: #64748b; 
            --bg-dark: #09090b;
        --bg-darker: #050507;
        --surface: rgba(255, 255, 255, 0.03);
        --surface-hover: rgba(255, 255, 255, 0.06);
        --border: rgba(255, 255, 255, 0.08);
        --primary: #6366f1;
        --primary-glow: rgba(99, 102, 241, 0.4);
        --accent: #ec4899;
        --bot-color: #06b6d4; /* Цвет бота (Cyan) */
        --operator-color: #f59e0b; /* Цвет кнопки оператора */
        --text-main: #f4f4f5;
        --text-dim: #a1a1aa;
        --radius-lg: 24px;
        --radius-md: 16px;
        --radius-sm: 8px;
        --font-main: 'Inter', sans-serif;
        --font-mono: 'JetBrains Mono', monospace;
        --bg-dark: #09090b;
            --glass-bg: rgba(255, 255, 255, 0.03);
            --glass-border: rgba(255, 255, 255, 0.08);
            --glass-highlight: rgba(255, 255, 255, 0.15);
            --accent-primary: #6366f1; /* Indigo */
            --accent-glow: rgba(99, 102, 241, 0.4);
            --accent-secondary: #ec4899; /* Pink */
            --text-main: #ffffff;
            --text-muted: #a1a1aa;
            --success: #10b981;
            --danger: #ef4444;
            --radius-lg: 24px;
            --radius-md: 16px;
            --radius-sm: 8px;   
            --primary: #8b5cf6;
            --primary-dark: #6d28d9;
            --bg-dark: #0f172a;
            --text-light: #f8fafc;
            --text-muted: #94a3b8;
            --btn-gradient: linear-gradient(90deg, #8b5cf6, #6d28d9);
            --success-color: #10b981;
            --danger-color: #ef4444;
            --danger-dark: #dc2626;
            --warning-color: #f59e0b;    
                /* Core Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    
    /* Accent Colors */
    --accent-primary: #7c3aed;
    --accent-secondary: #ec4899;
    --accent-tertiary: #06b6d4;
    --accent-glow: rgba(124, 58, 237, 0.5);
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    
    /* Spacing */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.3);
     --bg-dark: #09090b;
            --bg-card: rgba(24, 24, 27, 0.6);
            --bg-modal: #0f0f12;
            --border-color: rgba(255, 255, 255, 0.06);
            --border-hover: rgba(255, 255, 255, 0.12);
            --text-main: #fafafa;
            --text-secondary: #a1a1aa;
            --text-muted: #71717a;
            --accent-primary: #8b5cf6;
            --accent-glow: rgba(139, 92, 246, 0.25);
            --accent-secondary: #ec4899;
            --success: #10b981;
            --error: #ef4444;
            --radius-lg: 24px;
            --radius-md: 16px;
            --avrp-bg-base: #02040a;
        --avrp-bg-elevated: #0a0f1e;
        --avrp-primary: #8b5cf6;
        --avrp-primary-light: #a78bfa;
        --avrp-primary-glow: rgba(139, 92, 246, 0.55);
        --avrp-accent: #06b6d4;
        --avrp-accent-glow: rgba(6, 182, 212, 0.5);
        --avrp-success: #10b981;
        --avrp-warning: #f59e0b;
        --avrp-text-primary: #ffffff;
        --avrp-text-secondary: #cbd5e1;
        --avrp-text-muted: #64748b;
        --avrp-glass-bg: rgba(15, 23, 42, 0.65);
        --avrp-glass-border: rgba(255, 255, 255, 0.08);
        --avrp-glass-highlight: rgba(255, 255, 255, 0.15);
        --avrp-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        --avrp-font-display: 'Space Grotesk', sans-serif;
        --avrp-container: 1280px;
        --avrp-nav-height: 80px;
        --avrp-z-nav: 1000;
        --avrp-z-progress: 9997;
        --avrp-z-modal: 9000;
        --avrp-z-toast: 9500;
          
}


/* =========================================================
   WIKI MAIN PAGE
========================================================= */

.wiki-page {
    position: relative;
    min-height: calc(100vh - 100px);

    padding: 70px 0 100px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 5% 0%,
            rgba(88, 101, 242, .12),
            transparent 30%
        ),
        radial-gradient(
            circle at 95% 5%,
            rgba(139, 92, 246, .11),
            transparent 30%
        ),
        var(--wiki-bg);

    color: var(--wiki-text);
}

.wiki-page::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: 250px;
    right: -250px;

    border-radius: 50%;

    background: rgba(88, 101, 242, .07);

    filter: blur(100px);

    pointer-events: none;
}

.wiki-page::after {
    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    bottom: 0;
    left: -250px;

    border-radius: 50%;

    background: rgba(139, 92, 246, .06);

    filter: blur(100px);

    pointer-events: none;
}


/* =========================================================
   WIKI HEADER
========================================================= */

.wiki-header {
    position: relative;
    z-index: 1;

    margin-bottom: 42px;
}

.wiki-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 18px;
    padding: 7px 12px;

    border: 1px solid rgba(88, 101, 242, .12);
    border-radius: 999px;

    background: rgba(88, 101, 242, .07);

    color: var(--wiki-primary);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .8px;
}

.wiki-label::before {
    content: "";

    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--wiki-primary);

    box-shadow:
        0 0 0 5px rgba(88, 101, 242, .10);
}

.wiki-title {
    margin: 0;

    color: var(--wiki-text);

    font-size: clamp(40px, 6vw, 68px);
    font-weight: 950;

    line-height: .95;
    letter-spacing: -3px;
}

.wiki-title span {
    display: block;

    margin-top: 10px;

    font-weight: 300;

    letter-spacing: -2px;

    background:
        linear-gradient(
            90deg,
            var(--wiki-primary),
            var(--wiki-secondary),
            var(--wiki-accent)
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wiki-description {
    max-width: 720px;

    margin-top: 22px;

    color: var(--wiki-muted);

    font-size: 15px;
    line-height: 1.75;
}

.wiki-decoration {
    width: 70px;
    height: 5px;

    margin-top: 25px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--wiki-primary),
            var(--wiki-secondary)
        );
}


/* =========================================================
   WIKI LAYOUT
========================================================= */

.wiki-layout {
    position: relative;
    z-index: 1;

    display: grid;

    grid-template-columns:
        275px
        minmax(0, 1fr);

    gap: 25px;

    align-items: start;
}


/* =========================================================
   WIKI SIDEBAR
========================================================= */

.wiki-sidebar {
    position: sticky;
    top: 25px;

    padding: 18px;

    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: var(--wiki-radius);

    background: rgba(255, 255, 255, .78);

    box-shadow: var(--wiki-shadow);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.wiki-sidebar-head {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 8px 10px 17px;

    color: var(--wiki-text);

    font-size: 14px;
    font-weight: 850;
}

.wiki-sidebar-head-icon {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            var(--wiki-primary),
            var(--wiki-secondary)
        );

    color: #fff;

    font-size: 14px;

    box-shadow:
        0 7px 18px rgba(88, 101, 242, .25);
}

.wiki-category {
    margin-bottom: 4px;
}

.wiki-category-link {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 12px;

    border-radius: 13px;

    color: #5d6272;

    text-decoration: none;

    font-size: 13px;
    font-weight: 650;

    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;

    cursor: pointer;
}

.wiki-category-link:hover {
    color: var(--wiki-primary);

    background: rgba(88, 101, 242, .07);

    transform: translateX(3px);
}

.wiki-category-link.active {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--wiki-primary),
            var(--wiki-secondary)
        );

    box-shadow:
        0 9px 23px rgba(88, 101, 242, .24);
}

.wiki-category-count {
    min-width: 27px;
    height: 27px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    padding: 0 7px;

    border-radius: 8px;

    background: rgba(0, 0, 0, .05);

    color: #858a98;

    font-size: 10px;
    font-weight: 850;
}

.wiki-category-link.active .wiki-category-count {
    color: #fff;
    background: rgba(255, 255, 255, .18);
}


/* =========================================================
   WIKI CONTENT
========================================================= */

.wiki-content {
    min-width: 0;

    padding: 32px;

    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: var(--wiki-radius);

    background: rgba(255, 255, 255, .82);

    box-shadow: var(--wiki-shadow);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.wiki-category-header {
    position: relative;

    margin-bottom: 28px;
    padding-bottom: 25px;

    border-bottom:
        1px solid var(--wiki-border);
}

.wiki-category-header::before {
    content: "";

    position: absolute;

    left: 0;
    bottom: -1px;

    width: 80px;
    height: 2px;

    background: var(--wiki-primary);
}

.wiki-category-header-title {
    margin: 0 0 8px;

    color: var(--wiki-text);

    font-size: 30px;
    font-weight: 900;

    letter-spacing: -.9px;
}

.wiki-category-header-description {
    max-width: 750px;

    color: var(--wiki-muted);

    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   WIKI ARTICLE CARDS
========================================================= */

.wiki-articles-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.wiki-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 250px;

    padding: 22px;

    overflow: hidden;

    border: 1px solid var(--wiki-border);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .95),
            rgba(249, 250, 253, .9)
        );

    color: var(--wiki-text);

    text-decoration: none;

    box-shadow:
        0 5px 20px rgba(20, 25, 50, .035);

    transition:
        transform .28s cubic-bezier(.2, .8, .2, 1),
        box-shadow .28s ease,
        border-color .28s ease;
}

.wiki-card::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -100px;
    right: -80px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(88, 101, 242, .18),
            transparent 70%
        );

    opacity: 0;

    transition: opacity .3s ease;
}

.wiki-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(88, 101, 242, .22);

    box-shadow:
        var(--wiki-shadow-hover);
}

.wiki-card:hover::before {
    opacity: 1;
}

.wiki-card-top {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}

.wiki-card-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(88, 101, 242, .11),
            rgba(139, 92, 246, .12)
        );

    color: var(--wiki-primary);

    font-size: 18px;
    font-weight: 900;

    transition: .25s ease;
}

.wiki-card:hover .wiki-card-icon {
    color: #fff;

    transform:
        rotate(-5deg)
        scale(1.07);

    background:
        linear-gradient(
            135deg,
            var(--wiki-primary),
            var(--wiki-secondary)
        );

    box-shadow:
        0 9px 22px rgba(88, 101, 242, .25);
}

.wiki-card-arrow {
    color: #b0b4bf;

    font-size: 20px;

    transition: .25s ease;
}

.wiki-card:hover .wiki-card-arrow {
    color: var(--wiki-primary);

    transform: translateX(4px);
}

.wiki-card-title {
    position: relative;
    z-index: 1;

    margin-bottom: 10px;

    color: var(--wiki-text);

    font-size: 18px;
    font-weight: 850;

    line-height: 1.35;
}

.wiki-card-category {
    width: fit-content;

    margin-bottom: 12px;
    padding: 5px 9px;

    border-radius: 7px;

    background:
        rgba(88, 101, 242, .07);

    color: var(--wiki-primary);

    font-size: 9px;
    font-weight: 850;

    text-transform: uppercase;
    letter-spacing: .5px;
}

.wiki-card-description {
    position: relative;
    z-index: 1;

    margin-bottom: 8px;

    color: #686d7b;

    font-size: 13px;
    line-height: 1.6;
}

.wiki-card-text {
    position: relative;
    z-index: 1;

    flex: 1;

    color: #999eaa;

    font-size: 12px;
    line-height: 1.6;
}



    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 18px;
    padding-top: 14px;

    border-top:
        1px solid rgba(20, 25, 45, .06);

    color: var(--wiki-primary);

    font-size: 11px;
    font-weight: 850;
}

.wiki-card.hidden {
    display: none;
}


/* =========================================================
   WIKI EMPTY STATE
========================================================= */

.wiki-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 380px;

    text-align: center;
}

.wiki-empty-icon {
    width: 75px;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(88, 101, 242, .10),
            rgba(139, 92, 246, .12)
        );

    font-size: 30px;
}
.wiki-empty-title {
    margin-bottom: 8px;

    color: var(--wiki-text);

    font-size: 23px;
    font-weight: 850;
}

.wiki-empty-description {
    max-width: 430px;

    color: var(--wiki-muted);

    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   WIKI ANIMATIONS
========================================================= */

@keyframes wikiFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wiki-card:not(.hidden) {
    animation:
        wikiFadeIn .4s ease forwards;
}


/* =========================================================
   WIKI RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .wiki-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .wiki-sidebar {
        position: sticky;
        top: 10px;
        z-index: 10;

        display: flex;
        align-items: center;

        padding: 10px 15px;

        overflow-x: auto;
        overflow-y: hidden;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;

        background:
            rgba(255, 255, 255, .95);

        border-radius: 16px;

        box-shadow:
            0 4px 20px rgba(20, 25, 50, .05);

        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .wiki-sidebar::-webkit-scrollbar {
        display: none;
    }

    .wiki-sidebar-head {
        display: none;
    }

    .wiki-category {
        display: inline-flex;

        flex-shrink: 0;

        margin-right: 8px;
        margin-bottom: 0;
    }

    .wiki-category:last-child {
        margin-right: 0;
    }

    .wiki-category-link {
        white-space: nowrap;

        padding: 10px 16px;

        border: 1px solid transparent;
        border-radius: 12px;

        background:
            rgba(240, 242, 245, .5);
    }

    .wiki-category-link:hover {
        transform: translateY(-2px);

        background:
            rgba(88, 101, 242, .1);
    }

    .wiki-category-link.active {
        transform: none;

        background:
            var(--wiki-primary);

        color: #fff;

        box-shadow:
            0 4px 12px rgba(88, 101, 242, .3);
    }

    .wiki-category-link.active:hover {
        background:
            var(--wiki-primary-dark);
    }
}


@media (max-width: 700px) {

    .wiki-articles-grid {
        grid-template-columns: 1fr;
    }

    .wiki-content {
        padding: 22px;
    }
}


@media (max-width: 576px) {

    .wiki-page {
        padding: 25px 0 50px;
    }

    .wiki-header {
        margin-bottom: 30px;
    }

    .wiki-title {
        font-size: 32px;
        letter-spacing: -1.5px;
    }

    .wiki-description {
        font-size: 13px;
    }

    .wiki-sidebar {
        margin: 0 -15px;

        width: calc(100% + 30px);

        top: 0;

        border-right: none;
        border-left: none;

        border-radius: 0;
    }

    .wiki-content {
        padding: 18px;

        border-radius: 17px;
    }

    .wiki-category-header-title {
        font-size: 22px;
    }

    .wiki-card {
        min-height: 200px;

        padding: 18px;
    }
}


/* =========================================================
   WIKI ARTICLE / INFO
========================================================= */

.info_wiki-page {
    width: 100%;
    max-width: 1100px;

    margin: 45px auto 70px;

    padding: 0 20px;

    color: var(--wiki-text);
}

.info_wiki-article-container {
    width: 100%;

    overflow: hidden;

    background: var(--wiki-card);

    border:
        1px solid rgba(0, 0, 0, .04);

    border-radius: 24px;

    box-shadow:
        0 20px 60px rgba(31, 35, 48, .08),
        0 4px 15px rgba(31, 35, 48, .03);
}

.info_wiki-top-line {
    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            #5865f2 0%,
            #7289da 35%,
            #8b5cf6 65%,
            #5865f2 100%
        );
}

.info_wiki-content {
    padding: 45px 55px 50px;
}


/* =========================================================
   ARTICLE BREADCRUMBS
========================================================= */

.info_wiki-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 30px;

    color: var(--wiki-text-light);

    font-size: 14px;
    line-height: 1.5;
}

.info_wiki-breadcrumbs a {
    color: var(--wiki-primary);

    text-decoration: none;

    font-weight: 700;

    transition: .2s ease;
}

.info_wiki-breadcrumbs a:hover {
    color: var(--wiki-primary-hover);
}

.info_wiki-breadcrumb-separator {
    color: #b7bac5;

    font-size: 18px;
}

.info_wiki-breadcrumb-current {
    max-width: 450px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #858894;
}


/* =========================================================
   ARTICLE HEADER
========================================================= */

.info_wiki-article-header {
    margin-bottom: 35px;
    padding-bottom: 30px;

    border-bottom:
        1px solid var(--wiki-border);
}

.info_wiki-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 16px;

    padding: 7px 13px;

    border-radius: 50px;

    background:
        rgba(88, 101, 242, .09);

    color: var(--wiki-primary);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .5px;
}

.info_wiki-article-title {
    margin: 0 0 15px;

    color: var(--wiki-text);

    font-size: clamp(30px, 4vw, 44px);

    line-height: 1.12;

    font-weight: 850;

    letter-spacing: -1.2px;

    overflow-wrap: anywhere;
}

.info_wiki-article-description {
    max-width: 850px;

    margin: 0;

    color: var(--wiki-text-light);

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   ARTICLE META
========================================================= */

.info_wiki-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 20px;

    margin-top: 25px;
}

.info_wiki-authors {
    display: flex;
    flex-direction: column;

    gap: 10px;

    min-width: 0;

    flex: 1;
}

.info_wiki-author {
    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 0;

    color: var(--wiki-text-light);

    font-size: 14px;
}

.info_wiki-author-icon {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;

    background:
        rgba(88, 101, 242, .10);

    color: var(--wiki-primary);

    font-size: 16px;
}

.info_wiki-editor-icon {
    background:
        rgba(22, 163, 74, .10);

    color: var(--wiki-green);
}

.info_wiki-author-info {
    display: flex;
    flex-direction: column;

    gap: 2px;

    min-width: 0;
}

.info_wiki-author-label {
    color: #9699a5;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .4px;
}

.info_wiki-author-name {
    color: var(--wiki-text);

    font-size: 14px;
    font-weight: 800;

    overflow-wrap: anywhere;
}

.info_wiki-author-date {
    margin-top: 2px;

    color: #9699a5;

    font-size: 11px;
}


/* =========================================================
   ROLE BADGES
========================================================= */

.info_wiki-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    margin-top: 3px;
    padding: 4px 8px;

    border-radius: 6px;

    background: #f1f2f6;

    color: #707381;

    font-size: 10px;
    font-weight: 800;

    line-height: 1;

    text-transform: uppercase;
}

.info_wiki-role-badge-author {
    background:
        rgba(88, 101, 242, .08);

    color: var(--wiki-primary);
}

.info_wiki-role-badge-editor {
    background:
        rgba(22, 163, 74, .08);

    color: var(--wiki-green);
}


/* =========================================================
   CURRENT USER PANEL
========================================================= */

.info_wiki-user-panel {
    display: flex;
    align-items: center;

    gap: 10px;

    min-height: 46px;

    padding: 8px 13px;

    border:
        1px solid var(--wiki-border);

    border-radius: 12px;

    background: #fafbfc;

    color: var(--wiki-text-light);

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}

.info_wiki-user-panel-icon {
    width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    background:
        rgba(88, 101, 242, .10);

    color: var(--wiki-primary);

    font-size: 14px;
}

.info_wiki-user-panel-content {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.info_wiki-user-panel-label {
    color: #9699a5;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .5px;
}

.info_wiki-user-panel-role {
    color: var(--wiki-primary);

    font-size: 14px;
    font-weight: 900;
}


/* =========================================================
   ARTICLE EDIT BUTTON
========================================================= */

.info_wiki-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 46px;

    padding: 10px 18px;

    border:
        1px solid rgba(88, 101, 242, .18);

    border-radius: 12px;

    background:
        rgba(88, 101, 242, .08);

    color: var(--wiki-primary);

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.info_wiki-edit-button:hover {
    background: var(--wiki-primary);

    border-color: var(--wiki-primary);

    color: #fff;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(88, 101, 242, .20);
}


/* =========================================================
   ARTICLE FULL TEXT
========================================================= */

.info_wiki-full-text {
    width: 100%;

    color: #393c47;

    font-size: 17px;
    line-height: 1.85;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.info_wiki-full-text h1,
.info_wiki-full-text h2,
.info_wiki-full-text h3,
.info_wiki-full-text h4 {
    color: var(--wiki-text);

    line-height: 1.3;
    font-weight: 800;

    overflow-wrap: anywhere;
}

.info_wiki-full-text h1 {
    margin: 42px 0 20px;

    font-size: 31px;
}

.info_wiki-full-text h2 {
    position: relative;

    margin: 40px 0 20px;

    padding-left: 16px;

    font-size: 25px;
}

.info_wiki-full-text h2::before {
    content: "";

    position: absolute;

    left: 0;
    top: 4px;
    bottom: 4px;

    width: 4px;

    border-radius: 5px;

    background: var(--wiki-primary);
}

.info_wiki-full-text h3 {
    margin: 30px 0 15px;

    font-size: 21px;
}

.info_wiki-full-text p {
    margin: 0 0 18px;
}

.info_wiki-full-text a {
    color: var(--wiki-primary);

    font-weight: 600;

    text-decoration: none;
}

.info_wiki-full-text a:hover {
    text-decoration: underline;
}

.info_wiki-full-text ul,
.info_wiki-full-text ol {
    margin: 18px 0 24px;

    padding-left: 30px;
}

.info_wiki-full-text li {
    margin-bottom: 9px;
}


/* =========================================================
   ARTICLE BLOCKQUOTE
========================================================= */

.info_wiki-full-text blockquote {
    margin: 25px 0;

    padding: 18px 22px;

    border-left:
        4px solid var(--wiki-primary);

    border-radius:
        0 12px 12px 0;

    background: #f7f8fc;

    color: #686b78;
}


/* =========================================================
   ARTICLE IMAGES
========================================================= */

.info_wiki-full-text img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;

    margin: 28px auto;

    border-radius: 15px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .08);
}


/* =========================================================
   ARTICLE TABLES
========================================================= */

.info_wiki-full-text table {
    display: block;

    width: 100%;

    margin: 25px 0;

    overflow-x: auto;

    border-collapse: collapse;

    -webkit-overflow-scrolling: touch;
}

.info_wiki-full-text th,
.info_wiki-full-text td {
    padding: 12px 15px;

    border:
        1px solid var(--wiki-border);

    text-align: left;

    white-space: nowrap;
}

.info_wiki-full-text th {
    background: #f6f7fb;

    color: var(--wiki-text);

    font-weight: 700;
}


/* =========================================================
   ARTICLE CODE
========================================================= */

.info_wiki-full-text code {
    padding: 3px 7px;

    border-radius: 6px;

    background: #f0f1f5;

    color: #d14;

    font-size: 14px;
}

.info_wiki-full-text pre {
    max-width: 100%;

    overflow-x: auto;

    margin: 25px 0;
    padding: 20px;

    border-radius: 14px;

    background: #191b25;

    color: #f5f5f7;

    line-height: 1.6;

    -webkit-overflow-scrolling: touch;
}

.info_wiki-full-text pre code {
    padding: 0;

    background: transparent;

    color: inherit;
}


/* =========================================================
   ARTICLE LIKES
========================================================= */

.info_wiki-likes-section {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    flex-wrap: wrap;

    margin-top: 40px;
    padding: 20px 22px;

    border:
        1px solid var(--wiki-border);

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #fafbff,
            #ffffff
        );
}

.info_wiki-like-left {
    display: flex;
    flex-direction: column;

    gap: 7px;

    min-width: 0;
}

.info_wiki-like-form {
    margin: 0;
}

.info_wiki-like-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 48px;

    padding: 10px 18px;

    border:
        1px solid #e5e7ef;

    border-radius: 13px;

    background: #fff;

    color: #555967;

    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    transition: .2s ease;
}

.info_wiki-like-button:hover {
    border-color:
        rgba(230, 57, 86, .35);

    background: #fff5f7;

    color: var(--wiki-like);

    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(230, 57, 86, .12);
}

.info_wiki-like-button.liked {
    border-color:
        rgba(230, 57, 86, .25);

    background:
        var(--wiki-like-bg);

    color: var(--wiki-like);
}

.info_wiki-like-heart {
    font-size: 20px;

    line-height: 1;

    transition:
        transform .2s ease;
}

.info_wiki-like-button:hover
.info_wiki-like-heart {
    transform: scale(1.15);
}

.info_wiki-like-count {
    min-width: 22px;

    text-align: center;
}

.info_wiki-like-login {
    color: #9295a0;

    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   WHO LIKED
========================================================= */

.info_wiki-like-users {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 7px;

    min-width: 0;
    max-width: 650px;
}

.info_wiki-like-users-label {
    margin-right: 3px;
    color: #9295a0;

    font-size: 12px;
    font-weight: 700;
}

.info_wiki-like-user {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 6px 9px;

    border-radius: 9px;

    background: #f4f5f9;

    color: #555866;

    font-size: 12px;
    font-weight: 700;

    transition: .2s ease;
}

.info_wiki-like-user:hover {
    background:
        rgba(88, 101, 242, .09);

    color: var(--wiki-primary);
}

.info_wiki-like-user-icon {
    font-size: 12px;
}

.info_wiki-no-likes {
    color: #a0a2ad;

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   ARTICLE NAVIGATION
========================================================= */

.info_wiki-nav-buttons {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;

    margin-top: 55px;
    padding-top: 30px;

    border-top:
        1px solid var(--wiki-border);
}

.info_wiki-btn {
    display: flex;
    align-items: center;

    min-width: 0;
    min-height: 65px;

    padding: 12px 18px;

    border:
        1px solid var(--wiki-border);

    border-radius: 15px;

    background: #fafbfc;

    color: #363945;

    text-decoration: none;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

.info_wiki-btn:first-child {
    justify-content: flex-start;
}

.info_wiki-btn:last-child {
    justify-content: flex-end;

    text-align: right;
}

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

    background: var(--wiki-primary);

    border-color: var(--wiki-primary);

    color: #fff;

    box-shadow:
        0 10px 25px rgba(88, 101, 242, .23);
}

.info_wiki-btn-arrow {
    flex-shrink: 0;

    margin: 0 10px;

    font-size: 22px;
    line-height: 1;
}

.info_wiki-btn-title {
    display: flex;
    flex-direction: column;

    min-width: 0;

    gap: 3px;
}

.info_wiki-btn-label {
    font-size: 10px;
    font-weight: 700;

    opacity: .55;

    text-transform: uppercase;
    letter-spacing: .6px;
}

.info_wiki-btn-name {
    display: block;

    max-width: 300px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   INFO WIKI USERS MODAL
========================================================= */

.info_wiki-users-trigger {
    cursor: pointer;

    transition: opacity .2s ease;
}

.info_wiki-users-trigger:hover {
    opacity: .8;

    text-decoration: underline;
}

.info_wiki-modal-overlay {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 9999;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, .5);

    opacity: 0;

    transition:
        opacity .3s ease;
}

.info_wiki-modal-overlay.active {
    display: flex;

    opacity: 1;
}

.info_wiki-modal-content {
    position: relative;

    width: 90%;
    max-width: 400px;

    max-height: 80vh;

    overflow-y: auto;

    padding: 20px;

    border-radius: 8px;

    background: #fff;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, .2);

    transform:
        translateY(-20px);

    transition:
        transform .3s ease;
}

.info_wiki-modal-overlay.active
.info_wiki-modal-content {
    transform: translateY(0);
}

.info_wiki-modal-close {
    position: absolute;

    top: 10px;
    right: 15px;

    color: #666;

    font-size: 24px;

    line-height: 1;

    cursor: pointer;
}

.info_wiki-modal-close:hover {
    color: #000;
}

.info_wiki-modal-title {
    margin: 0 0 15px;

    padding-bottom: 10px;

    border-bottom:
        1px solid #eee;

    font-size: 18px;
}

.info_wiki-modal-list {
    list-style: none;

    margin: 0;
    padding: 0;
}

.info_wiki-modal-list-item {
    display: flex;
    align-items: center;

    padding: 8px 0;

    border-bottom:
        1px solid #f0f0f0;
}

.info_wiki-modal-list-item:last-child {
    border-bottom: none;
}


/* =========================================================
   INFO WIKI RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .info_wiki-page {
        max-width: 100%;

        margin: 30px auto 50px;
    }

    .info_wiki-content {
        padding: 35px;
    }

    .info_wiki-article-title {
        font-size: 36px;
    }

    .info_wiki-full-text {
        font-size: 16px;
    }

    .info_wiki-like-users {
        max-width: 100%;
    }
}


@media (max-width: 650px) {

    .info_wiki-page {
        margin: 0;

        padding: 0;
    }

    .info_wiki-article-container {
        border-radius: 0;

        border-right: 0;
        border-left: 0;

        box-shadow: none;
    }

    .info_wiki-top-line {
        height: 4px;
    }

    .info_wiki-content {
        padding: 24px 18px 30px;
    }

    .info_wiki-breadcrumbs {
        gap: 6px;

        margin-bottom: 23px;

        font-size: 12px;
    }

    .info_wiki-breadcrumb-separator {
        font-size: 15px;
    }

    .info_wiki-breadcrumb-current {
        max-width: 180px;
    }

    .info_wiki-category-badge {
        margin-bottom: 13px;

        padding: 6px 10px;

        font-size: 10px;
    }

    .info_wiki-article-title {
        margin-bottom: 12px;

        font-size: 28px;

        letter-spacing: -.7px;
    }

    .info_wiki-article-description {
        font-size: 14px;

        line-height: 1.65;
    }

    .info_wiki-article-header {
        margin-bottom: 27px;

        padding-bottom: 24px;
    }

    .info_wiki-article-meta {
        align-items: stretch;

        flex-direction: column;
    }

    .info_wiki-authors {
        width: 100%;
    }

    .info_wiki-author {
        align-items: flex-start;
    }

    .info_wiki-user-panel {
        width: 100%;

        justify-content: space-between;
    }

    .info_wiki-edit-button {
        width: 100%;
    }

    .info_wiki-full-text {
        font-size: 15px;

        line-height: 1.75;
    }

    .info_wiki-full-text h1 {
        margin-top: 32px;

        font-size: 25px;
    }

    .info_wiki-full-text h2 {
        margin-top: 32px;

        padding-left: 13px;

        font-size: 21px;
    }

    .info_wiki-full-text h2::before {
        width: 3px;
    }

    .info_wiki-full-text h3 {
        margin-top: 25px;

        font-size: 18px;
    }

    .info_wiki-full-text p {
        margin-bottom: 15px;
    }

    .info_wiki-full-text ul,
    .info_wiki-full-text ol {
        padding-left: 22px;
    }

    .info_wiki-full-text blockquote {
        margin: 20px 0;

        padding: 14px 16px;
    }

    .info_wiki-full-text img {
        width: 100%;
        max-width: 100%;

        margin: 20px auto;

        border-radius: 11px;
    }

    .info_wiki-full-text table {
        font-size: 13px;
    }

    .info_wiki-full-text th,
    .info_wiki-full-text td {
        padding: 9px 11px;
    }

    .info_wiki-full-text pre {
        margin-right: -2px;
        margin-left: -2px;

        padding: 15px;

        border-radius: 10px;

        font-size: 12px;
    }

    /* LIKES */

    .info_wiki-likes-section {
        align-items: stretch;

        flex-direction: column;

        gap: 15px;

        margin-top: 30px;

        padding: 16px;
    }

    .info_wiki-like-left {
        width: 100%;
    }

    .info_wiki-like-form {
        width: 100%;
    }

    .info_wiki-like-button {
        width: 100%;

        min-height: 50px;
    }

    .info_wiki-like-users {
        justify-content: flex-start;

        max-width: 100%;
    }

    .info_wiki-like-users-label {
        width: 100%;

        margin-bottom: 2px;
    }

    .info_wiki-like-user {
        font-size: 11px;
    }

    /* NAVIGATION */

    .info_wiki-nav-buttons {
        grid-template-columns: 1fr;

        gap: 10px;

        margin-top: 38px;

        padding-top: 22px;
    }

    .info_wiki-btn,
    .info_wiki-btn:last-child {
        justify-content: flex-start;

        min-height: 58px;

        text-align: left;
    }

    .info_wiki-btn:last-child {
        flex-direction: row;
    }

    .info_wiki-btn-name {
        max-width: 230px;
    }

    .info_wiki-btn-arrow {
        margin: 0 8px 0 0;
    }
}


@media (max-width: 380px) {

    .info_wiki-content {
        padding: 20px 14px 25px;
    }

    .info_wiki-article-title {
        font-size: 25px;
    }

    .info_wiki-full-text {
        font-size: 14px;
    }

    .info_wiki-full-text h2 {
        font-size: 19px;
    }

    .info_wiki-btn-name {
        max-width: 190px;
    }

    .info_wiki-like-button {
        font-size: 13px;
    }
}


/* =========================================================
   PROFILE VARIABLES
========================================================= */

.profile-page {
    --profile-bg: #f8fafc;

    --profile-surface:
        rgba(255, 255, 255, .85);

    --profile-surface-hover:
        rgba(255, 255, 255, .95);

    --profile-text: #0f172a;
    --profile-text-secondary: #64748b;
    --profile-text-tertiary: #94a3b8;
    --profile-text-inverse: #fff;

    --profile-primary: #6366f1;
    --profile-secondary: #8b5cf6;
    --profile-tertiary: #ec4899;

    --profile-gradient:
        linear-gradient(
            135deg,
            #6366f1,
            #8b5cf6,
            #ec4899
        );

    --profile-success: #10b981;
    --profile-success-bg: #d1fae5;

    --profile-warning: #f59e0b;
    --profile-warning-bg: #fef3c7;

    --profile-error: #ef4444;
    --profile-error-bg: #fee2e2;

    --profile-border:
        rgba(148, 163, 184, .2);

    --profile-border-hover:
        rgba(99, 102, 241, .4);

    --profile-shadow-sm:
        0 2px 8px rgba(0, 0, 0, .04);

    --profile-shadow-md:
        0 8px 30px rgba(0, 0, 0, .08);

    --profile-shadow-lg:
        0 20px 60px rgba(99, 102, 241, .15);

    --profile-shadow-glow:
        0 0 40px rgba(99, 102, 241, .25);

    --profile-radius-sm: 12px;
    --profile-radius-md: 20px;
    --profile-radius-lg: 28px;
    --profile-radius-xl: 36px;
    --profile-radius-full: 9999px;

    --profile-transition-fast:
        150ms cubic-bezier(.4, 0, .2, 1);

    --profile-transition-normal:
        250ms cubic-bezier(.4, 0, .2, 1);

    --profile-transition-slow:
        400ms cubic-bezier(.4, 0, .2, 1);
}


/* =========================================================
   PROFILE PAGE
========================================================= */

.profile-page {
    position: relative;

    min-height: 100vh;

    overflow-x: hidden;

    background: var(--profile-bg);

    color: var(--profile-text);

    font-family:
        'Inter',
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* =========================================================
   PROFILE BACKGROUND
========================================================= */

.profile-page .bg-animation {
    position: fixed;

    inset: 0;

    z-index: 0;

    overflow: hidden;

    pointer-events: none;

    background:
        var(--profile-bg);
}

.profile-page .bg-circle {
    position: absolute;

    border-radius: 50%;

    filter: blur(80px);

    opacity: .5;

    animation:
        profileFloat 25s infinite ease-in-out;
}

.profile-page .bg-circle:nth-child(1) {
    width: 600px;
    height: 600px;

    top: -200px;
    right: -150px;

    background:
        radial-gradient(
            circle,
            rgba(99, 102, 241, .25),
            transparent 70%
        );

    animation-delay: 0s;
}

.profile-page .bg-circle:nth-child(2) {
    width: 450px;
    height: 450px;

    bottom: -100px;
    left: -100px;

    background:
        radial-gradient(
            circle,
            rgba(236, 72, 153, .2),
            transparent 70%
        );

    animation-delay: -12s;
}

.profile-page .bg-circle:nth-child(3) {
    width: 300px;
    height: 300px;

    top: 40%;
    left: 30%;

    background:
        radial-gradient(
            circle,
            rgba(139, 92, 246, .2),
            transparent 70%
        );

    animation-delay: -5s;
}

@keyframes profileFloat {

    0%,
    100% {
        transform:
            translate(0, 0)
            scale(1);
    }

    25% {
        transform:
            translate(20px, -30px)
            scale(1.02);
    }

    50% {
        transform:
            translate(-15px, 20px)
            scale(.98);
    }

    75% {
        transform:
            translate(10px, 10px)
            scale(1.01);
    }
}


/* =========================================================
   PROFILE CONTAINER
========================================================= */

.profile-page .profile-container {
    width: 100%;

    max-width: 900px;

    margin: 0 auto;

    padding: 40px 24px 80px;

    position: relative;

    z-index: 1;
}


/* =========================================================
   PROFILE BACK LINK
========================================================= */

.profile-page .back-link {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    padding: 10px 18px;

    margin-bottom: 36px;

    color:
        var(--profile-text-secondary);

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    background:
        var(--profile-surface);

    border:
        1px solid var(--profile-border);

    border-radius:
        var(--profile-radius-sm);

    backdrop-filter: blur(12px);

    transition:
        all var(--profile-transition-normal);
}

.profile-page .back-link:hover {
    color:
        var(--profile-primary);

    border-color:
        var(--profile-border-hover);

    background:
        var(--profile-surface-hover);

    transform:
        translateX(-4px);

    box-shadow:
        var(--profile-shadow-sm);
}

.profile-page .back-link svg {
    width: 18px;
    height: 18px;

    stroke-width: 2.5;
}


/* =========================================================
   PROFILE CARD
========================================================= */

.profile-page .profile-card {
    overflow: hidden;

    background:
        var(--profile-surface);

    border:
        1px solid rgba(255, 255, 255, .7);

    border-radius:
        var(--profile-radius-xl);

    box-shadow:
        var(--profile-shadow-md);

    backdrop-filter:
        blur(24px);

    -webkit-backdrop-filter:
        blur(24px);

    transition:
        transform var(--profile-transition-normal),
        box-shadow var(--profile-transition-normal);
}

.profile-page .profile-card:hover {
    box-shadow:
        var(--profile-shadow-lg);
}


/* =========================================================
   PROFILE HEADER
========================================================= */

.profile-page .profile-header {
    display: flex;
    align-items: center;

    gap: 32px;

    padding: 48px 48px 0;
}

.profile-page .avatar-wrapper {
    position: relative;

    flex-shrink: 0;
}

.profile-page .avatar {
    position: relative;

    width: 130px;
    height: 130px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border:
        5px solid #fff;

    border-radius:
        var(--profile-radius-lg);

    background:
        var(--profile-gradient);

    box-shadow:
        0 12px 40px rgba(99, 102, 241, .35);

    transition:
        transform var(--profile-transition-normal);
}

.profile-page .avatar:hover {
    transform:
        scale(1.03);
}

.profile-page .avatar::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            45deg,
            transparent 30%,
            rgba(255, 255, 255, .25) 50%,
            transparent 70%
        );

    animation:
        profileShine 3s infinite;
}

@keyframes profileShine {

    0% {
        transform:
            translateX(-100%)
            rotate(45deg);
    }

    100% {
        transform:
            translateX(100%)
            rotate(45deg);
    }
}

.profile-page .avatar svg {
    width: 64px;
    height: 64px;

    position: relative;

    z-index: 1;

    color: #fff;

    stroke-width: 1.5;
}


/* =========================================================
   PROFILE STATUS
========================================================= */

.profile-page .status-indicator {
    position: absolute;

    right: 10px;
    bottom: 10px;

    width: 20px;
    height: 20px;

    border:
        4px solid #fff;

    border-radius:
        var(--profile-radius-full);

    background:
        var(--profile-success);

    box-shadow:
        0 0 0 3px rgba(16, 185, 129, .2),
        0 4px 12px rgba(16, 185, 129, .3);

    animation:
        profilePulseDot 2s infinite;
}

@keyframes profilePulseDot {

    0%,
    100% {
        box-shadow:
            0 0 0 3px rgba(16, 185, 129, .2),
            0 4px 12px rgba(16, 185, 129, .3);
    }

    50% {
        box-shadow:
            0 0 0 6px rgba(16, 185, 129, 0),
            0 4px 12px rgba(16, 185, 129, .5);
    }
}


/* =========================================================
   PROFILE USER INFO
========================================================= */

.profile-page .user-info {
    flex: 1;

    min-width: 0;
}

.profile-page .user-info h1 {
    margin: 0 0 10px;

    color:
        var(--profile-text);

    font-size: 34px;
    font-weight: 800;

    line-height: 1.1;

    letter-spacing: -.025em;
}

.profile-page .role-badge {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-bottom: 14px;

    padding: 5px 14px;

    border-radius:
        var(--profile-radius-full);

    background:
        rgba(99, 102, 241, .12);

    color:
        var(--profile-primary);

    font-size: 13px;
    font-weight: 700;
}

.profile-page .verification-status {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: 8px;

    padding: 10px 16px;

    border:
        1px solid transparent;

    border-radius:
        var(--profile-radius-sm);

    font-size: 13px;
    font-weight: 600;
}

.profile-page .verification-status.verified {
    background:
        var(--profile-success-bg);

    border-color:
        rgba(16, 185, 129, .25);

    color:
        var(--profile-success);
}

.profile-page .verification-status.unverified {
    background:
        var(--profile-warning-bg);

    border-color:
        rgba(245, 158, 11, .25);

    color:
        var(--profile-warning);
}

.profile-page .verification-status svg {
    width: 18px;
    height: 18px;

    flex-shrink: 0;
}


/* =========================================================
   PROFILE INFO GRID
========================================================= */

.profile-page .info-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 1px;

    margin: 40px 48px;

    overflow: hidden;

    background:
        var(--profile-border);

    border:
        1px solid rgba(255, 255, 255, .8);

    border-radius:
        var(--profile-radius-md);
}

.profile-page .info-item {
    display: flex;
    flex-direction: column;

    gap: 8px;

    padding: 22px 24px;

    background: #fff;

    transition:
        background var(--profile-transition-fast);
}

.profile-page .info-item:hover {
    background: #fafbfc;
}

.profile-page .info-item label {
    color:
        var(--profile-text-tertiary);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .08em;
}

.profile-page .info-item div {
    color:
        var(--profile-text);

    font-size: 15px;
    font-weight: 600;

    word-break: break-word;
}


/* =========================================================
   PROFILE BUTTONS
========================================================= */

.profile-page .actions-bar {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    padding: 0 48px 48px;
}

.profile-page .btn {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    overflow: hidden;

    padding: 14px 26px;

    border: none;

    border-radius:
        var(--profile-radius-sm);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition:
        all var(--profile-transition-normal);
}

.profile-page .btn::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .3),
            transparent
        );

    transform:
        translateX(-100%);

    transition:
        transform .5s;
}

.profile-page .btn:hover::after {
    transform:
        translateX(100%);
}

.profile-page .btn:disabled {
    opacity: .6;

    cursor: not-allowed;

    transform: none !important;
}

.profile-page .btn-primary {
    background:
        var(--profile-gradient);

    color:
        var(--profile-text-inverse);

    box-shadow:
        0 8px 24px rgba(99, 102, 241, .35);
}

.profile-page .btn-primary:hover:not(:disabled) {
    transform:
        translateY(-2px);

    box-shadow:
        0 14px 35px rgba(99, 102, 241, .5);
}

.profile-page .btn-secondary {
    background: #fff;

    border:
        1px solid var(--profile-border);

    color:
        var(--profile-text);

    box-shadow:
        var(--profile-shadow-sm);
}

.profile-page .btn-secondary:hover:not(:disabled) {
    border-color:
        var(--profile-primary);

    color:
        var(--profile-primary);

    transform:
        translateY(-1px);

    box-shadow:
        var(--profile-shadow-md);
}

.profile-page .btn-danger {
    margin-left: auto;

    background: #fef2f2;

    border:
        1px solid rgba(239, 68, 68, .25);

    color:
        var(--profile-error);
}

.profile-page .btn-danger:hover:not(:disabled) {
    background: #fee2e2;

    border-color:
        var(--profile-error);

    transform:
        translateY(-1px);
}

.profile-page .btn-warning {
    background: #fffbeb;

    border:
        1px solid rgba(245, 158, 11, .25);

    color:
        var(--profile-warning);
}

.profile-page .btn-warning:hover:not(:disabled) {
    background: #fef3c7;

    border-color:
        var(--profile-warning);

    transform:
        translateY(-1px);
}

.profile-page .btn svg {
    width: 18px;
    height: 18px;

    flex-shrink: 0;
}


/* =========================================================
   PROFILE ALERTS
========================================================= */

.profile-page .alert {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 24px;

    padding: 14px 18px;

    border-radius:
        var(--profile-radius-sm);

    font-size: 14px;
    font-weight: 500;

    animation:
        profileSlideIn var(--profile-transition-normal);

    backdrop-filter: blur(10px);
}

@keyframes profileSlideIn {

    from {
        opacity: 0;

        transform:
            translateY(-6px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

.profile-page .alert-error {
    background:
        var(--profile-error-bg);

    color:
        var(--profile-error);

    border:
        1px solid rgba(239, 68, 68, .2);
}

.profile-page .alert-success {
    background:
        var(--profile-success-bg);

    color:
        var(--profile-success);

    border:
        1px solid rgba(16, 185, 129, .2);
}

.profile-page .alert svg {
    width: 20px;
    height: 20px;

    flex-shrink: 0;
}


/* =========================================================
   PROFILE MODAL
========================================================= */

.profile-page .modal-overlay {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 1000;

    align-items: center;
    justify-content: center;

    background:
        rgba(248, 250, 252, .85);

    backdrop-filter:
        blur(10px);

    opacity: 0;

    transition:
        opacity var(--profile-transition-normal);
}

.profile-page .modal-overlay.active {
    display: flex;

    opacity: 1;
}

.profile-page .modal-window {
    width: 100%;
    max-width: 520px;

    margin: 16px;

    padding: 32px;

    background:
        rgba(255, 255, 255, .97);

    border:
        1px solid rgba(255, 255, 255, .9);

    border-radius:
        var(--profile-radius-lg);

    box-shadow:
        var(--profile-shadow-lg);

    transform:
        scale(.96)
        translateY(8px);

    transition:
        transform var(--profile-transition-normal);
}

.profile-page .modal-overlay.active
.modal-window {
    transform:
        scale(1)
        translateY(0);
}

.profile-page .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 24px;

    padding-bottom: 20px;

    border-bottom:
        1px solid var(--profile-border);
}

.profile-page .modal-title {
    color:
        var(--profile-text);

    font-size: 20px;
    font-weight: 800;
}

.profile-page .close-btn {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    border-radius:
        var(--profile-radius-sm);

    background: #f1f5f9;

    color:
        var(--profile-text-secondary);

    cursor: pointer;

    transition:
        all var(--profile-transition-fast);
}

.profile-page .close-btn:hover {
    background: #e2e8f0;

    color:
        var(--profile-text);

    transform:
        rotate(90deg);
}

.profile-page .close-btn svg {
    width: 18px;
    height: 18px;
}


/* =========================================================
   PROFILE EDIT TABS
========================================================= */

.profile-page .edit-tabs {
    display: flex;

    gap: 4px;

    margin-bottom: 24px;
    padding: 4px;

    background: #f1f5f9;

    border-radius:
        var(--profile-radius-sm);
}

.profile-page .edit-tab {
    flex: 1;

    padding: 11px 14px;

    text-align: center;

    border: none;

    border-radius:
        calc(var(--profile-radius-sm) - 4px);

    background: transparent;

    color:
        var(--profile-text-secondary);

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        all var(--profile-transition-fast);
}

.profile-page .edit-tab.active {
    background: #fff;

    color:
        var(--profile-primary);

    box-shadow:
        var(--profile-shadow-sm);
}

.profile-page .field-container {
    display: none;

    animation:
        profileFadeIn var(--profile-transition-normal);
}

.profile-page .field-container.active {
    display: block;
}

@keyframes profileFadeIn {

    from {
        opacity: 0;

        transform:
            translateY(8px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   PROFILE FORM
========================================================= */

.profile-page .form-group {
    margin-bottom: 18px;
}

.profile-page .form-label {
    display: block;

    margin-bottom: 8px;

    color:
        var(--profile-text);

    font-size: 13px;
    font-weight: 600;
}

.profile-page .form-input {
    width: 100%;

    padding: 14px 16px;

    border:
        1px solid var(--profile-border);

    border-radius:
        var(--profile-radius-sm);

    background:
        #f8fafc;

    color:
        var(--profile-text);

    font-family: inherit;

    font-size: 14px;

    transition:
        all var(--profile-transition-fast);
}

.profile-page .form-input:focus {
    outline: none;

    border-color:
        var(--profile-primary);

    background: #fff;

    box-shadow:
        0 0 0 4px rgba(99, 102, 241, .12);
}

.profile-page .form-input::placeholder {
    color:
        var(--profile-text-tertiary);
}

.profile-page .modal-footer {
    display: flex;
    justify-content: flex-end;

    gap: 12px;

    margin-top: 28px;
    padding-top: 24px;

    border-top:
        1px solid var(--profile-border);
}


/* =========================================================
   PROFILE VERIFICATION
========================================================= */

.profile-page .verification-icon {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 16px;

    border-radius: 50%;

    background:
        var(--profile-gradient);

    box-shadow:
        var(--profile-shadow-glow);

    animation:
        profilePulse 2s infinite;
}

@keyframes profilePulse {

    0%,
    100% {
        transform: scale(1);

        box-shadow:
            var(--profile-shadow-glow);
    }

    50% {
        transform: scale(1.05);

        box-shadow:
            0 0 60px rgba(99, 102, 241, .4);
    }
}

.profile-page .verification-icon svg {
    width: 36px;
    height: 36px;

    color: #fff;

    stroke-width: 2;
}

.profile-page .verification-info {
    margin-bottom: 24px;

    text-align: center;

    color:
        var(--profile-text-secondary);

    font-size: 14px;

    line-height: 1.6;
}

.profile-page .verification-info strong {
    color:
        var(--profile-text);
}

.profile-page .verification-message {
    display: none;

    margin-bottom: 16px;

    padding: 12px 16px;

    border-radius:
        var(--profile-radius-sm);

    font-size: 13px;

    text-align: center;

    animation:
        profileSlideIn var(--profile-transition-normal);
}

.profile-page .verification-message.error {
    display: block;

    background:
        var(--profile-error-bg);

    color:
        var(--profile-error);

    border:
        1px solid rgba(239, 68, 68, .2);
}

.profile-page .verification-message.success {
    display: block;

    background:
        var(--profile-success-bg);

    color:
        var(--profile-success);

    border:
        1px solid rgba(16, 185, 129, .2);
}


/* =========================================================
   PROFILE CODE INPUT
========================================================= */

.profile-page .code-input-wrapper {
    display: flex;
    justify-content: center;

    gap: 10px;

    margin: 20px 0;
}

.profile-page .code-digit {
    width: 52px;
    height: 64px;

    padding: 0;

    text-align: center;

    border:
        2px solid var(--profile-border);

    border-radius:
        var(--profile-radius-sm);

    background:
        #f8fafc;

    color:
        var(--profile-text);

    font-family: inherit;

    font-size: 24px;
    font-weight: 700;

    transition:
        all var(--profile-transition-fast);
}

.profile-page .code-digit:focus {
    outline: none;

    border-color:
        var(--profile-primary);

    background: #fff;

    box-shadow:
        0 0 0 4px rgba(99, 102, 241, .12);

    transform:
        translateY(-2px);
}

.profile-page .code-digit.filled {
    border-color:
        var(--profile-primary);

    background:
        rgba(99, 102, 241, .06);

    color:
        var(--profile-primary);
}


/* =========================================================
   PROFILE RESEND
========================================================= */

.profile-page .resend-section {
    margin-top: 16px;

    color:
        var(--profile-text-secondary);

    font-size: 13px;

    text-align: center;
}

.profile-page .resend-link {
    padding: 0;

    border: none;

    background: none;

    color:
        var(--profile-primary);

    font-family: inherit;

    font-size: inherit;
    font-weight: 600;

    cursor: pointer;
}

.profile-page .resend-link:hover:not(:disabled) {
    text-decoration: underline;
}

.profile-page .resend-link:disabled {
    color:
        var(--profile-text-tertiary);

    cursor: not-allowed;
}


/* =========================================================
   PROFILE LOADING
========================================================= */
.profile-page .loading-spinner {
    display: inline-block;

    width: 16px;
    height: 16px;

    margin-right: 8px;

    vertical-align: middle;

    border:
        2px solid rgba(255, 255, 255, .3);

    border-top-color: #fff;

    border-radius: 50%;

    animation:
        profileSpin .7s linear infinite;
}

@keyframes profileSpin {
    to {
        transform:
            rotate(360deg);
    }
}


/* =========================================================
   PROFILE RESPONSIVE — TABLET
========================================================= */

@media (max-width: 768px) {

    .profile-page .profile-container {
        padding:
            24px 16px 60px;
    }

    .profile-page .profile-header {
        flex-direction: column;

        gap: 24px;

        padding:
            36px 24px 0;

        text-align: center;
    }

    .profile-page .user-info h1 {
        font-size: 28px;
    }

    .profile-page .info-grid {
        grid-template-columns: 1fr;

        margin:
            32px 24px;
    }

    .profile-page .actions-bar {
        flex-direction: column;

        padding:
            0 24px 36px;
    }

    .profile-page .btn {
        width: 100%;
    }

    .profile-page .btn-danger {
        margin-left: 0;
    }

    .profile-page .code-digit {
        width: 46px;
        height: 56px;

        font-size: 20px;
    }

    .profile-page .modal-window {
        padding: 24px;
    }
}


/* =========================================================
   PROFILE RESPONSIVE — PHONE
========================================================= */

@media (max-width: 480px) {

    .profile-page .user-info h1 {
        font-size: 24px;
    }

    .profile-page .avatar {
        width: 110px;
        height: 110px;
    }

    .profile-page .info-item {
        padding:
            18px 20px;
    }

    .profile-page .info-item div {
        font-size: 14px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {

    .wiki-card:hover {
        transform: none;
    }

    .wiki-category-link:hover {
        transform: none;
    }

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

    .profile-page .avatar:hover {
        transform: none;
    }
}
//=========================newfuter
    .avrp-footer { border-top: 1px solid var(--avrp-glass-border); padding: 80px 0 40px; background: #010205; margin-top: 40px; position: relative; z-index: 2; }
    .avrp-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
    .avrp-footer-brand { margin-bottom: 16px; }
    .avrp-footer-brand .avrp-brand-icon { width: 36px; height: 36px; font-size: 16px; }
    .avrp-footer-desc { color: var(--avrp-text-muted); font-size: 14px; line-height: 1.7; margin: 20px 0 24px; max-width: 320px; }
    .avrp-social-links a {
        width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.03);
        border: 1px solid var(--avrp-glass-border); display: inline-flex; align-items: center; justify-content: center;
        color: var(--avrp-text-secondary); margin-right: 12px; transition: .3s; font-weight: 600; font-size: 12px; text-decoration: none;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .avrp-social-links a:hover { background: var(--avrp-primary); color: #fff; border-color: var(--avrp-primary); transform: translateY(-4px); box-shadow: 0 10px 20px var(--avrp-primary-glow); }
    .avrp-footer-col-title { color: #fff; font-family: var(--avrp-font-display); font-size: 14px; font-weight: 700; margin: 0 0 20px; text-transform: uppercase; letter-spacing: .1em; }
    .avrp-footer-links { list-style: none; padding: 0; margin: 0; }
    .avrp-footer-links li { margin-bottom: 12px; }
    .avrp-footer-links a { color: var(--avrp-text-muted); font-size: 14px; transition: .2s; text-decoration: none; }
    .avrp-footer-links a:hover { color: var(--avrp-primary-light); padding-left: 4px; }
    .avrp-footer-bottom { border-top: 1px solid var(--avrp-glass-border); padding-top: 32px; text-align: center; color: var(--avrp-text-muted); font-size: 13px; }

    /* ---------- Modals ---------- */
    .avrp-modal-overlay {
        position: fixed; inset: 0; background: rgba(2,4,10,.85);
        backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
        display: flex; align-items: center; justify-content: center;
        z-index: var(--avrp-z-modal); opacity: 0; visibility: hidden;
        transition: opacity .4s, visibility .4s; padding: 20px;
        font-family: var(--avrp-font-body); color: var(--avrp-text-primary);
    }
    .avrp-modal-overlay.avrp-modal-open { opacity: 1; visibility: visible; }
    .avrp-modal-content {
        background: rgba(15,23,42,.9); width: 100%; border-radius: 32px;
        border: 1px solid rgba(255,255,255,.1); position: relative;
        box-shadow: 0 50px 100px -20px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,0.1);
        transform: scale(.9) translateY(40px);
        transition: transform .5s cubic-bezier(.34,1.56,.64,1); overflow: hidden;
    }
    .avrp-modal-content::before {
        content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
    }
    .avrp-modal-overlay.avrp-modal-open .avrp-modal-content { transform: scale(1) translateY(0); }
    .avrp-modal-close {
        position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%;
        background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
        display: flex; align-items: center; justify-content: center; color: var(--avrp-text-muted);
        transition: .2s; font-size: 24px; cursor: pointer; z-index: 10; font-family: inherit;
    }
    .avrp-modal-close:hover { background: rgba(255,255,255,.1); color: #fff; transform: rotate(90deg); }
    .avrp-modal-close:focus-visible { outline: 2px solid var(--avrp-accent); outline-offset: 2px; }
    
    .avrp-video-modal-content { max-width: 900px; background: transparent; border: none; box-shadow: none; }
    .avrp-video-modal-content::before { display: none; }
    .avrp-video-wrapper {
        position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
        border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.8);
        border: 1px solid rgba(255,255,255,.1); background: #000;
    }
    .avrp-video-wrapper iframe, .avrp-video-wrapper video { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

    .avrp-dl-modal-content { max-width: 480px; padding: 48px 40px; }
    .avrp-dl-state { display: none; text-align: center; }
    .avrp-dl-state.avrp-dl-active { display: block; animation: avrp-fadeInUp .4s ease forwards; }
    @keyframes avrp-fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
    .avrp-dl-icon {
        width: 80px; height: 80px; border-radius: 24px; display: flex; align-items: center; justify-content: center;
        margin: 0 auto 28px; font-size: 36px; position: relative;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .avrp-dl-icon-primary { background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.3); color: var(--avrp-primary-light); }
    .avrp-dl-icon-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: var(--avrp-success); }
    .avrp-dl-icon-error { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); color: var(--avrp-warning); }
    .avrp-dl-title { font-family: var(--avrp-font-display); font-size: 28px; font-weight: 700; margin: 0 0 8px; color: #fff; }
    .avrp-dl-subtitle { font-size: 15px; color: var(--avrp-text-muted); margin: 0 0 32px; line-height: 1.5; }
    
    /* Улучшенный спиннер и прогресс */
    .avrp-dl-spinner {
        width: 56px; height: 56px; border: 3px solid rgba(139,92,246,.1);
        border-top-color: var(--avrp-primary); border-radius: 50%;
        animation: avrp-spin 1s linear infinite; margin: 0 auto 24px;
        box-shadow: 0 0 20px rgba(139,92,246,.2);
    }
    @keyframes avrp-spin { to { transform: rotate(360deg); } }
    .avrp-dl-progress-track { height: 6px; background: rgba(255,255,255,.06); border-radius: 10px; overflow: hidden; margin-top: 20px; position: relative; }
    .avrp-dl-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--avrp-primary), var(--avrp-accent)); border-radius: 10px; transition: width .1s linear; position: relative; }
    .avrp-dl-progress-fill::after {
        content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 20px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.8));
        filter: blur(4px);
    }

    .avrp-platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
    .avrp-platform-card {
        background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
        border-radius: 16px; padding: 20px; cursor: pointer; transition: .3s;
        position: relative; text-align: left; color: inherit; font-family: inherit;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .avrp-platform-card:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); transform: translateY(-2px); }
    .avrp-platform-card.avrp-recommended { border-color: var(--avrp-primary); background: rgba(139,92,246,.08); box-shadow: 0 0 20px rgba(139,92,246,.15), inset 0 1px 0 rgba(255,255,255,0.1); }
    .avrp-platform-card.avrp-recommended::before {
        content: 'Рекомендуется'; position: absolute; top: -10px; right: 12px;
        background: var(--avrp-primary); color: #fff; font-size: 10px; font-weight: 700;
        padding: 4px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .05em;
        box-shadow: 0 4px 12px var(--avrp-primary-glow);
    }
    .avrp-platform-icon { font-size: 28px; margin-bottom: 12px; display: block; }
    .avrp-platform-name { font-family: var(--avrp-font-display); font-weight: 600; font-size: 16px; color: #fff; display: block; margin-bottom: 4px; }
    .avrp-platform-desc { font-size: 12px; color: var(--avrp-text-muted); }
    .avrp-dl-btn {
        width: 100%; padding: 18px; border-radius: 16px; font-weight: 700; font-size: 16px;
        display: flex; align-items: center; justify-content: center; gap: 10px;
        transition: .3s; color: #fff; border: none; cursor: pointer;
        position: relative; overflow: hidden; font-family: inherit;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
    }
    .avrp-dl-btn::before {
        content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent); transition: .5s;
    }
    .avrp-dl-btn:hover::before { left: 100%; }
    .avrp-dl-btn-android { background: linear-gradient(135deg,#10b981,#059669); box-shadow: 0 8px 24px rgba(16,185,129,.3), inset 0 1px 0 rgba(255,255,255,0.2); }
    .avrp-dl-btn-pc { background: linear-gradient(135deg,#3b82f6,#2563eb); box-shadow: 0 8px 24px rgba(59,130,246,.3), inset 0 1px 0 rgba(255,255,255,0.2); }
    .avrp-dl-btn-secondary { background: rgba(255,255,255,.08); color: var(--avrp-text-primary); border: 1px solid rgba(255,255,255,.1); }
    .avrp-dl-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
    .avrp-dl-btn + .avrp-dl-btn { margin-top: 12px; }
    .avrp-dl-btn:focus-visible { outline: 2px solid var(--avrp-accent); outline-offset: 2px; }

    .avrp-toast {
        position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
        background: rgba(15,23,42,.95); border: 1px solid var(--avrp-glass-border); color: #fff;
        padding: 16px 28px; border-radius: 100px; font-size: 14px; font-weight: 600;
        display: flex; align-items: center; gap: 10px; z-index: var(--avrp-z-toast);
        opacity: 0; pointer-events: none; transition: all .5s cubic-bezier(.175,.885,.32,1.275);
        box-shadow: 0 20px 40px rgba(0,0,0,.5); backdrop-filter: blur(20px); font-family: var(--avrp-font-body);
    }
    .avrp-toast.avrp-toast-show { transform: translateX(-50%) translateY(0); opacity: 1; }

    .avrp-reveal { opacity: 0; transform: translateY(40px); transition: all .8s cubic-bezier(.2,.8,.2,1); }
    .avrp-reveal.avrp-visible { opacity: 1; transform: translateY(0); }

//==============================авторизация
 /* --- Общие стили кнопок соцсетей --- */
.wiki_auth_social-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(135deg, #FFCC00 0%, #FFDB4D 100%); /* Яндекс по умолчанию */
    color: #000;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 10px;
    text-decoration: none; /* Если используется тег <a> */
}

/* Эффект наведения (по умолчанию желтая тень) */
.wiki_auth_social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
}

.wiki_auth_social-btn:active {
    transform: translateY(0);
}

.wiki_auth_social-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc !important;
    box-shadow: none !important;
}

/* --- Специфичные стили для VK --- */
.wiki_auth_social-btn.vk {
    background: linear-gradient(135deg, #0077FF 0%, #00AAFF 100%);
    color: #fff;
}

.wiki_auth_social-btn.vk:hover {
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.4);
}

/* --- Разделитель "Или" --- */
.wiki_auth_divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: #71717a;
    font-size: 13px;
    font-weight: 500;
}

.wiki_auth_divider::before,
.wiki_auth_divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wiki_auth_divider span {
    padding: 0 12px;
}

/* --- Сообщения об ошибках/успехе --- */
.wiki_auth_msg {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wiki_auth_error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.wiki_auth_success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

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

/* --- Поле пароля --- */
.wiki_auth_input-wrap {
    position: relative;
}

.wiki_auth_toggle-password {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #71717a);
    display: flex;
    align-items: center;
}

.wiki_auth_toggle-password:hover {
    color: #fff;
}
        .wiki_auth_bg-grid {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
            pointer-events: none;
            background-image: 
                linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 40px 40px;
            mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
            -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
        }

        .wiki_auth_blob {
            position: fixed;
            border-radius: 50%;
            filter: blur(120px);
            opacity: 0.25;
            z-index: -1;
            animation: wiki_auth_float 30s infinite alternate ease-in-out;
        }
        .wiki_auth_blob-1 { width: 600px; height: 600px; background: #8b5cf6; top: -150px; left: -150px; }
        .wiki_auth_blob-2 { width: 500px; height: 500px; background: #3b82f6; bottom: -150px; right: -150px; animation-delay: -10s; }
        .wiki_auth_blob-3 { width: 400px; height: 400px; background: #ec4899; top: 40%; left: 50%; opacity: 0.15; animation-delay: -20s; }

        @keyframes wiki_auth_float {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(60px, 90px) scale(1.15); }
        }

        /* ============================================
           LAYOUT & НАВИГАЦИЯ
           ============================================ */
        .wiki_auth_layout {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            position: relative;
            z-index: 1;
        }

        .wiki_auth_navbar {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 10;
            padding: 20px 40px;
        }

        .wiki_auth_header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 40px;
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
            box-sizing: border-box;
        }

        .wiki_auth_back {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--wiki_auth_text-muted);
            transition: all 0.3s ease;
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
        }
        .wiki_auth_back:hover { color: #fff; transform: translateX(-4px); }
        .wiki_auth_back svg path { fill: currentColor; }

        .wiki_auth_launcher {
            color: var(--wiki_auth_text-muted);
            font-size: 14px;
        }
        .wiki_auth_launcher a {
            color: var(--wiki_auth_primary);
            text-decoration: none;
            font-weight: 600;
            margin-left: 6px;
            transition: all 0.3s ease;
        }
        .wiki_auth_launcher a:hover {
            color: #ec4899;
            text-shadow: 0 0 15px rgba(236, 72, 153, 0.6);
        }

        /* ============================================
           КАРТОЧКА АВТОРИЗАЦИИ (GLASSMORPHISM)
           ============================================ */
        .wiki_auth_container {
            flex-grow: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .wiki_auth_card {
            width: 100%;
            max-width: 440px;
            background: var(--wiki_auth_glass-bg);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border: 1px solid var(--wiki_auth_glass-border);
            border-radius: 28px;
            padding: 48px 40px;
            box-shadow: var(--wiki_auth_shadow);
            position: relative;
            overflow: hidden;
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
        }

        .wiki_auth_card:hover {
            transform: translateY(-4px);
            box-shadow: 0 35px 60px -15px rgba(139, 92, 246, 0.2);
            border-color: rgba(139, 92, 246, 0.3);
        }

        /* Декоративная градиентная линия сверху */
        .wiki_auth_card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 120px;
            height: 3px;
            background: var(--wiki_auth_gradient);
            border-radius: 0 0 4px 4px;
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
        }

        .wiki_auth_badge {
            width: 72px;
            height: 72px;
            margin: 0 auto 24px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--wiki_auth_glass-border);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s ease;
        }
        .wiki_auth_card:hover .wiki_auth_badge { transform: scale(1.05) rotate(-3deg); }

        .wiki_auth_title {
            text-align: center;
            font-size: 30px;
            font-weight: 800;
            color: #fff;
            margin: 0 0 8px;
            letter-spacing: -0.5px;
        }
        .wiki_auth_title span {
            background: var(--wiki_auth_gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .wiki_auth_desc {
            text-align: center;
            color: var(--wiki_auth_text-muted);
            font-size: 15px;
            margin-bottom: 36px;
            line-height: 1.5;
        }

        /* ============================================
           ПОЛЯ ВВОДА
           ============================================ */
        .wiki_auth_inputs {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .wiki_auth_input-wrap {
            position: relative;
        }

        .wiki_auth_input {
            width: 100%;
            background: var(--wiki_auth_input-bg);
            border: 1px solid var(--wiki_auth_glass-border);
            border-radius: 14px;
            padding: 16px 16px 16px 48px;
            font-size: 15px;
            color: #fff;
            outline: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-sizing: border-box;
            font-family: inherit;
        }

        .wiki_auth_input::placeholder { color: #64748b; }

        .wiki_auth_input:focus {
            background: rgba(255, 255, 255, 0.07);
            border-color: var(--wiki_auth_primary);
            box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), 0 0 20px rgba(139, 92, 246, 0.1);
        }

        .wiki_auth_icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            stroke: #94a3b8;
            transition: stroke 0.3s ease;
            pointer-events: none;
        }

        .wiki_auth_input:focus ~ .wiki_auth_icon {
            stroke: var(--wiki_auth_primary);
        }

        /* ============================================
           СООБЩЕНИЯ
           ============================================ */
        .wiki_auth_msg {
            display: none;
            margin-top: 20px;
            padding: 14px 16px;
            border-radius: 12px;
            font-size: 14px;
            text-align: center;
            line-height: 1.4;
            font-weight: 500;
            animation: wiki_auth_fadeIn 0.3s ease;
        }

        @keyframes wiki_auth_fadeIn {
            from { opacity: 0; transform: translateY(-5px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .wiki_auth_error {
            background: rgba(239, 68, 68, 0.12);
            border: 1px solid rgba(239, 68, 68, 0.25);
            color: #fca5a5;
        }

        .wiki_auth_success {
            background: rgba(16, 185, 129, 0.12);
            border: 1px solid rgba(16, 185, 129, 0.25);
            color: #6ee7b7;
        }

        /* ============================================
           КНОПКА
           ============================================ */
        .wiki_auth_btn {
            width: 100%;
            background: var(--wiki_auth_gradient);
            background-size: 200% 200%;
            color: #fff;
            border: none;
            border-radius: 14px;
            padding: 16px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
            position: relative;
            overflow: hidden;
            margin-top: 28px;
            font-family: inherit;
            letter-spacing: 0.3px;
        }

        .wiki_auth_btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 15px 35px -5px rgba(139, 92, 246, 0.6);
            background-position: right center;
        }

        .wiki_auth_btn:active:not(:disabled) {
            transform: translateY(1px);
        }

        .wiki_auth_btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            filter: grayscale(0.4);
        }

        /* ============================================
           ССЫЛКИ
           ============================================ */
        .wiki_auth_links {
            display: flex;
            justify-content: center;
            gap: 24px;
            margin-top: 28px;
            flex-wrap: wrap;
        }

        .wiki_auth_link {
            color: var(--wiki_auth_text-muted);
            font-size: 14px;
            text-decoration: none;
            transition: color 0.3s ease;
            position: relative;
            font-weight: 500;
        }

        .wiki_auth_link:hover { color: #fff; }

        .wiki_auth_link::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 2px;
            background: var(--wiki_auth_gradient);
            border-radius: 2px;
            transition: width 0.3s ease;
        }

        .wiki_auth_link:hover::after { width: 100%; }

        .wiki_auth_home {
            display: block;
            margin-top: 36px;
            text-align: center;
            color: var(--wiki_auth_text-muted);
            font-size: 13px;
            text-decoration: none;
            transition: color 0.3s ease;
            font-weight: 500;
        }
        .wiki_auth_home:hover { color: #fff; }

        /* ============================================
           АДАПТИВНОСТЬ
           ============================================ */
        @media (max-width: 600px) {
            .wiki_auth_header {
                padding: 20px;
                flex-direction: column;
                gap: 16px;
                align-items: flex-start;
            }
            .wiki_auth_launcher {
                order: -1;
                width: 100%;
                text-align: center;
                background: rgba(255, 255, 255, 0.05);
                padding: 12px;
                border-radius: 12px;
                border: 1px solid var(--wiki_auth_glass-border);
            }
            .wiki_auth_card {
                padding: 36px 24px;
                border-radius: 24px;
            }
            .wiki_auth_links {
                flex-direction: column;
                gap: 16px;
                text-align: center;
            }
        }
        /* Общий контейнер для кнопок (опционально, если они лежат в div) */
.auth-social-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Базовый стиль для обеих кнопок */
.wiki_auth_social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Отступ между иконкой и текстом */
    
    padding: 10px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    
    border: 1px solid transparent;
    border-radius: 8px; /* Закругление углов */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    
    text-decoration: none;
    color: #fff; /* Белый текст по умолчанию */
    background-color: #f0f0f0; /* Цвет фона по умолчанию (серый) */
    color: #333; /* Цвет текста по умолчанию (темный) */
}

/* Стиль при наведении для базовой кнопки */
.wiki_auth_social-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

 /* Контейнер */
.social-wrapper {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- Базовый стиль кнопки --- */
.btn-social {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    
    padding: 12px 24px;
    min-width: 200px; /* Минимальная ширина для красоты */
    
    border: none;
    border-radius: 12px; /* Современные скругления */
    
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    
    /* Плавность анимации */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Легкая тень по умолчанию */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Иконка */
.btn-social .icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.btn-social svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* --- Стили для Яндекса (Красный градиент) --- */
.btn-yandex {
    background: linear-gradient(135deg, #ff4b2b 0%, #ff416c 100%);
    /* Или более строгий вариант: linear-gradient(135deg, #FC3F1D 0%, #d93012 100%); */
}

.btn-yandex:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 75, 43, 0.4); /* Красное свечение */
}

.btn-yandex:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(255, 75, 43, 0.3);
}

/* --- Стили для VK (Синий градиент) --- */
.btn-vk {
    background: linear-gradient(135deg, #0077FF 0%, #0055cc 100%);
}

.btn-vk:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 119, 255, 0.4); /* Синее свечение */
}

.btn-vk:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 119, 255, 0.3);
}

/* Эффект блика (опционально, делает кнопку "стеклянной") */
.btn-social::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-social:hover::after {
    left: 100%;
}

/* --- Адаптация под мобильные (Одна под другой) --- */
@media (max-width: 600px) {
    .social-wrapper {
        flex-direction: column;
        padding: 10px;
        gap: 12px;
    }

    .btn-social {
        width: 100%; /* На всю ширину */
        min-width: auto;
        padding: 14px;
        font-size: 16px;
        justify-content: center; /* Центрируем контент */
    }
}
//=================================главная
           
/* Стили для отключенной PC кнопки */
.avrp-platform-card.avrp-disabled {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    cursor: not-allowed;
    position: relative;
    opacity: 0.8;
}

.avrp-platform-card.avrp-disabled:hover {
    border-color: #dc2626 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.avrp-platform-card.avrp-disabled .avrp-platform-icon {
    filter: grayscale(100%) brightness(0.7);
}

.avrp-platform-card.avrp-disabled .avrp-platform-name {
    color: #ef4444;
}

.avrp-platform-card.avrp-disabled .avrp-platform-desc {
    color: #9ca3af;
}

/* Бейдж "Выключено" */
.avrp-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-red 2s infinite;
    z-index: 2;
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.avrp-platform-card { position: relative; }

/* === PREMIUM SOCIAL MODAL === */

/* Фон-затемнение с blur */
.social-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(2, 2, 8, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Aurora Glow Background */
.social-modal-aurora {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    pointer-events: none;
    z-index: 0;
    transition: background 0.5s ease;
    opacity: 0.6;
}

/* Контейнер модалки */
.social-modal-container {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    background: linear-gradient(160deg, rgba(18, 22, 40, 0.95), rgba(8, 10, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    padding: 36px;
    box-shadow: 
        0 30px 80px -20px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 0 100px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    z-index: 1;
    overflow: hidden;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Кнопка закрытия (крестик) */
.social-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 2;
}

.social-modal-close:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    transform: rotate(90deg) scale(1.05);
}

/* Шапка модалки */
.social-modal-header {
    text-align: center;
    margin-bottom: 28px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.social-modal-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.15);
    transition: all 0.4s ease;
}

.social-modal-icon-wrap svg {
    width: 36px;
    height: 36px;
    transition: all 0.3s ease;
}

.social-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.03em;
    font-family: 'Space Grotesk', sans-serif;
}

.social-modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    line-height: 1.5;
    max-width: 320px;
    margin-inline: auto;
}

/* Область прокрутки */
.social-scroll-area {
    flex: 1;
    min-height: 0;
    max-height: 360px;
    overflow-y: auto;
    margin: 0 -12px;
    padding: 4px 12px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
    position: relative;
    z-index: 1;
}

.social-scroll-area::-webkit-scrollbar {
    width: 5px;
}

.social-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

.social-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.social-scroll-area::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Сетка карточек */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Карточка соцсети */
.social-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    animation: cardFadeIn 0.4s ease backwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Градиентный акцент слева */
.social-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--card-color, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0 4px 4px 0;
}

/* Свечение при наведении */
.social-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        var(--card-color, #8b5cf6) 0%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.social-card:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.social-card:hover::before {
    opacity: 1;
}

.social-card:hover::after {
    opacity: 0.06;
}

.social-card:hover .social-card-icon {
    transform: scale(1.12) rotate(-6deg);
    box-shadow: 0 8px 24px var(--card-glow, rgba(139, 92, 246, 0.35));
}

/* Иконка платформы */
.social-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--card-color-bg, rgba(139, 92, 246, 0.12));
    color: var(--card-color, #8b5cf6);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.social-card-icon svg {
    width: 24px;
    height: 24px;
}

/* Текст карточки */
.social-card-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.social-card-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.social-card-url {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Inter', monospace;
}

/* Стрелка справа */
.social-card-arrow {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-card:hover .social-card-arrow {
    color: var(--card-color, #8b5cf6);
    transform: translateX(4px);
}

/* Кнопка "Закрыть" */
.social-modal-cancel {
    margin-top: 24px;
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
}

.social-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

/* === АДАПТИВНОСТЬ === */

/* Планшеты */
@media (max-width: 768px) {
    .social-modal-container {
        padding: 32px 28px;
        max-width: 480px;
    }

    .social-scroll-area {
        max-height: 320px;
    }

    .social-grid {
        gap: 10px;
    }
    
    .social-modal-icon-wrap {
        width: 64px;
        height: 64px;
    }
    
    .social-modal-icon-wrap svg {
        width: 32px;
        height: 32px;
    }
}

/* Мобильные — 1 колонка + Bottom Sheet */
@media (max-width: 480px) {
    .social-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .social-modal-container {
        max-width: 100%;
        max-height: 85vh;
        padding: 28px 20px 24px;
        border-radius: 24px 24px 0 0;
        animation: modalSlideUpMobile 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    @keyframes modalSlideUpMobile {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .social-modal-header {
        margin-bottom: 24px;
    }

    .social-modal-icon-wrap {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        margin-bottom: 14px;
    }

    .social-modal-icon-wrap svg {
        width: 28px;
        height: 28px;
    }

    .social-modal-title {
        font-size: 22px;
    }

    .social-modal-subtitle {
        font-size: 13px;
    }

    .social-scroll-area {
        max-height: 50vh;
        margin: 0 -8px;
        padding: 4px 8px 12px;
    }

    /* !!! 1 КОЛОНКА НА МОБИЛЬНЫХ !!! */
    .social-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .social-card {
        padding: 16px 18px;
        border-radius: 16px;
    }

    .social-card-icon {
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }
    
    .social-card-icon svg {
        width: 22px;
        height: 22px;
    }

    .social-card-name {
        font-size: 15px;
    }

    .social-card-url {
        font-size: 12px;
    }

    .social-modal-cancel {
        padding: 18px;
        border-radius: 16px;
        margin-top: 20px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .social-modal-container {
        padding: 24px 16px 20px;
    }

    .social-modal-title {
        font-size: 20px;
    }
    
    .social-card {
        padding: 14px 16px;
    }
}

/* --- ОТДАЛЕНИЕ КАРТИНКИ ЛАУНЧЕРА --- */
#avrp-step1-img {
    transform: scale(0.85); /* Меняйте число: 0.8 - сильнее отдалить, 0.9 - чуть-чуть */
    transition: transform 0.3s ease;
}

/* Если хотите, чтобы она отъезжала только при наведении на блок */
.avrp-tilt-soft:hover #avrp-step1-img {
    transform: scale(0.9);
}

            .avrp-body {
        background-color: var(--avrp-bg-base);
        color: var(--avrp-text-primary);
        font-family: var(--avrp-font-body);
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        line-height: 1.6;
        position: relative;
        margin: 0;
    }
    .avrp-body.avrp-modal-open { overflow: hidden; }

    /* Улучшенный шум */
    .avrp-body::after {
        content: "";
        position: fixed;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
        pointer-events: none;
        z-index: 1;
        opacity: 0.6;
    }

    /* ---------- Scroll progress ---------- */
    .avrp-scroll-progress {
        position: fixed; top: 0; left: 0;
        width: 0; height: 3px;
        background: linear-gradient(90deg, var(--avrp-primary), var(--avrp-accent), var(--avrp-primary));
        background-size: 200% 100%;
        animation: avrp-gradientShift 3s linear infinite;
        z-index: var(--avrp-z-progress);
        box-shadow: 0 0 15px var(--avrp-primary-glow), 0 0 30px var(--avrp-primary-glow);
    }
    @keyframes avrp-gradientShift { to { background-position: 200% 50%; } }

    /* ---------- Ambient ---------- */
    .avrp-ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
    .avrp-orb {
        position: absolute; border-radius: 50%; filter: blur(100px);
        animation: avrp-floatOrb 25s infinite ease-in-out; will-change: transform;
    }
    .avrp-orb-1 { width: 800px; height: 800px; background: radial-gradient(circle, var(--avrp-primary), transparent 70%); top: -20%; left: -10%; opacity: .2; }
    .avrp-orb-2 { width: 700px; height: 700px; background: radial-gradient(circle, var(--avrp-accent), transparent 70%); bottom: -10%; right: -10%; animation-delay: -12s; opacity: .15; }
    .avrp-orb-3 { width: 500px; height: 500px; background: radial-gradient(circle, #ec4899, transparent 70%); top: 40%; left: 40%; animation-delay: -6s; opacity: .1; }
    @keyframes avrp-floatOrb {
        0%,100% { transform: translate(0,0) scale(1); }
        33% { transform: translate(40px,-40px) scale(1.1); }
        66% { transform: translate(-30px,30px) scale(.9); }
    }
    .avrp-grid-overlay {
        position: fixed; inset: 0; z-index: 0; pointer-events: none;
        background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                          linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
        background-size: 60px 60px;
        mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
        -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
    }
    .avrp-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
    .avrp-particle {
        position: absolute; width: 3px; height: 3px; border-radius: 50%;
        background: var(--avrp-primary-light); opacity: 0;
        box-shadow: 0 0 10px var(--avrp-primary-glow);
        animation: avrp-particleFloat 15s infinite linear;
    }
    @keyframes avrp-particleFloat {
        0% { transform: translateY(100vh) translateX(0); opacity: 0; }
        10%,90% { opacity: .7; }
        100% { transform: translateY(-100px) translateX(100px); opacity: 0; }
    }

    .avrp-container { max-width: var(--avrp-container); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

    /* ---------- Nav ---------- */
    .avrp-navbar {
        position: fixed; top: 0; left: 0; right: 0; height: var(--avrp-nav-height);
        background: rgba(2,4,10,.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--avrp-glass-border); z-index: var(--avrp-z-nav); transition: .3s;
    }
    .avrp-navbar.avrp-scrolled { 
        background: rgba(2,4,10,.85); 
        box-shadow: 0 10px 40px rgba(0,0,0,.5);
        border-bottom-color: var(--avrp-glass-highlight);
    }
    .avrp-nav-container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
    .avrp-nav-brand {
        font-family: var(--avrp-font-display); font-weight: 700; font-size: 22px;
        display: flex; align-items: center; gap: 12px; letter-spacing: -.02em; color: #fff; text-decoration: none;
    }
    .avrp-brand-icon {
        width: 42px; height: 42px; border-radius: 12px;
        background: linear-gradient(135deg, var(--avrp-primary), var(--avrp-accent));
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 0 25px var(--avrp-primary-glow); font-size: 20px; color: #fff;
        position: relative; overflow: hidden;
    }
    .avrp-brand-icon::before {
        content: ''; position: absolute; inset: 0;
        background: linear-gradient(135deg, transparent, rgba(255,255,255,.4), transparent);
        transform: translateX(-100%); animation: avrp-iconShine 3s infinite;
    }
    @keyframes avrp-iconShine { 0%,70%,100% { transform: translateX(-100%); } 85% { transform: translateX(100%); } }
    .avrp-nav-menu { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
    .avrp-nav-link {
        padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 500;
        color: var(--avrp-text-secondary); transition: .2s; text-decoration: none;
    }
    .avrp-nav-link:hover, .avrp-nav-link.avrp-active { color: #fff; background: rgba(255,255,255,.06); }
    .avrp-nav-btn {
        background: linear-gradient(90deg, var(--avrp-primary), #7c3aed); color: #fff;
        padding: 10px 24px; border-radius: 100px; font-weight: 600; font-size: 14px;
        box-shadow: 0 4px 20px var(--avrp-primary-glow); border: none; cursor: pointer;
        font-family: inherit; transition: .3s; position: relative; overflow: hidden;
    }
    .avrp-nav-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--avrp-primary-glow); }
    .avrp-nav-btn:focus-visible { outline: 2px solid var(--avrp-accent); outline-offset: 2px; }

    /* ---------- Hero ---------- */
    .avrp-hero {
        min-height: 100vh; display: flex; align-items: center; justify-content: center;
        text-align: center; padding-top: var(--avrp-nav-height); position: relative; z-index: 2;
    }
    .avrp-hero-badge {
        display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
        background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.3);
        border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--avrp-primary-light);
        margin-bottom: 32px; backdrop-filter: blur(10px); animation: avrp-slideDown .8s ease forwards;
        position: relative; overflow: hidden;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .avrp-hero-badge::before {
        content: ''; position: absolute; inset: 0;
        background: linear-gradient(90deg, transparent, rgba(139,92,246,.2), transparent);
        transform: translateX(-100%); animation: avrp-badgeShine 3s infinite;
    }
    @keyframes avrp-badgeShine { to { transform: translateX(100%); } }
    @keyframes avrp-slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
    .avrp-pulse-dot {
        width: 8px; height: 8px; background: var(--avrp-success); border-radius: 50%;
        box-shadow: 0 0 12px var(--avrp-success); animation: avrp-pulse 2s infinite; position: relative; z-index: 1;
    }
    @keyframes avrp-pulse { 50% { opacity: .5; transform: scale(1.5); box-shadow: 0 0 20px var(--avrp-success); } }
    
    .avrp-hero-title {
        font-family: var(--avrp-font-display); font-size: clamp(48px, 9vw, 96px);
        line-height: 1.05; font-weight: 700; margin: 0 0 24px; letter-spacing: -.03em;
        animation: avrp-slideUpFade 1s ease .2s forwards; opacity: 0; transform: translateY(30px);
    }
    @keyframes avrp-slideUpFade { to { opacity: 1; transform: translateY(0); } }
    .avrp-gradient-text {
        background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
        -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
        filter: drop-shadow(0 2px 10px rgba(255,255,255,0.1));
    }
    .avrp-gradient-text-accent {
        background: linear-gradient(135deg, var(--avrp-primary-light), var(--avrp-accent), var(--avrp-primary-light));
        background-size: 200% auto;
        -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
        display: inline-block; filter: drop-shadow(0 0 30px rgba(139,92,246,.4));
        animation: avrp-textShimmer 4s linear infinite;
    }
    @keyframes avrp-textShimmer { to { background-position: 200% center; } }
    
    .avrp-hero-desc {
        font-size: 18px; color: var(--avrp-text-secondary); max-width: 600px;
        margin: 0 auto 48px; line-height: 1.7;
        animation: avrp-slideUpFade 1s ease .4s forwards; opacity: 0; transform: translateY(30px);
    }
    .avrp-btn-group {
        display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
        animation: avrp-slideUpFade 1s ease .6s forwards; opacity: 0; transform: translateY(30px);
    }
    .avrp-btn {
        padding: 16px 36px; border-radius: 100px; font-weight: 600; font-size: 16px;
        cursor: pointer; transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s, background .3s;
        display: inline-flex; align-items: center; gap: 10px; border: none;
        font-family: inherit; text-decoration: none; position: relative; overflow: hidden;
    }
    .avrp-btn:focus-visible { outline: 2px solid var(--avrp-accent); outline-offset: 3px; }
    .avrp-btn-primary { 
        background: #fff; color: #02040a; 
        box-shadow: 0 10px 40px rgba(255,255,255,.15), inset 0 1px 0 rgba(255,255,255,0.8); 
    }
    .avrp-btn-primary::before {
        content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
        background: linear-gradient(90deg, transparent, rgba(139,92,246,.25), transparent); transition: .6s;
    }
    .avrp-btn-primary:hover::before { left: 100%; }
    .avrp-btn-primary:hover { box-shadow: 0 15px 50px rgba(255,255,255,.25); transform: translateY(-2px); }
    
    .avrp-btn-video {
        background: rgba(255,255,255,.03); border: 1px solid var(--avrp-glass-border);
        color: #fff; backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .avrp-btn-video:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); transform: translateY(-2px); }
    .avrp-play-icon-wrap {
        width: 32px; height: 32px; background: #fff; border-radius: 50%;
        display: flex; align-items: center; justify-content: center; color: #000;
        box-shadow: 0 0 20px rgba(255,255,255,.3); transition: .3s; position: relative;
    }
    .avrp-btn-video:hover .avrp-play-icon-wrap { transform: scale(1.1); box-shadow: 0 0 30px rgba(255,255,255,.5); }
    .avrp-play-ring {
        position: absolute; inset: 0; border-radius: 50%; border: 2px solid #fff;
        animation: avrp-playRingPulse 2s infinite;
    }
    @keyframes avrp-playRingPulse { from { transform: scale(1); opacity: .8; } to { transform: scale(2); opacity: 0; } }

    .avrp-hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 800px; margin: 80px auto 0; }
    .avrp-stat-card {
        background: var(--avrp-glass-bg); border: 1px solid var(--avrp-glass-border);
        padding: 28px 24px; border-radius: 20px; backdrop-filter: blur(20px);
        transition: .4s; position: relative; overflow: hidden;
        box-shadow: inset 0 1px 0 var(--avrp-glass-highlight), 0 4px 24px rgba(0,0,0,0.2);
    }
    .avrp-stat-card:hover { border-color: rgba(139,92,246,.4); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,0.2); }
    .avrp-stat-value {
        font-family: var(--avrp-font-display); font-size: 36px; font-weight: 700; display: block;
        background: linear-gradient(135deg, #fff, var(--avrp-primary-light));
        -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }
    .avrp-stat-label { font-size: 13px; color: var(--avrp-text-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; font-weight: 600; display: block; }

    /* ---------- Sections ---------- */
    .avrp-section { padding: 120px 0; position: relative; z-index: 2; }
    .avrp-section-header { text-align: center; margin-bottom: 72px; }
    .avrp-section-tag {
        display: inline-block; color: var(--avrp-primary-light); font-weight: 700;
        text-transform: uppercase; letter-spacing: .15em; font-size: 12px; margin-bottom: 20px;
        padding: 6px 16px; background: rgba(139,92,246,.1);
        border: 1px solid rgba(139,92,246,.2); border-radius: 100px;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .avrp-section-title { font-family: var(--avrp-font-display); font-size: clamp(36px,5vw,48px); font-weight: 700; margin: 0 0 16px; color: #fff; }
    .avrp-section-desc { color: var(--avrp-text-secondary); max-width: 600px; margin: 0 auto; font-size: 16px; }

    .avrp-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 24px; }
    .avrp-feature-card {
        background: var(--avrp-glass-bg); border: 1px solid var(--avrp-glass-border);
        padding: 36px; border-radius: 24px; transition: .4s; position: relative; overflow: hidden;
        box-shadow: inset 0 1px 0 var(--avrp-glass-highlight), 0 4px 24px rgba(0,0,0,0.2);
    }
    .avrp-feature-card::before {
        content: ''; position: absolute; inset: 0; padding: 1px; border-radius: 24px;
        background: linear-gradient(135deg, var(--avrp-primary), var(--avrp-accent), var(--avrp-primary));
        background-size: 200% 200%;
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor; mask-composite: exclude;
        opacity: 0; transition: opacity .4s; animation: avrp-borderRotate 4s linear infinite;
    }
    @keyframes avrp-borderRotate { to { background-position: 200% 50%; } }
    .avrp-feature-card::after {
        content: ''; position: absolute; inset: 0;
        background: radial-gradient(circle at top right, rgba(139,92,246,.15), transparent 50%);
        opacity: 0; transition: .4s;
    }
    .avrp-feature-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,0.2); }
    .avrp-feature-card:hover::before, .avrp-feature-card:hover::after { opacity: 1; }
    .avrp-icon-box {
        width: 60px; height: 60px; background: rgba(255,255,255,.03);
        border: 1px solid var(--avrp-glass-border); border-radius: 16px;
        display: flex; align-items: center; justify-content: center;
        color: var(--avrp-primary-light); font-size: 26px; margin-bottom: 24px;
        transition: .4s; position: relative; z-index: 1;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .avrp-feature-card:hover .avrp-icon-box {
        background: linear-gradient(135deg, var(--avrp-primary), var(--avrp-accent));
        color: #fff; border-color: transparent; box-shadow: 0 10px 30px var(--avrp-primary-glow);
        transform: scale(1.1) rotate(-5deg);
    }
    .avrp-feature-title { font-family: var(--avrp-font-display); font-size: 20px; font-weight: 600; margin: 0 0 10px; color: #fff; position: relative; z-index: 1; }
    .avrp-feature-text { color: var(--avrp-text-secondary); font-size: 15px; line-height: 1.6; position: relative; z-index: 1; }

    /* ---------- Servers ---------- */
    .avrp-servers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px,1fr)); gap: 32px; perspective: 1000px; }
    .avrp-server-card {
        background: var(--avrp-bg-elevated); border: 1px solid var(--avrp-glass-border);
        border-radius: 28px; overflow: hidden; position: relative;
        transition: transform .15s ease-out, box-shadow .4s; transform-style: preserve-3d;
        box-shadow: inset 0 1px 0 var(--avrp-glass-highlight);
    }
    .avrp-server-card::before {
        content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
        background: radial-gradient(600px circle at var(--avrp-mouse-x,50%) var(--avrp-mouse-y,50%), rgba(255,255,255,.08), transparent 40%);
        opacity: 0; transition: opacity .3s;
    }
    .avrp-server-card:hover::before { opacity: 1; }
    .avrp-server-card:hover { box-shadow: 0 30px 60px rgba(139,92,246,.15), inset 0 1px 0 rgba(255,255,255,0.15); }
    .avrp-server-card.avrp-online-card:hover { box-shadow: 0 30px 60px rgba(16,185,129,.15), inset 0 1px 0 rgba(255,255,255,0.15); }
    
    .avrp-server-header {
        height: 160px; background: linear-gradient(135deg,#1e1b4b,#312e81);
        position: relative; padding: 24px; display: flex; justify-content: space-between;
        align-items: flex-start; overflow: hidden;
    }
    .avrp-server-header::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(139,92,246,.4), transparent 60%); }
    .avrp-server-status {
        background: rgba(0,0,0,.4); backdrop-filter: blur(12px); padding: 8px 16px;
        border-radius: 100px; font-size: 12px; font-weight: 700; display: flex;
        align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.1);
        position: relative; z-index: 2; letter-spacing: .05em;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .avrp-status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: avrp-pulse 2s infinite; }
    .avrp-online { color: #4ade80; }
    .avrp-offline { color: #ef4444; }
    .avrp-server-body { padding: 28px; position: relative; z-index: 2; background: var(--avrp-bg-elevated); }
    .avrp-server-name { font-family: var(--avrp-font-display); font-size: 26px; font-weight: 700; margin: 0 0 24px; letter-spacing: -.02em; color: #fff; }
    .avrp-server-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; color: var(--avrp-text-secondary); }
    .avrp-server-info-count { color: #fff; font-weight: 700; }
    .avrp-progress-bar { height: 8px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; margin-top: 10px; position: relative; }
    .avrp-progress-fill {
        height: 100%; background: linear-gradient(90deg, var(--avrp-primary), var(--avrp-accent));
        width: 0; transition: width 1.5s cubic-bezier(.22,1,.36,1); position: relative;
    }
    .avrp-progress-fill::after {
        content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 20px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.8));
        filter: blur(4px); opacity: 0; transition: opacity .3s;
    }
    .avrp-progress-fill[style*="width:"]::after { opacity: 1; }
    .avrp-offline-msg { color: var(--avrp-text-muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
    .avrp-offline-dot { width: 8px; height: 8px; background: var(--avrp-warning); border-radius: 50%; box-shadow: 0 0 8px var(--avrp-warning); }

    /* =========================================
       КАК НАЧАТЬ ИГРАТЬ — Улучшенный визуал
       ========================================= */
    .avrp-how { overflow: hidden; }
    .avrp-how-bg {
        position: absolute; inset: 0; pointer-events: none;
        background:
            radial-gradient(ellipse 60% 40% at 15% 30%, rgba(139,92,246,.10), transparent 70%),
            radial-gradient(ellipse 50% 40% at 90% 70%, rgba(6,182,212,.08), transparent 70%);
    }
    .avrp-how-header { text-align: center; margin-bottom: 100px; }
    .avrp-how-title {
        font-family: var(--avrp-font-display);
        font-size: clamp(38px, 6vw, 68px);
        line-height: 1.08; font-weight: 700; letter-spacing: -.03em;
        margin: 0 0 24px; color: #fff;
    }
    .avrp-how-subtitle { font-size: 17px; color: var(--avrp-text-secondary); line-height: 1.8; margin: 0 auto 32px; max-width: 560px; }
    .avrp-how-meta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
    .avrp-meta-item {
        display: inline-flex; align-items: center; gap: 8px;
        padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 500;
        color: var(--avrp-text-secondary);
        background: rgba(255,255,255,.03); border: 1px solid var(--avrp-glass-border);
        backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
        transition: .3s;
    }
    .avrp-meta-item:hover { border-color: var(--avrp-primary); color: #fff; }
    .avrp-meta-item svg { color: var(--avrp-primary-light); flex-shrink: 0; }

    /* Таймлайн */
    .avrp-journey { position: relative; }
    .avrp-journey-rail {
        position: absolute; left: 20px; top: 60px; bottom: 140px; width: 2px;
        background: linear-gradient(180deg, transparent, rgba(139,92,246,.25) 10%, rgba(6,182,212,.25) 90%, transparent);
    }
    .avrp-journey-rail-fill {
        width: 100%; height: 0;
        background: linear-gradient(180deg, var(--avrp-primary), var(--avrp-accent));
        box-shadow: 0 0 15px var(--avrp-primary-glow);
        transition: height .15s linear;
    }

    /* Строка шага */
    .avrp-step-row {
        position: relative; display: grid;
        grid-template-columns: 1.08fr 1fr;
        gap: 72px; align-items: center;
        padding-left: 76px; margin-bottom: 120px;
    }
    .avrp-step-row:last-of-type { margin-bottom: 0; }
    .avrp-step-row:nth-of-type(even) .avrp-step-visual { order: 2; }
    .avrp-step-row:nth-of-type(even) .avrp-step-content { order: 1; }

    /* Узел таймлайна */
    .avrp-step-node {
        position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
        width: 20px; height: 20px; border-radius: 50%;
        background: var(--avrp-bg-base); border: 2px solid rgba(139,92,246,.3);
        z-index: 3; transition: .5s;
        box-shadow: 0 0 0 4px var(--avrp-bg-base);
    }
    .avrp-step-row.is-active .avrp-step-node {
        background: var(--avrp-primary); border-color: var(--avrp-primary-light);
        box-shadow: 0 0 0 6px rgba(139,92,246,.12), 0 0 24px var(--avrp-primary-glow), 0 0 0 4px var(--avrp-bg-base);
    }

    /* Визуал (Экран) */
    .avrp-step-visual { position: relative; isolation: isolate; }
    .avrp-step-ghost {
        position: absolute; right: -8px; bottom: -54px; z-index: 0;
        font-family: var(--avrp-font-display); font-size: 160px; font-weight: 700;
        line-height: 1; color: transparent;
        -webkit-text-stroke: 1px rgba(139,92,246,.22);
        pointer-events: none; user-select: none;
        transition: transform .6s;
    }
    .avrp-step-row:hover .avrp-step-ghost { transform: translateY(-8px); -webkit-text-stroke-color: rgba(139,92,246,.4); }

    .avrp-step-frame {
        position: relative; z-index: 1;
        aspect-ratio: 16 / 11; border-radius: 28px; overflow: hidden;
        border: 1px solid rgba(255,255,255,.12);
        background: linear-gradient(135deg, #1e1b4b, #0a0f1e 60%, #164e63);
        box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.05) inset, 0 0 0 1px rgba(0,0,0,0.5);
        transform-style: preserve-3d;
        transition: transform .2s ease-out, box-shadow .4s, border-color .4s;
    }
    .avrp-step-row:hover .avrp-step-frame {
        border-color: rgba(139,92,246,.45);
        box-shadow: 0 40px 100px -20px rgba(139,92,246,.25), 0 0 0 1px rgba(139,92,246,.2) inset, 0 0 0 1px rgba(0,0,0,0.5);
    }
    .avrp-frame-media {
        position: absolute; inset: 0;
        transition: opacity .25s ease, transform .4s ease;
    }
    .avrp-frame-media.avrp-switching { opacity: 0; transform: scale(1.05); }
    .avrp-frame-media img {
        width: 100%; height: 100%; object-fit: cover; display: block;
        filter: saturate(1.15) contrast(1.05) brightness(.85);
        animation: avrp-kenburns 22s ease-in-out infinite alternate;
    }
    @keyframes avrp-kenburns {
        from { transform: scale(1) translate(0,0); }
        to { transform: scale(1.12) translate(-2%, 2%); }
    }
    .avrp-frame-shade {
        position: absolute; inset: 0; pointer-events: none;
        background: linear-gradient(180deg, rgba(2,4,10,.3) 0%, transparent 35%, rgba(2,4,10,.9) 100%);
    }
    .avrp-frame-grid {
        position: absolute; inset: 0; pointer-events: none; opacity: .35;
        background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                          linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
        background-size: 40px 40px;
    }
    .avrp-frame-scan {
        position: absolute; left: 0; right: 0; height: 120px; pointer-events: none;
        background: linear-gradient(180deg, transparent, rgba(139,92,246,.1), transparent);
        animation: avrp-scan 7s linear infinite;
    }
    @keyframes avrp-scan { from { top: -120px; } to { top: 100%; } }
    .avrp-frame-glare {
        position: absolute; inset: 0; pointer-events: none; z-index: 4;
        background: radial-gradient(500px circle at var(--avrp-mouse-x,50%) var(--avrp-mouse-y,50%), rgba(255,255,255,.12), transparent 45%);
        opacity: 0; transition: opacity .4s;
    }
    .avrp-step-frame:hover .avrp-frame-glare { opacity: 1; }

    /* Парящие карточки */
    .avrp-float-chip {
        position: absolute; z-index: 5;
        display: flex; align-items: center; gap: 12px;
        padding: 12px 16px; border-radius: 16px;
        background: rgba(10,15,30,.85);
        border: 1px solid rgba(255,255,255,.14);
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 15px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,0.1);
        animation: avrp-floatChip 6s ease-in-out infinite;
        transition: transform .3s;
    }
    .avrp-float-chip:hover { transform: translateY(-5px) !important; }
    @keyframes avrp-floatChip {
        0%,100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
    .avrp-chip-icon {
        width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
        background: linear-gradient(135deg, var(--avrp-primary), var(--avrp-accent));
        display: flex; align-items: center; justify-content: center; color: #fff;
        box-shadow: 0 4px 16px var(--avrp-primary-glow);
    }
    .avrp-chip-text { display: flex; flex-direction: column; line-height: 1.4; }
    .avrp-chip-text strong { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; }
    .avrp-chip-text span { font-size: 11px; color: var(--avrp-text-muted); white-space: nowrap; }
    .avrp-chip-badge {
        font-size: 9px; font-weight: 800; letter-spacing: .08em;
        padding: 3px 7px; border-radius: 5px;
        background: rgba(139,92,246,.2); color: var(--avrp-primary-light);
        border: 1px solid rgba(139,92,246,.3);
    }

    .avrp-chip-download { left: 20px; top: 24px; animation-delay: 0s; }
    .avrp-chip-verified {
        right: 20px; bottom: 88px; font-size: 12px; font-weight: 600;
        color: var(--avrp-success); gap: 8px; animation-delay: -3s;
        padding: 10px 14px; border-radius: 100px;
    }
    .avrp-chip-verified svg { flex-shrink: 0; }

    /* Переключатель устройств */
    .avrp-device-switch {
        position: absolute; z-index: 6; bottom: 20px; left: 50%; transform: translateX(-50%);
        display: flex; gap: 4px; padding: 5px; border-radius: 100px;
        background: rgba(2,4,10,.9); border: 1px solid rgba(255,255,255,.12);
        backdrop-filter: blur(20px); white-space: nowrap;
        box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .avrp-device-btn {
        display: inline-flex; align-items: center; gap: 7px;
        padding: 8px 18px; border-radius: 100px; border: none;
        background: transparent; color: var(--avrp-text-muted);
        font-family: inherit; font-size: 13px; font-weight: 600;
        cursor: pointer; transition: .3s;
    }
    .avrp-device-btn:hover { color: #fff; }
    .avrp-device-btn.avrp-active {
        background: linear-gradient(135deg, var(--avrp-primary), #7c3aed);
        color: #fff; box-shadow: 0 4px 16px var(--avrp-primary-glow);
    }
    .avrp-device-btn:focus-visible { outline: 2px solid var(--avrp-accent); outline-offset: 2px; }

    /* Шаг 2: карточка установки */
    .avrp-chip-install {
        left: 50%; top: 50%; transform: translate(-50%,-50%);
        width: 260px; flex-direction: column; align-items: stretch; gap: 14px;
        padding: 20px; border-radius: 20px; animation: none;
        transition: box-shadow .4s;
    }
    .avrp-step-row:hover .avrp-chip-install { box-shadow: 0 20px 60px rgba(139,92,246,.35); }
    .avrp-install-head { display: flex; align-items: center; gap: 12px; }
    .avrp-install-track { height: 6px; border-radius: 10px; background: rgba(255,255,255,.08); overflow: hidden; }
    .avrp-install-fill {
        height: 100%; width: 0; border-radius: 10px;
        background: linear-gradient(90deg, var(--avrp-primary), var(--avrp-accent));
        transition: width 2.6s cubic-bezier(.22,1,.36,1);
        box-shadow: 0 0 12px var(--avrp-primary-glow);
    }
    .avrp-step-row.is-active .avrp-install-fill { width: 100%; }
    .avrp-install-status { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--avrp-text-muted); }
    .avrp-install-loading { animation: avrp-hideAfter 2.6s forwards; }
    .avrp-install-done { color: var(--avrp-success); opacity: 0; animation: avrp-showAfter 2.8s forwards; }
    .avrp-step-row:not(.is-active) .avrp-install-loading,
    .avrp-step-row:not(.is-active) .avrp-install-done { animation: none; }
    .avrp-step-row:not(.is-active) .avrp-install-done { opacity: 0; }
    @keyframes avrp-hideAfter { 0%,85% { opacity: 1; } 100% { opacity: 0; } }
    @keyframes avrp-showAfter { 0%,85% { opacity: 0; } 100% { opacity: 1; } }

    .avrp-chip-permission {
        left: 20px; bottom: 24px; font-size: 12px; font-weight: 500;
        color: var(--avrp-text-secondary); animation-delay: -2s; padding: 10px 14px; border-radius: 100px;
    }
    .avrp-chip-permission svg { color: var(--avrp-success); }

    /* Шаг 3: игрок и голосовой чат */
    .avrp-avatar {
        width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
        background: linear-gradient(135deg, #f59e0b, #ec4899);
        display: flex; align-items: center; justify-content: center;
        font-family: var(--avrp-font-display); font-weight: 700; font-size: 16px; color: #fff;
        border: 2px solid rgba(255,255,255,.25);
        box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    }
    .avrp-chip-player { left: 20px; top: 24px; animation-delay: -1s; }
    .avrp-chip-online {
        right: 20px; top: 24px; padding: 8px 14px; border-radius: 100px;
        font-size: 11px; font-weight: 700; color: var(--avrp-success);
        gap: 7px; animation-delay: -4s; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2);
    }
    .avrp-chip-voice {
        right: 20px; bottom: 24px; gap: 10px; animation-delay: -2s;
        padding: 12px 16px;
    }
    .avrp-voice-label { font-size: 12px; font-weight: 600; color: var(--avrp-text-secondary); }
    .avrp-waveform { display: flex; align-items: center; gap: 3px; height: 22px; }
    .avrp-waveform span {
        width: 3px; height: 6px; border-radius: 3px;
        background: var(--avrp-accent);
        animation: avrp-wave 1.1s ease-in-out infinite;
    }
    .avrp-waveform span:nth-child(1) { animation-delay: 0s; }
    .avrp-waveform span:nth-child(2) { animation-delay: .15s; }
    .avrp-waveform span:nth-child(3) { animation-delay: .3s; }
    .avrp-waveform span:nth-child(4) { animation-delay: .45s; }
    .avrp-waveform span:nth-child(5) { animation-delay: .6s; }
    @keyframes avrp-wave {
        0%,100% { height: 5px; opacity: .5; }
        50% { height: 20px; opacity: 1; box-shadow: 0 0 8px rgba(6,182,212,.6); }
    }
    .avrp-chip-location {
        left: 20px; bottom: 24px; font-size: 12px; font-weight: 600;
        color: #fff; gap: 8px; animation-delay: -3s; padding: 10px 14px; border-radius: 100px;
    }
    .avrp-chip-location svg { color: var(--avrp-primary-light); }

    /* Текст шага */
    .avrp-step-kicker {
        display: flex; align-items: center; gap: 12px;
        font-size: 12px; font-weight: 700; text-transform: uppercase;
        letter-spacing: .14em; color: var(--avrp-text-muted); margin-bottom: 20px;
    }
    .avrp-step-index {
        width: 34px; height: 34px; border-radius: 10px;
        display: flex; align-items: center; justify-content: center;
        background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.3);
        color: var(--avrp-primary-light); font-family: var(--avrp-font-display);
        font-size: 14px; font-weight: 700; letter-spacing: 0;
        transition: .4s; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .avrp-step-row:hover .avrp-step-index {
        background: var(--avrp-primary); color: #fff;
        box-shadow: 0 0 24px var(--avrp-primary-glow); transform: rotate(-6deg);
    }
    .avrp-step-heading {
        font-family: var(--avrp-font-display);
        font-size: clamp(30px, 3.6vw, 46px);
        font-weight: 700; line-height: 1.12; letter-spacing: -.02em;
        margin: 0 0 20px; color: #fff;
    }
    .avrp-step-desc { font-size: 16px; color: var(--avrp-text-secondary); line-height: 1.8; margin: 0 0 26px; max-width: 440px; }
    .avrp-step-checks { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 12px; }
    .avrp-step-checks li {
        display: flex; align-items: center; gap: 10px;
        font-size: 14px; color: var(--avrp-text-secondary);
        opacity: 0; transform: translateX(-12px);
        transition: opacity .6s ease, transform .6s ease;
    }
    .avrp-step-checks li:nth-child(1) { transition-delay: .15s; }
    .avrp-step-checks li:nth-child(2) { transition-delay: .3s; }
    .avrp-step-checks li:nth-child(3) { transition-delay: .45s; }
    .avrp-step-row.is-active .avrp-step-checks li { opacity: 1; transform: translateX(0); }
    .avrp-check {
        width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
        background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3);
        color: var(--avrp-success); display: flex; align-items: center; justify-content: center;
        font-size: 11px; font-weight: 800;
    }
    .avrp-step-hint { display: block; margin-top: 14px; font-size: 12px; color: var(--avrp-text-muted); }

    /* Финальная полоса */
    .avrp-how-bottom {
        margin-top: 100px; padding: 32px 40px;
        display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
        background: var(--avrp-glass-bg); border: 1px solid var(--avrp-glass-border);
        border-radius: 24px; backdrop-filter: blur(20px); position: relative; overflow: hidden;
        box-shadow: inset 0 1px 0 var(--avrp-glass-highlight), 0 20px 40px rgba(0,0,0,0.3);
    }
    .avrp-how-bottom::before {
        content: ''; position: absolute; inset: 0;
        background: radial-gradient(ellipse at left, rgba(139,92,246,.12), transparent 60%);
        pointer-events: none;
    }
    .avrp-how-bottom-left { display: flex; align-items: center; gap: 20px; position: relative; }
    .avrp-avatar-stack { display: flex; padding-left: 8px; }
    .avrp-avatar-stack span {
        width: 40px; height: 40px; border-radius: 50%; margin-left: -8px;
        border: 3px solid var(--avrp-bg-elevated);
        display: flex; align-items: center; justify-content: center;
        font-size: 13px; font-weight: 700; color: #fff;
        background: linear-gradient(135deg, var(--avrp-primary), var(--avrp-accent));
        transition: transform .3s;
    }
    .avrp-avatar-stack span:nth-child(2) { background: linear-gradient(135deg,#ec4899,#8b5cf6); }
    .avrp-avatar-stack span:nth-child(3) { background: linear-gradient(135deg,#06b6d4,#10b981); }
    .avrp-avatar-stack span:nth-child(4) { background: linear-gradient(135deg,#f59e0b,#ef4444); }
    .avrp-avatar-stack:hover span { transform: translateY(-4px); }
    .avrp-how-bottom-text strong { display: block; font-size: 16px; color: #fff; font-weight: 600; }
    .avrp-how-bottom-text span { font-size: 13px; color: var(--avrp-text-muted); }

    /* ---------- CTA ---------- */
    .avrp-download-cta {
        background: linear-gradient(135deg, rgba(139,92,246,.1), rgba(6,182,212,.05));
        border: 1px solid rgba(139,92,246,.2); border-radius: 36px;
        padding: 100px 40px; text-align: center; position: relative; overflow: hidden; backdrop-filter: blur(20px);
        box-shadow: inset 0 1px 0 var(--avrp-glass-highlight);
    }
    .avrp-glow-effect {
        position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
        width: 120%; height: 120%;
        background: radial-gradient(circle, rgba(139,92,246,.15), transparent 60%);
        filter: blur(80px); pointer-events: none; animation: avrp-pulseGlow 6s infinite ease-in-out;
    }
    @keyframes avrp-pulseGlow { 50% { opacity: .8; transform: translate(-50%,-50%) scale(1.1); } }

    /* ---------- Footer ---------- */
    .avrp-footer { border-top: 1px solid var(--avrp-glass-border); padding: 80px 0 40px; background: #010205; margin-top: 40px; position: relative; z-index: 2; }
    .avrp-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
    .avrp-footer-brand { margin-bottom: 16px; }
    .avrp-footer-brand .avrp-brand-icon { width: 36px; height: 36px; font-size: 16px; }
    .avrp-footer-desc { color: var(--avrp-text-muted); font-size: 14px; line-height: 1.7; margin: 20px 0 24px; max-width: 320px; }
    .avrp-social-links a {
        width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.03);
        border: 1px solid var(--avrp-glass-border); display: inline-flex; align-items: center; justify-content: center;
        color: var(--avrp-text-secondary); margin-right: 12px; transition: .3s; font-weight: 600; font-size: 12px; text-decoration: none;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .avrp-social-links a:hover { background: var(--avrp-primary); color: #fff; border-color: var(--avrp-primary); transform: translateY(-4px); box-shadow: 0 10px 20px var(--avrp-primary-glow); }
    .avrp-footer-col-title { color: #fff; font-family: var(--avrp-font-display); font-size: 14px; font-weight: 700; margin: 0 0 20px; text-transform: uppercase; letter-spacing: .1em; }
    .avrp-footer-links { list-style: none; padding: 0; margin: 0; }
    .avrp-footer-links li { margin-bottom: 12px; }
    .avrp-footer-links a { color: var(--avrp-text-muted); font-size: 14px; transition: .2s; text-decoration: none; }
    .avrp-footer-links a:hover { color: var(--avrp-primary-light); padding-left: 4px; }
    .avrp-footer-bottom { border-top: 1px solid var(--avrp-glass-border); padding-top: 32px; text-align: center; color: var(--avrp-text-muted); font-size: 13px; }

    /* ---------- Modals ---------- */
    .avrp-modal-overlay {
        position: fixed; inset: 0; background: rgba(2,4,10,.85);
        backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
        display: flex; align-items: center; justify-content: center;
        z-index: var(--avrp-z-modal); opacity: 0; visibility: hidden;
        transition: opacity .4s, visibility .4s; padding: 20px;
        font-family: var(--avrp-font-body); color: var(--avrp-text-primary);
    }
    .avrp-modal-overlay.avrp-modal-open { opacity: 1; visibility: visible; }
    .avrp-modal-content {
        background: rgba(15,23,42,.9); width: 100%; border-radius: 32px;
        border: 1px solid rgba(255,255,255,.1); position: relative;
        box-shadow: 0 50px 100px -20px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,0.1);
        transform: scale(.9) translateY(40px);
        transition: transform .5s cubic-bezier(.34,1.56,.64,1); overflow: hidden;
    }
    .avrp-modal-content::before {
        content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
    }
    .avrp-modal-overlay.avrp-modal-open .avrp-modal-content { transform: scale(1) translateY(0); }
    .avrp-modal-close {
        position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%;
        background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
        display: flex; align-items: center; justify-content: center; color: var(--avrp-text-muted);
        transition: .2s; font-size: 24px; cursor: pointer; z-index: 10; font-family: inherit;
    }
    .avrp-modal-close:hover { background: rgba(255,255,255,.1); color: #fff; transform: rotate(90deg); }
    .avrp-modal-close:focus-visible { outline: 2px solid var(--avrp-accent); outline-offset: 2px; }
    
    .avrp-video-modal-content { max-width: 900px; background: transparent; border: none; box-shadow: none; }
    .avrp-video-modal-content::before { display: none; }
    .avrp-video-wrapper {
        position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
        border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.8);
        border: 1px solid rgba(255,255,255,.1); background: #000;
    }
    .avrp-video-wrapper iframe, .avrp-video-wrapper video { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

    .avrp-dl-modal-content { max-width: 480px; padding: 48px 40px; }
    .avrp-dl-state { display: none; text-align: center; }
    .avrp-dl-state.avrp-dl-active { display: block; animation: avrp-fadeInUp .4s ease forwards; }
    @keyframes avrp-fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
    .avrp-dl-icon {
        width: 80px; height: 80px; border-radius: 24px; display: flex; align-items: center; justify-content: center;
        margin: 0 auto 28px; font-size: 36px; position: relative;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .avrp-dl-icon-primary { background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.3); color: var(--avrp-primary-light); }
    .avrp-dl-icon-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: var(--avrp-success); }
    .avrp-dl-icon-error { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); color: var(--avrp-warning); }
    .avrp-dl-title { font-family: var(--avrp-font-display); font-size: 28px; font-weight: 700; margin: 0 0 8px; color: #fff; }
    .avrp-dl-subtitle { font-size: 15px; color: var(--avrp-text-muted); margin: 0 0 32px; line-height: 1.5; }
    
    /* Улучшенный спиннер и прогресс */
    .avrp-dl-spinner {
        width: 56px; height: 56px; border: 3px solid rgba(139,92,246,.1);
        border-top-color: var(--avrp-primary); border-radius: 50%;
        animation: avrp-spin 1s linear infinite; margin: 0 auto 24px;
        box-shadow: 0 0 20px rgba(139,92,246,.2);
    }
    @keyframes avrp-spin { to { transform: rotate(360deg); } }
    .avrp-dl-progress-track { height: 6px; background: rgba(255,255,255,.06); border-radius: 10px; overflow: hidden; margin-top: 20px; position: relative; }
    .avrp-dl-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--avrp-primary), var(--avrp-accent)); border-radius: 10px; transition: width .1s linear; position: relative; }
    .avrp-dl-progress-fill::after {
        content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 20px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.8));
        filter: blur(4px);
    }

    .avrp-platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
    .avrp-platform-card {
        background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
        border-radius: 16px; padding: 20px; cursor: pointer; transition: .3s;
        position: relative; text-align: left; color: inherit; font-family: inherit;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    }
    .avrp-platform-card:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); transform: translateY(-2px); }
    .avrp-platform-card.avrp-recommended { border-color: var(--avrp-primary); background: rgba(139,92,246,.08); box-shadow: 0 0 20px rgba(139,92,246,.15), inset 0 1px 0 rgba(255,255,255,0.1); }
    .avrp-platform-card.avrp-recommended::before {
        content: 'Рекомендуется'; position: absolute; top: -10px; right: 12px;
        background: var(--avrp-primary); color: #fff; font-size: 10px; font-weight: 700;
        padding: 4px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .05em;
        box-shadow: 0 4px 12px var(--avrp-primary-glow);
    }
    .avrp-platform-icon { font-size: 28px; margin-bottom: 12px; display: block; }
    .avrp-platform-name { font-family: var(--avrp-font-display); font-weight: 600; font-size: 16px; color: #fff; display: block; margin-bottom: 4px; }
    .avrp-platform-desc { font-size: 12px; color: var(--avrp-text-muted); }
    .avrp-dl-btn {
        width: 100%; padding: 18px; border-radius: 16px; font-weight: 700; font-size: 16px;
        display: flex; align-items: center; justify-content: center; gap: 10px;
        transition: .3s; color: #fff; border: none; cursor: pointer;
        position: relative; overflow: hidden; font-family: inherit;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
    }
    .avrp-dl-btn::before {
        content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent); transition: .5s;
    }
    .avrp-dl-btn:hover::before { left: 100%; }
    .avrp-dl-btn-android { background: linear-gradient(135deg,#10b981,#059669); box-shadow: 0 8px 24px rgba(16,185,129,.3), inset 0 1px 0 rgba(255,255,255,0.2); }
    .avrp-dl-btn-pc { background: linear-gradient(135deg,#3b82f6,#2563eb); box-shadow: 0 8px 24px rgba(59,130,246,.3), inset 0 1px 0 rgba(255,255,255,0.2); }
    .avrp-dl-btn-secondary { background: rgba(255,255,255,.08); color: var(--avrp-text-primary); border: 1px solid rgba(255,255,255,.1); }
    .avrp-dl-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
    .avrp-dl-btn + .avrp-dl-btn { margin-top: 12px; }
    .avrp-dl-btn:focus-visible { outline: 2px solid var(--avrp-accent); outline-offset: 2px; }

    .avrp-toast {
        position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
        background: rgba(15,23,42,.95); border: 1px solid var(--avrp-glass-border); color: #fff;
        padding: 16px 28px; border-radius: 100px; font-size: 14px; font-weight: 600;
        display: flex; align-items: center; gap: 10px; z-index: var(--avrp-z-toast);
        opacity: 0; pointer-events: none; transition: all .5s cubic-bezier(.175,.885,.32,1.275);
        box-shadow: 0 20px 40px rgba(0,0,0,.5); backdrop-filter: blur(20px); font-family: var(--avrp-font-body);
    }
    .avrp-toast.avrp-toast-show { transform: translateX(-50%) translateY(0); opacity: 1; }

    .avrp-reveal { opacity: 0; transform: translateY(40px); transition: all .8s cubic-bezier(.2,.8,.2,1); }
    .avrp-reveal.avrp-visible { opacity: 1; transform: translateY(0); }

    /* ---------- Responsive ---------- */
    @media (max-width: 1100px) {
        .avrp-step-row { gap: 40px; padding-left: 60px; }
        .avrp-chip-download { left: 14px; top: 18px; }
        .avrp-chip-verified { right: 14px; bottom: 80px; }
    }
    @media (max-width: 968px) {
        .avrp-nav-menu { display: none; }
        .avrp-hero-stats { grid-template-columns: 1fr; max-width: 400px; }
        .avrp-footer-grid { grid-template-columns: 1fr 1fr; }
        .avrp-journey-rail, .avrp-step-node { display: none; }
        .avrp-step-row,
        .avrp-step-row:nth-of-type(even) {
            grid-template-columns: 1fr; gap: 36px; padding-left: 0; margin-bottom: 90px;
        }
        .avrp-step-row:nth-of-type(even) .avrp-step-visual { order: 0; }
        .avrp-step-row:nth-of-type(even) .avrp-step-content { order: 1; }
        .avrp-step-content { max-width: 600px; }
        .avrp-step-ghost { font-size: 120px; bottom: -40px; }
        .avrp-how-header { margin-bottom: 70px; }
        .avrp-how-bottom { padding: 28px; }
    }
    @media (max-width: 640px) {
        .avrp-section { padding: 80px 0; }
        .avrp-hero-title { font-size: 40px; }
        .avrp-footer-grid { grid-template-columns: 1fr; gap: 32px; }
        .avrp-download-cta { padding: 60px 24px; }
        .avrp-dl-modal-content { padding: 32px 24px; border-radius: 24px; }
        .avrp-btn-group { flex-direction: column; width: 100%; }
        .avrp-btn { width: 100%; justify-content: center; }
        .avrp-platform-grid { grid-template-columns: 1fr; }
        .avrp-step-frame { aspect-ratio: 4 / 3; border-radius: 22px; }
        .avrp-step-ghost { font-size: 90px; }
        .avrp-step-heading { font-size: 32px; }
        .avrp-chip-download { left: 12px; top: 14px; padding: 10px 12px; gap: 9px; }
        .avrp-chip-icon { width: 34px; height: 34px; }
        .avrp-chip-text strong { font-size: 11px; }
        .avrp-chip-text span { font-size: 10px; }
        .avrp-chip-badge { display: none; }
        .avrp-chip-verified { right: 12px; bottom: 78px; font-size: 10px; padding: 8px 12px; }
        .avrp-chip-player { left: 12px; top: 14px; }
        .avrp-chip-online { right: 12px; top: 14px; font-size: 10px; padding: 7px 10px; }
        .avrp-chip-voice { right: 12px; bottom: 76px; padding: 10px 12px; }
        .avrp-voice-label { font-size: 10px; }
        .avrp-chip-location { left: 12px; bottom: 76px; font-size: 10px; }
        .avrp-chip-install { width: 230px; padding: 16px; }
        .avrp-chip-permission { left: 12px; bottom: 16px; font-size: 10px; }
        .avrp-how-bottom { flex-direction: column; align-items: flex-start; }
    }
    @media (prefers-reduced-motion: reduce) {
        .avrp-orb, .avrp-particle, .avrp-float-chip, .avrp-frame-media img,
        .avrp-frame-scan, .avrp-waveform span, .avrp-play-ring { animation: none !important; }
        .avrp-reveal { opacity: 1; transform: none; }
    }
//========================================навигация
   
//=================================донат

        /* --- Стили для выбора кассы (Стиль "Ссылки-Плитки") --- */
        .av_donate_payment_methods {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 25px;
            justify-content: space-between;
        }

        .av_donate_method_link {
            flex: 1 1 calc(33.333% - 6px); /* 3 в ряд */
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            user-select: none;
        }

        @media (max-width: 500px) {
            .av_donate_method_link {
                flex: 1 1 calc(50% - 4px); /* 2 в ряд на мобильных */
            }
        }

        .av_donate_method_link:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.3);
        }

        /* Активное состояние (выбранная касса) */
        .av_donate_method_link.selected {
            background: rgba(139, 92, 246, 0.1); /* Фиолетовый фон */
            border-color: #8b5cf6;
            box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
        }

        .av_donate_method_content {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-muted);
            font-size: 13px;
            font-weight: 500;
        }

        .av_donate_method_link.selected .av_donate_method_content {
            color: #fff;
        }

        .av_donate_method_icon_img {
            width: 20px;
            height: 20px;
            object-fit: contain;
        }

        /* Галочка внутри выбранной плитки */
        .av_donate_check_mark {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #8b5cf6;
            border-radius: 50%;
            width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transform: scale(0.5);
            transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .av_donate_method_link.selected .av_donate_check_mark {
            opacity: 1;
            transform: scale(1);
        }

        .av_donate_check_mark svg {
            width: 10px;
            height: 10px;
            stroke: #fff;
            stroke-width: 3;
        }

        /* Фоновые эффекты (как на главной) */
        .global-bg-grid {
            position: fixed;
            inset: 0;
            background-image: 
                linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
            pointer-events: none;
            z-index: 0;
        }

        .aurora-blob {
            position: fixed;
            border-radius: 50%;
            filter: blur(100px);
            opacity: 0.3;
            z-index: -1;
            animation: floatBlob 25s infinite alternate;
        }
        .blob-1 { width: 600px; height: 600px; background: #8b5cf6; top: -100px; left: -100px; }
        .blob-2 { width: 500px; height: 500px; background: #3b82f6; bottom: -100px; right: -100px; animation-delay: -8s; }
        .blob-3 { width: 400px; height: 400px; background: #ec4899; top: 40%; left: 40%; opacity: 0.2; animation-delay: -15s; }

        @keyframes floatBlob {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(50px, 80px) scale(1.2); }
        }

        .av_donate_page {
            position: relative;
            z-index: 1;
            padding: 40px 0 80px;
        }

        .av_donate_container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* ============================================
           HERO СЕКЦИЯ (Glassmorphism)
           ============================================ */
        .av_donate_hero {
            position: relative;
            background: var(--bg-card);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 32px;
            padding: 80px 60px;
            overflow: hidden;
            margin-bottom: 80px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }

        /* Декоративная линия сверху */
        .av_donate_hero::after {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 200px;
            height: 2px;
            background: var(--primary-gradient);
            box-shadow: 0 0 15px #8b5cf6;
        }

        .av_donate_hero_content {
            position: relative;
            z-index: 2;
            max-width: 640px;
        }

        .av_donate_hero_badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(139, 92, 246, 0.15);
            border: 1px solid rgba(139, 92, 246, 0.3);
            padding: 8px 16px;
            border-radius: 100px;
            font-size: 13px;
            font-weight: 600;
            color: #a78bfa;
            margin-bottom: 24px;
            letter-spacing: 0.3px;
            backdrop-filter: blur(5px);
        }

        .av_donate_hero_title {
            font-size: clamp(36px, 5vw, 56px);
            font-weight: 800;
            line-height: 1.1;
            letter-spacing: -1.5px;
            margin-bottom: 20px;
            color: #fff;
            text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
        }

        .av_donate_hero_title span {
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .av_donate_hero_subtitle {
            font-size: 18px;
            line-height: 1.6;
            color: var(--text-muted);
            margin-bottom: 40px;
            max-width: 520px;
        }

        .av_donate_btn_primary {
            background: var(--primary-gradient);
            color: #fff;
            border: none;
            padding: 18px 36px;
            border-radius: 14px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.5);
            display: inline-flex;
            align-items: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
        }

        .av_donate_btn_primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.7);
        }

        .av_donate_btn_ghost {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--glass-border);
            color: #fff;
            padding: 18px 32px;
            border-radius: 14px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            backdrop-filter: blur(5px);
        }

        .av_donate_btn_ghost:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(139, 92, 246, 0.5);
            color: #fff;
        }

        .av_donate_hero_stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
            margin-top: 60px;
            max-width: 560px;
        }

        .av_donate_stat_item {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--glass-border);
            padding: 20px;
            border-radius: 16px;
            backdrop-filter: blur(5px);
        }

        .av_donate_stat_value {
            font-size: 28px;
            font-weight: 800;
            margin-bottom: 4px;
            color: #fff;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

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

        /* Плавающая монета (адаптирована под темную тему) */
        .av_donate_floating_coin {
            position: absolute;
            right: 60px;
            top: 50%;
            transform: translateY(-50%);
            width: 280px;
            height: 280px;
            z-index: 2;
            animation: av_donate_float 6s ease-in-out infinite;
            filter: drop-shadow(0 0 40px rgba(251, 191, 36, 0.2));
        }

        @keyframes av_donate_float {
            0%, 100% { transform: translateY(-50%) rotate(-5deg); }
            50% { transform: translateY(-60%) rotate(5deg); }
        }

        .av_donate_coin_body {
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 30% 30%, #fcd34d, #d97706);
            border-radius: 50%;
            box-shadow: 
                inset -10px -10px 20px rgba(0, 0, 0, 0.5),
                inset 10px 10px 20px rgba(255, 255, 255, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            border: 4px solid rgba(255, 255, 255, 0.1);
        }

        .av_donate_coin_body::before {
            content: '$';
            font-size: 120px;
            font-weight: 900;
            color: rgba(255, 255, 255, 0.9);
            font-family: serif;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        /* ============================================
           ПРЕИМУЩЕСТВА & ШАГИ
           ============================================ */
        .av_donate_section_title {
            text-align: center;
            margin-bottom: 60px;
        }

        .av_donate_section_eyebrow {
            display: inline-block;
            font-size: 13px;
            font-weight: 700;
            color: #a78bfa;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 12px;
            background: rgba(139, 92, 246, 0.1);
            border: 1px solid rgba(139, 92, 246, 0.2);
            padding: 6px 12px;
            border-radius: 100px;
        }

        .av_donate_section_heading {
            font-size: clamp(28px, 4vw, 40px);
            font-weight: 800;
            color: #fff;
            letter-spacing: -1px;
            line-height: 1.2;
        }

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

        .av_donate_feature_card {
            background: var(--bg-card);
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            padding: 36px 32px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
        }

        .av_donate_feature_card:hover {
            transform: translateY(-8px);
            border-color: rgba(139, 92, 246, 0.4);
            box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
        }

        .av_donate_feature_icon {
            width: 56px;
            height: 56px;
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            margin-bottom: 20px;
            border: 1px solid var(--glass-border);
        }

        .av_donate_feature_title {
            font-size: 20px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 12px;
        }

        .av_donate_feature_desc {
            font-size: 15px;
            line-height: 1.6;
            color: var(--text-muted);
        }

        .av_donate_steps {
            background: var(--bg-card);
            border: 1px solid var(--glass-border);
            border-radius: 32px;
            padding: 80px 60px;
            margin-bottom: 80px;
            backdrop-filter: blur(10px);
        }

        .av_donate_step_number {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid #8b5cf6;
            color: #8b5cf6;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: 800;
            margin: 0 auto 20px;
            transition: all 0.3s;
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
        }

        .av_donate_step:hover .av_donate_step_number {
            background: #8b5cf6;
            color: #fff;
            transform: scale(1.1);
            box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
        }

        .av_donate_step_title {
            font-size: 18px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 8px;
        }

        .av_donate_step_desc {
            font-size: 14px;
            color: var(--text-muted);
        }

        .av_donate_cta {
            background: var(--bg-card);
            border: 1px solid var(--glass-border);
            border-radius: 32px;
            padding: 60px;
            text-align: center;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
        }

        .av_donate_cta_title {
            font-size: clamp(24px, 3vw, 32px);
            font-weight: 800;
            margin-bottom: 12px;
            color: #fff;
        }

        /* ============================================
           МОДАЛЬНОЕ ОКНО (Dark Glass Style)
           ============================================ */
        .av_donate_modal_overlay {
            position: fixed;
            inset: 0;
            background: rgba(2, 6, 23, 0.85);
            backdrop-filter: blur(12px);
            z-index: 99999;
            display: none;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            padding: 20px;
        }

        .av_donate_modal_overlay.av_donate_active {
            display: flex;
            opacity: 1;
        }

        .av_donate_modal {
            background: #0f172a;
            width: 100%;
            max-width: 440px;
            border-radius: 24px;
            padding: 40px;
            position: relative;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            transform: translateY(20px);
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .av_donate_modal_overlay.av_donate_active .av_donate_modal {
            transform: translateY(0);
        }

        .av_donate_close_btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
            color: #fff;
        }

        .av_donate_close_btn:hover {
            background: rgba(239, 68, 68, 0.5);
        }

        .av_donate_header {
            text-align: center;
            margin-bottom: 30px;
        }

        .av_donate_title {
            font-size: 24px;
            font-weight: 800;
            color: #fff;
            margin: 15px 0 0;
        }

        /* Кастомный селект */
        .av_donate_select_wrapper {
            position: relative;
            margin-bottom: 20px;
        }

        .av_donate_select_trigger {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            padding: 14px 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: all 0.2s;
            color: #fff;
        }

        .av_donate_select_trigger:hover {
            border-color: #8b5cf6;
            background: rgba(139, 92, 246, 0.1);
        }

        .av_donate_select_placeholder {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--text-muted);
            font-size: 15px;
        }
        
        .av_donate_select_placeholder img {
            border-radius: 4px;
        }

        .av_donate_select_arrow {
            width: 10px;
            height: 10px;
            border-right: 2px solid #94a3b8;
            border-bottom: 2px solid #94a3b8;
            transform: rotate(45deg);
            margin-top: -3px;
            transition: transform 0.3s;
        }

        .av_donate_select_trigger.av_donate_open .av_donate_select_arrow {
            transform: rotate(-135deg);
        }

        .av_donate_select_options {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: #1e293b;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            margin-top: 8px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.5);
            z-index: 10;
            display: none;
            max-height: 220px;
            overflow-y: auto;
        }

        .av_donate_select_options::-webkit-scrollbar {
            width: 6px;
        }
        .av_donate_select_options::-webkit-scrollbar-thumb {
            background: #475569;
            border-radius: 3px;
        }
        .av_donate_select_options.av_donate_show {
            display: block;
            animation: fadeIn 0.2s ease;
        }

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

        .av_donate_select_option {
            padding: 12px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            transition: background 0.2s;
            color: #cbd5e1;
        }

        .av_donate_select_option:hover {
            background: rgba(139, 92, 246, 0.2);
            color: #fff;
        }

        .av_donate_input_group {
            position: relative;
            margin-bottom: 20px;
        }

        .av_donate_input_element {
            width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            padding: 16px 16px 16px 48px;
            font-size: 16px;
            outline: none;
            transition: all 0.2s;
            box-sizing: border-box;
            color: #fff;
        }

        .av_donate_input_element:focus {
            background: rgba(255, 255, 255, 0.08);
            border-color: #8b5cf6;
            box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
        }

        .av_donate_input_element::placeholder {
            color: #64748b;
        }

        .av_donate_input_icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0.5;
            pointer-events: none;
            stroke: #fff;
        }

        .av_donate_submit_btn {
            width: 100%;
            background: var(--primary-gradient);
            color: #fff;
            border: none;
            border-radius: 14px;
            padding: 16px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            margin-top: 10px;
            box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
        }

        .av_donate_submit_btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.6);
        }

        .av_donate_hidden_input { display: none; }
        .av_donate_body_lock { overflow: hidden; }

        /* Адаптив */
        @media (max-width: 900px) {
            .av_donate_hero { padding: 50px 30px; }
            .av_donate_floating_coin {
                position: static;
                transform: none;
                margin: 40px auto 0;
                width: 180px;
                height: 180px;
            }
            .av_donate_coin_body::before { font-size: 80px; }
            .av_donate_hero_stats { grid-template-columns: 1fr; gap: 12px; }
            .av_donate_steps { padding: 50px 30px; }
        }

        @media (max-width: 600px) {
            .av_donate_hero_actions { flex-direction: column; }
            .av_donate_btn_primary, .av_donate_btn_ghost { width: 100%; justify-content: center; }
        }
/* ============================================
   WRAPPER — магнитная зона
   ============================================ */
.play-btn-wrap {
    display: inline-block;
    padding: 40px; /* зона «притяжения» курсора */
    perspective: 800px;
}
 /* =========================================
   CSS ДЛЯ ФУТЕРА И COOKIE BANNER
   ========================================= */

/* --- Футер --- */
/* =========================================
   COSMIC AURORA FOOTER
   ========================================= */
.wiki_footer {
    position: relative;
    padding: 100px 24px 40px;
    background: #05060f;
    overflow: hidden;
    z-index: 10;
    margin-top: auto;
    isolation: isolate;
}

/* === Звёздное небо (3 слоя для параллакса) === */
.wiki_footer__stars,
.wiki_footer__stars::before,
.wiki_footer__stars::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.wiki_footer__stars {
    background-image:
        radial-gradient(1px 1px at 20px 30px, #fff, transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 130px 80px, rgba(167,139,250,0.9), transparent),
        radial-gradient(1px 1px at 160px 120px, #fff, transparent),
        radial-gradient(1px 1px at 200px 50px, rgba(236,72,153,0.7), transparent),
        radial-gradient(1px 1px at 240px 90px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 280px 30px, rgba(139,92,246,0.9), transparent);
    background-size: 300px 150px;
    background-repeat: repeat;
    opacity: 0.6;
    animation: starsMove 120s linear infinite;
}

.wiki_footer__stars::before {
    background-image:
        radial-gradient(1px 1px at 50px 100px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 150px 50px, rgba(196,181,253,0.8), transparent),
        radial-gradient(1px 1px at 250px 120px, #fff, transparent);
    background-size: 400px 200px;
    opacity: 0.4;
    animation: starsMove 80s linear infinite reverse;
}

.wiki_footer__stars::after {
    background-image:
        radial-gradient(2px 2px at 100px 60px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 300px 140px, rgba(139,92,246,0.8), transparent);
    background-size: 500px 250px;
    opacity: 0.5;
    animation: starsTwinkle 4s ease-in-out infinite;
}

@keyframes starsMove {
    from { background-position: 0 0; }
    to   { background-position: 300px 150px; }
}

@keyframes starsTwinkle {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 0.7; }
}

/* === Aurora (северное сияние) === */
.wiki_footer__aurora {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.wiki_footer__aurora::before,
.wiki_footer__aurora::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 60%;
    left: -10%;
    filter: blur(80px);
    opacity: 0.5;
    mix-blend-mode: screen;
}

.wiki_footer__aurora::before {
    top: -20%;
    background: linear-gradient(
        135deg,
        transparent 20%,
        rgba(139, 92, 246, 0.4) 40%,
        rgba(236, 72, 153, 0.3) 60%,
        transparent 80%
    );
    animation: auroraFlow 15s ease-in-out infinite;
}

.wiki_footer__aurora::after {
    bottom: -30%;
    background: linear-gradient(
        45deg,
        transparent 20%,
        rgba(59, 130, 246, 0.3) 40%,
        rgba(139, 92, 246, 0.35) 60%,
        transparent 80%
    );
    animation: auroraFlow 20s ease-in-out infinite reverse;
}

@keyframes auroraFlow {
    0%, 100% { transform: translateX(-10%) rotate(-3deg) scale(1); }
    50%      { transform: translateX(10%) rotate(3deg) scale(1.1); }
}

/* === Верхняя светящаяся линия === */
.wiki_footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #3b82f6 20%,
        #8b5cf6 40%,
        #ec4899 60%,
        #8b5cf6 80%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: lineFlow 6s linear infinite;
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.6),
        0 0 40px rgba(236, 72, 153, 0.3);
    z-index: 2;
}

@keyframes lineFlow {
    from { background-position: 0% 0; }
    to   { background-position: 200% 0; }
}

/* === Контейнер === */
.wiki_footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

/* === Бренд с вращающимся conic-бордером === */
.wiki_footer__brand {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wiki_footer__brand:hover { transform: translateY(-4px); }

.wiki_footer__logo-wrap {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a1a, #1a1a2e);
    border-radius: 16px;
    isolation: isolate;
    transition: transform 0.5s ease;
}

/* Вращающийся rainbow-бордер */
.wiki_footer__logo-wrap::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(
        from 0deg,
        #3b82f6, #8b5cf6, #ec4899, #f59e0b, #10b981, #3b82f6
    );
    animation: rotateBorder 4s linear infinite;
    z-index: -1;
}

/* Внутренний фон, перекрывающий градиент */
.wiki_footer__logo-wrap::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: 13px;
    background: linear-gradient(135deg, #0a0a1a, #1a1a2e);
    z-index: -1;
}

@keyframes rotateBorder {
    to { transform: rotate(360deg); }
}

.wiki_footer__brand:hover .wiki_footer__logo-wrap {
    transform: scale(1.05) rotate(-5deg);
}

.wiki_footer__logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
}

.wiki_footer__text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

/* Анимированный градиентный текст */
.wiki_footer__name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(
        90deg,
        #fff 0%,
        #a78bfa 25%,
        #f472b6 50%,
        #a78bfa 75%,
        #fff 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 5s linear infinite;
}

@keyframes textShine {
    to { background-position: 200% 0; }
}

.wiki_footer__copy {
    font-size: 13px;
    color: rgba(148, 163, 184, 0.7);
    font-weight: 400;
    margin-top: 4px;
    letter-spacing: 0.02em;
}

/* === Ссылки — Bento Grid === */
.wiki_footer__links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.wiki_footer__link {
    position: relative;
    color: rgba(226, 232, 240, 0.85);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.2;
    isolation: isolate;
}

/* Glow-эффект при hover */
.wiki_footer__link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(139, 92, 246, 0.25) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

/* Стрелка-индикатор */
.wiki_footer__link::after {
    content: '→';
    display: inline-block;
    margin-left: 8px;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
    color: #a78bfa;
}

.wiki_footer__link:hover {
    color: #fff;
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(139, 92, 246, 0.2),
        0 0 30px rgba(139, 92, 246, 0.15);
}

.wiki_footer__link:hover::before { opacity: 1; }
.wiki_footer__link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* === Нижняя строка === */
.wiki_footer__bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    color: rgba(148, 163, 184, 0.6);
    position: relative;
    z-index: 2;
}

.wiki_footer__socials {
    display: flex;
    gap: 10px;
}

.wiki_footer__social {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.wiki_footer__social:hover {
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(236,72,153,0.2));
    border-color: rgba(139, 92, 246, 0.4);
    color: #fff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.wiki_footer__bottom a {
    color: rgba(148, 163, 184, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.wiki_footer__bottom a:hover { color: #fff; }

/* =========================================
   COOKIE BANNER — NEON GLASS
   ========================================= */
.av_cookie_banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 420px;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 26, 0.95),
        rgba(26, 26, 46, 0.9)
    );
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 22px;
    padding: 22px;
    z-index: 100000;
    isolation: isolate;
    
    display: flex;
    flex-direction: column;
    gap: 16px;
    
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

/* Вращающийся conic-бордер */
.av_cookie_banner::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--angle, 0deg),
        rgba(139, 92, 246, 0.8),
        rgba(236, 72, 153, 0.6),
        rgba(59, 130, 246, 0.6),
        rgba(139, 92, 246, 0.8)
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateBorder 6s linear infinite;
    z-index: -1;
}

/* Glow под баннером */
.av_cookie_banner::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(
        circle at 50% 100%,
        rgba(139, 92, 246, 0.3) 0%,
        transparent 60%
    );
    filter: blur(30px);
    z-index: -2;
    pointer-events: none;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotateBorder {
    to { --angle: 360deg; }
}

/* Fallback для браузеров без @property */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .av_cookie_banner::before {
        background: linear-gradient(135deg, rgba(139,92,246,0.6), rgba(236,72,153,0.4));
    }
}

.av_cookie_banner.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.av_cookie_banner.hidden { display: none; }

.av_cookie_content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.av_cookie_icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.6));
    animation: cookieFloat 3s ease-in-out infinite;
}

@keyframes cookieFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-4px) rotate(-8deg); }
}

.av_cookie_text strong {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    background: linear-gradient(90deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.av_cookie_text p {
    margin: 0;
    font-size: 13px;
    color: rgba(226, 232, 240, 0.7);
    line-height: 1.55;
}

.av_cookie_text a {
    color: #a78bfa;
    text-decoration: none;
    border-bottom: 1px dashed rgba(167, 139, 250, 0.4);
    transition: all 0.2s;
}
.av_cookie_text a:hover {
    color: #c4b5fd;
    border-bottom-color: #c4b5fd;
}

.av_cookie_actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.av_cookie_btn {
    padding: 11px 22px;
    border-radius: 12px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.av_cookie_btn.decline {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.av_cookie_btn.decline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
}

.av_cookie_btn.accept {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    box-shadow:
        0 6px 20px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.av_cookie_btn.accept::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}
.av_cookie_btn.accept:hover::before { left: 100%; }

.av_cookie_btn.accept:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 30px rgba(139, 92, 246, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 768px) {
    .wiki_footer { padding: 70px 20px 30px; }
    .wiki_footer__container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .wiki_footer__brand { flex-direction: column; gap: 16px; }
    .wiki_footer__text { align-items: center; }
    
    .wiki_footer__links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 380px;
        justify-items: stretch;
    }
    
    .wiki_footer__link {
        width: 100%;
        text-align: center;
        padding: 14px 12px;
        font-size: 13px;
        white-space: normal;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .wiki_footer__link::after { display: none; }
    .wiki_footer__link:last-child:nth-child(odd) { grid-column: span 2; }
    
    .wiki_footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .av_cookie_banner {
        bottom: 16px;
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

@media (max-width: 360px) {
    .wiki_footer__links { grid-template-columns: 1fr; }
    .wiki_footer__link:last-child:nth-child(odd) { grid-column: span 1; }
}

/* Уважение к пользователям с reduced motion */
@media (prefers-reduced-motion: reduce) {
    .wiki_footer__stars,
    .wiki_footer__stars::before,
    .wiki_footer__stars::after,
    .wiki_footer__aurora::before,
    .wiki_footer__aurora::after,
    .wiki_footer__logo-wrap::before,
    .av_cookie_banner::before,
    .av_cookie_icon {
        animation: none !important;
    }
    .wiki_footer__name { animation: none; }
}

/* Чат-виджет */
#jaklcp-chat-container { z-index: 9999 !important; }
@media (max-width: 768px) {
    #jaklcp-chat-container > div,
    #jaklcp-chat-container iframe {
        bottom: 20px !important;
        right: 15px !important;
        max-width: calc(100vw - 30px) !important;
    }
}
//===============
 /* Зернистый оверлей */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
            opacity: 0.04;
            pointer-events: none;
            z-index: 1000;
            mix-blend-mode: overlay;
        }

        /* Анимированный mesh-gradient фон */
        .newforile_wiki-bg-mesh {
            position: fixed;
            inset: 0;
            z-index: -2;
            overflow: hidden;
        }

        .newforile_wiki-mesh-blob {
            position: absolute;
            border-radius: 50%;
            filter: blur(120px);
            opacity: 0.5;
            mix-blend-mode: screen;
            animation: newforile_wiki-drift 25s infinite ease-in-out alternate;
        }

        .newforile_wiki-mesh-blob.a {
            width: 600px; height: 600px;
            background: radial-gradient(circle, var(--newforile_wiki-cyan) 0%, transparent 70%);
            top: -15%; left: -10%;
        }
        .newforile_wiki-mesh-blob.b {
            width: 700px; height: 700px;
            background: radial-gradient(circle, var(--newforile_wiki-magenta) 0%, transparent 70%);
            bottom: -20%; right: -15%;
            animation-delay: -8s;
        }
        .newforile_wiki-mesh-blob.c {
            width: 500px; height: 500px;
            background: radial-gradient(circle, var(--newforile_wiki-violet) 0%, transparent 70%);
            top: 40%; left: 50%;
            animation-delay: -15s;
            opacity: 0.3;
        }

        @keyframes newforile_wiki-drift {
            0%   { transform: translate(0, 0) scale(1); }
            50%  { transform: translate(60px, -40px) scale(1.1); }
            100% { transform: translate(-40px, 60px) scale(0.95); }
        }

        /* Сетка на фоне */
        .newforile_wiki-grid-overlay {
            position: fixed;
            inset: 0;
            z-index: -1;
            background-image: 
                linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
            background-size: 60px 60px;
            mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
            -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
        }

        /* Контейнер страницы */
        .newforile_wiki-page {
            position: relative;
            z-index: 2;
            padding: 130px 20px 80px;
            max-width: 1280px;
            margin: 0 auto;
        }

        /* =========================================
           HERO-СЕКЦИЯ С ПРОФИЛЕМ
           ========================================= */
        .newforile_wiki-hero {
            position: relative;
            background: linear-gradient(135deg, rgba(18, 10, 36, 0.85) 0%, rgba(26, 15, 51, 0.7) 100%);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border: 1px solid var(--newforile_wiki-glass-border);
            border-radius: var(--newforile_wiki-radius-lg);
            padding: 40px;
            margin-bottom: 24px;
            overflow: hidden;
            box-shadow: 
                0 25px 60px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .newforile_wiki-hero::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                var(--newforile_wiki-cyan) 20%, 
                var(--newforile_wiki-magenta) 50%,
                var(--newforile_wiki-violet) 80%, 
                transparent 100%);
            opacity: 0.8;
        }

        .newforile_wiki-hero::after {
            content: '';
            position: absolute;
            inset: 0;
            background: 
                radial-gradient(circle at 10% 10%, rgba(0, 240, 255, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 90%, rgba(255, 0, 170, 0.08) 0%, transparent 40%);
            pointer-events: none;
        }

        .newforile_wiki-hero-inner {
            display: flex;
            align-items: center;
            gap: 40px;
            flex-wrap: wrap;
            position: relative;
            z-index: 2;
        }

        /* 3D-аватар */
        .newforile_wiki-avatar-shell {
            position: relative;
            width: 140px;
            height: 140px;
            flex-shrink: 0;
        }

        .newforile_wiki-avatar-ring {
            position: absolute;
            inset: -8px;
            border-radius: 50%;
            background: conic-gradient(
                from 0deg,
                var(--newforile_wiki-cyan),
                var(--newforile_wiki-magenta),
                var(--newforile_wiki-violet),
                var(--newforile_wiki-lime),
                var(--newforile_wiki-cyan)
            );
            animation: newforile_wiki-spin 8s linear infinite;
            filter: blur(2px);
            opacity: 0.9;
        }

        .newforile_wiki-avatar-ring::before {
            content: '';
            position: absolute;
            inset: 4px;
            border-radius: 50%;
            background: var(--newforile_wiki-bg-1);
        }

        @keyframes newforile_wiki-spin {
            to { transform: rotate(360deg); }
        }

        .newforile_wiki-avatar {
            position: relative;
            width: 140px;
            height: 140px;
            border-radius: 50%;
            background: 
                radial-gradient(circle at 30% 30%, #3b2d6e 0%, var(--newforile_wiki-bg-2) 70%);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 
                inset 0 4px 20px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(0, 240, 255, 0.2);
            z-index: 2;
        }

        .newforile_wiki-avatar svg {
            width: 72px;
            height: 72px;
            color: var(--newforile_wiki-cyan);
            filter: drop-shadow(0 0 8px var(--newforile_wiki-cyan));
        }

        .newforile_wiki-status-dot {
            position: absolute;
            bottom: 10px;
            right: 10px;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: var(--newforile_wiki-success);
            border: 4px solid var(--newforile_wiki-bg-1);
            box-shadow: 0 0 20px var(--newforile_wiki-success);
            z-index: 3;
            animation: newforile_wiki-pulse 2s infinite;
        }

        @keyframes newforile_wiki-pulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(16, 255, 170, 0.6); }
            50% { box-shadow: 0 0 0 10px rgba(16, 255, 170, 0); }
        }

        /* Информация */
        .newforile_wiki-info {
            flex: 1;
            min-width: 280px;
        }

        .newforile_wiki-tag-row {
            display: flex;
            gap: 10px;
            margin-bottom: 12px;
            flex-wrap: wrap;
            align-items: center;
        }

        .newforile_wiki-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 14px;
            background: rgba(0, 240, 255, 0.08);
            border: 1px solid rgba(0, 240, 255, 0.25);
            border-radius: 100px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            font-weight: 500;
            color: var(--newforile_wiki-cyan);
            letter-spacing: 1.5px;
            text-transform: uppercase;
        }

        .newforile_wiki-tag.vip {
            background: rgba(255, 0, 170, 0.08);
            border-color: rgba(255, 0, 170, 0.3);
            color: var(--newforile_wiki-magenta);
        }

        .newforile_wiki-name {
            margin: 0 0 12px;
            font-size: 56px;
            font-weight: 700;
            letter-spacing: -0.03em;
            line-height: 1;
            background: linear-gradient(135deg, #ffffff 0%, #b8a8ff 60%, var(--newforile_wiki-cyan) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
        }

        .newforile_wiki-verify {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            border-radius: var(--newforile_wiki-radius-sm);
            font-size: 13px;
            font-weight: 500;
            font-family: 'JetBrains Mono', monospace;
        }

        .newforile_wiki-verify.is-yes {
            background: rgba(16, 255, 170, 0.08);
            border: 1px solid rgba(16, 255, 170, 0.25);
            color: var(--newforile_wiki-success);
        }

        .newforile_wiki-verify.is-no {
            background: rgba(255, 61, 127, 0.08);
            border: 1px solid rgba(255, 61, 127, 0.25);
            color: var(--newforile_wiki-danger);
        }

        .newforile_wiki-verify svg { width: 16px; height: 16px; }

        /* =========================================
           BENTO GRID — СЕТКА СТАТИСТИКИ
           ========================================= */
        .newforile_wiki-bento {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            gap: 16px;
            margin-bottom: 24px;
        }

        .newforile_wiki-tile {
            position: relative;
            background: var(--newforile_wiki-glass);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--newforile_wiki-glass-border);
            border-radius: var(--newforile_wiki-radius-md);
            padding: 24px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .newforile_wiki-tile:hover {
            transform: translateY(-4px);
            border-color: rgba(0, 240, 255, 0.3);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 240, 255, 0.1);
        }

        .newforile_wiki-tile::before {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 40px; height: 2px;
            background: var(--newforile_wiki-cyan);
            opacity: 0.6;
        }

        .newforile_wiki-tile-label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            font-weight: 500;
            color: var(--newforile_wiki-text-dim);
            letter-spacing: 1.5px;
            text-transform: uppercase;
            margin-bottom: 12px;
        }

        .newforile_wiki-tile-label .dot {
            width: 6px; height: 6px;
            border-radius: 50%;
            background: var(--newforile_wiki-cyan);
            box-shadow: 0 0 8px var(--newforile_wiki-cyan);
        }

        .newforile_wiki-tile-value {
            font-size: 18px;
            font-weight: 600;
            color: var(--newforile_wiki-text);
            word-break: break-all;
            font-family: 'JetBrains Mono', monospace;
        }

        .newforile_wiki-tile-value.mono { font-family: 'JetBrains Mono', monospace; }
        .newforile_wiki-tile-value.dim { color: var(--newforile_wiki-text-dim); font-style: italic; font-weight: 400; }

        /* Размеры плиток */
        .newforile_wiki-tile.email    { grid-column: span 5; }
        .newforile_wiki-tile.login    { grid-column: span 4; }
        .newforile_wiki-tile.rank     { grid-column: span 3; }
        .newforile_wiki-tile.level    { grid-column: span 6; }
        .newforile_wiki-tile.badges   { grid-column: span 6; }
        .newforile_wiki-tile.sessions { grid-column: span 12; }

        .newforile_wiki-tile.rank::before { background: var(--newforile_wiki-magenta); }
        .newforile_wiki-tile.rank .dot { background: var(--newforile_wiki-magenta); box-shadow: 0 0 8px var(--newforile_wiki-magenta); }

        .newforile_wiki-tile.level::before { background: var(--newforile_wiki-violet); }
        .newforile_wiki-tile.level .dot { background: var(--newforile_wiki-violet); box-shadow: 0 0 8px var(--newforile_wiki-violet); }

        .newforile_wiki-tile.badges::before { background: var(--newforile_wiki-lime); }
        .newforile_wiki-tile.badges .dot { background: var(--newforile_wiki-lime); box-shadow: 0 0 8px var(--newforile_wiki-lime); }
        
        .newforile_wiki-tile.sessions::before { background: var(--newforile_wiki-warning); }
        .newforile_wiki-tile.sessions .dot { background: var(--newforile_wiki-warning); box-shadow: 0 0 8px var(--newforile_wiki-warning); }

        /* Прогресс уровня */
        .newforile_wiki-progress {
            margin-top: 16px;
            height: 6px;
            background: rgba(255, 255, 255, 0.06);
            border-radius: 100px;
            overflow: hidden;
            position: relative;
        }

        .newforile_wiki-progress-fill {
            height: 100%;
            width: 0; 
            background: linear-gradient(90deg, var(--newforile_wiki-violet), var(--newforile_wiki-cyan));
            border-radius: 100px;
            box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
            position: relative;
            animation: newforile_wiki-fill 1.5s ease-out forwards;
        }

        @keyframes newforile_wiki-fill {
            from { width: 0; }
            to { width: var(--progress-width, 0%); }
        }

        .newforile_wiki-progress-meta {
            display: flex;
            justify-content: space-between;
            margin-top: 8px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            color: var(--newforile_wiki-text-dim);
        }

        /* Значки достижений */
        .newforile_wiki-badges-list {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 8px;
        }

        .newforile_wiki-badge {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            background: linear-gradient(135deg, rgba(196, 255, 61, 0.1), rgba(139, 92, 246, 0.1));
            border: 1px solid rgba(196, 255, 61, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
        }

        .newforile_wiki-badge:hover {
            transform: scale(1.15) rotate(8deg);
            box-shadow: 0 0 20px rgba(196, 255, 61, 0.4);
        }

        .newforile_wiki-badge.locked {
            opacity: 0.3;
            filter: grayscale(1);
        }

        /* =========================================
           СПИСОК СЕССИЙ (ОБНОВЛЕННЫЙ)
           ========================================= */
        .newforile_wiki-session-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-top: 10px;
        }

        /* Контейнер для скрытия/показа истории */
        .newforile_wiki-sessions-wrapper {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
        }

        .newforile_wiki-sessions-wrapper.active {
            max-height: 1000px; /* Достаточно большое значение */
            opacity: 1;
            margin-top: 10px;
        }

        /* Кнопка раскрытия истории */
        .newforile_wiki-toggle-history-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            margin-top: 16px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px dashed rgba(255, 255, 255, 0.1);
            border-radius: var(--newforile_wiki-radius-sm);
            color: var(--newforile_wiki-text-dim);
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .newforile_wiki-toggle-history-btn:hover {
            background: rgba(0, 240, 255, 0.05);
            border-color: var(--newforile_wiki-cyan);
            color: var(--newforile_wiki-cyan);
        }

        .newforile_wiki-toggle-history-btn svg {
            width: 14px;
            height: 14px;
            transition: transform 0.3s;
        }

        .newforile_wiki-toggle-history-btn.active svg {
            transform: rotate(180deg);
        }

        .newforile_wiki-session-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 18px;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: var(--newforile_wiki-radius-sm);
            transition: 0.2s;
        }

        .newforile_wiki-session-item:hover {
            border-color: rgba(0, 240, 255, 0.2);
            background: rgba(0, 0, 0, 0.3);
        }

        .newforile_wiki-session-main {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .newforile_wiki-session-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--newforile_wiki-text-dim);
        }
        
        .newforile_wiki-session-icon svg { width: 20px; height: 20px; }

        .newforile_wiki-session-details h4 {
            margin: 0;
            font-size: 14px;
            font-weight: 600;
            color: var(--newforile_wiki-text);
        }

        .newforile_wiki-session-details p {
            margin: 4px 0 0;
            font-size: 12px;
            color: var(--newforile_wiki-text-dim);
            font-family: 'JetBrains Mono', monospace;
        }

        .newforile_wiki-session-meta {
            text-align: right;
        }

        .newforile_wiki-session-time {
            font-size: 12px;
            color: var(--newforile_wiki-text-dim);
            font-family: 'JetBrains Mono', monospace;
            display: block;
            margin-bottom: 4px;
        }

        .newforile_wiki-session-badge {
            font-size: 10px;
            padding: 2px 8px;
            border-radius: 4px;
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        .newforile_wiki-session-badge.current {
            background: rgba(16, 255, 170, 0.1);
            color: var(--newforile_wiki-success);
            border: 1px solid rgba(16, 255, 170, 0.2);
        }

        .newforile_wiki-session-badge.old {
            background: rgba(255, 255, 255, 0.05);
            color: var(--newforile_wiki-text-dim);
        }

        /* =========================================
           ДЕЙСТВИЯ
           ========================================= */
        .newforile_wiki-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .newforile_wiki-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 14px 26px;
            border-radius: var(--newforile_wiki-radius-sm);
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: none;
            text-decoration: none;
            position: relative;
            overflow: hidden;
            white-space: nowrap;
            letter-spacing: 0.3px;
        }

        .newforile_wiki-btn svg { width: 18px; height: 18px; }

        .newforile_wiki-btn-primary {
            background: linear-gradient(135deg, var(--newforile_wiki-cyan), var(--newforile_wiki-violet));
            color: #0a0613;
            box-shadow: 
                0 4px 20px rgba(0, 240, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
        }
        .newforile_wiki-btn-primary::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, var(--newforile_wiki-magenta), var(--newforile_wiki-cyan));
            opacity: 0;
            transition: opacity 0.3s;
        }
        .newforile_wiki-btn-primary:hover::after { opacity: 1; }
        .newforile_wiki-btn-primary > * { position: relative; z-index: 2; }
        .newforile_wiki-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(255, 0, 170, 0.4);
        }

        .newforile_wiki-btn-ghost {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--newforile_wiki-text);
        }
        .newforile_wiki-btn-ghost:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: var(--newforile_wiki-cyan);
            color: var(--newforile_wiki-cyan);
        }

        .newforile_wiki-btn-warning {
            background: rgba(255, 181, 71, 0.08);
            border: 1px solid rgba(255, 181, 71, 0.3);
            color: var(--newforile_wiki-warning);
        }
        .newforile_wiki-btn-warning:hover { 
            background: rgba(255, 181, 71, 0.15);
            box-shadow: 0 0 20px rgba(255, 181, 71, 0.2);
        }

        .newforile_wiki-btn-danger {
            background: rgba(255, 61, 127, 0.08);
            border: 1px solid rgba(255, 61, 127, 0.3);
            color: var(--newforile_wiki-danger);
        }
        .newforile_wiki-btn-danger:hover { 
            background: rgba(255, 61, 127, 0.15);
            box-shadow: 0 0 20px rgba(255, 61, 127, 0.2);
        }

        .newforile_wiki-btn-admin {
            background: linear-gradient(135deg, #ff00aa, #8b5cf6);
            color: white;
            box-shadow: 0 4px 20px rgba(255, 0, 170, 0.3);
        }
        .newforile_wiki-btn-admin:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(255, 0, 170, 0.5);
        }

        /* =========================================
           АЛЕРТЫ
           ========================================= */
        .newforile_wiki-alert {
            padding: 18px 22px;
            border-radius: var(--newforile_wiki-radius-md);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 14px;
            font-size: 14px;
            font-weight: 500;
            backdrop-filter: blur(12px);
            border-left: 3px solid;
            animation: newforile_wiki-slideIn 0.4s ease-out;
        }

        @keyframes newforile_wiki-slideIn {
            from { opacity: 0; transform: translateX(-20px); }
            to   { opacity: 1; transform: translateX(0); }
        }

        .newforile_wiki-alert svg { width: 22px; height: 22px; flex-shrink: 0; }

        .newforile_wiki-alert-error {
            background: rgba(255, 61, 127, 0.08);
            border-color: var(--newforile_wiki-danger);
            color: #ffb8cf;
        }

        .newforile_wiki-alert-success {
            background: rgba(16, 255, 170, 0.08);
            border-color: var(--newforile_wiki-success);
            color: #a8ffd9;
        }

        /* =========================================
           МОДАЛЬНЫЕ ОКНА
           ========================================= */
        .newforile_wiki-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(10, 6, 19, 0.85);
            backdrop-filter: blur(14px) saturate(150%);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            padding: 20px;
        }
        .newforile_wiki-modal-overlay.active { opacity: 1; visibility: visible; }

        .newforile_wiki-modal-window {
            background: linear-gradient(180deg, #170d2e 0%, #0f0820 100%);
            border: 1px solid var(--newforile_wiki-glass-border);
            border-radius: var(--newforile_wiki-radius-lg);
            width: 100%;
            max-width: 640px;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            box-shadow: 
                0 30px 80px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(0, 240, 255, 0.05);
            transform: scale(0.95) translateY(20px);
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
            overflow: hidden;
        }

        .newforile_wiki-modal-window::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--newforile_wiki-cyan), var(--newforile_wiki-magenta), transparent);
        }

        .newforile_wiki-modal-overlay.active .newforile_wiki-modal-window { transform: scale(1) translateY(0); }

        .newforile_wiki-modal-header {
            padding: 24px 28px;
            border-bottom: 1px solid var(--newforile_wiki-glass-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255, 255, 255, 0.02);
        }

        .newforile_wiki-modal-title {
            font-size: 20px;
            font-weight: 700;
            color: white;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .newforile_wiki-modal-title .icon {
            width: 32px; height: 32px;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--newforile_wiki-cyan), var(--newforile_wiki-violet));
            display: flex; align-items: center; justify-content: center;
            color: #0a0613;
        }

        .newforile_wiki-modal-title .icon svg { width: 18px; height: 18px; }

        .newforile_wiki-close-btn {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: var(--newforile_wiki-text-dim);
            cursor: pointer;
            width: 36px; height: 36px;
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            transition: 0.2s;
        }
        .newforile_wiki-close-btn:hover { 
            background: rgba(255, 61, 127, 0.1); 
            color: var(--newforile_wiki-danger);
            border-color: var(--newforile_wiki-danger);
        }
        .newforile_wiki-close-btn svg { width: 18px; height: 18px; }

        .newforile_wiki-modal-window form {
            padding: 28px;
            overflow-y: auto;
            flex-grow: 1;
        }

        .newforile_wiki-modal-footer {
            padding: 20px 28px;
            border-top: 1px solid var(--newforile_wiki-glass-border);
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            background: rgba(255, 255, 255, 0.02);
        }

        /* Форма */
        .newforile_wiki-form-group { margin-bottom: 22px; }

        .newforile_wiki-label {
            display: block;
            margin-bottom: 10px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            font-weight: 500;
            color: var(--newforile_wiki-text-dim);
            letter-spacing: 1.5px;
            text-transform: uppercase;
        }

        .newforile_wiki-input {
            width: 100%;
            padding: 14px 18px;
            background: rgba(0, 0, 0, 0.35);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: var(--newforile_wiki-radius-sm);
            color: white;
            font-family: 'Space Grotesk', sans-serif;
            font-size: 15px;
            transition: all 0.25s;
            outline: none;
        }
        .newforile_wiki-input:focus {
            border-color: var(--newforile_wiki-cyan);
            box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1), inset 0 0 0 1px var(--newforile_wiki-cyan);
            background: rgba(0, 0, 0, 0.5);
        }

        /* Вкладки */
        .newforile_wiki-tabs {
            display: flex;
            gap: 6px;
            margin-bottom: 28px;
            padding: 6px;
            background: rgba(0, 0, 0, 0.25);
            border-radius: var(--newforile_wiki-radius-sm);
            border: 1px solid rgba(255, 255, 255, 0.04);
            overflow-x: auto;
            scrollbar-width: none;
        }
        .newforile_wiki-tabs::-webkit-scrollbar { display: none; }

        .newforile_wiki-tab {
            background: transparent;
            border: none;
            color: var(--newforile_wiki-text-dim);
            padding: 10px 18px;
            border-radius: 8px;
            cursor: pointer;
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 600;
            font-size: 13px;
            transition: all 0.25s;
            white-space: nowrap;
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .newforile_wiki-tab:hover { color: white; }
        .newforile_wiki-tab.active {
            background: linear-gradient(135deg, var(--newforile_wiki-cyan), var(--newforile_wiki-violet));
            color: #0a0613;
            box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
        }
        .newforile_wiki-tab svg { width: 14px; height: 14px; }

        .newforile_wiki-field { display: none; animation: newforile_wiki-fadeIn 0.3s ease; }
        .newforile_wiki-field.active { display: block; }
        @keyframes newforile_wiki-fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

        /* Switch */
        .newforile_wiki-switch-container {
            display: flex;
            align-items: center;
            gap: 18px;
            padding: 18px 20px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: var(--newforile_wiki-radius-md);
            border: 1px solid rgba(255, 255, 255, 0.06);
            cursor: pointer;
            transition: 0.2s;
        }
        .newforile_wiki-switch-container:hover { border-color: rgba(0, 240, 255, 0.2); }

        .newforile_wiki-switch {
            appearance: none;
            width: 48px; height: 26px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            position: relative;
            cursor: pointer;
            transition: 0.3s;
            flex-shrink: 0;
        }
        .newforile_wiki-switch::before {
            content: '';
            position: absolute;
            top: 3px; left: 3px;
            width: 20px; height: 20px;
            background: white;
            border-radius: 50%;
            transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
        }
        .newforile_wiki-switch:checked { background: linear-gradient(135deg, var(--newforile_wiki-cyan), var(--newforile_wiki-violet)); }
        .newforile_wiki-switch:checked::before { transform: translateX(22px); }

        .newforile_wiki-switch-label { font-weight: 500; color: white; line-height: 1.4; }

        /* Код верификации */
        .newforile_wiki-verify-hero {
            text-align: center;
            padding: 20px 0 30px;
        }

        .newforile_wiki-verify-icon {
            width: 90px;
            height: 90px;
            margin: 0 auto 24px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(139, 92, 246, 0.1));
            border: 1px solid rgba(0, 240, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .newforile_wiki-verify-icon::before {
            content: '';
            position: absolute;
            inset: -4px;
            border-radius: 50%;
            border: 1px solid var(--newforile_wiki-cyan);
            opacity: 0.3;
            animation: newforile_wiki-ringPulse 2s infinite;
        }

        @keyframes newforile_wiki-ringPulse {
            0%, 100% { transform: scale(1); opacity: 0.3; }
            50%      { transform: scale(1.15); opacity: 0; }
        }

        .newforile_wiki-verify-icon svg { width: 42px; height: 42px; color: var(--newforile_wiki-cyan); }

        .newforile_wiki-verify-info {
            color: var(--newforile_wiki-text-dim);
            margin-bottom: 24px;
            line-height: 1.6;
            font-size: 14px;
        }

        .newforile_wiki-verify-email {
            display: inline-block;
            padding: 4px 12px;
            background: rgba(0, 240, 255, 0.08);
            border: 1px solid rgba(0, 240, 255, 0.2);
            border-radius: 6px;
            color: var(--newforile_wiki-cyan);
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            font-weight: 500;
        }

        .newforile_wiki-code-row {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin: 20px 0;
        }

        .newforile_wiki-code-digit {
            width: 48px;
            height: 62px;
            background: rgba(0, 0, 0, 0.4);
            border: 1.5px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            color: var(--newforile_wiki-cyan);
            font-family: 'JetBrains Mono', monospace;
            font-size: 26px;
            font-weight: 700;
            text-align: center;
            outline: none;
            transition: all 0.25s;
        }
        .newforile_wiki-code-digit:focus, .newforile_wiki-code-digit.filled {
            border-color: var(--newforile_wiki-cyan);
            box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15), 0 0 20px rgba(0, 240, 255, 0.2);
            background: rgba(0, 240, 255, 0.05);
        }

        .newforile_wiki-resend {
            text-align: center;
            margin-top: 24px;
            padding-top: 20px;
            border-top: 1px solid var(--newforile_wiki-glass-border);
            font-size: 13px;
            color: var(--newforile_wiki-text-dim);
        }

        .newforile_wiki-resend-link {
            background: none;
            border: none;
            color: var(--newforile_wiki-cyan);
            font-family: inherit;
            font-weight: 600;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 6px;
            transition: 0.2s;
        }
        .newforile_wiki-resend-link:hover {
            background: rgba(0, 240, 255, 0.1);
            color: white;
        }
        .newforile_wiki-resend-link:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .verification-message { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; }
        .verification-message.success { background: rgba(16, 255, 170, 0.08); color: var(--newforile_wiki-success); border: 1px solid rgba(16, 255, 170, 0.2); }
        .verification-message.error { background: rgba(255, 61, 127, 0.08); color: var(--newforile_wiki-danger); border: 1px solid rgba(255, 61, 127, 0.2); }

        /* =========================================
           МОБИЛЬНАЯ АДАПТАЦИЯ
           ========================================= */
        @media (max-width: 900px) {
            .newforile_wiki-bento { grid-template-columns: repeat(6, 1fr); }
            .newforile_wiki-tile.email  { grid-column: span 6; }
            .newforile_wiki-tile.login  { grid-column: span 6; }
            .newforile_wiki-tile.rank   { grid-column: span 3; }
            .newforile_wiki-tile.level  { grid-column: span 6; }
            .newforile_wiki-tile.badges { grid-column: span 6; }
            .newforile_wiki-tile.sessions { grid-column: span 6; }
        }

        @media (max-width: 640px) {
            .newforile_wiki-page { padding: 100px 14px 60px; }
            .newforile_wiki-hero { padding: 24px 20px; }
            .newforile_wiki-hero-inner { gap: 24px; justify-content: center; text-align: center; }
            .newforile_wiki-name { font-size: 36px; }
            .newforile_wiki-tag-row { justify-content: center; }
            .newforile_wiki-bento { grid-template-columns: 1fr; }
            .newforile_wiki-tile.email, .newforile_wiki-tile.login, .newforile_wiki-tile.rank,
            .newforile_wiki-tile.level, .newforile_wiki-tile.badges, .newforile_wiki-tile.sessions { grid-column: span 1; }
            .newforile_wiki-actions { flex-direction: column; }
            .newforile_wiki-btn { width: 100%; }
            .newforile_wiki-modal-window { max-height: 95vh; }
            .newforile_wiki-code-digit { width: 40px; height: 52px; font-size: 20px; }
            .newforile_wiki-code-row { gap: 6px; }
            
            .newforile_wiki-session-item { flex-direction: column; align-items: flex-start; gap: 12px; }
            .newforile_wiki-session-meta { text-align: left; width: 100%; display: flex; justify-content: space-between; align-items: center; }
        }

        /* Кастомный скроллбар */
        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--newforile_wiki-bg-0); }
        ::-webkit-scrollbar-thumb { 
            background: linear-gradient(var(--newforile_wiki-cyan), var(--newforile_wiki-violet));
            border-radius: 100px;
        }
//====================предложения

        /* --- Background Effects --- */
        .nwl-bg-grid {
            position: fixed; inset: 0; z-index: -2;
            background-image: 
                linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 40px 40px;
            mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
            -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
        }
        
        .nwl-bg-blobs {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            z-index: -1; overflow: hidden; pointer-events: none;
        }
        .nwl-blob {
            position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
            animation: nwl-float 20s infinite ease-in-out alternate;
        }
        .nwl-blob-1 { width: 600px; height: 600px; background: radial-gradient(circle, var(--nwl-primary), transparent); top: -10%; left: -10%; }
        .nwl-blob-2 { width: 500px; height: 500px; background: radial-gradient(circle, var(--nwl-secondary), transparent); bottom: -10%; right: -5%; animation-delay: -5s; }
        .nwl-blob-3 { width: 300px; height: 300px; background: radial-gradient(circle, var(--nwl-accent), transparent); top: 40%; left: 50%; opacity: 0.2; animation-delay: -10s; }
        
        @keyframes nwl-float {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(40px, 40px) scale(1.1); }
        }

        /* --- Typography & Common --- */
        .nwl-gradient-text {
            background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #22d3ee 100%);
            background-size: 200% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: nwl-shine 6s linear infinite;
        }
        @keyframes nwl-shine { to { background-position: 200% center; } }

        .nwl-page { position: relative; z-index: 1; padding: 100px 24px 80px; }
        .nwl-container { width: 100%; max-width: 1280px; margin: 0 auto; }

        /* --- Header Section --- */
        .nwl-header { text-align: center; margin-bottom: 60px; position: relative; }
        
        .nwl-label {
            font-size: 11px; text-transform: uppercase; letter-spacing: 3px;
            color: var(--nwl-accent); font-weight: 700; margin-bottom: 16px; display: inline-block;
            padding: 6px 14px; 
            background: rgba(14, 165, 233, 0.1);
            border: 1px solid rgba(14, 165, 233, 0.2); 
            border-radius: 100px;
            box-shadow: 0 0 15px rgba(14, 165, 233, 0.1);
        }
        
        .nwl-title {
            font-size: clamp(40px, 6vw, 64px); font-weight: 800; margin: 0 0 20px 0;
            line-height: 1.1; letter-spacing: -0.02em;
        }
        
        .nwl-desc {
            max-width: 550px; margin: 0 auto; color: var(--nwl-muted); 
            font-size: 17px; line-height: 1.6; font-weight: 400;
        }

        /* --- Filters --- */
        .nwl-filters-wrapper {
            display: flex; justify-content: center; margin-top: 32px;
        }
        .nwl-filters {
            display: inline-flex; gap: 6px; 
            background: rgba(10, 10, 15, 0.6);
            padding: 6px; border-radius: 100px; 
            border: 1px solid var(--nwl-border);
            backdrop-filter: blur(12px);
            box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
        }
        .nwl-filter-btn {
            padding: 8px 20px; border-radius: 100px;
            background: transparent; border: none;
            color: var(--nwl-muted); text-decoration: none;
            font-weight: 500; font-size: 14px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer; position: relative; overflow: hidden;
        }
        .nwl-filter-btn:hover { color: white; }
        .nwl-filter-btn.active {
            background: rgba(255, 255, 255, 0.08);
            color: white;
            border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 0 15px rgba(255,255,255,0.05);
        }

        /* --- Layout --- */
        .nwl-layout { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }

        /* --- Sidebar --- */
        .nwl-sidebar {
            background: linear-gradient(160deg, rgba(30, 30, 40, 0.4) 0%, rgba(10, 10, 15, 0.6) 100%);
            backdrop-filter: blur(20px);
            border: 1px solid var(--nwl-border);
            border-radius: 24px;
            padding: 32px;
            position: sticky; top: 100px;
            display: flex; flex-direction: column; align-items: center; text-align: center;
            box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
            transition: transform 0.3s;
        }
        .nwl-sidebar:hover { transform: translateY(-2px); }
        
        .nwl-sidebar-icon {
            width: 64px; height: 64px;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(217, 70, 239, 0.2));
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 20px;
            display: flex; align-items: center; justify-content: center;
            margin-bottom: 20px; color: #fff; font-size: 28px;
            box-shadow: inset 0 0 20px rgba(255,255,255,0.05);
        }
        .nwl-sidebar h3 { margin: 0 0 8px 0; font-size: 20px; color: white; font-weight: 700; }
        .nwl-sidebar p { margin: 0 0 28px 0; font-size: 14px; color: var(--nwl-muted); line-height: 1.5; }

        .nwl-btn-create {
            width: 100%; padding: 16px;
            background: linear-gradient(135deg, var(--nwl-primary), var(--nwl-secondary));
            color: white; border: none; border-radius: 16px;
            font-weight: 700; font-size: 15px;
            cursor: pointer; transition: all 0.3s;
            display: flex; align-items: center; justify-content: center; gap: 10px;
            box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
            position: relative; overflow: hidden;
        }
        .nwl-btn-create::before {
            content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: 0.5s;
        }
        .nwl-btn-create:hover::before { left: 100%; }
        .nwl-btn-create:hover { transform: translateY(-2px); box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.5); }

        /* --- Modal --- */
        .nwl-modal-overlay {
            position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px); z-index: 2000;
            display: flex; align-items: center; justify-content: center;
            opacity: 0; visibility: hidden; transition: all 0.3s ease;
        }
        .nwl-modal-overlay.open { opacity: 1; visibility: visible; }
        .nwl-modal {
            background: #13131a; border: 1px solid var(--nwl-border);
            width: 100%; max-width: 500px; border-radius: 24px; padding: 40px;
            position: relative; transform: translateY(20px) scale(0.95);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
        }
        .nwl-modal-overlay.open .nwl-modal { transform: translateY(0) scale(1); }
        .nwl-modal-close {
            position: absolute; top: 20px; right: 20px;
            background: rgba(255,255,255,0.05); border: 1px solid var(--nwl-border);
            width: 32px; height: 32px; border-radius: 50%; color: var(--nwl-muted);
            cursor: pointer; display: flex; align-items: center; justify-content: center;
            transition: 0.2s;
        }
        .nwl-modal-close:hover { background: rgba(255,255,255,0.1); color: white; }
        
        .nwl-form-group { margin-bottom: 20px; }
        .nwl-form-label { display: block; font-size: 12px; font-weight: 600; color: var(--nwl-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
        .nwl-form-input, .nwl-form-select, .nwl-form-textarea {
            width: 100%; padding: 14px 16px; background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--nwl-border); border-radius: 12px; color: white;
            font-family: inherit; font-size: 15px; transition: all 0.3s;
        }
        .nwl-form-input:focus, .nwl-form-select:focus, .nwl-form-textarea:focus { 
            border-color: var(--nwl-primary); 
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
            background: rgba(0, 0, 0, 0.5);
        }
        .nwl-form-textarea { resize: vertical; min-height: 120px; }
        .nwl-btn-submit {
            width: 100%; padding: 16px; background: linear-gradient(135deg, var(--nwl-primary), var(--nwl-secondary));
            color: white; border: none; border-radius: 12px; font-weight: 700; font-size: 16px; cursor: pointer;
            transition: 0.3s;
        }
        .nwl-btn-submit:hover { opacity: 0.9; }
        .nwl-form-msg { margin-top: 16px; padding: 12px; border-radius: 10px; font-size: 14px; text-align: center; display: none; }
        .nwl-form-msg.success { background: rgba(74, 222, 128, 0.1); color: var(--status-implemented); border: 1px solid rgba(74, 222, 128, 0.2); }
        .nwl-form-msg.error { background: rgba(248, 113, 113, 0.1); color: var(--status-rejected); border: 1px solid rgba(248, 113, 113, 0.2); }

        /* --- Content Area --- */
        .nwl-section-header { margin-bottom: 32px; display: flex; align-items: center; gap: 20px; }
        .nwl-section-title { font-size: 22px; font-weight: 700; color: white; margin: 0; display: flex; align-items: center; gap: 10px; }
        .nwl-section-line { flex-grow: 1; height: 1px; background: linear-gradient(90deg, var(--nwl-border), transparent); }

        .nwl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
        
        @keyframes nwl-card-enter { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
        
        .nwl-card {
            background: var(--nwl-card-bg); 
            border: 1px solid var(--nwl-border);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px; 
            padding: 24px; 
            text-decoration: none; color: inherit;
            transition: all 0.3s ease; 
            position: relative; overflow: hidden;
            display: flex; flex-direction: column; 
            opacity: 0;
            animation: nwl-card-enter 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }
        
        .nwl-card::after {
            content: ''; position: absolute; inset: 0;
            background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.04), transparent 40%);
            z-index: 1; opacity: 0; transition: opacity 0.5s; pointer-events: none;
        }
        .nwl-card:hover { 
            border-color: rgba(99, 102, 241, 0.3); 
            transform: translateY(-4px);
            box-shadow: 0 15px 30px -10px rgba(0,0,0,0.5);
        }
        .nwl-card:hover::after { opacity: 1; }

        .nwl-card-content { position: relative; z-index: 2; display: flex; gap: 20px; }
        
        /* Vote Box */
        .nwl-vote-box { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 56px; }
        .nwl-vote-btn {
            width: 48px; height: 48px; border-radius: 14px; 
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--nwl-border); 
            color: var(--nwl-muted); cursor: pointer;
            display: flex; align-items: center; justify-content: center; 
            transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            font-size: 18px;
        }
        .nwl-vote-btn:hover { 
            background: rgba(99, 102, 241, 0.15); 
            color: var(--nwl-primary); 
            border-color: rgba(99, 102, 241, 0.3);
        }
        .nwl-vote-btn.active { 
            background: linear-gradient(135deg, var(--nwl-primary), var(--nwl-secondary)); 
            color: white; border-color: transparent; 
            box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
            transform: scale(1.05);
        }
        .nwl-vote-count { font-size: 18px; font-weight: 800; color: white; }

        .nwl-card-body { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
        .nwl-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
        
        .nwl-card-cat { 
            font-size: 10px; color: var(--nwl-accent); text-transform: uppercase; font-weight: 700; 
            padding: 4px 10px; background: rgba(14, 165, 233, 0.1); border-radius: 6px; letter-spacing: 0.5px;
        }
        
        .nwl-status-badge { 
            font-size: 11px; font-weight: 700; text-transform: uppercase; 
            padding: 4px 10px; border-radius: 6px; letter-spacing: 0.5px;
        }
        .nwl-status-badge.pending { background: rgba(251, 191, 36, 0.1); color: var(--status-pending); border: 1px solid rgba(251, 191, 36, 0.2); }
        .nwl-status-badge.implemented { background: rgba(74, 222, 128, 0.1); color: var(--status-implemented); border: 1px solid rgba(74, 222, 128, 0.2); }
        .nwl-status-badge.rejected { background: rgba(248, 113, 113, 0.1); color: var(--status-rejected); border: 1px solid rgba(248, 113, 113, 0.2); }
        .nwl-status-badge.awaiting { background: rgba(192, 132, 252, 0.1); color: var(--status-awaiting); border: 1px solid rgba(192, 132, 252, 0.2); }

        .nwl-card-title { font-size: 18px; font-weight: 700; color: white; margin: 0 0 10px 0; line-height: 1.4; }
        .nwl-card-desc { 
            font-size: 14px; color: var(--nwl-muted); line-height: 1.6; 
            margin: 0 0 20px 0; 
            display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; 
        }
        
        .nwl-card-footer { 
            display: flex; justify-content: space-between; align-items: center; 
            padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.05); 
            font-size: 13px; color: var(--nwl-muted);
        }

        .nwl-empty { 
            text-align: center; padding: 80px 20px; color: var(--nwl-muted); 
            grid-column: 1 / -1; 
            background: rgba(255,255,255,0.02); border-radius: 20px; 
            border: 1px dashed var(--nwl-border); 
        }
        
        .nwl-toast {
            position: fixed; bottom: 32px; right: 32px; padding: 16px 24px; border-radius: 14px;
            background: rgba(15, 15, 20, 0.95); border: 1px solid var(--nwl-border);
            color: white; font-size: 14px; font-weight: 600; backdrop-filter: blur(20px);
            transform: translateX(150%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 3000;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            display: flex; align-items: center; gap: 10px;
        }
        .nwl-toast.show { transform: translateX(0); }
        .nwl-toast.error { border-color: rgba(248, 113, 113, 0.5); color: var(--status-rejected); }
        .nwl-toast.success { border-color: rgba(74, 222, 128, 0.5); color: var(--status-implemented); }

        @media (max-width: 960px) {
            .nwl-layout { grid-template-columns: 1fr; }
            .nwl-sidebar { position: static; margin-bottom: 30px; flex-direction: row; text-align: left; gap: 20px; padding: 20px; align-items: center; }
            .nwl-sidebar-icon { margin-bottom: 0; width: 50px; height: 50px; font-size: 24px; }
            .nwl-sidebar-text { text-align: left; }
            .nwl-sidebar p { margin-bottom: 0; }
            .nwl-grid { grid-template-columns: 1fr; }
            .nwl-filters { overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
        }

//=========================все тикеты 
        body {
            margin: 0;
            padding: 0;
            font-family: var(--font-main);
            background-color: var(--global-bg-deep);
            color: #ffffff;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden; /* Скрываем горизонтальный скролл от анимаций */
        }

        /* =========================================
           2. SCOPED STYLES FOR .wiki_support_auth
           Все классы имеют префикс wsa- или вложены в .wiki_support_auth
           ========================================= */
        
        .wiki_support_auth {
            /* Локальные переменные компонента */
            --wsa-glass-surface: rgba(255, 255, 255, 0.03);
            --wsa-glass-border: rgba(255, 255, 255, 0.06);
            --wsa-glass-highlight: rgba(255, 255, 255, 0.1);
            --wsa-text-primary: #ffffff;
            --wsa-text-secondary: #9ca3af;
            --wsa-accent-blue: #60a5fa;
            --wsa-accent-green: #34d399;
            --wsa-accent-orange: #fbbf24;

            position: relative;
            z-index: 1;
            font-family: var(--font-main);
            color: var(--wsa-text-primary);
            max-width: 1200px;
            margin: 0 auto;
            padding: 60px 24px;
            min-height: 100vh;
            box-sizing: border-box;
        }

        /* --- Ambient Background --- */
        .wiki_support_auth .wsa-ambient-bg {
            position: fixed; inset: 0; z-index: -1; overflow: hidden;
            background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #050507 60%);
            pointer-events: none;
        }
        .wiki_support_auth .wsa-orb {
            position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4;
            animation: wsa-floatOrb 20s infinite ease-in-out alternate;
        }
        .wiki_support_auth .wsa-orb-1 { width: 600px; height: 600px; background: #4f46e5; top: -100px; left: -100px; }
        .wiki_support_auth .wsa-orb-2 { width: 500px; height: 500px; background: #0ea5e9; bottom: -100px; right: -100px; animation-delay: -10s; }
        .wiki_support_auth .wsa-noise {
            position: absolute; inset: 0; pointer-events: none; opacity: 0.03;
            background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
        }
        @keyframes wsa-floatOrb { 0% { transform: translate(0, 0); } 100% { transform: translate(30px, 50px); } }

        /* --- Header --- */
        .wiki_support_auth .wsa-top-bar {
            display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 48px;
        }
        .wiki_support_auth .wsa-brand { display: flex; gap: 16px; align-items: center; }
        .wiki_support_auth .wsa-logo-box {
            width: 48px; height: 48px;
            background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
            border: 1px solid var(--wsa-glass-border); border-radius: 12px;
            display: flex; align-items: center; justify-content: center; color: #fff;
        }
        .wiki_support_auth .wsa-page-title { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
        .wiki_support_auth .wsa-page-subtitle { margin: 4px 0 0; color: var(--wsa-text-secondary); font-size: 14px; }

        .wiki_support_auth .wsa-btn-glow {
            display: inline-flex; align-items: center; gap: 8px;
            background: #fff; color: #000; padding: 10px 20px; border-radius: 100px;
            font-weight: 600; font-size: 14px; text-decoration: none;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            box-shadow: 0 0 20px rgba(255,255,255,0.1);
        }
        .wiki_support_auth .wsa-btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(255,255,255,0.3); }

        /* --- Stats Dashboard --- */
        .wiki_support_auth .wsa-stats {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px; margin-bottom: 48px;
        }
        .wiki_support_auth .wsa-stat-card {
            display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 16px;
            background: var(--wsa-glass-surface); border: 1px solid var(--wsa-glass-border);
            backdrop-filter: blur(10px); transition: transform 0.2s;
        }
        .wiki_support_auth .wsa-stat-card:hover { transform: translateY(-2px); border-color: var(--wsa-glass-highlight); }
        .wiki_support_auth .wsa-stat-icon {
            width: 40px; height: 40px; border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
        }
        .wiki_support_auth .wsa-bg-blue { background: rgba(96, 165, 250, 0.15); color: var(--wsa-accent-blue); }
        .wiki_support_auth .wsa-bg-green { background: rgba(52, 211, 153, 0.15); color: var(--wsa-accent-green); }
        .wiki_support_auth .wsa-bg-orange { background: rgba(251, 191, 36, 0.15); color: var(--wsa-accent-orange); }
        .wiki_support_auth .wsa-stat-val { font-size: 24px; font-weight: 700; font-family: var(--font-mono); display: block; }
        .wiki_support_auth .wsa-stat-label { font-size: 12px; color: var(--wsa-text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
        .wiki_support_auth .wsa-text-green { color: var(--wsa-accent-green); }
        .wiki_support_auth .wsa-text-orange { color: var(--wsa-accent-orange); }

        /* --- Grid & Cards --- */
        .wiki_support_auth .wsa-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px;
        }
        .wiki_support_auth .wsa-glass-card {
            background: linear-gradient(180deg, rgba(30,30,35,0.4) 0%, rgba(20,20,25,0.6) 100%);
            border: 1px solid var(--wsa-glass-border); border-radius: 20px;
            position: relative; overflow: hidden; text-decoration: none; color: inherit;
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        }
        .wiki_support_auth .wsa-ticket-card .wsa-card-inner {
            padding: 24px; position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column;
        }
        .wiki_support_auth .wsa-ticket-card:hover {
            border-color: rgba(255,255,255,0.15); transform: translateY(-5px);
            box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
        }
        .wiki_support_auth .wsa-card-glow {
            position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.4s;
            background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
        }
        .wiki_support_auth .wsa-ticket-card:hover .wsa-card-glow { opacity: 1; }

        .wiki_support_auth .wsa-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
        
        .wiki_support_auth .wsa-status-badge {
            display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 100px;
            background: var(--bg); border: 1px solid var(--b);
            font-size: 11px; font-weight: 600; color: var(--c); text-transform: uppercase; letter-spacing: 0.5px;
        }
        .wiki_support_auth .wsa-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
        .wiki_support_auth .wsa-status-pulse .wsa-dot { animation: wsa-pulse 2s infinite; }
        @keyframes wsa-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

        .wiki_support_auth .wsa-date-badge { font-size: 12px; color: var(--wsa-text-secondary); font-family: var(--font-mono); }
        .wiki_support_auth .wsa-card-heading {
            margin: 0 0 12px; font-size: 17px; font-weight: 600; line-height: 1.4; color: #fff;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
        }
        .wiki_support_auth .wsa-card-meta { font-size: 12px; color: var(--wsa-text-secondary); display: flex; align-items: center; gap: 8px; }
        .wiki_support_auth .wsa-ticket-hash { background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 4px; font-family: var(--font-mono); }
        .wiki_support_auth .wsa-divider { opacity: 0.3; }
        .wiki_support_auth .wsa-card-action {
            margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: center;
            border-top: 1px solid rgba(255,255,255,0.05);
        }
        .wiki_support_auth .wsa-read-more { font-size: 13px; font-weight: 500; color: var(--wsa-text-secondary); transition: color 0.2s; }
        .wiki_support_auth .wsa-ticket-card:hover .wsa-read-more { color: #fff; }
        .wiki_support_auth .wsa-icon-circle {
            width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.05);
            display: flex; align-items: center; justify-content: center; color: #fff; transition: all 0.3s;
        }
        .wiki_support_auth .wsa-ticket-card:hover .wsa-icon-circle { background: #fff; color: #000; transform: translateX(3px); }

        /* --- Pinned Bot Message --- */
        .wiki_support_auth .wsa-pinned-bot {
            margin-bottom: 24px; border-color: rgba(96, 165, 250, 0.3) !important;
            background: linear-gradient(90deg, rgba(96, 165, 250, 0.05) 0%, rgba(30,30,35,0.4) 100%) !important;
        }
        .wiki_support_auth .wsa-bot-inner { padding: 20px; display: flex; align-items: flex-start; gap: 16px; }
        .wiki_support_auth .wsa-bot-avatar {
            width: 40px; height: 40px; background: rgba(96, 165, 250, 0.15); border-radius: 10px;
            display: flex; align-items: center; justify-content: center; color: #60a5fa; flex-shrink: 0;
        }
        .wiki_support_auth .wsa-bot-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
        .wiki_support_auth .wsa-bot-title { margin: 0; font-size: 14px; font-weight: 600; color: #60a5fa; text-transform: uppercase; letter-spacing: 0.5px; }
        .wiki_support_auth .wsa-bot-tag { font-size: 11px; color: var(--wsa-text-secondary); background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 4px; }
        .wiki_support_auth .wsa-bot-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--wsa-text-primary); }

        /* --- Empty State --- */
        .wiki_support_auth .wsa-empty { max-width: 500px; margin: 0 auto; padding: 60px 40px; text-align: center; }
        .wiki_support_auth .wsa-empty-icon-wrap { position: relative; width: 80px; height: 80px; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; }
        .wiki_support_auth .wsa-pulse-ring {
            position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1);
            animation: wsa-breathe 3s infinite ease-in-out;
        }
        .wiki_support_auth .wsa-main-icon { color: var(--wsa-text-secondary); }
        .wiki_support_auth .wsa-empty-title { font-size: 20px; margin-bottom: 8px; }
        .wiki_support_auth .wsa-empty-text { color: var(--wsa-text-secondary); margin-bottom: 24px; font-size: 14px; }
        .wiki_support_auth .wsa-btn-outline {
            display: inline-block; padding: 10px 24px; border: 1px solid var(--wsa-glass-highlight); border-radius: 100px;
            color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.2s;
        }
        .wiki_support_auth .wsa-btn-outline:hover { background: rgba(255,255,255,0.05); border-color: #fff; }

        /* --- Footer --- */
        .wiki_support_auth .wsa-footer { margin-top: 60px; text-align: center; }
        .wiki_support_auth .wsa-nav-link { display: inline-flex; align-items: center; gap: 8px; color: var(--wsa-text-secondary); text-decoration: none; font-size: 13px; transition: color 0.2s; }
        .wiki_support_auth .wsa-nav-link:hover { color: #fff; }

        /* --- Animations --- */
        .wiki_support_auth .wsa-fade-in-down { animation: wsa-fadeInDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; }
        .wiki_support_auth .wsa-fade-in-up { animation: wsa-fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; }
        @keyframes wsa-fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes wsa-fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
        @keyframes wsa-breathe { 0%, 100% { transform: scale(0.9); opacity: 0.5; } 50% { transform: scale(1.1); opacity: 0; } }

        /* --- Responsive --- */
        @media (max-width: 768px) {
            .wiki_support_auth .wsa-top-bar { flex-direction: column; gap: 24px; }
            .wiki_support_auth .wsa-stats { grid-template-columns: 1fr; }
            .wiki_support_auth .wsa-grid { grid-template-columns: 1fr; }
        }

//=======================топ

        .ambient-light {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            pointer-events: none;
            z-index: -1;
            background: 
                radial-gradient(circle at 15% 50%, rgba(109, 40, 217, 0.15), transparent 40%),
                radial-gradient(circle at 85% 30%, rgba(37, 99, 235, 0.15), transparent 40%);
        }

        .grid-bg {
            position: fixed;
            inset: 0;
            background-image: linear-gradient(var(--border-light) 1px, transparent 1px),
                              linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
            background-size: 60px 60px;
            mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
            opacity: 0.3;
            z-index: -1;
        }

        .forbes { padding: 60px 0 100px; position: relative; z-index: 1; }
        .container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

        .forbes__header { text-align: center; margin-bottom: 50px; }
        .forbes__logo {
            height: 50px;
            filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255,255,255,0.2));
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .forbes__logo:hover { transform: scale(1.05); }

        /* ============================================
           PREMIUM SEGMENTED SERVER SELECTOR
           ============================================ */
        .server-selector {
            display: flex;
            justify-content: center;
            margin-bottom: 80px;
            position: relative;
        }

        .selector-capsule {
            position: relative;
            display: inline-flex;
            align-items: center;
            padding: 6px;
            background: rgba(15, 15, 20, 0.7);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 18px;
            box-shadow: 
                0 10px 40px -10px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
            max-width: 95%;
        }

        /* Анимированный градиентный бордер */
        .selector-capsule::before {
            content: '';
            position: absolute;
            inset: -1px;
            border-radius: 18px;
            padding: 1px;
            background: linear-gradient(135deg, 
                rgba(139, 92, 246, 0.3), 
                rgba(59, 130, 246, 0.3), 
                rgba(139, 92, 246, 0.3));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
            opacity: 0.6;
        }

        .selector-track {
            position: relative;
            display: flex;
            gap: 4px;
            padding: 2px;
        }

        /* Анимированный индикатор активного таба */
        .selector-indicator {
            position: absolute;
            top: 2px;
            left: 2px;
            height: calc(100% - 4px);
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 14px;
            transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 
                0 4px 20px rgba(139, 92, 246, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
            z-index: 1;
            pointer-events: none;
        }

        /* Свечение под индикатором */
        .selector-indicator::after {
            content: '';
            position: absolute;
            inset: -2px;
            border-radius: 16px;
            background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.3), transparent 70%);
            filter: blur(8px);
            opacity: 0.6;
            z-index: -1;
        }

        .selector-tab {
            position: relative;
            z-index: 2;
            padding: 10px 22px;
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            border-radius: 12px;
            transition: color 0.3s ease;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .selector-tab:hover {
            color: #fff;
        }

        .selector-tab.active {
            color: #fff;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        }

        /* Маленькая точка-индикатор у каждого сервера */
        .tab-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: currentColor;
            opacity: 0.5;
            transition: all 0.3s ease;
        }

        .selector-tab.active .tab-dot {
            opacity: 1;
            background: #a78bfa;
            box-shadow: 0 0 8px #a78bfa;
        }

        .selector-tab:hover .tab-dot {
            opacity: 0.8;
        }

        /* Счётчик (если захотите добавить) */
        .tab-count {
            font-size: 11px;
            font-weight: 700;
            padding: 2px 7px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.06);
            color: var(--text-secondary);
            opacity: 0.7;
        }

        .selector-tab.active .tab-count {
            background: rgba(139, 92, 246, 0.25);
            color: #c4b5fd;
            opacity: 1;
        }

        /* ============================================
           PODIUM
           ============================================ */
        .podium {
            display: flex;
            justify-content: center;
            align-items: flex-end;
            gap: 20px;
            margin-bottom: 100px;
        }

        .podium-card {
            background: rgba(20, 20, 25, 0.6);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border-light);
            border-radius: 24px;
            padding: 20px;
            width: 220px;
            text-align: center;
            position: relative;
            transition: transform 0.4s ease, box-shadow 0.4s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .podium-card:hover { transform: translateY(-10px); z-index: 10; }

        .rank-1 {
            order: 2;
            width: 260px;
            padding: 40px 20px 30px;
            background: linear-gradient(180deg, rgba(255, 215, 0, 0.05) 0%, rgba(20, 20, 25, 0.8) 100%);
            border-color: rgba(255, 215, 0, 0.3);
            box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5), 0 0 30px rgba(255, 215, 0, 0.1);
            margin-bottom: 20px;
        }
        .rank-2 { order: 1; opacity: 0.9; transform: scale(0.95); }
        .rank-3 { order: 3; opacity: 0.9; transform: scale(0.95); }
        .rank-2:hover, .rank-3:hover { transform: scale(0.98) translateY(-5px); }

        .rank-badge {
            position: absolute;
            top: -15px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 16px;
            color: #000;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            z-index: 2;
        }
        .rank-1 .rank-badge { width: 48px; height: 48px; font-size: 20px; top: -24px; background: var(--rank-1-gradient); }
        .rank-2 .rank-badge { background: var(--rank-2-gradient); }
        .rank-3 .rank-badge { background: var(--rank-3-gradient); }

        .avatar-wrapper { width: 100px; height: 100px; margin-bottom: 15px; }
        .rank-1 .avatar-wrapper { width: 130px; height: 130px; }

        .avatar-circle {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            overflow: hidden;
            border: 2px solid rgba(255,255,255,0.1);
            background: rgba(0,0,0,0.3);
        }
        .rank-1 .avatar-circle { border-color: #FFD700; box-shadow: 0 0 30px rgba(255, 215, 0, 0.2); }
        .rank-2 .avatar-circle { border-color: #E0E0E0; }
        .rank-3 .avatar-circle { border-color: #CD7F32; }

        .skin-img {
            width: 100%; height: 100%;
            object-fit: cover;
            object-position: top center;
            image-rendering: pixelated;
        }

        .player-name {
            font-size: 18px;
            font-weight: 700;
            color: white;
            margin-bottom: 6px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
        }
        .rank-1 .player-name { font-size: 22px; }

        .player-balance {
            font-size: 14px;
            font-weight: 600;
            padding: 6px 14px;
            border-radius: 20px;
            background: rgba(255,255,255,0.05);
            color: var(--text-secondary);
        }
        .rank-1 .player-balance {
            background: rgba(255, 215, 0, 0.15);
            color: #FFD700;
            font-size: 16px;
            padding: 8px 20px;
        }

        /* ============================================
           LIST
           ============================================ */
        .list-container { display: flex; flex-direction: column; gap: 10px; }

        .list-item {
            display: grid;
            grid-template-columns: 60px 1fr 140px 160px;
            align-items: center;
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            padding: 18px 28px;
            border-radius: 16px;
            transition: all 0.25s ease;
            position: relative;
            overflow: hidden;
        }

        .list-item::before {
            content: '';
            position: absolute;
            left: 0; top: 0; bottom: 0;
            width: 3px;
            background: linear-gradient(180deg, var(--accent-purple), var(--accent-blue));
            opacity: 0;
            transition: opacity 0.3s;
        }

        .list-item:hover {
            background: rgba(30, 30, 40, 0.6);
            border-color: var(--border-hover);
            transform: translateX(5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.25);
        }
        .list-item:hover::before { opacity: 1; }

        .item-rank { font-size: 17px; font-weight: 800; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
        .item-name { font-weight: 600; color: #fff; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .item-server {
            font-size: 13px;
            color: var(--text-secondary);
            text-align: center;
            background: rgba(255,255,255,0.03);
            padding: 6px 12px;
            border-radius: 8px;
            justify-self: center;
            border: 1px solid rgba(255,255,255,0.04);
        }
        .item-balance { text-align: right; font-weight: 700; font-size: 17px; color: #fff; font-variant-numeric: tabular-nums; }

        @media (max-width: 850px) {
            .podium { flex-direction: column; align-items: center; gap: 40px; }
            .rank-1, .rank-2, .rank-3 { order: unset; width: 100%; max-width: 320px; transform: none !important; }
            
            .selector-capsule { width: 100%; max-width: 100%; }
            .selector-track { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
            .selector-track::-webkit-scrollbar { display: none; }
            
            .list-item {
                grid-template-columns: 40px 1fr auto;
                padding: 14px 18px;
            }
            .item-server { display: none; }
            .item-rank, .item-balance, .item-name { font-size: 15px; }
        }

//===================новости

        /* --- Стили только для страницы новостей (изолированные) --- */
        
        /* Обертка для изоляции стилей */
        .news-page {
            width: 100%;
            background-color: #0f172a; /* Темный фон, если его нет в body */
        }

        .news-container {
            max-width: 1200px; /* Ограничение ширины для ПК */
            margin: 0 auto;    /* Центрирование */
            padding: 60px 20px 100px; /* Отступы: верх, бока, низ */
            min-height: 80vh;
        }

        /* Заголовок секции */
        .news-section-title {
            font-size: 2.5rem;
            font-weight: 800;
            color: #fff;
            margin-bottom: 50px;
            text-align: center;
            position: relative;
            display: inline-block;
            left: 50%;
            transform: translateX(-50%);
            white-space: nowrap; /* Чтобы текст не переносился странно */
        }

        .news-section-title span {
            background: linear-gradient(90deg, #8b5cf6, #ec4899);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            position: relative;
        }
        
        /* Декоративная линия под заголовком */
        .news-section-title::after {
            content: '';
            position: absolute;
            bottom: -12px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, #8b5cf6, #ec4899);
            border-radius: 2px;
        }

        /* Сетка новостей */
        .news-grid {
            display: grid;
            /* Автоматическое заполнение: минимум 320px, максимум - сколько влезет */
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 30px;
        }

        /* Карточка новости */
        .news-card {
            background: rgba(30, 41, 59, 0.6);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            height: 100%;
            position: relative;
        }

        .news-card:hover {
            transform: translateY(-8px);
            border-color: rgba(139, 92, 246, 0.3);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                        0 0 20px rgba(139, 92, 246, 0.1);
        }

        /* Изображение */
        .news-card__picture {
            display: block;
            width: 100%;
            height: 220px;
            overflow: hidden;
            position: relative;
        }

        .news-card__image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s ease;
        }

        .news-card:hover .news-card__image {
            transform: scale(1.08);
        }

        /* Контент карточки */
        .news-card__content {
            padding: 24px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .news-card__date {
            font-size: 0.85rem;
            color: #94a3b8;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 500;
        }
        
        /* Иконка календаря */
        .news-card__date::before {
            content: '';
            display: inline-block;
            width: 14px;
            height: 14px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
            background-size: contain;
            background-repeat: no-repeat;
        }

        .news-card__title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #f1f5f9;
            text-decoration: none;
            line-height: 1.4;
            margin-bottom: 12px;
            transition: color 0.3s ease;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .news-card:hover .news-card__title {
            color: #8b5cf6;
        }

        .news-card__description {
            font-size: 0.95rem;
            color: #cbd5e1;
            line-height: 1.6;
            margin-bottom: 20px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            flex-grow: 1;
        }

        /* Кнопка "Подробнее" */
        .news-card__action {
            margin-top: auto;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding-top: 20px;
        }

        .news-card__link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #fff;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: gap 0.3s ease;
        }

        .news-card__link svg {
            width: 20px;
            height: auto;
            transition: transform 0.3s ease;
            stroke: currentColor; /* Наследует цвет текста */
        }

        .news-card__link:hover {
            gap: 12px;
            color: #8b5cf6;
        }
        
        .news-card__link:hover svg {
            transform: translateX(4px);
        }

        /* ====== АДАПТИВНОСТЬ ====== */

        /* Планшеты (до 1024px) */
        @media (max-width: 1024px) {
            .news-container {
                padding: 40px 20px 80px;
            }
            .news-section-title {
                font-size: 2.2rem;
            }
            .news-grid {
                gap: 20px;
            }
        }

        /* Мобильные устройства (до 768px) */
        @media (max-width: 768px) {
            .news-container {
                padding: 30px 15px 60px;
            }
            .news-section-title {
                font-size: 1.8rem;
                margin-bottom: 30px;
                white-space: normal; /* Разрешаем перенос на мобильных */
            }
            .news-section-title::after {
                width: 50px;
                height: 3px;
                bottom: -8px;
            }
            .news-grid {
                grid-template-columns: 1fr; /* Одна колонка */
                gap: 20px;
            }
            .news-card__picture {
                height: 200px;
            }
        }
        
        /* Маленькие телефоны (до 480px) */
        @media (max-width: 480px) {
             .news-card__content {
                padding: 16px;
            }
            .news-card__title {
                font-size: 1.1rem;
            }
        }
//===============terms


        /* АНИМИРОВАННЫЕ БЛОБЫ */
        .nwl-bg-blobs {
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
            z-index: -1; pointer-events: none; overflow: hidden;
        }
        .nwl-blob {
            position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.25;
            animation: nw-drift 20s infinite alternate ease-in-out;
        }
        .nwl-blob-1 { width: 50vw; height: 50vw; background: var(--nw-primary); top: -20%; left: -10%; }
        .nwl-blob-2 { width: 40vw; height: 40vw; background: var(--nw-accent); bottom: -10%; right: -10%; animation-delay: -10s; }
        
        @keyframes nw-drift {
            0% { transform: translate(0, 0); }
            100% { transform: translate(50px, 50px); }
        }

        /* ============================================ */
        /* СТИЛИ СТРАНИЦЫ СОГЛАШЕНИЯ                    */
        /* ============================================ */
        .document-layout {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 40px;
            max-width: 1320px;
            margin: 0 auto;
            padding: 120px 20px 80px;
            position: relative;
            z-index: 1;
        }

        /* Сайдбар */
        .doc-sidebar {
            position: sticky;
            top: 100px;
            height: fit-content;
            background: var(--nw-surface);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid var(--nw-border);
            border-radius: 24px;
            padding: 24px;
            box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
        }

        .doc-nav-title {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--nw-muted);
            margin-bottom: 20px;
            padding-left: 12px;
            font-weight: 700;
        }

        .doc-nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .doc-nav li {
            margin-bottom: 8px;
        }

        .doc-nav a {
            display: block;
            color: var(--nw-muted);
            text-decoration: none;
            font-size: 14px;
            padding: 12px 16px;
            border-radius: 12px;
            transition: all 0.2s;
            font-weight: 500;
            border: 1px solid transparent;
        }

        .doc-nav a:hover { 
            background: rgba(255, 255, 255, 0.05); 
            color: white; 
        }

        .doc-nav a.active {
            background: rgba(99, 102, 241, 0.1);
            border-color: rgba(99, 102, 241, 0.3);
            color: white;
            box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
        }

        /* Основной контент */
        .doc-content {
            background: var(--nw-surface);
            border: 1px solid var(--nw-border);
            border-radius: 24px;
            padding: 50px;
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
            position: relative;
            overflow: hidden;
        }

        /* Тонкая светящаяся линия сверху */
        .doc-content::before {
            content: "";
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
        }

        .doc-content h1 {
            font-size: clamp(28px, 4vw, 42px);
            font-weight: 800;
            margin: 0 0 12px 0;
            background: linear-gradient(to right, #fff, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.02em;
        }

        .doc-intro {
            color: var(--nw-muted);
            margin-bottom: 40px;
            font-size: 14px;
            border-bottom: 1px solid var(--nw-border);
            padding-bottom: 24px;
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            align-items: center;
        }

        .doc-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 14px;
            border-radius: 50px;
            background: rgba(99, 102, 241, 0.1);
            border: 1px solid rgba(99, 102, 241, 0.3);
            color: #a5b4fc;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        .doc-content h2 {
            font-size: 22px;
            margin-top: 50px;
            margin-bottom: 24px;
            color: white;
            display: flex;
            align-items: center;
            gap: 14px;
            font-weight: 700;
        }
        
        .doc-content h2::before {
            content: '';
            display: block;
            width: 4px;
            height: 28px;
            background: linear-gradient(to bottom, var(--nw-primary), var(--nw-accent));
            border-radius: 2px;
            box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
        }

        .doc-content p {
            margin-bottom: 18px;
            color: #cbd5e1;
            line-height: 1.7;
            font-size: 15px;
        }

        .doc-content ul, .doc-content ol {
            color: #cbd5e1;
            line-height: 1.7;
            margin-bottom: 20px;
            padding-left: 24px;
        }

        .doc-content li {
            margin-bottom: 8px;
        }

        .doc-content .mark {
            color: var(--nw-primary);
            font-weight: 700;
            margin-right: 6px;
        }

        .doc-content strong {
            color: white;
            font-weight: 600;
        }

        .doc-content a {
            color: #a5b4fc;
            text-decoration: none;
            border-bottom: 1px dashed rgba(165, 180, 252, 0.4);
            transition: all 0.2s;
        }
        .doc-content a:hover {
            color: white;
            border-bottom-color: white;
        }

        /* Выделение важных блоков */
        .highlight-box {
            background: rgba(99, 102, 241, 0.08);
            border: 1px solid rgba(99, 102, 241, 0.25);
            border-radius: 16px;
            padding: 20px 24px;
            margin: 24px 0;
            font-size: 14px;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
        }
        .highlight-box::before {
            content: '';
            position: absolute;
            left: 0; top: 0; bottom: 0;
            width: 3px;
            background: linear-gradient(to bottom, var(--nw-primary), var(--nw-accent));
        }

        .warning-box {
            background: rgba(239, 68, 68, 0.08);
            border: 1px solid rgba(239, 68, 68, 0.25);
            color: #fca5a5;
            border-radius: 16px;
            padding: 20px 24px;
            margin: 24px 0;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
        }
        .warning-box::before {
            content: '';
            position: absolute;
            left: 0; top: 0; bottom: 0;
            width: 3px;
            background: linear-gradient(to bottom, #ef4444, #f59e0b);
        }
        .warning-box strong {
            color: #fecaca;
        }

        .box-icon {
            font-size: 18px;
            margin-right: 8px;
            vertical-align: middle;
        }

        /* Адаптив */
        @media (max-width: 900px) {
            .document-layout {
                grid-template-columns: 1fr;
                padding: 100px 20px 60px;
            }
            .doc-sidebar {
                display: none;
            }
            .doc-content {
                padding: 30px 24px;
                border-radius: 20px;
            }
            .doc-content h2 {
                font-size: 20px;
                margin-top: 40px;
            }
        }

        /* Плавное появление при скролле */
        .doc-content h2, .doc-content p, .highlight-box, .warning-box {
            opacity: 0;
            transform: translateY(10px);
            animation: docFadeIn 0.6s ease forwards;
        }
        @keyframes docFadeIn {
            to { opacity: 1; transform: translateY(0); }
        }

//================предложения
        .nwl-bg-blobs {
            position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
            z-index: -1; pointer-events: none; overflow: hidden;
        }
        .nwl-blob {
            position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.25;
            animation: nw-drift 20s infinite alternate ease-in-out;
        }
        .nwl-blob-1 { width: 50vw; height: 50vw; background: var(--nw-primary); top: -20%; left: -10%; }
        .nwl-blob-2 { width: 40vw; height: 40vw; background: var(--nw-accent); bottom: -10%; right: -10%; animation-delay: -10s; }
        
        @keyframes nw-drift {
            0% { transform: translate(0, 0); }
            100% { transform: translate(50px, 50px); }
        }

        /* --- LAYOUT --- */
        .nwl-page { position: relative; z-index: 1; padding: 100px 20px 60px; }
        .nwl-container { max-width: 1320px; margin: 0 auto; }

        .nwl-header { text-align: center; margin-bottom: 60px; }
        .nwl-label {
            display: inline-block; padding: 6px 16px; border-radius: 50px;
            background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.3);
            color: var(--nw-primary); font-size: 12px; font-weight: 700; letter-spacing: 1px;
            text-transform: uppercase; margin-bottom: 20px;
            box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
        }
        .nwl-title {
            font-size: clamp(32px, 5vw, 56px); font-weight: 800; margin: 0;
            background: linear-gradient(to right, #fff, #94a3b8);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        }
        .nwl-desc { max-width: 600px; margin: 15px auto 0; color: var(--nw-muted); font-size: 16px; }

        .nwl-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }

        /* --- SIDEBAR --- */
        .nwl-sidebar-wrapper { position: relative; }
        .nwl-filter-toggle { display: none; }

        .nwl-sidebar {
            background: var(--nw-surface);
            backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
            border: 1px solid var(--nw-border);
            border-radius: 24px;
            padding: 20px;
            position: sticky; top: 100px;
            max-height: calc(100vh - 120px);
            overflow-y: auto;
            box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
        }
        .nwl-nav-title {
            font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
            color: var(--nw-muted); margin-bottom: 15px; padding-left: 10px; font-weight: 700;
        }
        .nwl-nav-item {
            display: flex; justify-content: space-between; align-items: center;
            padding: 12px 16px; margin-bottom: 8px;
            color: var(--nw-muted); text-decoration: none;
            border-radius: 12px; transition: all 0.2s;
            font-weight: 500; border: 1px solid transparent; cursor: pointer;
        }
        .nwl-nav-item:hover { background: rgba(255,255,255,0.05); color: white; }
        .nwl-nav-item.active {
            background: rgba(99, 102, 241, 0.1);
            border-color: rgba(99, 102, 241, 0.3);
            color: white;
            box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
        }

        /* --- MAIN CONTENT --- */
        .nwl-section-header { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
        .nwl-section-title { font-size: 24px; margin: 0; color: white; }
        .nwl-section-line { flex-grow: 1; height: 1px; background: linear-gradient(90deg, var(--nw-border), transparent); }

        .nwl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

        /* --- CARDS --- */
        .nwl-card {
            position: relative; background: var(--nw-glass); border: 1px solid var(--nw-border);
            border-radius: 24px; padding: 24px; overflow: hidden;
            transition: transform 0.3s, border-color 0.3s; display: flex; flex-direction: column;
        }
        .nwl-card::before {
            content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
            z-index: 1; opacity: 0; transition: opacity 0.5s; pointer-events: none;
        }
        .nwl-card:hover::before { opacity: 1; }
        .nwl-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }

        .nwl-card-content { position: relative; z-index: 2; display: flex; gap: 15px; height: 100%; }
        .nwl-vote-box { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 40px; }
        .nwl-vote-btn {
            width: 36px; height: 36px; border-radius: 10px;
            background: rgba(255,255,255,0.05); border: 1px solid var(--nw-border);
            color: var(--nw-muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
            transition: 0.2s;
        }
        .nwl-vote-btn:hover { background: rgba(255,255,255,0.1); color: white; }
        .nwl-vote-btn.active { background: var(--nw-primary); color: white; border-color: var(--nw-primary); }
        .nwl-vote-count { font-size: 14px; font-weight: 700; color: white; }

        .nwl-card-body { flex-grow: 1; }
        .nwl-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
        .nwl-card-cat { font-size: 11px; font-weight: 700; color: var(--nw-primary); text-transform: uppercase; }
        
        .nwl-status-badge { font-size: 11px; padding: 4px 10px; border-radius: 20px; font-weight: 600; }
        .nwl-status-badge.pending { background: rgba(245, 158, 11, 0.15); color: var(--status-pending); }
        .nwl-status-badge.implemented { background: rgba(16, 185, 129, 0.15); color: var(--status-implemented); }
        .nwl-status-badge.rejected { background: rgba(239, 68, 68, 0.15); color: var(--status-rejected); }
        .nwl-status-badge.awaiting { background: rgba(99, 102, 241, 0.15); color: var(--status-awaiting); }
        .nwl-status-badge.in_progress { background: rgba(59, 130, 246, 0.15); color: var(--status-in-progress); }
        .nwl-status-badge.postponed { background: rgba(100, 116, 139, 0.15); color: var(--status-postponed); }

        .nwl-card-title { font-size: 18px; font-weight: 700; color: white; margin: 0 0 10px 0; line-height: 1.3; }
        .nwl-card-desc { font-size: 14px; color: var(--nw-muted); line-height: 1.5; margin: 0 0 15px 0; }
        
        .nwl-card-footer {
            margin-top: auto; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.05);
            font-size: 12px; color: var(--nw-muted); display: flex; justify-content: space-between;
        }
        .nwl-text-clamp {
            display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
            overflow: hidden; text-overflow: ellipsis;
        }
        .nwl-read-more-btn {
            background: none; border: none; color: var(--nw-primary);
            font-weight: 600; cursor: pointer; padding: 0; margin-top: 5px; font-size: 13px;
        }

        /* ============================================ */
        /* --- БЛОК "ЕСТЬ ИДЕЯ?" --- */
        /* ============================================ */
        .nwl-idea-block {
            background: var(--nw-surface);
            border: 1px solid var(--nw-border);
            border-radius: 24px;
            padding: 28px;
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            gap: 24px;
            position: relative;
            overflow: hidden;
        }
        .nwl-idea-block::before {
            content: "";
            position: absolute;
            top: -50%; right: -20%;
            width: 300px; height: 300px;
            background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
            pointer-events: none;
        }

        .nwl-idea-icon { font-size: 42px; flex-shrink: 0; position: relative; z-index: 1; }
        .nwl-idea-text { flex-grow: 1; position: relative; z-index: 1; }
        .nwl-idea-title { margin: 0 0 6px 0; font-size: 20px; font-weight: 700; color: white; }
        .nwl-idea-desc { margin: 0; color: var(--nw-muted); font-size: 14px; line-height: 1.5; }

        .nwl-idea-btn-wrap { position: relative; z-index: 1; flex-shrink: 0; }

        .nwl-idea-btn {
            width: 64px; height: 64px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--nw-primary), var(--nw-accent));
            border: none; color: white;
            font-size: 32px; font-weight: 300;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.3s;
            box-shadow: 0 10px 30px -5px rgba(99, 102, 241, 0.5);
            position: relative; overflow: hidden;
        }
        .nwl-idea-btn::before {
            content: "";
            position: absolute; top: 0; left: -100%;
            width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.6s;
        }
        .nwl-idea-btn:hover::before { left: 100%; }
        .nwl-idea-btn:hover {
            transform: scale(1.1) rotate(90deg);
            box-shadow: 0 15px 40px -5px rgba(99, 102, 241, 0.7);
        }

        .nwl-idea-btn-auth {
            width: auto; height: auto;
            border-radius: 16px; padding: 16px 24px;
            background: rgba(255,255,255,0.05);
            border: 1px solid var(--nw-border);
            color: white; font-weight: 600; font-size: 14px;
            text-decoration: none;
            display: flex; align-items: center; gap: 8px;
            transition: all 0.2s;
        }
        .nwl-idea-btn-auth:hover {
            background: rgba(255,255,255,0.1);
            border-color: var(--nw-primary);
        }

        /* --- MODALS COMMON --- */
        .nwl-modal-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
            z-index: 1000; display: flex; align-items: center; justify-content: center;
            opacity: 0; visibility: hidden; transition: 0.3s;
            padding: 20px;
        }
        .nwl-modal-overlay.open { opacity: 1; visibility: visible; }
        
        .nwl-modal {
            background: #1e293b; border: 1px solid var(--nw-border);
            border-radius: 24px; padding: 30px; width: 100%; max-width: 500px;
            position: relative; transform: translateY(20px) scale(0.95); transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
            max-height: 90vh;
            display: flex; flex-direction: column;
        }
        .nwl-modal-overlay.open .nwl-modal { transform: translateY(0) scale(1); }
        .nwl-modal-close {
            position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.05); border: 1px solid var(--nw-border);
            color: var(--nw-muted); font-size: 18px; cursor: pointer;
            width: 36px; height: 36px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            transition: 0.2s; z-index: 2;
        }
        .nwl-modal-close:hover {
            background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4);
            color: #ef4444; transform: rotate(90deg);
        }

        /* ============================================ */
        /* --- МОДАЛЬНОЕ ОКНО СОЗДАНИЯ --- */
        /* ============================================ */
        .nwl-create-modal {
            background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
            backdrop-filter: blur(24px);
            border: 1px solid rgba(99, 102, 241, 0.2);
            overflow: hidden;
            padding: 0;
        }
        .nwl-create-modal::before {
            content: "";
            position: absolute; top: -50%; left: -50%;
            width: 200%; height: 200%;
            background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.12) 0%, transparent 50%);
            pointer-events: none; z-index: 0;
        }
        .nwl-create-modal::after {
            content: "";
            position: absolute; top: 0; left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
        }

        .nwl-create-modal-content {
            position: relative; z-index: 1;
            padding: 35px 30px 30px;
            overflow-y: auto; flex: 1;
        }

        .nwl-modal-header {
            text-align: center;
            margin-bottom: 28px;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        .nwl-modal-icon {
            width: 56px; height: 56px;
            margin: 0 auto 16px;
            background: linear-gradient(135deg, var(--nw-primary), var(--nw-accent));
            border-radius: 16px;
            display: flex; align-items: center; justify-content: center;
            font-size: 26px;
            box-shadow: 0 10px 30px -5px rgba(99, 102, 241, 0.5);
            animation: nw-pulse 3s ease-in-out infinite;
        }
        @keyframes nw-pulse {
            0%, 100% { transform: scale(1); box-shadow: 0 10px 30px -5px rgba(99, 102, 241, 0.5); }
            50% { transform: scale(1.05); box-shadow: 0 15px 40px -5px rgba(99, 102, 241, 0.7); }
        }
        .nwl-modal-header h3 {
            margin: 0 0 6px 0;
            font-size: 22px; font-weight: 800; color: white;
            background: linear-gradient(to right, #fff, #cbd5e1);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        }
        .nwl-modal-header p { margin: 0; font-size: 13px; color: var(--nw-muted); }

        .nwl-form-group {
            margin-bottom: 18px;
            opacity: 0;
            transform: translateY(10px);
            animation: nw-fadeIn 0.4s ease forwards;
        }
        .nwl-form-group:nth-child(1) { animation-delay: 0.1s; }
        .nwl-form-group:nth-child(2) { animation-delay: 0.2s; }
        .nwl-form-group:nth-child(3) { animation-delay: 0.3s; }
        .nwl-form-group:nth-child(4) { animation-delay: 0.4s; }
        @keyframes nw-fadeIn {
            to { opacity: 1; transform: translateY(0); }
        }

        .nwl-form-label {
            display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 8px; font-size: 13px;
            color: var(--nw-muted); font-weight: 600;
        }
        .nwl-label-counter {
            font-size: 11px; color: var(--nw-muted);
            font-weight: 500; opacity: 0.7;
        }
        .nwl-label-counter.warning { color: #f59e0b; opacity: 1; }
        .nwl-label-counter.danger { color: #ef4444; opacity: 1; }

        .nwl-input-wrap { position: relative; }
        .nwl-input-icon {
            position: absolute; left: 14px; top: 50%;
            transform: translateY(-50%);
            color: var(--nw-muted);
            pointer-events: none;
            transition: color 0.2s; z-index: 2;
        }
        .nwl-input-wrap:focus-within .nwl-input-icon { color: var(--nw-primary); }

        .nwl-form-input, .nwl-form-select, .nwl-form-textarea {
            width: 100%;
            padding: 14px 14px 14px 44px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--nw-border);
            border-radius: 14px;
            color: white;
            font-family: inherit;
            font-size: 14px;
            outline: none;
            box-sizing: border-box;
            transition: all 0.25s;
        }
        .nwl-form-textarea {
            padding-left: 14px;
            resize: vertical;
            min-height: 110px;
            line-height: 1.5;
        }
        .nwl-form-input::placeholder, .nwl-form-textarea::placeholder {
            color: rgba(148, 163, 184, 0.5);
        }
        .nwl-form-input:hover, .nwl-form-select:hover, .nwl-form-textarea:hover {
            border-color: rgba(255,255,255,0.15);
            background: rgba(0, 0, 0, 0.4);
        }
        .nwl-form-input:focus, .nwl-form-select:focus, .nwl-form-textarea:focus {
            border-color: var(--nw-primary);
            background: rgba(0, 0, 0, 0.5);
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15),
                        0 0 20px -5px rgba(99, 102, 241, 0.3);
        }

        .nwl-btn-submit {
            width: 100%;
            padding: 16px;
            margin-top: 8px;
            background: linear-gradient(135deg, var(--nw-primary), #8b5cf6);
            color: white;
            border: none;
            border-radius: 14px;
            font-weight: 700;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
            opacity: 0;
            transform: translateY(10px);
            animation: nw-fadeIn 0.4s ease forwards;
            animation-delay: 0.5s;
        }
        .nwl-btn-submit::before {
            content: "";
            position: absolute; top: 0; left: -100%;
            width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }
        .nwl-btn-submit:hover::before { left: 100%; }
        .nwl-btn-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.6);
        }
        .nwl-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
        .nwl-btn-submit svg { transition: transform 0.3s; }
        .nwl-btn-submit:hover svg { transform: translateX(3px); }

        .nwl-form-hint {
            text-align: center;
            margin-top: 16px;
            font-size: 12px;
            color: var(--nw-muted);
            opacity: 0.7;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        /* ============================================ */
        /* --- НОВЫЙ СТИЛЬ ВЫБОРА КАТЕГОРИЙ (GRID) --- */
        /* ============================================ */
        .nwl-cat-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-top: 8px;
            max-height: 240px;
            overflow-y: auto;
            padding: 4px;
        }
        .nwl-cat-grid::-webkit-scrollbar { width: 6px; }
        .nwl-cat-grid::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 4px; }
        .nwl-cat-grid::-webkit-scrollbar-thumb { background: var(--nw-primary); border-radius: 4px; }

        .nwl-cat-item {
            position: relative;
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid var(--nw-border);
            border-radius: 12px;
            padding: 14px 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            user-select: none;
        }
        .nwl-cat-item:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(99, 102, 241, 0.3);
            transform: translateY(-2px);
        }
        .nwl-cat-item.active {
            background: rgba(99, 102, 241, 0.15);
            border-color: var(--nw-primary);
            box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
        }
        .nwl-cat-icon {
            font-size: 24px;
            line-height: 1;
        }
        .nwl-cat-name {
            font-size: 12px;
            font-weight: 600;
            color: var(--nw-muted);
            text-align: center;
            line-height: 1.2;
        }
        .nwl-cat-item.active .nwl-cat-name {
            color: #fff;
        }
        .nwl-cat-check {
            position: absolute;
            top: 6px; right: 6px;
            width: 18px; height: 18px;
            background: var(--nw-primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transform: scale(0.5);
            transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .nwl-cat-check i {
            font-size: 12px;
            color: white;
        }
        .nwl-cat-item.active .nwl-cat-check {
            opacity: 1;
            transform: scale(1);
        }
        .nwl-cat-error {
            display: none;
            color: #ef4444;
            font-size: 12px;
            margin-top: 8px;
            align-items: center;
            gap: 5px;
        }
        .nwl-cat-error.show { display: flex; }

        /* Toast */
        .nwl-toast {
            position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
            background: #1e293b; border: 1px solid var(--nw-border); padding: 12px 24px;
            border-radius: 50px; color: white; display: flex; align-items: center; gap: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: 0.3s; z-index: 2000;
        }
        .nwl-toast.show { transform: translateX(-50%) translateY(0); }
        .nwl-empty {
            text-align: center; padding: 60px; grid-column: 1 / -1;
            border: 2px dashed var(--nw-border); border-radius: 24px; color: var(--nw-muted);
        }

        /* ============================================ */
        /* --- МОДАЛЬНОЕ ОКНО ПРОСМОТРА --- */
        /* ============================================ */
        .nwl-view-modal {
            background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
            backdrop-filter: blur(24px);
            border: 1px solid rgba(99, 102, 241, 0.2);
            overflow: hidden;
            padding: 0;
            max-width: 500px !important;
            height: auto;
        }
        .nwl-view-modal::before {
            content: "";
            position: absolute; top: -50%; left: -50%;
            width: 200%; height: 200%;
            background: radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
            pointer-events: none; z-index: 0;
        }
        .nwl-view-modal::after {
            content: "";
            position: absolute; top: 0; left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
        }

        .nwl-view-modal-content {
            position: relative; z-index: 1;
            display: flex; flex-direction: column;
            max-height: 70vh; overflow: hidden;
        }

        .nwl-view-modal-header {
            padding: 24px 24px 16px;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            flex-shrink: 0; position: relative;
        }
        .nwl-view-modal-header::after {
            content: "";
            position: absolute; bottom: -1px; left: 24px; right: 24px;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
        }
        .nwl-view-modal-top {
            display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
            animation: nw-fadeIn 0.3s ease forwards;
        }
        .nwl-view-modal-title {
            margin: 0 0 14px 0;
            font-size: clamp(18px, 3vw, 22px);
            font-weight: 800; line-height: 1.3; color: white;
            background: linear-gradient(to right, #fff, #cbd5e1);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: nw-fadeIn 0.4s ease forwards;
            animation-delay: 0.1s;
            opacity: 0; transform: translateY(5px);
        }

        .nwl-view-meta {
            display: flex; flex-wrap: wrap; gap: 8px;
            animation: nw-fadeIn 0.4s ease forwards;
            animation-delay: 0.2s;
            opacity: 0; transform: translateY(5px);
        }
        .nwl-view-meta-item {
            display: inline-flex; align-items: center; gap: 6px;
            font-size: 11px; color: var(--nw-muted);
            padding: 5px 10px;
            background: rgba(255,255,255,0.04);
            border: 1px solid var(--nw-border);
            border-radius: 50px; font-weight: 500;
        }
        .nwl-view-meta-item svg { flex-shrink: 0; opacity: 0.8; }
        .nwl-vote-meta {
            background: rgba(99, 102, 241, 0.1);
            border-color: rgba(99, 102, 241, 0.25);
            color: #a5b4fc;
        }
        .nwl-vote-meta svg { color: var(--nw-primary); }

        .nwl-view-scroll-wrapper {
            position: relative; flex: 1;
            overflow: hidden; min-height: 150px;
        }
        .nwl-scroll-fade {
            position: absolute; left: 0; right: 0;
            height: 25px; pointer-events: none;
            z-index: 3; transition: opacity 0.3s;
        }
        .nwl-scroll-fade-top {
            top: 0;
            background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), transparent);
            opacity: 0;
        }
        .nwl-scroll-fade-top.is-visible { opacity: 1; }
        .nwl-scroll-fade-bottom {
            bottom: 0;
            background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
            opacity: 1;
        }
        .nwl-scroll-fade-bottom.is-hidden { opacity: 0; }

        .nwl-view-scroll-area {
            height: 100%;
            max-height: 40vh;
            overflow-y: auto;
            padding: 20px 24px;
            scroll-behavior: smooth;
            position: relative;
        }
        .nwl-view-scroll-area::-webkit-scrollbar { width: 6px; }
        .nwl-view-scroll-area::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 4px; margin: 6px 0; }
        .nwl-view-scroll-area::-webkit-scrollbar-thumb {
            background: linear-gradient(to bottom, var(--nw-primary), var(--nw-accent));
            border-radius: 4px;
            border: 1px solid rgba(255,255,255,0.05);
        }
        .nwl-view-scroll-area { scrollbar-width: thin; scrollbar-color: var(--nw-primary) rgba(255,255,255,0.03); }

        .nwl-view-modal-desc {
            color: #cbd5e1; line-height: 1.65; font-size: 14px;
            word-wrap: break-word; overflow-wrap: break-word;
            animation: nw-fadeIn 0.5s ease forwards;
            animation-delay: 0.3s;
            opacity: 0; transform: translateY(5px);
        }
        .nwl-view-modal-desc br + br { display: none; }

        .nwl-scroll-hint {
            display: none;
            flex-direction: column; align-items: center; gap: 6px;
            margin: 20px auto 10px;
            padding: 10px 18px;
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.1));
            border: 1px solid rgba(99, 102, 241, 0.3);
            border-radius: 50px;
            color: #a5b4fc;
            font-size: 12px; font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            position: relative; overflow: hidden;
            font-family: inherit;
        }
        .nwl-scroll-hint.is-visible {
            display: flex;
            animation: nw-hintAppear 0.6s ease forwards, nw-hintPulse 2s ease-in-out 1s infinite;
        }
        .nwl-scroll-hint::before {
            content: "";
            position: absolute; top: 0; left: -100%;
            width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
            transition: left 0.6s;
        }
        .nwl-scroll-hint:hover::before { left: 100%; }
        .nwl-scroll-hint:hover {
            border-color: var(--nw-primary);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px -5px rgba(99, 102, 241, 0.4);
        }
        .nwl-scroll-hint-arrow { animation: nw-arrowBounce 1.5s ease-in-out infinite; }

        @keyframes nw-hintAppear {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes nw-hintPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.3); }
            50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
        }
        @keyframes nw-arrowBounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(4px); }
        }

        .nwl-view-modal-footer {
            padding: 14px 24px;
            border-top: 1px solid rgba(255,255,255,0.05);
            display: flex; justify-content: space-between; align-items: center;
            gap: 16px; flex-shrink: 0; position: relative;
        }
        .nwl-view-modal-footer::before {
            content: "";
            position: absolute; top: -1px; left: 24px; right: 24px;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
        }
        .nwl-view-footer-info {
            display: flex; align-items: center; gap: 8px;
            font-size: 11px; color: var(--nw-muted);
            font-weight: 500; flex: 1; min-width: 0;
        }
        .nwl-view-footer-info span {
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .nwl-view-close-btn {
            padding: 8px 16px;
            background: rgba(255,255,255,0.05);
            border: 1px solid var(--nw-border);
            border-radius: 10px;
            color: white; font-weight: 600; font-size: 12px;
            cursor: pointer; transition: all 0.2s;
            font-family: inherit; white-space: nowrap;
        }
        .nwl-view-close-btn:hover {
            background: rgba(239, 68, 68, 0.1);
            border-color: rgba(239, 68, 68, 0.3);
            color: #fca5a5;
        }

        /* Mobile */
        @media (max-width: 600px) {
            .nwl-view-modal { width: 90%; height: 75vh; max-height: none; border-radius: 20px; }
            .nwl-view-modal-content { max-height: 100%; }
            .nwl-view-modal-header { padding: 18px 18px 12px; }
            .nwl-view-modal-header::after { left: 18px; right: 18px; }
            .nwl-view-modal-title { font-size: 17px; margin-bottom: 10px; }
            .nwl-view-meta { gap: 5px; }
            .nwl-view-meta-item { padding: 4px 8px; font-size: 10px; }
            .nwl-view-scroll-area { padding: 12px 18px; max-height: none; flex-grow: 1; }
            .nwl-view-modal-footer { padding: 10px 18px; flex-direction: row; gap: 10px; }
            .nwl-view-modal-footer::before { left: 18px; right: 18px; }
            .nwl-view-close-btn { padding: 8px 14px; font-size: 11px; }
            .nwl-view-modal-desc { font-size: 13px; }
        }

        @media (max-width: 900px) {
            .nwl-page { padding-top: 80px; }
            .nwl-layout { grid-template-columns: 1fr; gap: 30px; }
            .nwl-sidebar { display: none; }
            .nwl-filter-toggle { 
                display: flex; width: 100%; padding: 16px;
                background: var(--nw-surface); border: 1px solid var(--nw-border);
                border-radius: 16px; color: white; font-weight: 600; cursor: pointer;
                margin-bottom: 20px; justify-content: space-between; align-items: center;
                transition: 0.2s;
            }
            .nwl-filter-toggle:hover {
                background: rgba(255,255,255,0.05);
                border-color: var(--nw-primary);
            }

            .nwl-mobile-menu {
                display: flex; flex-direction: column;
                position: fixed; bottom: 0; left: 0; width: 100%;
                background: #1e293b;
                border-top-left-radius: 24px; border-top-right-radius: 24px;
                border-top: 1px solid var(--nw-border);
                z-index: 1100;
                padding: 20px 24px 30px;
                max-height: 80vh; overflow-y: auto;
                transform: translateY(110%);
                transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
                box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
            }
            .nwl-mobile-menu.is-open { transform: translateY(0); }

            .nwl-mobile-header {
                display: flex; justify-content: space-between; align-items: center;
                margin-bottom: 18px; width: 100%;
            }
            .nwl-mobile-title {
                font-size: 18px; font-weight: 700; color: white;
                text-transform: uppercase; letter-spacing: 1px;
            }
            .nwl-close-mobile {
                position: static;
                background: rgba(255,255,255,0.08); 
                border: 1px solid var(--nw-border); 
                color: var(--nw-muted); 
                width: 36px; height: 36px; 
                border-radius: 50%; font-size: 20px; 
                display: flex; align-items: center; justify-content: center; 
                cursor: pointer; transition: 0.2s;
            }
            .nwl-close-mobile:hover {
                background: rgba(239, 68, 68, 0.15);
                border-color: rgba(239, 68, 68, 0.4);
                color: #ef4444;
            }

            .nwl-mobile-divider {
                position: relative; height: 1px; margin: 0 0 20px;
                background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.1) 15%, rgba(99, 102, 241, 0.5) 50%, rgba(236, 72, 153, 0.5) 85%, transparent 100%);
                overflow: visible;
            }    </style>
            .nwl-mobile-divider::after {
                content: "";
                position: absolute; top: 50%; left: 50%;
                transform: translate(-50%, -50%);
                width: 6px; height: 6px;
                background: var(--nw-primary);
                border-radius: 50%;
                box-shadow: 0 0 10px var(--nw-primary), 0 0 20px rgba(99, 102, 241, 0.5);
            }

            .nwl-menu-overlay {
                position: fixed; top: 0; left: 0; width: 100%; height: 100%;
                background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
                z-index: 1099;
                opacity: 0; visibility: hidden; transition: 0.3s;
            }
            .nwl-menu-overlay.is-open { opacity: 1; visibility: visible; }

            .nwl-idea-block { flex-direction: column; text-align: center; padding: 24px 20px; }
            .nwl-idea-icon { font-size: 36px; margin-bottom: 12px; }
            .nwl-idea-title { font-size: 18px; }
            .nwl-idea-desc { font-size: 13px; margin-bottom: 16px; }
            .nwl-idea-btn { width: 56px; height: 56px; font-size: 28px; }
            
            .nwl-grid { grid-template-columns: 1fr; }
            
            /* Мобильная сетка категорий */
            .nwl-cat-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
                max-height: 200px;
            }
            .nwl-cat-item { padding: 10px 5px; }
            .nwl-cat-icon { font-size: 20px; }
            .nwl-cat-name { font-size: 11px; }
        }

        @media (min-width: 901px) {
            .nwl-mobile-menu { display: none !important; }
        }
//=================support

    /* =========================================
       FIX: LAYOUT OVERRIDE
       ========================================= */
    body, #__nuxt, #__layout {
        display: block !important;
        width: 100% !important;
        overflow-x: hidden;
    }

    nav, .sidebar, .navigation, header.nav-header, .navbar {
        position: relative !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 20px !important;
        box-sizing: border-box;
        border-bottom: 1px solid var(--border);
        z-index: 50;
    }

    main.support-layout {
        width: 100%;
        max-width: 1000px;
        margin: 40px auto !important;
        padding: 0 20px;
        display: flex;
        flex-direction: column;
    }

    @media (max-width: 768px) {
        main.support-layout {
            margin: 20px auto !important;
            padding: 0 10px;
        }
        nav, .sidebar, .navigation {
            padding: 0 10px !important;
        }
        .glass-panel {
            border-radius: 12px !important;
        }
    }


    .bg-effects {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
        background: 
            radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08), transparent 40%),
            radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08), transparent 40%);
    }
    .bg-grid {
        position: absolute; inset: 0;
        background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
        background-size: 40px 40px;
        opacity: 0.15;
        mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    }

    .support-container { width: 100%; }
    
    .glass-panel {
        background: rgba(20, 20, 23, 0.6);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .fade-in-up { animation: fadeInUp 0.5s ease-out forwards; }

    /* HEADER */
    .ticket-header {
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 20px;
    }

    .header-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .back-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--text-dim);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s;
        padding: 6px 10px;
        border-radius: var(--radius-sm);
    }
    .back-btn:hover { color: var(--text-main); background: var(--surface); transform: translateX(-3px); }

    .status-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        border: 1px solid var(--status-border);
        background: var(--status-bg);
        color: var(--status-color);
    }
    .status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
    .status-pulse .status-dot { animation: pulse 2s infinite; }

    .ticket-title {
        margin: 0;
        font-size: 24px;
        font-weight: 700;
        display: flex;
        align-items: baseline;
        gap: 12px;
        flex-wrap: wrap;
    }
    .ticket-id {
        font-family: var(--font-mono);
        font-size: 14px;
        color: var(--text-dim);
        background: var(--surface);
        padding: 2px 8px;
        border-radius: 6px;
    }

    .ticket-meta {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--text-dim);
        font-size: 13px;
    }
    .meta-item { display: flex; align-items: center; gap: 6px; }
    .separator { opacity: 0.3; }

    /* CHAT SECTION */
    .chat-section {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 400px;
        max-height: 600px;
        margin-bottom: 20px;
    }

    .chat-container {
        flex: 1;
        overflow-y: auto;
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 24px;
        scroll-behavior: smooth;
    }
    .chat-container::-webkit-scrollbar { width: 6px; }
    .chat-container::-webkit-scrollbar-track { background: transparent; }
    .chat-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

    .chat-empty-state {
        margin: auto;
        text-align: center;
        color: var(--text-dim);
        padding: 40px;
    }
    .empty-icon-wrapper {
        width: 64px; height: 64px; margin: 0 auto 16px;
        background: var(--surface); border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        border: 1px dashed var(--border);
    }

    /* Messages */
    .message-wrapper {
        display: flex;
        gap: 12px;
        max-width: 85%;
        animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .msg-left { align-self: flex-start; }
    .msg-right { align-self: flex-end; flex-direction: row-reverse; }

    .message-avatar {
        width: 36px; height: 36px;
        border-radius: 50%;
        background: var(--surface);
        border: 1px solid var(--border);
        display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
    }

    .message-content { display: flex; flex-direction: column; gap: 4px; }
    .message-header {
        display: flex; align-items: center; gap: 8px;
        font-size: 12px; padding: 0 4px;
    }
    .msg-left .message-header { color: var(--text-dim); }
    .msg-right .message-header { justify-content: flex-end; color: var(--primary); }
    
    /* Стили для имени отправителя */
    .sender-name { font-weight: 600; }
    .sender-name.bot-name { color: var(--bot-color); }

    .message-bubble {
        padding: 12px 16px;
        border-radius: var(--radius-md);
        font-size: 14px;
        line-height: 1.6;
        position: relative;
        word-break: break-word;
        display: block;
        width: 100%;
    }
    .msg-admin {
        background: var(--surface);
        border: 1px solid var(--border);
        color: var(--text-main);
        border-top-left-radius: 4px;
    }
    .msg-user {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
        border: 1px solid rgba(99, 102, 241, 0.2);
        color: var(--text-main);
        border-top-right-radius: 4px;
    }

    /* View Photo Button Styles */
    .wiki_admin_support_view-photo-btn {
        display: flex; align-items: center; gap: 8px;
        padding: 8px 12px; 
        background: rgba(255,255,255,0.05); 
        border: 1px solid rgba(255,255,255,0.1); 
        border-radius: 8px; 
        color: #a1a1aa; 
        cursor: pointer; 
        font-size: 13px; 
        transition: 0.2s;
        width: fit-content;
        margin-top: 12px;
    }
    .wiki_admin_support_view-photo-btn:hover {
        background: rgba(255,255,255,0.1);
        color: var(--text-main);
        border-color: var(--primary);
    }

    .message-attachment {
        margin-top: 10px; display: flex; align-items: center; gap: 12px;
        padding: 10px; background: rgba(0,0,0,0.2);
        border-radius: 8px; border: 1px solid var(--border); max-width: 280px;
    }
    .file-icon-wrap { color: var(--text-dim); }
    .file-details { display: flex; flex-direction: column; overflow: hidden; }
    .file-name {
        color: var(--primary); text-decoration: none; font-size: 13px; font-weight: 500;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .file-action { font-size: 11px; color: var(--text-dim); }
    
    /* LINK UNDER TEXT FIX */
    .link-type {
        color: var(--primary); text-decoration: none; font-size: 13px;
        display: block;
        margin-top: 12px;
        padding: 8px 12px;
        background: rgba(99, 102, 241, 0.1);
        border: 1px solid rgba(99, 102, 241, 0.1);
        border-radius: 8px;
        width: fit-content;
        max-width: 100%;
        transition: 0.2s;
        box-sizing: border-box;
    }
    .link-type:hover {
        background: rgba(99, 102, 241, 0.2);
        border-color: rgba(99, 102, 241, 0.3);
    }
    .link-type svg {
        display: inline-block;
        vertical-align: middle;
        margin-right: 6px;
    }
    .link-type .link-text {
        display: inline-block;
        vertical-align: middle;
    }

    /* REPLY FORM */
    .reply-footer { padding: 20px; margin-top: auto; }
    .input-wrapper { position: relative; display: flex; flex-direction: column; gap: 10px; }
    textarea {
        width: 100%; background: transparent; border: none;
        color: var(--text-main); font-family: inherit; font-size: 15px;
        resize: none; outline: none; min-height: 60px; padding: 4px;
    }
    textarea::placeholder { color: rgba(255,255,255,0.2); }

    .form-actions {
        display: flex; justify-content: space-between; align-items: center;
        border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px;
    }

    .attach-wrapper { position: relative; display: inline-block; }
    .attach-btn {
        background: transparent; border: none; color: var(--text-dim);
        cursor: pointer; padding: 8px; border-radius: 50%; transition: 0.2s;
        display: flex;
    }
    .attach-btn:hover { color: var(--text-main); background: var(--surface); }
    .attach-btn.active { color: var(--primary); background: rgba(99, 102, 241, 0.1); }

    .send-btn {
        background: var(--primary); color: white; border: none;
        width: 40px; height: 40px; border-radius: 12px;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; transition: 0.2s;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }
    .send-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4); }
    .send-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

    /* КНОПКА ОПЕРАТОРА */
    .operator-btn {
        background: rgba(245, 158, 11, 0.1); 
        color: var(--operator-color); 
        border: 1px solid rgba(245, 158, 11, 0.2);
        padding: 0 12px; 
        height: 40px; 
        border-radius: 12px;
        display: flex; 
        align-items: center; 
        justify-content: center;
        cursor: pointer; 
        transition: 0.2s;
        font-size: 13px;
        font-weight: 500;
        gap: 6px;
    }
    .operator-btn:hover {
        background: rgba(245, 158, 11, 0.2);
        border-color: var(--operator-color);
        color: #fff;
    }

    .file-preview {
        display: flex; align-items: center; justify-content: space-between;
        background: var(--surface); padding: 8px 12px; border-radius: 8px;
        margin-top: 10px; border: 1px solid var(--border);
        font-size: 13px; color: var(--text-dim);
    }
    .file-preview.hidden { display: none; }
    .file-info { display: flex; align-items: center; gap: 8px; }
    .remove-file-btn { background: none; border: none; color: var(--accent); cursor: pointer; padding: 4px; }

    /* Attach Menu Popup */
    .attach-menu {
        position: absolute; 
        bottom: 100%;
        left: 0; 
        margin-bottom: 10px;
        background: #18181b; border: 1px solid var(--border);
        border-radius: 12px; padding: 8px; width: 200px;
        display: none; flex-direction: column; gap: 4px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.6); z-index: 100;
        animation: slideUpFade 0.2s ease-out;
    }
    .attach-menu.show { display: flex; }
    .menu-item {
        display: flex; align-items: center; gap: 10px;
        padding: 10px; border-radius: 8px; cursor: pointer;
        background: transparent; border: none; color: var(--text-main);
        text-align: left; width: 100%; font-size: 13px;
    }
    .menu-item:hover { background: var(--surface-hover); }
    .menu-icon {
        width: 28px; height: 28px; border-radius: 6px;
        display: flex; align-items: center; justify-content: center;
    }
    .bg-blue { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
    .bg-purple { background: rgba(236, 72, 153, 0.2); color: #f472b6; }

    .closed-banner {
        padding: 20px; text-align: center; color: var(--text-dim);
        display: flex; align-items: center; justify-content: center; gap: 12px;
        margin-top: 20px;
    }
    .closed-icon { color: var(--text-dim); }
    .closed-text { display: flex; flex-direction: column; }
    .closed-text strong { color: var(--text-main); }

    /* MODALS */
    .modal-overlay {
        position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px);
        z-index: 1000; display: none; align-items: center; justify-content: center;
        opacity: 0; transition: opacity 0.3s;
    }
    .modal-overlay.show { display: flex; opacity: 1; }
    .modal-content {
        background: #18181b; border: 1px solid var(--border);
        padding: 24px; border-radius: 20px; width: 90%; max-width: 400px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.5); transform: scale(0.95); transition: 0.3s;
    }
    .modal-overlay.show .modal-content { transform: scale(1); }
    .modal-content h3 { margin: 0 0 16px; color: white; font-size: 18px; }
    .modal-input {
        width: 100%; padding: 12px; background: rgba(0,0,0,0.3);
        border: 1px solid var(--border); border-radius: 8px;
        color: white; margin-bottom: 16px; outline: none; font-family: inherit;
    }
    .modal-input:focus { border-color: var(--primary); }
    .modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
    .btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text-dim); padding: 8px 16px; border-radius: 8px; cursor: pointer; transition: 0.2s; }
    .btn-secondary:hover { border-color: var(--text-dim); color: var(--text-main); }
    .btn-primary { background: var(--primary); border: none; color: white; padding: 8px 16px; border-radius: 8px; cursor: pointer; transition: 0.2s; }
    .btn-primary:hover { background: #4f46e5; }

    .image-viewer-overlay { background: rgba(0,0,0,0.95); z-index: 2000; }
    .image-viewer-container { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
    #viewer-img { max-width: 95%; max-height: 90vh; border-radius: 8px; object-fit: contain; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
    .viewer-close { position: absolute; top: 30px; right: 30px; background: rgba(255,255,255,0.1); border: none; border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
    .viewer-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

    @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes popIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
    @keyframes slideUpFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }
    .spin { animation: spin 1s linear infinite; }
    @keyframes spin { 100% { transform: rotate(360deg); } }

    @media (max-width: 768px) {
        .ticket-header, .chat-section, .reply-footer { border-radius: 16px; }
        .message-wrapper { max-width: 95%; }
        .ticket-title { font-size: 20px; }
        
        .message-bubble { padding: 10px 14px; }
        .link-type, .message-image-btn, .message-attachment, .wiki_admin_support_view-photo-btn {
            width: 100%;
            justify-content: center;
        }
    }
//————————-–auth 
        /* =========================================
           ОСНОВНЫЕ СТИЛИ ФОРМЫ ВХОДА
           ========================================= */
        .wiki_auth_input-wrap {
            position: relative;
            margin-bottom: 15px;
        }

        .wiki_auth_input {
            width: 100%;
            padding: 12px 45px 12px 45px;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            font-family: 'Inter', sans-serif;
            font-size: 15px;
            outline: none;
            transition: all 0.2s;
            background: #fff;
            box-sizing: border-box;
        }

        .wiki_auth_input:focus {
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        .wiki_auth_icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            pointer-events: none;
        }

        .wiki_auth_toggle-password {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #9ca3af;
            transition: color 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }

        .wiki_auth_toggle-password:hover {
            color: #4b5563;
        }

        /* =========================================
           ТЕМНЫЙ ДИЗАЙН МОДАЛЬНОГО ОКНА 2FA
           ========================================= */
        .wiki_auth_modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 20px;
        }

        .wiki_auth_modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .wiki_auth_modal {
            background: #1e293b; /* Slate 800 */
            width: 100%;
            max-width: 420px;
            border-radius: 24px;
            padding: 40px 35px;
            border: 1px solid #334155;
            box-shadow: 
                0 25px 50px -12px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
            transform: scale(0.95) translateY(20px);
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .wiki_auth_modal::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #4f46e5, #818cf8, #4f46e5);
            background-size: 200% 100%;
            animation: gradientShift 3s ease infinite;
        }

        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .wiki_auth_modal-overlay.active .wiki_auth_modal {
            transform: scale(1) translateY(0);
        }

        .wiki_auth_modal-icon {
            width: 72px;
            height: 72px;
            background: rgba(79, 70, 229, 0.15);
            color: #818cf8;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 24px;
            box-shadow: 0 0 25px rgba(79, 70, 229, 0.25);
            border: 1px solid rgba(79, 70, 229, 0.3);
            animation: floatIcon 4s ease-in-out infinite;
        }

        @keyframes floatIcon {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-6px); }
        }

        .wiki_auth_modal-icon svg {
            width: 32px;
            height: 32px;
            stroke-width: 2px;
        }

        .wiki_auth_modal h3 {
            font-size: 22px;
            font-weight: 800;
            color: #f8fafc;
            margin: 0 0 10px;
            letter-spacing: -0.02em;
        }

        .wiki_auth_modal p {
            font-size: 15px;
            color: #94a3b8;
            margin: 0 0 30px;
            line-height: 1.6;
        }

        .wiki_auth_code-input {
            width: 100%;
            padding: 18px 0;
            font-size: 32px;
            font-family: 'Inter', sans-serif;
            font-weight: 700;
            text-align: center;
            letter-spacing: 12px;
            color: #f8fafc;
            border: 2px solid #334155;
            border-radius: 16px;
            margin-bottom: 24px;
            outline: none;
            background: #0f172a;
            transition: all 0.25s ease;
        }

        .wiki_auth_code-input:focus {
            border-color: #6366f1;
            background: #0b1120;
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 0 20px rgba(99, 102, 241, 0.15);
            transform: translateY(-1px);
        }

        .wiki_auth_code-input::placeholder {
            color: #475569;
            letter-spacing: 12px;
        }

        .wiki_auth_modal_btn {
            width: 100%;
            padding: 14px;
            background: #4f46e5;
            color: white;
            border: none;
            border-radius: 12px;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.1) inset;
        }

        .wiki_auth_modal_btn:hover {
            background: #6366f1;
            transform: translateY(-1px);
            box-shadow: 0 8px 15px -3px rgba(79, 70, 229, 0.4);
        }

        .wiki_auth_modal_btn:active {
            transform: translateY(0);
        }
        
        .wiki_auth_modal_btn:disabled {
            background: #475569;
            color: #94a3b8;
            cursor: not-allowed;
            box-shadow: none;
            transform: none;
        }

        .wiki_auth_modal_close {
            position: absolute;
            top: 16px;
            right: 16px;
            background: #334155;
            border: 1px solid #475569;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            cursor: pointer;
            transition: all 0.2s;
        }

        .wiki_auth_modal_close:hover {
            background: rgba(239, 68, 68, 0.15);
            border-color: rgba(239, 68, 68, 0.3);
            color: #ef4444;
            transform: rotate(90deg);
        }

        /* Стили для ссылки "Отправить повторно" */
        .wiki_auth_resend-wrap {
            margin-top: 20px;
            font-size: 14px;
            color: #64748b;
        }

        .wiki_auth_resend-link {
            color: #818cf8;
            text-decoration: none;
            font-weight: 600;
            cursor: pointer;
            transition: color 0.2s;
            background: none;
            border: none;
            padding: 0;
            font-size: 14px;
        }

        .wiki_auth_resend-link:hover:not(:disabled) {
            color: #a5b4fc;
            text-decoration: underline;
        }

        .wiki_auth_resend-link:disabled {
            color: #475569;
            cursor: default;
            text-decoration: none;
        }
//=============================профиль


/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.ambient-light {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 25s infinite ease-in-out;
    will-change: transform;
}

.blob-1 {
    top: -15%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
    animation-delay: -8s;
}

.blob-3 {
    top: 40%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-tertiary), transparent 70%);
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: translate(50px, -80px) scale(1.1);
        opacity: 0.4;
    }
    50% { 
        transform: translate(-30px, 40px) scale(0.9);
        opacity: 0.25;
    }
    75% { 
        transform: translate(40px, 60px) scale(1.05);
        opacity: 0.35;
    }
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 48px;
    padding: 48px;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.05) 0%, 
        rgba(236, 72, 153, 0.03) 50%,
        rgba(6, 182, 212, 0.02) 100%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(24px);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-primary), 
        var(--accent-secondary), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.profile-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.1), transparent 50%);
    pointer-events: none;
}

/* Avatar */
.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    z-index: 1;
}

.avatar-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 4px rgba(124, 58, 237, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.5);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-tertiary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-upload-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.8), 
        rgba(236, 72, 153, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    backdrop-filter: blur(8px);
}

.avatar-wrapper:hover .avatar-upload-overlay { 
    opacity: 1; 
}

.avatar-wrapper:hover .avatar-img {
    transform: scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 
        0 0 0 4px rgba(124, 58, 237, 0.3),
        0 12px 48px var(--accent-glow);
}

.upload-icon {
    color: white;
    font-size: 28px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Status Badge */
.status-badge {
    position: absolute;
    bottom: 8px;
    right: 12px;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid var(--success);
    color: var(--success);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 12px currentColor;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* User Info */
.user-info {
    flex: 1;
    z-index: 1;
}

.user-info h1 {
    font-size: 3.5rem;
    margin: 0 0 12px 0;
    font-weight: 800;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.role-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.2), 
        rgba(236, 72, 153, 0.15));
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: #c4b5fd;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: 'JetBrains Mono', monospace;
    backdrop-filter: blur(8px);
}

.role-tag::before {
    content: '◆';
    font-size: 0.7rem;
    animation: rotate 4s linear infinite;
}

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

.verification-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}

.is-verified { 
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.is-not-verified { 
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

/* ============================================
   BENTO GRID
   ============================================ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(16px);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.02) 0%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-highlight);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.card-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.mono-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--text-primary);
    opacity: 0.9;
}

/* Level Card */
.card-level {
    grid-column: span 2;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.08) 0%, 
        rgba(236, 72, 153, 0.05) 50%,
        rgba(6, 182, 212, 0.03) 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

@media (max-width: 768px) { 
    .card-level { grid-column: span 1; } 
}

/* Progress Bar */
.xp-bar-container { 
    margin-top: 20px; 
    position: relative;
    z-index: 1;
}

.progress-track {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--accent-primary), 
        var(--accent-secondary),
        var(--accent-tertiary));
    background-size: 200% 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.5));
    animation: shimmer 2s infinite;
}

.xp-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Badges */
.badges-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.badge-item {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05), 
        rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: help;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.badge-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        var(--accent-primary), 
        var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.badge-item:hover { 
    transform: scale(1.15) rotate(5deg);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.badge-item:hover::before {
    opacity: 0.2;
}

.badge-locked { 
    opacity: 0.3; 
    filter: grayscale(1);
    cursor: not-allowed;
}

.badge-locked:hover {
    transform: none;
    box-shadow: none;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.actions-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn {
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover { 
    transform: translateY(-3px);
    box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.btn-glass:hover { 
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-highlight);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover { 
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    transform: translateY(-2px);
}

/* ============================================
   ALERTS
   ============================================ */
.alert-box {
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
    backdrop-filter: blur(12px);
    border: 1px solid;
}

.alert-error { 
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success { 
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

/* ============================================
   MODAL SYSTEM
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-window {
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-xl);
    padding: 3px;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.4), 
        rgba(236, 72, 153, 0.4),
        rgba(6, 182, 212, 0.4));
    background-size: 300% 300%;
    animation: gradientShift 10s ease infinite;
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-window {
    opacity: 1;
    transform: scale(1) translateY(0);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.modal-inner {
    background: rgba(18, 18, 26, 0.98);
    border-radius: calc(var(--radius-xl) - 3px);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.modal-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.03) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.8s;
    pointer-events: none;
}

.modal-inner:hover::before {
    transform: translateX(100%);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 16px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-title-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px var(--accent-glow);
    animation: pulse 3s infinite;
}

.modal-close-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
    transform: rotate(90deg) scale(1.1);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 36px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 14px 12px;
    border-radius: 14px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.25), 
        rgba(236, 72, 153, 0.2));
    color: #fff;
    box-shadow: 
        0 4px 16px rgba(124, 58, 237, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab-btn svg {
    width: 18px;
    height: 18px;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

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

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

/* Input Fields */
.input-group {
    margin-bottom: 32px;
    position: relative;
}

.modern-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 20px 20px 20px 20px;
    border-radius: 16px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.modern-input::placeholder {
    color: transparent;
}

.modern-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.modern-input:focus {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--accent-primary);
    box-shadow: 
        0 0 0 4px rgba(124, 58, 237, 0.15),
        0 0 24px rgba(124, 58, 237, 0.1);
}

/* Floating Label */
.floating-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 0 6px;
}

.modern-input:focus ~ .floating-label,
.modern-input:not(:placeholder-shown) ~ .floating-label {
    top: 0;
    left: 16px;
    font-size: 0.75rem;
    color: var(--accent-primary);
    background: linear-gradient(180deg, 
        transparent 40%, 
        rgba(18, 18, 26, 0.98) 40%);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.toggle-container:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.toggle-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toggle-label-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.toggle-label-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 30px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    box-shadow: 0 0 24px var(--accent-glow);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(26px);
}

/* Modal Buttons */
.btn-modal {
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-modal-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-modal-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-modal-primary:active {
    transform: translateY(-1px);
}

.btn-modal-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-modal-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Modal Footer */
.modal-footer {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* 2FA Block */
.two-fa-block {
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.08), 
        rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 28px;
    border-radius: 20px;
    margin-top: 24px;
}

/* Verification Code */
.code-row { 
    display: flex; 
    gap: 12px; 
    justify-content: center; 
    margin: 24px 0; 
}

.code-digit {
    width: 50px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 14px;
    color: #fff;
    font-size: 1.75rem;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s;
}

.code-digit:focus { 
    border-color: var(--accent-primary); 
    outline: none; 
    background: rgba(124, 58, 237, 0.1);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 32px;
    right: 32px;
    background: rgba(18, 18, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    z-index: 2000;
    transform: translateX(450px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.toast-message {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }

    .profile-hero {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        gap: 24px;
    }

    .user-info h1 {
        font-size: 2.5rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card-level {
        grid-column: span 1;
    }

    .modal-inner {
        padding: 28px 20px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .tab-btn {
        font-size: 0.8rem;
        padding: 12px 8px;
    }

    .tab-btn svg {
        display: none;
    }

    .actions-bar {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .user-info h1 {
        font-size: 2rem;
    }

    .avatar-img {
        width: 120px;
        height: 120px;
    }

    .code-digit {
        width: 44px;
        height: 52px;
        font-size: 1.5rem;
    }
}
//============================уведомления 


    .wiki_footer {
        position: relative;
        background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-gradient-start) 100%);
        color: var(--text-muted);
        padding: 80px 0 40px;
        overflow: hidden;
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
        border-top: 1px solid var(--glass-border);
        box-shadow: 0 -20px 80px rgba(0,0,0,0.5);
        margin-top: auto;
    }

    .wiki_footer::before {
        content: '';
        position: absolute;
        top: 0; left: 50%;
        transform: translateX(-50%);
        width: 60%; height: 1px;
        background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
        opacity: 0.7;
        box-shadow: 0 0 20px var(--accent-color);
        z-index: 1;
    }

    .wiki_footer__aurora {
        position: absolute;
        top: -50%; left: -50%;
        width: 200%; height: 200%;
        background: radial-gradient(circle at center, rgba(109, 93, 252, 0.08) 0%, transparent 50%);
        animation: auroraSpin 60s linear infinite;
        pointer-events: none;
        z-index: 0;
    }

    @keyframes auroraSpin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .wiki_footer__bottom {
        position: relative;
        z-index: 2;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 40px;
    }

    .wiki_footer__content {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-width: 500px;
    }

    .wiki_footer__name {
        font-size: 1.8rem;
        font-weight: 800;
        color: var(--text-main);
        letter-spacing: -0.5px;
        background: linear-gradient(90deg, #fff, #a5b4fc);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 5px;
    }

    .wiki_footer__meta {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .wiki_footer__developer {
        margin-top: 15px;
        display: inline-flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--glass-border);
        padding: 8px 16px;
        border-radius: 50px;
        transition: all 0.3s ease;
        width: fit-content;
        backdrop-filter: blur(5px);
        text-decoration: none;
    }

    .wiki_footer__developer:hover {
        background: rgba(255, 255, 255, 0.07);
        border-color: var(--accent-color);
        box-shadow: 0 0 20px var(--accent-glow);
        transform: translateY(-2px);
    }

    .wiki_footer__developer span:first-child {
        font-size: 0.85rem;
        color: var(--text-muted);
        margin-right: 8px;
    }

    .wiki_footer__developer-name {
        color: var(--text-main);
        font-weight: 600;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .wiki_footer__developer-name::after {
        content: '↗';
        font-size: 10px;
        opacity: 0.5;
        transition: transform 0.2s;
    }
    
    .wiki_footer__developer:hover .wiki_footer__developer-name::after {
        transform: translate(2px, -2px);
        opacity: 1;
    }

    .wiki_footer__legal {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 15px;
    }

    .wiki_footer__links-group {
        display: flex;
        gap: 20px;
    }

    .wiki_footer__legal a {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.95rem;
        position: relative;
        transition: color 0.3s;
    }

    .wiki_footer__legal a::after {
        content: '';
        position: absolute;
        bottom: -4px; left: 0;
        width: 0; height: 2px;
        background: var(--accent-color);
        transition: width 0.3s ease;
    }

    .wiki_footer__legal a:hover { color: #fff; }
    .wiki_footer__legal a:hover::after { width: 100%; }

    @media (max-width: 768px) {
        .wiki_footer__bottom {
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 30px;
        }
        .wiki_footer__content { align-items: center; }
        .wiki_footer__legal { align-items: center; }
        .wiki_footer__developer { width: 100%; justify-content: center; }
    }
     /* ==========================================
   PREMIUM GLASSMORPHISM TOASTS — DARK ONLY
   ========================================== */

#toastContainer {
    position: fixed;
    top: 28px;
    right: 28px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 14px;
    pointer-events: none;
    max-width: 400px;
    width: calc(100% - 56px);
}

.toast-item {
    position: relative;
    
    /* Тёмное стекло */
    background: 
        linear-gradient(135deg, 
            rgba(30, 41, 59, 0.85) 0%, 
            rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    
    padding: 18px 22px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    
    /* Многослойные тёмные тени */
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 8px 24px -4px rgba(0, 0, 0, 0.5),
        0 20px 60px -12px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
        
    display: flex;
    align-items: flex-start;
    gap: 14px;
    pointer-events: auto;
    
    transform: translateX(120%) scale(0.9);
    opacity: 0;
    transition: 
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.toast-item.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.toast-item.hiding {
    transform: translateX(120%) scale(0.95);
    opacity: 0;
    transition: 
        transform 0.4s cubic-bezier(0.55, 0, 1, 0.45),
        opacity 0.3s ease-in;
}

.toast-item.show:hover {
    transform: translateX(-2px) scale(1.01);
}

/* Иконка */
.toast-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.toast-item.show:hover .toast-icon {
    transform: scale(1.05) rotate(-3deg);
}

/* Контент */
.toast-content {
    flex-grow: 1;
    padding-right: 26px;
    padding-top: 2px;
}

.toast-title {
    font-weight: 700;
    font-size: 14.5px;
    color: #F1F5F9;
    margin-bottom: 3px;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.toast-message {
    font-size: 13.5px;
    color: #94A3B8;
    line-height: 1.55;
    letter-spacing: -0.005em;
}

/* Кнопка закрытия */
.toast-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748B;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #F1F5F9;
    opacity: 1;
    transform: rotate(90deg);
}

/* Прогресс бар */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    animation: toast-progress linear forwards;
    position: relative;
}

.toast-progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.25) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes toast-progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* --- ЦВЕТОВЫЕ ТЕМЫ С НЕОНОВЫМ СВЕЧЕНИЕМ --- */

/* SUCCESS — изумрудное свечение */
.toast-success {
    border-left: 4px solid #34D399;
    background: 
        linear-gradient(135deg, 
            rgba(30, 41, 59, 0.85) 0%, 
            rgba(6, 78, 59, 0.4) 100%);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 8px 24px -4px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(52, 211, 153, 0.1),
        0 0 40px -10px rgba(52, 211, 153, 0.25);
}
.toast-success .toast-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.15) 100%);
    color: #34D399;
    box-shadow: 
        0 0 0 1px rgba(52, 211, 153, 0.2),
        0 0 20px rgba(52, 211, 153, 0.3);
}
.toast-success .toast-progress-bar {
    background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}

/* ERROR — рубиновое свечение */
.toast-error {
    border-left: 4px solid #F87171;
    background: 
        linear-gradient(135deg, 
            rgba(30, 41, 59, 0.85) 0%, 
            rgba(127, 29, 29, 0.4) 100%);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 8px 24px -4px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(248, 113, 113, 0.1),
        0 0 40px -10px rgba(248, 113, 113, 0.25);
}
.toast-error .toast-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(248, 113, 113, 0.15) 100%);
    color: #F87171;
    box-shadow: 
        0 0 0 1px rgba(248, 113, 113, 0.2),
        0 0 20px rgba(248, 113, 113, 0.3);
}
.toast-error .toast-progress-bar {
    background: linear-gradient(90deg, #EF4444 0%, #F87171 100%);
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.6);
}

/* INFO — сапфировое свечение */
.toast-info {
    border-left: 4px solid #60A5FA;
    background: 
        linear-gradient(135deg, 
            rgba(30, 41, 59, 0.85) 0%, 
            rgba(30, 58, 138, 0.4) 100%);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 8px 24px -4px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(96, 165, 250, 0.1),
        0 0 40px -10px rgba(96, 165, 250, 0.25);
}
.toast-info .toast-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(96, 165, 250, 0.15) 100%);
    color: #60A5FA;
    box-shadow: 
        0 0 0 1px rgba(96, 165, 250, 0.2),
        0 0 20px rgba(96, 165, 250, 0.3);
}
.toast-info .toast-progress-bar {
    background: linear-gradient(90deg, #3B82F6 0%, #60A5FA 100%);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.6);
}

/* WARNING — янтарное свечение */
.toast-warning {
    border-left: 4px solid #FBBF24;
    background: 
        linear-gradient(135deg, 
            rgba(30, 41, 59, 0.85) 0%, 
            rgba(120, 53, 15, 0.4) 100%);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 8px 24px -4px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(251, 191, 36, 0.1),
        0 0 40px -10px rgba(251, 191, 36, 0.25);
}
.toast-warning .toast-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.15) 100%);
    color: #FBBF24;
    box-shadow: 
        0 0 0 1px rgba(251, 191, 36, 0.2),
        0 0 20px rgba(251, 191, 36, 0.3);
}
.toast-warning .toast-progress-bar {
    background: linear-gradient(90deg, #F59E0B 0%, #FBBF24 100%);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

/* Мобильная адаптация */
@media (max-width: 480px) {
    #toastContainer {
        top: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
        width: auto;
    }
    .toast-item {
        width: 100%;
        box-sizing: border-box;
        padding: 16px 18px;
    }
    .toast-item.show:hover {
        transform: translateX(0) scale(1);
    }
}
//=================профиль
        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

        .ambient-light {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            pointer-events: none; z-index: 0; overflow: hidden;
        }
        .blob {
            position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.25;
            animation: float 15s infinite ease-in-out alternate;
        }
        .blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: #7c3aed; animation-delay: 0s; }
        .blob-2 { bottom: -10%; right: -10%; width: 40vw; height: 40vw; background: #db2777; animation-delay: -5s; }
        .blob-3 { top: 40%; left: 40%; width: 30vw; height: 30vw; background: #2563eb; opacity: 0.15; animation-delay: -10s; }
        
        @keyframes float {
            0% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(20px, 40px) scale(1.1); }
            100% { transform: translate(-20px, -20px) scale(0.9); }
        }

        .container { max-width: 1000px; margin: 0 auto; padding: 24px; position: relative; z-index: 1; }

        .alert-box {
            padding: 16px 20px; border-radius: var(--radius-md); margin-bottom: 24px;
            display: flex; align-items: center; gap: 12px; font-size: 0.9rem; font-weight: 500;
            backdrop-filter: blur(12px); border: 1px solid transparent;
            animation: slideDown 0.4s ease-out;
        }
        @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
        .alert-error { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); color: #fca5a5; }
        .alert-success { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

        /* === HERO === */
        .profile-hero {
            display: flex; align-items: center; gap: 32px;
            background: linear-gradient(145deg, rgba(24, 24, 27, 0.7), rgba(24, 24, 27, 0.4));
            backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg); padding: 32px; margin-bottom: 28px;
            position: relative; overflow: hidden;
            transition: border-color 0.3s;
        }
        .profile-hero:hover { border-color: var(--border-hover); }

        .avatar-wrapper {
            position: relative; width: 120px; height: 120px; cursor: pointer; flex-shrink: 0;
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .avatar-wrapper:hover { transform: scale(1.05) rotate(2deg); }
        .avatar-img {
            width: 100%; height: 100%; border-radius: 50%; background: #18181b;
            border: 4px solid rgba(255,255,255,0.05);
            box-shadow: 0 0 0 2px var(--accent-primary), 0 20px 40px -10px rgba(0,0,0,0.5);
            overflow: hidden; display: flex; align-items: center; justify-content: center; color: #52525b;
        }
        .avatar-upload-overlay {
            position: absolute; inset: 0; background: rgba(0,0,0,0.7);
            display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
            opacity: 0; transition: opacity 0.2s; border-radius: 50%; backdrop-filter: blur(4px);
            color: white; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
        }
        .avatar-wrapper:hover .avatar-upload-overlay { opacity: 1; }

        .user-info { flex: 1; }
        .user-info h1 { 
            margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; 
            background: linear-gradient(to right, #fff, #a1a1aa); 
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; 
        }
        .role-tag {
            display: inline-flex; align-items: center; gap: 6px;
            font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
            color: #c4b5fd; background: rgba(139, 92, 246, 0.1);
            padding: 6px 14px; border-radius: 100px; border: 1px solid rgba(139, 92, 246, 0.2);
            margin-bottom: 12px;
        }
        .verification-status {
            display: inline-flex; align-items: center; gap: 8px;
            font-size: 0.85rem; margin-top: 12px; font-weight: 500;
            padding: 8px 14px; background: rgba(255,255,255,0.03); border-radius: 12px; border: 1px solid transparent;
            transition: all 0.2s;
        }
        .is-verified { color: var(--success); background: rgba(16, 185, 129, 0.05); border-color: rgba(16, 185, 129, 0.1); }
        .is-not-verified { color: var(--text-secondary); }

        /* === BENTO GRID === */
        .bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
        .card {
            background: var(--bg-card); backdrop-filter: blur(16px);
            border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative; overflow: hidden; display: flex; flex-direction: column;
        }
        .card:hover {
            transform: translateY(-4px);
            border-color: var(--border-hover);
            box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
            background: rgba(30, 30, 35, 0.7);
        }
        .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
        .card-title { font-size: 0.8rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
        .card-value { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
        .mono-val { font-family: 'JetBrains Mono', monospace; color: var(--text-main); }

        .xp-bar-container { margin-top: auto; }
        .progress-track { height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; margin-top: 12px; }
        .progress-fill {
            height: 100%; border-radius: 3px;
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
            box-shadow: 0 0 10px var(--accent-glow);
            transition: width 1s ease-out;
        }
        .xp-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-secondary); margin-top: 10px; font-weight: 500; }

        .badges-grid { display: flex; gap: 12px; flex-wrap: wrap; }
        .badge-item {
            width: 48px; height: 48px; background: rgba(255,255,255,0.03);
            border: 1px solid var(--border-color); border-radius: 14px;
            display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .badge-item:hover { background: rgba(255,255,255,0.08); transform: scale(1.15) rotate(5deg); border-color: var(--accent-primary); }
        .badge-locked { opacity: 0.3; filter: grayscale(1); pointer-events: none; }

        /* === ACTIONS BAR (В САМОМ НИЗУ) === */
        .actions-bar { 
            display: flex; gap: 16px; flex-wrap: wrap; 
            padding-top: 24px;
            border-top: 1px solid var(--border-color);
        }
        .btn {
            padding: 14px 28px; border-radius: 14px; font-weight: 600; font-size: 0.95rem;
            cursor: pointer; border: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
            transition: all 0.2s; text-decoration: none;
        }
        .btn:active { transform: scale(0.98); }
        .btn-primary { background: var(--accent-primary); color: #fff; box-shadow: 0 4px 20px var(--accent-glow); }
        .btn-primary:hover { background: #7c3aed; box-shadow: 0 8px 30px var(--accent-glow); transform: translateY(-2px); }
        .btn-glass { background: rgba(255,255,255,0.03); color: var(--text-main); border: 1px solid var(--border-color); }
        .btn-glass:hover { background: rgba(255,255,255,0.08); border-color: var(--border-hover); }

        /* === PREMIUM MODAL === */
        .modal-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.75); 
            backdrop-filter: blur(16px) saturate(180%); 
            -webkit-backdrop-filter: blur(16px) saturate(180%);
            z-index: 1000; display: none; align-items: center; justify-content: center;
            padding: 20px; opacity: 0; transition: opacity 0.3s ease;
        }
        .modal-overlay.active { display: flex; opacity: 1; }

        .modal-window {
            background: var(--bg-modal);
            border: 1px solid var(--border-color);
            border-radius: 28px; 
            width: 100%; max-width: 640px;
            max-height: 90vh; min-height: 400px;
            display: flex; flex-direction: column;
            box-shadow: 
                0 0 0 1px rgba(255,255,255,0.05),
                0 50px 100px -20px rgba(0, 0, 0, 0.8),
                0 30px 60px -30px rgba(139, 92, 246, 0.3);
            transform: scale(0.92) translateY(30px);
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            overflow: hidden;
        }
        .modal-overlay.active .modal-window { transform: scale(1) translateY(0); }

        .modal-window::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(139, 92, 246, 0.6) 20%, 
                rgba(236, 72, 153, 0.6) 50%, 
                rgba(139, 92, 246, 0.6) 80%, 
                transparent 100%);
            z-index: 10;
            opacity: 0.8;
        }

        .modal-window::after {
            content: '';
            position: absolute;
            top: -100px; left: 50%;
            transform: translateX(-50%);
            width: 80%;
            height: 200px;
            background: radial-gradient(ellipse, rgba(139, 92, 246, 0.15), transparent 70%);
            pointer-events: none;
            z-index: 0;
        }

        .modal-inner { 
            padding: 0 32px 32px; 
            overflow-y: auto; 
            scrollbar-width: thin;
            position: relative;
            z-index: 1;
            flex: 1;
        }
        .modal-inner::-webkit-scrollbar { width: 6px; }
        .modal-inner::-webkit-scrollbar-track { background: transparent; }
        .modal-inner::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

        .modal-header {
            display: flex; justify-content: space-between; align-items: center;
            padding: 28px 32px 24px;
            position: relative;
            z-index: 1;
        }
        
        .modal-title-wrap { display: flex; flex-direction: column; gap: 4px; }
        .modal-title { 
            font-size: 1.35rem; font-weight: 700; 
            display: flex; align-items: center; gap: 12px; color: #fff;
            letter-spacing: -0.02em;
        }
        .modal-title-icon {
            width: 36px; height: 36px;
            display: flex; align-items: center; justify-content: center;
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
            border: 1px solid rgba(139, 92, 246, 0.3);
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
        }
        .modal-subtitle {
            font-size: 0.85rem; color: var(--text-muted);
            margin-left: 48px;
        }

        .modal-close-btn {
            background: rgba(255,255,255,0.04); 
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            cursor: pointer; padding: 8px; border-radius: 10px; 
            transition: all 0.2s;
            width: 36px; height: 36px;
            display: flex; align-items: center; justify-content: center;
        }
        .modal-close-btn:hover { 
            background: rgba(255,255,255,0.08); 
            color: #fff; 
            transform: rotate(90deg);
            border-color: var(--border-hover);
        }

        .tabs { 
            display: flex; gap: 4px; 
            margin: 0 32px 24px; 
            padding: 4px;
            background: rgba(255,255,255,0.02);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            overflow-x: auto; 
            scrollbar-width: none;
            position: relative;
            z-index: 1;
        }
        .tabs::-webkit-scrollbar { display: none; }
        
        .tab-btn {
            background: transparent; border: none; color: var(--text-secondary);
            padding: 10px 14px; border-radius: 10px; cursor: pointer;
            font-size: 0.82rem; font-weight: 600; white-space: nowrap;
            display: flex; align-items: center; gap: 7px; transition: all 0.25s;
            flex: 1; justify-content: center;
        }
        .tab-btn:hover { color: var(--text-main); background: rgba(255,255,255,0.03); }
        .tab-btn.active { 
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.15));
            color: #fff; 
            box-shadow: 
                0 0 0 1px rgba(139, 92, 246, 0.3),
                0 4px 12px rgba(139, 92, 246, 0.15);
        }
        .tab-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

        .tab-content { display: none; animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
        .tab-content.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

        .input-group { position: relative; margin-bottom: 20px; }
        .input-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            pointer-events: none;
            transition: color 0.2s;
            z-index: 2;
        }
        .modern-input {
            width: 100%; 
            padding: 16px 16px 16px 48px; 
            background: rgba(0,0,0,0.3);
            border: 1px solid var(--border-color); 
            border-radius: 14px;
            color: #fff; font-size: 0.95rem; 
            transition: all 0.25s;
            font-family: 'Inter', sans-serif;
        }
        .modern-input::placeholder { color: var(--text-muted); }
        .modern-input:hover { border-color: var(--border-hover); background: rgba(0,0,0,0.4); }
        .modern-input:focus {
            border-color: var(--accent-primary);
            box-shadow: 0 0 0 4px var(--accent-glow), 0 0 20px rgba(139, 92, 246, 0.15);
            background: rgba(0,0,0,0.5);
        }
        .modern-input:focus ~ .input-icon { color: var(--accent-primary); }
        
        .floating-label {
            position: absolute; left: 48px; top: 50%; transform: translateY(-50%);
            color: var(--text-muted);
            pointer-events: none; transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            background: transparent; padding: 0 4px; font-size: 0.95rem;
        }
        .modern-input:focus ~ .floating-label,
        .modern-input:not(:placeholder-shown) ~ .floating-label {
            top: 0; left: 40px; font-size: 0.72rem; font-weight: 600;
            background: var(--bg-modal); color: var(--accent-primary); border-radius: 4px;
            letter-spacing: 0.03em;
            text-transform: uppercase;
        }

        .input-helper {
            font-size: 0.78rem;
            color: var(--text-muted);
            margin-top: 6px;
            padding-left: 4px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .socials-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
        .social-card {
            display: flex; align-items: center; gap: 14px; padding: 14px 16px;
            background: rgba(255,255,255,0.02); 
            border: 1px solid var(--border-color);
            border-radius: 14px; transition: all 0.25s;
            position: relative;
            overflow: hidden;
        }
        .social-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
            transform: translateX(-100%);
            transition: transform 0.6s;
        }
        .social-card:hover::before { transform: translateX(100%); }
        .social-card:hover { 
            background: rgba(255,255,255,0.04); 
            border-color: var(--border-hover);
            transform: translateX(2px);
        }
        .social-icon-box {
            width: 42px; height: 42px; border-radius: 11px;
            display: flex; align-items: center; justify-content: center; flex-shrink: 0;
        }
        .icon-vk { background: rgba(0, 119, 255, 0.12); color: #0077FF; }
        .icon-mailru { background: linear-gradient(135deg, #005FF9, #0077FF); color: #fff; }
        .icon-ya { background: rgba(255, 204, 0, 0.12); color: #FFCC00; }
        
        .social-details { flex: 1; min-width: 0; }
        .social-name { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 2px; }
        .social-status { display: block; font-size: 0.75rem; color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; }
        .social-status.connected { color: var(--success); }
        
        .social-action-btn {
            padding: 8px 14px; border-radius: 10px; font-size: 0.78rem; font-weight: 600;
            border: none; cursor: pointer; transition: all 0.2s; white-space: nowrap;
        }
        .btn-connect { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.25); }
        .btn-connect:hover { background: rgba(139, 92, 246, 0.25); transform: translateY(-1px); }
        .btn-manage { background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); }
        .btn-manage:hover { border-color: var(--error); color: var(--error); background: rgba(239, 68, 68, 0.05); }

        .toggle-container {
            display: flex; justify-content: space-between; align-items: center;
            padding: 16px 18px; 
            border: 1px solid var(--border-color);
            border-radius: 14px;
            margin-bottom: 10px;
            transition: all 0.2s;
            background: rgba(255,255,255,0.01);
        }
        .toggle-container:hover { background: rgba(255,255,255,0.02); border-color: var(--border-hover); }
        .toggle-label-title { font-weight: 600; margin-bottom: 3px; font-size: 0.92rem; }
        .toggle-label-desc { font-size: 0.78rem; color: var(--text-muted); }
        .toggle-switch { position: relative; display: inline-block; width: 48px; height: 28px; flex-shrink: 0; }
        .toggle-switch input { opacity: 0; width: 0; height: 0; }
        .toggle-slider {
            position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
            background-color: rgba(255,255,255,0.1); transition: .3s; border-radius: 28px;
            border: 1px solid rgba(255,255,255,0.05);
        }
        .toggle-slider:before {
            position: absolute; content: ""; height: 20px; width: 20px;
            left: 3px; bottom: 3px; background-color: white; 
            transition: .3s cubic-bezier(0.34, 1.56, 0.64, 1); border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }
        input:checked + .toggle-slider { 
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            border-color: transparent;
            box-shadow: 0 0 15px var(--accent-glow);
        }
        input:checked + .toggle-slider:before { transform: translateX(20px); }
        input:disabled + .toggle-slider { opacity: 0.4; cursor: not-allowed; }

        .modal-footer-wrap { position: relative; z-index: 2; }
        .modal-footer-fade {
            position: absolute;
            bottom: 100%;
            left: 0; right: 0;
            height: 40px;
            background: linear-gradient(to top, var(--bg-modal), transparent);
            pointer-events: none;
        }
        .modal-footer {
            padding: 20px 32px;
            display: flex; justify-content: flex-end; gap: 10px;
            background: var(--bg-modal);
            border-top: 1px solid var(--border-color);
        }
        .btn-modal {
            padding: 11px 22px; border-radius: 11px; border: none; cursor: pointer;
            font-weight: 600; font-size: 0.88rem; transition: all 0.2s;
            display: inline-flex; align-items: center; gap: 8px;
        }
        .btn-modal-glass { 
            background: rgba(255,255,255,0.04); 
            color: var(--text-main); 
            border: 1px solid var(--border-color);
        }
        .btn-modal-glass:hover { background: rgba(255,255,255,0.08); border-color: var(--border-hover); }
        .btn-modal-primary { 
            background: linear-gradient(135deg, var(--accent-primary), #7c3aed); 
            color: #fff;
            box-shadow: 0 4px 15px var(--accent-glow);
        }
        .btn-modal-primary:hover { 
            transform: translateY(-1px); 
            box-shadow: 0 8px 25px var(--accent-glow);
        }

        .two-fa-input-group { display: flex; gap: 10px; margin-top: 14px; }
        .code-digit {
            width: 100%; height: 52px; background: rgba(0,0,0,0.3);
            border: 1px solid var(--border-color); border-radius: 12px;
            color: #fff; text-align: center; font-size: 1.3rem; font-weight: 700;
            font-family: 'JetBrains Mono'; transition: all 0.2s; letter-spacing: 4px;
        }
        .code-digit:focus { 
            border-color: var(--accent-primary); 
            box-shadow: 0 0 0 3px var(--accent-glow); 
            outline: none; 
        }

        .toast {
            position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
            background: var(--bg-modal); 
            border: 1px solid var(--success); color: var(--success);
            padding: 14px 28px; border-radius: 100px; display: flex; align-items: center; gap: 12px;
            box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5); backdrop-filter: blur(10px);
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); z-index: 2000; font-weight: 600;
        }
        .toast.show { transform: translateX(-50%) translateY(0); }

        /* === MOBILE — ВСЁ В 1 СТОЛБЕЦ === */
        @media (max-width: 768px) {
            .container { padding: 16px; }
            
            .profile-hero { 
                flex-direction: column; 
                text-align: center; 
                padding: 24px 20px; 
                gap: 20px; 
            }
            .user-info { width: 100%; }
            .verification-status { justify-content: center; width: 100%; }
            
            /* Bento Grid — 1 столбец */
            .bento-grid { 
                grid-template-columns: 1fr; 
                gap: 16px; 
            }
            .bento-grid .card[style*="grid-column"] {
                grid-column: auto !important;
            }
            
            /* Actions Bar */
            .actions-bar { 
                flex-direction: column; 
                width: 100%; 
                gap: 12px;
            }
            .actions-bar .btn { width: 100%; }
            
            /* Modal — Bottom Sheet */
            .modal-overlay { align-items: flex-end; padding: 0; }
            .modal-window {
                max-width: 100%; max-height: 92vh;
                border-radius: 24px 24px 0 0;
                border-bottom: none;
                transform: translateY(100%);
            }
            .modal-overlay.active .modal-window { transform: translateY(0); }
            .modal-window::before { height: 2px; }
            
            .modal-header { padding: 20px 20px 16px; }
            .modal-inner { padding: 0 20px 20px; }
            .tabs { margin: 0 20px 20px; }
            .modal-footer { padding: 16px 20px; }
            
            .tab-btn { padding: 9px 10px; font-size: 0.75rem; }
            .tab-btn svg { width: 14px; height: 14px; }
            .modal-subtitle { display: none; }
        }
//---------------------------nav

/* Стилизация конкретной ссылки Техподдержки */
.av_rp_submenu_item[href="/support/"] {
    margin: 5px 0;
    border-radius: 8px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.av_rp_submenu_item[href="/support/"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.5);
    background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
}

.av_rp_submenu_item[href="/support/"] .av_rp_sub_icon {
    font-size: 1.2em;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.5));
}

.av_rp_submenu_item[href="/support/"] .av_rp_sub_title {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* === СТИЛИ ДЛЯ УВЕДОМЛЕНИЙ === */
.av_rp_notification_wrapper {
    position: relative;
    display: inline-block;
}

.av_rp_notification_btn {
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.av_rp_notification_btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.av_rp_notification_bell {
    width: 24px;
    height: 24px;
    color: #fff;
    transition: transform 0.3s;
}

.av_rp_notification_btn:hover .av_rp_notification_bell {
    transform: rotate(15deg);
}

.av_rp_notification_badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    animation: av_rp_pulse 2s infinite;
    z-index: 2;
}

@keyframes av_rp_pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.av_rp_notification_dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    background: #1a1a2e;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.av_rp_notification_dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.av_rp_notification_header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.av_rp_notification_title {
    font-size: 16px;
    font-weight: 600;
}

.av_rp_notification_count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.av_rp_notification_list {
    max-height: 400px;
    overflow-y: auto;
}

.av_rp_notification_item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    gap: 12px;
}

.av_rp_notification_item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.av_rp_notification_item.unread {
    background: rgba(102, 126, 234, 0.08);
    border-left: 3px solid #667eea;
}

.av_rp_notification_icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.av_rp_notification_icon.info { background: rgba(79, 172, 254, 0.2); }
.av_rp_notification_icon.success { background: rgba(0, 242, 254, 0.2); }
.av_rp_notification_icon.warning { background: rgba(255, 193, 7, 0.2); }
.av_rp_notification_icon.error { background: rgba(255, 71, 87, 0.2); }

.av_rp_notification_content {
    flex: 1;
    min-width: 0;
}

.av_rp_notification_item_title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.av_rp_notification_message {
    font-size: 12px;
    color: #aaa;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.av_rp_notification_time {
    font-size: 10px;
    color: #666;
    margin-top: 4px;
}

.av_rp_notification_empty {
    padding: 30px 20px;
    text-align: center;
    color: #666;
}

.av_rp_notification_footer {
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}

.av_rp_notification_footer a {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.av_rp_notification_footer a:hover {
    color: #764ba2;
}

.av_rp_notification_list::-webkit-scrollbar { width: 6px; }
.av_rp_notification_list::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
.av_rp_notification_list::-webkit-scrollbar-thumb { background: rgba(102, 126, 234, 0.5); border-radius: 3px; }

/* =========================================
   МОБИЛЬНОЕ МЕНЮ И АНИМАЦИИ
   ========================================= */

/* Анимация подменю на мобильных */
.av_rp_mob_submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Плавная кривая анимации */
    background: rgba(0, 0, 0, 0.2); /* Чуть темнее фон для вложенности */
}

/* Когда JS добавляет класс .active, раскрываем меню */
.av_rp_mob_submenu.active {
    /* 500px достаточно для большинства списков. Если пунктов очень много, увеличьте это число */
    max-height: 500px; 
}

/* Внутренний отступ, чтобы контент не дергался при анимации */
.av_rp_mob_submenu_inner {
    padding: 5px 0 10px 0;
    display: flex;
    flex-direction: column;
}

/* Стилизация элементов внутри подменю */
.av_rp_mob_subitem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 55px; /* Больший отступ слева для вложенности */
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s, background 0.2s;
}

.av_rp_mob_subitem:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.av_rp_mob_subitem .icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Поворот стрелочки при открытии */
.av_rp_mob_arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 18px;
    color: #777;
}

.av_rp_mob_item.expanded .av_rp_mob_arrow {
    transform: rotate(90deg);
    color: #fff;
}

/* Убираем стандартный курсор pointer у родителя, если он есть */
.av_rp_mob_item.has-children {
    cursor: pointer;
}


