/* ============================================================
   profile.css — ЛИЧНЫЙ КАБИНЕТ · PLATINUM GLASS EDITION
   ═══════════════════════════════════════════════════════════ */

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

:root {
    --bg-page: #08090c;
    --bg-deep: #040507;
    --bg-elev: #0c0e13;

    --platinum-0: #ffffff;
    --platinum-1: #f8f9fb;
    --platinum-2: #eef0f3;
    --platinum-3: #dee1e6;
    --platinum-4: #c8ccd3;
    --platinum-5: #a3a9b3;
    --platinum-6: #7a808b;
    --platinum-7: #565b66;
    --platinum-8: #3a3e47;
    --platinum-9: #24272e;
    --platinum-10: #16181d;

    --text-primary: #f6f7f9;
    --text-secondary: #c8ccd3;
    --text-tertiary: #a3a9b3;
    --text-muted: #7a808b;
    --text-faint: #565b66;
    --text-whisper: #3a3e47;

    --line-soft: rgba(255, 255, 255, 0.07);
    --line: rgba(255, 255, 255, 0.11);
    --line-mid: rgba(255, 255, 255, 0.16);
    --line-strong: rgba(255, 255, 255, 0.24);

    --success: #4b8c6b;
    --warn: #a88440;
    --danger: #9d5c5c;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --t-fast: 0.20s var(--ease-smooth);
    --t-base: 0.35s var(--ease-smooth);
    --t-slow: 0.55s var(--ease-smooth);

    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-2xl: 32px;

    --chrome-text: linear-gradient(180deg,
        #ffffff 0%, #f0f2f5 25%, #c8ccd3 55%, #a3a9b3 78%, #dee1e6 100%);
    --chrome-text-soft: linear-gradient(180deg,
        #eef0f3 0%, #c8ccd3 40%, #a3a9b3 70%, #dee1e6 100%);
    --chrome-ink: linear-gradient(180deg, #3a3e47 0%, #16181d 100%);
    --chrome-sweep: linear-gradient(105deg,
        #7a808b 0%, #c8ccd3 15%, #f6f7f9 32%, #ffffff 45%,
        #f6f7f9 58%, #c8ccd3 76%, #7a808b 100%);

    --glass-blur: blur(28px) saturate(140%);

    /* ── SVG-маски иконок ── */
    --icon-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    --icon-key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='5.5'/%3E%3Cpath d='M21 2l-9.6 9.6'/%3E%3Cpath d='M15.5 7.5l3 3'/%3E%3C/svg%3E");
    --icon-discord: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.118.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.418 2.157-2.418 1.21 0 2.176 1.096 2.157 2.418 0 1.334-.956 2.419-2.157 2.419zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.418 2.157-2.418 1.21 0 2.176 1.096 2.157 2.418 0 1.334-.956 2.419-2.157 2.419z'/%3E%3C/svg%3E");
    --icon-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E");
    --icon-sliders: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='21' x2='4' y2='14'/%3E%3Cline x1='4' y1='10' x2='4' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12' y2='3'/%3E%3Cline x1='20' y1='21' x2='20' y2='16'/%3E%3Cline x1='20' y1='12' x2='20' y2='3'/%3E%3Cline x1='1' y1='14' x2='7' y2='14'/%3E%3Cline x1='9' y1='8' x2='15' y2='8'/%3E%3Cline x1='17' y1='16' x2='23' y2='16'/%3E%3C/svg%3E");
    --icon-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
    --icon-power: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18.36 6.64a9 9 0 1 1-12.73 0'/%3E%3Cline x1='12' y1='2' x2='12' y2='12'/%3E%3C/svg%3E");
    --icon-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
    --icon-logout: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
    --icon-trash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cline x1='10' y1='11' x2='10' y2='17'/%3E%3Cline x1='14' y1='11' x2='14' y2='17'/%3E%3C/svg%3E");
    --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
}

/* ══════════════════════════════════════════════════════════
   2. GLOBAL
   ══════════════════════════════════════════════════════════ */
::selection { background: rgba(255, 255, 255, 0.22); color: #040507; text-shadow: none; }
*:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 3px; border-radius: var(--r-xs); }

/* ══════════════════════════════════════════════════════════
   3. PAGE
   ══════════════════════════════════════════════════════════ */
.profile-page {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 130px 24px 110px;
    z-index: 10;
}
.profile-page::before {
    content: "";
    position: absolute;
    inset: 0 -10% 50% -10%;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 35%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}
.profile-page::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, black 0%, transparent 80%);
    mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, black 0%, transparent 80%);
    pointer-events: none;
    z-index: -1;
    opacity: 0.85;
}

/* ══════════════════════════════════════════════════════════
   4. HERO
   ══════════════════════════════════════════════════════════ */
.profile-hero {
    position: relative;
    margin-bottom: 40px;
    padding: 4px 0 0;
    animation: hero-enter 0.9s var(--ease-out);
}
.profile-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -24px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.04) 10%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.04) 90%, transparent 100%);
    pointer-events: none;
}
.section-badge {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 8px 18px 8px 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 600;
    color: #eef0f3;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    margin-bottom: 26px;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.30), 0 8px 20px -12px rgba(0, 0, 0, 0.7);
}
.section-badge::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
    transform: translateX(-100%);
    animation: badge-sweep 6s ease-in-out infinite;
    pointer-events: none;
}
.section-badge-dot {
    position: relative;
    width: 8px; height: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #c8ccd3 100%);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 12px rgba(255, 255, 255, 0.65);
    animation: dot-pulse 2.6s ease-in-out infinite;
    flex-shrink: 0;
}
.profile-hero-title {
    position: relative;
    font-size: clamp(38px, 5.8vw, 72px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.02;
    margin-bottom: 18px;
    color: transparent;
    background: var(--chrome-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.5));
}
.hero-nick {
    position: relative;
    display: inline-block;
    background: var(--chrome-sweep);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: chrome-slide 8s ease-in-out infinite;
    filter: drop-shadow(0 0 32px rgba(255, 255, 255, 0.20));
}
.profile-hero-desc {
    font-size: 15.5px;
    line-height: 1.7;
    max-width: 600px;
    color: var(--text-tertiary);
    letter-spacing: 0.005em;
}

/* ══════════════════════════════════════════════════════════
   5. DASHBOARD LAYOUT
   ══════════════════════════════════════════════════════════ */
.profile-dashboard {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    animation: card-enter 0.8s var(--ease-out) backwards;
}

/* ══════════════════════════════════════════════════════════
   6. SIDEBAR
   ══════════════════════════════════════════════════════════ */
.profile-sidebar { position: relative; }
.profile-sidebar-inner {
    position: sticky;
    top: 110px;
    padding: 16px 12px;
    border-radius: var(--r-xl);
    isolation: isolate;
    border: 1px solid transparent;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.015) 100%) padding-box,
        linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.16) 100%) border-box;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 -1px 0 rgba(0, 0, 0, 0.45), 0 24px 60px -28px rgba(0, 0, 0, 1);
    overflow: hidden;
}
.profile-sidebar-inner::before {
    content: "";
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
    pointer-events: none;
}

.profile-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 12px;
    min-width: 0;
}
.profile-mini-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.28) 100%);
}
.profile-mini-avatar {
    display: block;
    width: 100%; height: 100%;
    border-radius: 11px;
    object-fit: cover;
    image-rendering: pixelated;
    background: #0a0c10;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 12px -6px rgba(0, 0, 0, 0.7);
}
.profile-mini-info { min-width: 0; flex: 1; }
.profile-mini-nick {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 3px;
}
.profile-mini-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}
.profile-mini-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #a3a9b3 100%);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
    animation: dot-pulse 2.4s ease-in-out infinite;
    flex-shrink: 0;
}

.profile-nav-divider {
    height: 1px;
    margin: 4px 10px 10px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.10) 20%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.10) 80%, transparent 100%);
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.profile-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    background: transparent;
    color: var(--text-tertiary);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.25s var(--ease-smooth), background 0.25s var(--ease-smooth), border-color 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
}
.profile-nav-item:hover {
    color: var(--text-primary);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.012) 100%);
    border-color: rgba(255, 255, 255, 0.08);
}
.profile-nav-item:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.55); outline-offset: 2px; }

.profile-nav-item.is-active {
    color: #0a0b0e;
    background: linear-gradient(180deg, #ffffff 0%, #f0f2f5 30%, #d0d4da 65%, #a3a9b3 100%);
    border-color: rgba(255, 255, 255, 0.90);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -2px 3px rgba(0, 0, 0, 0.14), 0 8px 20px -10px rgba(255, 255, 255, 0.22), 0 4px 14px -8px rgba(0, 0, 0, 0.6);
}

.profile-nav-indicator {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%) scaleY(0.3);
    width: 2px;
    height: 60%;
    border-radius: 2px;
    background: linear-gradient(180deg, transparent 0%, #0a0b0e 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
    pointer-events: none;
}
.profile-nav-item.is-active .profile-nav-indicator {
    opacity: 0.85;
    transform: translateY(-50%) scaleY(1);
}

.profile-nav-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: var(--chrome-text);
    background-size: 100% 100%;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: background 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}
.profile-nav-icon[data-icon="user"]    { -webkit-mask-image: var(--icon-user);    mask-image: var(--icon-user); }
.profile-nav-icon[data-icon="key"]     { -webkit-mask-image: var(--icon-key);     mask-image: var(--icon-key); }
.profile-nav-icon[data-icon="discord"] { -webkit-mask-image: var(--icon-discord); mask-image: var(--icon-discord); }
.profile-nav-icon[data-icon="doc"]     { -webkit-mask-image: var(--icon-doc);     mask-image: var(--icon-doc); }
.profile-nav-icon[data-icon="sliders"] { -webkit-mask-image: var(--icon-sliders); mask-image: var(--icon-sliders); }
.profile-nav-icon[data-icon="shield"]  { -webkit-mask-image: var(--icon-shield);  mask-image: var(--icon-shield); }
.profile-nav-icon[data-icon="power"]   { -webkit-mask-image: var(--icon-power);   mask-image: var(--icon-power); }
.profile-nav-icon[data-icon="warn"]    { -webkit-mask-image: var(--icon-warn);    mask-image: var(--icon-warn); }
.profile-nav-icon[data-icon="logout"]  { -webkit-mask-image: var(--icon-logout);  mask-image: var(--icon-logout); }
.profile-nav-icon[data-icon="trash"]   { -webkit-mask-image: var(--icon-trash);   mask-image: var(--icon-trash); }

.profile-nav-item.is-active .profile-nav-icon {
    background: var(--chrome-ink);
    background-size: 100% 100%;
}
.profile-nav-item:hover .profile-nav-icon { transform: translateX(1px); }

.profile-nav-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.profile-nav-label {
    font-weight: 700;
    letter-spacing: -0.005em;
    line-height: 1.2;
}
.profile-nav-desc {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.005em;
    line-height: 1.3;
    transition: color 0.25s var(--ease-smooth);
}
.profile-nav-item.is-active .profile-nav-desc { color: rgba(10, 11, 14, 0.6); }
.profile-nav-item:hover .profile-nav-desc { color: var(--text-secondary); }
.profile-nav-item.is-active:hover .profile-nav-desc { color: rgba(10, 11, 14, 0.75); }

/* ══════════════════════════════════════════════════════════
   7. PANELS + STACK
   ══════════════════════════════════════════════════════════ */
.profile-panels { position: relative; min-width: 0; }

.profile-panel { display: none; }
.profile-panel.is-active {
    display: block;
    animation: panel-enter 0.42s var(--ease-out);
}

.panel-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 780px;
    margin: 0 auto;
}
.panel-stack > .profile-card {
    margin: 0;
    animation: none;
}

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

/* ══════════════════════════════════════════════════════════
   8. CARDS
   ══════════════════════════════════════════════════════════ */
.profile-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: var(--r-xl);
    isolation: isolate;
    border: 1px solid transparent;
    background:
        var(--noise) padding-box,
        linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.030) 30%, rgba(255, 255, 255, 0.015) 65%, rgba(255, 255, 255, 0.045) 100%) padding-box,
        linear-gradient(180deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.10) 18%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.10) 82%, rgba(255, 255, 255, 0.28) 100%) border-box;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.10) inset,
        0 -1px 0 rgba(0, 0, 0, 0.55) inset,
        0 24px 60px -28px rgba(0, 0, 0, 1),
        0 8px 20px -12px rgba(0, 0, 0, 0.6);
    transition: box-shadow 0.45s var(--ease-smooth), transform 0.45s var(--ease-smooth);
}
.profile-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg), transparent 0deg, transparent 200deg, rgba(255, 255, 255, 0.55) 250deg, rgba(220, 225, 232, 0.35) 280deg, rgba(255, 255, 255, 0.18) 310deg, transparent 340deg);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: rotate-border 14s linear infinite;
    pointer-events: none;
    z-index: 2;
    opacity: 0.35;
    transition: opacity 0.45s var(--ease-smooth);
}
.profile-card:hover::before { opacity: 0.85; animation-duration: 4.5s; }
.profile-card::after {
    content: "";
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 25%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0.35) 75%, transparent 100%);
    opacity: 0.40;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-smooth);
}
.profile-card:hover::after { opacity: 0.85; }
.profile-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.14) inset,
        0 -1px 0 rgba(0, 0, 0, 0.55) inset,
        0 36px 80px -30px rgba(0, 0, 0, 1),
        0 12px 28px -14px rgba(0, 0, 0, 0.7);
}
.profile-card > * { position: relative; z-index: 3; }

/* ══════════════════════════════════════════════════════════
   9. CARD GLOW
   ══════════════════════════════════════════════════════════ */
.profile-card .card-glow {
    position: absolute;
    width: 480px;
    height: 480px;
    left: var(--mx, 50%);
    top: var(--my, 50%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 35%, transparent 68%);
    transition: opacity 0.6s var(--ease-smooth);
}
.profile-card:hover .card-glow { opacity: 1; }

/* ══════════════════════════════════════════════════════════
   10. ACCOUNT CARD
   ══════════════════════════════════════════════════════════ */
.account-card-content {
    display: flex;
    align-items: center;
    gap: 26px;
}
.profile-avatar-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    animation: avatar-float 6s ease-in-out infinite;
    isolation: isolate;
}
.profile-avatar-wrap::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 34px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    animation: ring-spin 30s linear infinite reverse;
    pointer-events: none;
    z-index: 0;
}
.profile-avatar-wrap::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 30px;
    padding: 2px;
    background: conic-gradient(from 0deg, transparent 0%, transparent 60%, rgba(255, 255, 255, 0.85) 75%, rgba(220, 225, 232, 0.55) 87%, rgba(255, 255, 255, 0.25) 94%, transparent 99%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0.85;
    animation: ring-spin 6s linear infinite;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
}
.profile-avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, #0a0c10 0%, #040507 100%);
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    transition: var(--t-base);
    z-index: 1;
}
.profile-avatar:hover {
    border-color: rgba(255, 255, 255, 0.45);
    transform: scale(1.04);
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.9), 0 0 40px -16px rgba(255, 255, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    filter: contrast(1.02) saturate(0.96);
    transition: filter 0.4s var(--ease-smooth);
}
.profile-avatar:hover img { filter: contrast(1.10) saturate(1.02); }

.profile-customize-btn {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #f0f2f5 35%, #d0d4da 70%, #a3a9b3 100%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #0a0b0e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    z-index: 3;
    transition: var(--t-base);
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}
.profile-customize-btn:hover {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #dee1e6 75%, #c8ccd3 100%);
    transform: rotate(90deg) scale(1.10);
    box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.profile-acc-info { min-width: 0; flex: 1; }
.profile-nick {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin-bottom: 14px;
    word-break: break-word;
    background: var(--chrome-sweep);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: chrome-slide 8s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.14));
}

.profile-groups { display: flex; flex-wrap: wrap; gap: 8px; }
.group-badge {
    padding: 5px 13px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.025) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--r-xs);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--platinum-1);
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 2px 6px -4px rgba(0, 0, 0, 0.5);
    transition: var(--t-base);
}
.group-badge:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.banned-banner, .muted-banner {
    margin-top: 12px;
    padding: 9px 15px;
    border-radius: var(--r-sm);
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    letter-spacing: 0.005em;
    backdrop-filter: blur(8px);
}
.banned-banner {
    background: linear-gradient(180deg, rgba(157, 92, 92, 0.14) 0%, rgba(157, 92, 92, 0.04) 100%);
    border: 1px solid rgba(157, 92, 92, 0.30);
    color: #c9a0a0;
}
.muted-banner {
    background: linear-gradient(180deg, rgba(168, 132, 64, 0.12) 0%, rgba(168, 132, 64, 0.03) 100%);
    border: 1px dashed rgba(168, 132, 64, 0.34);
    color: #c4a578;
}

.account-watermark {
    position: absolute;
    right: -8px;
    bottom: -48px;
    font-size: 160px;
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 1;
    color: transparent;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.004) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* ══════════════════════════════════════════════════════════
   11. CODE CARD (now inside account panel)
   ══════════════════════════════════════════════════════════ */
.code-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.code-label {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.code-label .dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #c8ccd3 100%);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 12px rgba(255, 255, 255, 0.65);
    animation: dot-pulse 2.4s ease-in-out infinite;
}
.code-display-wrap {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 32px 44px;
    margin-bottom: 22px;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -2px 8px rgba(0, 0, 0, 0.7), 0 18px 44px -20px rgba(0, 0, 0, 0.95), 0 0 60px -22px rgba(255, 255, 255, 0.12);
    transition: var(--t-base);
}
.code-display-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 3px);
    opacity: 0.4;
    pointer-events: none;
    mix-blend-mode: overlay;
    animation: scan-shift 10s linear infinite;
}
.code-display-wrap:hover {
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -2px 8px rgba(0, 0, 0, 0.75), 0 22px 52px -20px rgba(0, 0, 0, 0.95), 0 0 70px -20px rgba(255, 255, 255, 0.18);
}
.code-value {
    position: relative;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1.1;
    background: var(--chrome-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    user-select: all;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.55)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    transition: var(--t-base);
}
.code-value:hover { letter-spacing: 0.26em; filter: drop-shadow(0 0 28px rgba(255, 255, 255, 0.85)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)); }
.code-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 11px;
    font-weight: 500;
}
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #a3a9b3 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.20), 0 0 12px rgba(255, 255, 255, 0.55);
    animation: dot-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
.code-hint {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.code-hint code {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    font-family: var(--font-mono);
    padding: 3px 9px;
    border-radius: var(--r-xs);
    font-size: 11.5px;
}

/* ══════════════════════════════════════════════════════════
   12. SHARED ROWS / HEADERS
   ══════════════════════════════════════════════════════════ */
.flex-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}
.card-header-info {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}
.card-header-icon {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: var(--t-base);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 4px 12px -6px rgba(0, 0, 0, 0.55);
}
.card-header-icon--discord {
    color: transparent;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.20);
}
.card-header-icon--discord svg { display: none; }
.card-header-icon--discord::before {
    content: "";
    position: absolute;
    inset: 12px;
    background: var(--chrome-text);
    -webkit-mask-image: var(--icon-discord);
    mask-image: var(--icon-discord);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
    transition: filter 0.4s var(--ease-smooth);
    pointer-events: none;
}
.profile-card--discord:hover .card-header-icon--discord { transform: scale(1.06) rotate(-3deg); }
.profile-card--discord:hover .card-header-icon--discord::before {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.65));
}

.card-header-icon--doc { padding: 0; }
.card-header-icon--doc .profile-nav-icon { width: 24px; height: 24px; }

.card-title {
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.card-subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   13. BUTTONS
   ══════════════════════════════════════════════════════════ */
.btn-action {
    position: relative;
    overflow: hidden;
    padding: 11px 22px;
    border-radius: var(--r-sm);
    font-size: 13.5px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--t-base);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.20);
}
.btn-action:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(255, 255, 255, 0.26);
    color: var(--text-primary);
    transform: translateY(-1px);
}
.btn-action:active { transform: translateY(0) scale(0.985); transition-duration: 0.1s; }

.btn-action--primary {
    background: linear-gradient(180deg, #ffffff 0%, #f0f2f5 30%, #d0d4da 65%, #a3a9b3 100%);
    color: #0a0b0e;
    border: 1px solid rgba(255, 255, 255, 0.90);
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -2px 3px rgba(0, 0, 0, 0.14), 0 8px 22px -10px rgba(255, 255, 255, 0.18), 0 4px 14px -8px rgba(0, 0, 0, 0.6);
}
.btn-action--primary:hover {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #dee1e6 72%, #b8bdc5 100%);
    color: #040507;
    border-color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), 0 12px 28px -10px rgba(255, 255, 255, 0.30), 0 6px 18px -8px rgba(0, 0, 0, 0.65);
    transform: translateY(-1px);
}

.btn-action--danger {
    background: linear-gradient(180deg, rgba(157, 92, 92, 0.10) 0%, rgba(157, 92, 92, 0.02) 100%);
    color: #c9a0a0;
    border-color: rgba(157, 92, 92, 0.28);
}
.btn-action--danger:hover {
    background: linear-gradient(180deg, rgba(157, 92, 92, 0.18) 0%, rgba(157, 92, 92, 0.05) 100%);
    color: #dbb8b8;
    border-color: rgba(157, 92, 92, 0.48);
}

#btnLinkDiscord {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.22);
    color: #e2e8f0;
}
#btnLinkDiscord:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(255, 255, 255, 0.40);
    color: #ffffff;
}

/* ══════════════════════════════════════════════════════════
   14. ANKETA
   ══════════════════════════════════════════════════════════ */
.anketa-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.anketa-value {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--r-md);
    transition: var(--t-base);
    backdrop-filter: blur(8px);
}
.anketa-value::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    flex-shrink: 0;
    opacity: 0.85;
}
.status-approved { color: var(--success); background: linear-gradient(180deg, rgba(75, 140, 107, 0.14) 0%, rgba(75, 140, 107, 0.04) 100%); border: 1px solid rgba(75, 140, 107, 0.30); }
.status-rejected { color: #c9a0a0; background: linear-gradient(180deg, rgba(157, 92, 92, 0.10) 0%, rgba(157, 92, 92, 0.02) 100%); border: 1px solid rgba(157, 92, 92, 0.24); opacity: 0.92; }
.status-pending { color: #c4a578; background: linear-gradient(180deg, rgba(168, 132, 64, 0.12) 0%, rgba(168, 132, 64, 0.03) 100%); border: 1px dashed rgba(168, 132, 64, 0.38); animation: pending-pulse 3s ease-in-out infinite; }
.status-none { color: var(--text-muted); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%); border: 1px solid rgba(255, 255, 255, 0.09); }

.anketa-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    margin-top: 22px;
}
.anketa-field {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.012) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 14px 16px;
    border-radius: var(--r-md);
    transition: var(--t-base);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.anketa-field::before {
    content: "";
    position: absolute;
    left: 0; top: 15%; bottom: 15%;
    width: 2px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.75) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
}
.anketa-field:hover {
    border-color: rgba(255, 255, 255, 0.20);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.02) 100%);
    transform: translateY(-1px);
}
.anketa-field:hover::before { opacity: 0.85; }
.anketa-field-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    margin-bottom: 7px;
    font-weight: 600;
}
.anketa-field-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
    line-height: 1.5;
}

.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════
   15. MANAGE PANEL — sections + action rows
   ══════════════════════════════════════════════════════════ */
.manage-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(8px);
    animation: manage-enter 0.5s var(--ease-out) forwards;
}
.manage-section:nth-child(1) { animation-delay: 0.05s; }
.manage-section:nth-child(2) { animation-delay: 0.11s; }
.manage-section:nth-child(3) { animation-delay: 0.17s; }

@keyframes manage-enter {
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Section head ─── */
.manage-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
}
.manage-head-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: var(--chrome-text);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}
.manage-head-icon[data-icon="shield"] { -webkit-mask-image: var(--icon-shield); mask-image: var(--icon-shield); }
.manage-head-icon[data-icon="power"]  { -webkit-mask-image: var(--icon-power);  mask-image: var(--icon-power); }
.manage-head-icon[data-icon="warn"]   { -webkit-mask-image: var(--icon-warn);   mask-image: var(--icon-warn); }

.manage-head-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.manage-head-line {
    flex: 1;
    height: 1px;
    margin-left: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 40%, transparent 100%);
}

/* ─── Action row ─── */
.manage-action {
    display: grid;
    grid-template-columns: 52px 1fr 24px;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.012) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--r-md);
    color: var(--text-secondary);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
    transition:
        background 0.35s var(--ease-smooth),
        border-color 0.35s var(--ease-smooth),
        transform 0.35s var(--ease-smooth),
        box-shadow 0.35s var(--ease-smooth);
}
.manage-action::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.10) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.7s var(--ease-smooth);
    pointer-events: none;
    z-index: 1;
}
.manage-action:hover::before { transform: translateX(100%); }
.manage-action:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.20);
    transform: translateX(2px);
    color: var(--text-primary);
    box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.manage-action:active { transform: translateX(0) scale(0.995); transition-duration: 0.1s; }
.manage-action > * { position: relative; z-index: 2; }

.manage-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: background 0.35s var(--ease-smooth), border-color 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth);
}
.manage-icon .profile-nav-icon { width: 22px; height: 22px; }
.manage-action:hover .manage-icon {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(255, 255, 255, 0.24);
    transform: scale(1.03);
}

.manage-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.manage-title {
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}
.manage-desc {
    font-size: 12.5px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

.manage-arrow {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--chrome-text);
    -webkit-mask-image: var(--icon-arrow);
    mask-image: var(--icon-arrow);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: transform 0.3s var(--ease-smooth);
}
.manage-action:hover .manage-arrow { transform: translateX(4px); }

/* ─── Danger section ─── */
.manage-section--danger .manage-head-icon { background: linear-gradient(180deg, #dbb8b8 0%, #9d5c5c 100%); }
.manage-section--danger .manage-head-label { color: #c9a0a0; }
.manage-section--danger .manage-head-line {
    background: linear-gradient(90deg, rgba(157, 92, 92, 0.40) 0%, rgba(157, 92, 92, 0.10) 50%, transparent 100%);
}

.manage-action--danger {
    background: linear-gradient(180deg, rgba(157, 92, 92, 0.06) 0%, rgba(157, 92, 92, 0.02) 100%);
    border-color: rgba(157, 92, 92, 0.20);
}
.manage-action--danger::before {
    background: linear-gradient(105deg, transparent 40%, rgba(219, 184, 184, 0.12) 50%, transparent 60%);
}
.manage-action--danger:hover {
    background: linear-gradient(180deg, rgba(157, 92, 92, 0.14) 0%, rgba(157, 92, 92, 0.04) 100%);
    border-color: rgba(157, 92, 92, 0.42);
    box-shadow: 0 8px 22px -12px rgba(157, 92, 92, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.manage-action--danger .manage-icon {
    background: linear-gradient(180deg, rgba(157, 92, 92, 0.12) 0%, rgba(157, 92, 92, 0.03) 100%);
    border-color: rgba(157, 92, 92, 0.24);
}
.manage-action--danger:hover .manage-icon {
    background: linear-gradient(180deg, rgba(157, 92, 92, 0.22) 0%, rgba(157, 92, 92, 0.06) 100%);
    border-color: rgba(157, 92, 92, 0.45);
}
.manage-action--danger .manage-icon .profile-nav-icon {
    background: linear-gradient(180deg, #dbb8b8 0%, #9d5c5c 100%);
    background-size: 100% 100%;
}
.manage-action--danger .manage-title { color: #dbb8b8; }
.manage-action--danger:hover .manage-title { color: #ffffff; }
.manage-action--danger .manage-arrow {
    background: linear-gradient(180deg, #dbb8b8 0%, #9d5c5c 100%);
    background-size: 100% 100%;
}

/* ══════════════════════════════════════════════════════════
   16. MODALS
   ══════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 3, 5, 0.78);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-smooth), visibility 0.3s var(--ease-smooth);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-box {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 38px;
    border-radius: var(--r-xl);
    isolation: isolate;
    border: 1px solid transparent;
    background:
        var(--noise) padding-box,
        linear-gradient(180deg, rgba(24, 26, 32, 0.98) 0%, rgba(10, 12, 16, 0.99) 100%) padding-box,
        linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.06) 20%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.06) 80%, rgba(255, 255, 255, 0.24) 100%) border-box;
    box-shadow: 0 40px 100px -28px rgba(0, 0, 0, 1), 0 12px 40px -16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    transform: translateY(24px) scale(0.96);
    transition: transform 0.5s var(--ease-out);
}
.modal-box::before {
    content: "";
    position: absolute;
    top: 0; left: 18%; right: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t-base);
    z-index: 3;
}
.close-btn:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.30);
    transform: rotate(90deg) scale(1.04);
}
.modal-box h2 {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 10px;
    background: var(--chrome-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 3;
}
.modal-box .sub {
    position: relative;
    font-size: 13.5px;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-bottom: 24px;
    z-index: 3;
}
.modal-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 3;
}
.modal-form input {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-sm);
    color: #ffffff;
    font-size: 14.5px;
    font-family: inherit;
    transition: var(--t-base);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.modal-form input::placeholder { color: rgba(255, 255, 255, 0.30); }
.modal-form input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.40);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.025) 100%);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06), inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.modal-submit-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255, 255, 255, 0.88);
    background: linear-gradient(180deg, #ffffff 0%, #f0f2f5 30%, #d0d4da 65%, #a3a9b3 100%);
    color: #0a0b0e;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -2px 3px rgba(0, 0, 0, 0.14), 0 10px 26px -12px rgba(255, 255, 255, 0.20), 0 5px 16px -8px rgba(0, 0, 0, 0.6);
    transition: var(--t-base);
}
.modal-submit-btn:hover {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #dee1e6 72%, #b8bdc5 100%);
    color: #040507;
    border-color: #ffffff;
    transform: translateY(-1px);
}
.discord-code-box {
    position: relative;
    overflow: hidden;
    text-align: center;
    margin: 22px 0;
    padding: 30px 26px;
    border-radius: var(--r-lg);
    background: radial-gradient(120% 140% at 50% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 62%), linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.012) 100%);
    border: 1px solid rgba(255, 255, 255, 0.20);
    z-index: 3;
}
.discord-code-label {
    position: relative;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-tertiary);
    font-weight: 600;
    margin-bottom: 12px;
}
.discord-code-value {
    position: relative;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.1;
    font-family: var(--font-mono);
    user-select: all;
    background: var(--chrome-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.55)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}
.discord-steps { text-align: center; margin-bottom: 24px !important; line-height: 1.8 !important; }
.discord-steps code {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    padding: 3px 10px;
    border-radius: var(--r-xs);
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ══════════════════════════════════════════════════════════
   17. STATES
   ══════════════════════════════════════════════════════════ */
.state-loading, .state-error {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 88px 24px;
    border-radius: var(--r-xl);
    border: 1px solid transparent;
    isolation: isolate;
    background:
        var(--noise) padding-box,
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 50%, rgba(255, 255, 255, 0.035) 100%) padding-box,
        linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0.16) 100%) border-box;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 30px 80px -32px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    animation: card-enter 0.65s var(--ease-out);
}
.state-loading::after, .state-error::after {
    content: "";
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
    opacity: 0.7;
    z-index: 2;
}
.state-loading-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.10);
    border-top-color: #ffffff;
    animation: spin-slow 1.4s linear infinite;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.45));
    position: relative;
    z-index: 2;
}
.state-error-icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    color: #c8ccd3;
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.25));
    position: relative;
    z-index: 2;
}
.state-error-icon svg { width: 100%; height: 100%; }
.state-loading > div:last-child, .state-error > div:not(.state-error-icon):not(:last-child) {
    position: relative;
    font-size: 15.5px;
    font-weight: 600;
    z-index: 2;
    background: var(--chrome-text-soft);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.state-error p { position: relative; z-index: 2; color: var(--text-tertiary) !important; }
.state-error .btn-action { position: relative; z-index: 2; }

/* ══════════════════════════════════════════════════════════
   18. KEYFRAMES
   ══════════════════════════════════════════════════════════ */
@keyframes chrome-slide { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes badge-sweep { 0%, 65% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes dot-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.85); } }
@keyframes avatar-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes rotate-border { to { --angle: 360deg; } }
@keyframes scan-shift { from { background-position: 0 0; } to { background-position: 0 100px; } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes hero-enter { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes card-enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pending-pulse {
    0%, 100% { border-color: rgba(168, 132, 64, 0.32); }
    50% { border-color: rgba(168, 132, 64, 0.60); }
}

/* ══════════════════════════════════════════════════════════
   19. RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
    .profile-dashboard { grid-template-columns: 260px minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .profile-dashboard { grid-template-columns: 1fr; gap: 16px; }
    .profile-sidebar-inner {
        position: relative;
        top: 0;
        padding: 8px;
        border-radius: var(--r-lg);
    }
    .profile-mini,
    .profile-nav-divider { display: none; }
    .profile-nav {
        flex-direction: row;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 4px;
    }
    .profile-nav::-webkit-scrollbar { display: none; }
    .profile-nav-item {
        flex: 0 0 auto;
        width: auto;
        padding: 10px 14px;
        gap: 9px;
    }
    .profile-nav-desc { display: none; }
    .profile-nav-indicator { display: none; }
    .profile-nav-icon { width: 18px; height: 18px; }
}

@media (max-width: 720px) {
    .profile-page { padding: 108px 16px 76px; }
    .profile-hero { margin-bottom: 32px; }
    .profile-hero-title { font-size: clamp(30px, 8vw, 44px); }
    .profile-hero-desc { font-size: 14.5px; }
    .profile-card { padding: 24px 22px; border-radius: var(--r-lg); }
    .account-card-content { gap: 18px; align-items: flex-start; }
    .profile-avatar-wrap { width: 78px; height: 78px; }
    .profile-nick { font-size: 23px; margin-bottom: 10px; }
    .account-watermark { font-size: 108px; bottom: -34px; }
    .code-value { font-size: 32px; letter-spacing: 0.18em; }
    .code-display-wrap { padding: 24px 30px; max-width: 340px; }
    .flex-row-between { flex-direction: column; align-items: flex-start; }
    .modal-box { padding: 30px 24px; border-radius: var(--r-lg); }
    .modal-box h2 { font-size: 21px; }
    .discord-code-value { font-size: 32px; letter-spacing: 0.10em; }
    .anketa-data-grid { grid-template-columns: 1fr; }
    .card-header-icon { width: 46px; height: 46px; }
    .card-header-icon--discord::before { inset: 10px; }
    .card-header-icon--doc .profile-nav-icon { width: 22px; height: 22px; }
    .profile-nav-item { font-size: 12.5px; padding: 9px 12px; gap: 8px; }

    .manage-action { grid-template-columns: 44px 1fr 20px; gap: 12px; padding: 14px 16px; }
    .manage-icon { width: 44px; height: 44px; }
    .manage-icon .profile-nav-icon { width: 20px; height: 20px; }
    .manage-arrow { width: 18px; height: 18px; }
    .manage-title { font-size: 13.5px; }
    .manage-desc { font-size: 12px; }
}

@media (max-width: 480px) {
    .profile-page { padding: 96px 14px 60px; }
    .section-badge { font-size: 10px; padding: 7px 15px 7px 12px; letter-spacing: 0.18em; }
    .profile-hero-title { font-size: 29px; }
    .profile-card { padding: 20px 18px; border-radius: var(--r-md); }
    .profile-avatar-wrap { width: 66px; height: 66px; }
    .profile-avatar { border-radius: 18px; }
    .profile-nick { font-size: 20px; }
    .group-badge { font-size: 11.5px; padding: 4px 10px; }
    .code-value { font-size: 24px; letter-spacing: 0.16em; }
    .code-display-wrap { padding: 18px 20px; max-width: 280px; margin-bottom: 16px; }
    .code-label { margin-bottom: 16px; }
    .code-hint { font-size: 11.5px; }
    .btn-action { padding: 10px 16px; font-size: 12.5px; }
    .modal-box { padding: 26px 18px; }
    .discord-code-value { font-size: 26px; }
    .card-header-icon { width: 42px; height: 42px; }
    .card-header-icon--discord::before { inset: 9px; }
    .card-header-icon--doc .profile-nav-icon { width: 20px; height: 20px; }
    .profile-nav { padding: 6px; }
    .profile-nav-item { padding: 8px 11px; font-size: 12px; gap: 7px; }
    .profile-nav-icon { width: 17px; height: 17px; }
    .panel-stack { gap: 14px; }

    .manage-action { grid-template-columns: 40px 1fr 18px; gap: 10px; padding: 12px 14px; }
    .manage-icon { width: 40px; height: 40px; }
    .manage-icon .profile-nav-icon { width: 18px; height: 18px; }
    .manage-arrow { width: 16px; height: 16px; }
    .manage-head-label { font-size: 10px; letter-spacing: 0.20em; }
    .manage-title { font-size: 13px; }
    .manage-desc { font-size: 11.5px; }
}

/* ══════════════════════════════════════════════════════════
   20. REDUCED MOTION
   ══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .profile-card::before { animation: none !important; opacity: 0.25; }
    .manage-section { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════
   21. HIGH CONTRAST
   ══════════════════════════════════════════════════════════ */
@media (prefers-contrast: more) {
    :root {
        --line-soft: rgba(255, 255, 255, 0.14);
        --line: rgba(255, 255, 255, 0.22);
        --line-mid: rgba(255, 255, 255, 0.32);
        --text-secondary: #dee1e6;
        --text-tertiary: #c8ccd3;
        --text-muted: #a3a9b3;
    }
}

/* ══════════════════════════════════════════════════════════
   23. TOAST (платиновый стеклянный)
   ══════════════════════════════════════════════════════════ */
#toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;
    min-width: 260px;
    max-width: 380px;
    padding: 14px 18px 14px 48px;
    border-radius: var(--r-md);
    background:
        linear-gradient(180deg, rgba(20, 22, 28, 0.98) 0%, rgba(10, 12, 16, 0.99) 100%) padding-box,
        linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.18) 100%) border-box;
    border: 1px solid transparent;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow:
        0 20px 40px -16px rgba(0, 0, 0, 0.9),
        0 8px 20px -10px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
    pointer-events: none;
    isolation: isolate;
}

#toast::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    background: var(--chrome-text);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
    pointer-events: none;
}

#toast::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.10) 50%, transparent 100%);
    pointer-events: none;
}

#toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#toast.toast--success::before {
    background: linear-gradient(180deg, #ffffff 0%, #4b8c6b 100%);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    filter: drop-shadow(0 0 8px rgba(75, 140, 107, 0.6));
}

#toast.toast--error::before {
    background: linear-gradient(180deg, #dbb8b8 0%, #9d5c5c 100%);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
    filter: drop-shadow(0 0 8px rgba(157, 92, 92, 0.6));
}

#toast.toast--warn::before {
    background: linear-gradient(180deg, #f0e0b8 0%, #a88440 100%);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
    filter: drop-shadow(0 0 8px rgba(168, 132, 64, 0.6));
}

#toast.toast--info::before {
    background: var(--chrome-text);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

@media (max-width: 480px) {
    #toast {
        left: 14px;
        right: 14px;
        bottom: 14px;
        min-width: 0;
        max-width: none;
    }
}

/* ══════════════════════════════════════════════════════════
   24. CONFIRM-ДИАЛОГ
   ══════════════════════════════════════════════════════════ */
.confirm-overlay .confirm-box {
    max-width: 420px;
    text-align: left;
    padding: 32px 32px 28px;
}
.confirm-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 4px 14px -8px rgba(0, 0, 0, 0.5);
}
.confirm-icon svg { width: 24px; height: 24px; color: #dee1e6; }
.confirm-icon--danger {
    background: linear-gradient(180deg, rgba(157, 92, 92, 0.18) 0%, rgba(157, 92, 92, 0.04) 100%);
    border-color: rgba(157, 92, 92, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 18px -8px rgba(157, 92, 92, 0.4);
}
.confirm-icon--danger svg { color: #dbb8b8; }
.confirm-box h2 { margin-bottom: 8px; font-size: 20px; }
.confirm-box .sub { margin-bottom: 24px; font-size: 13.5px; line-height: 1.6; }
.confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.confirm-actions .btn-action { min-width: 110px; }

@media (max-width: 480px) {
    .confirm-overlay .confirm-box { padding: 24px 20px; }
    .confirm-actions { flex-direction: column-reverse; }
    .confirm-actions .btn-action { width: 100%; }
}

/* ══════════════════════════════════════════════════════════
   25. ХЕЛПЕРЫ: busy-кнопки, код введён, discord-статус
   ══════════════════════════════════════════════════════════ */
.btn-action.is-busy { cursor: wait; pointer-events: none; opacity: 0.9; }
.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.20);
    border-top-color: #ffffff;
    animation: spin-slow 0.9s linear infinite;
    flex-shrink: 0;
}
.btn-action--primary .btn-spinner,
.btn-action--danger  .btn-spinner {
    border-color: rgba(10, 11, 14, 0.25);
    border-top-color: #0a0b0e;
}
.btn-action--danger .btn-spinner {
    border-color: rgba(157, 92, 92, 0.35);
    border-top-color: #dbb8b8;
}

.code-value.code-value--used {
    letter-spacing: 0.08em;
    font-size: 22px;
    color: transparent;
    background: var(--chrome-text-soft);
    -webkit-background-clip: text;
    background-clip: text;
    cursor: default;
    pointer-events: none;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.25));
}

#discordStatusText.is-linked {
    color: #eef0f3 !important;
    background: linear-gradient(180deg, #ffffff 0%, #c8ccd3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.group-badge--empty {
    opacity: 0.5;
    font-style: italic;
    color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════
   22. UTILS
   ══════════════════════════════════════════════════════════ */
.account-watermark,
.manage-head-label,
.section-badge-dot,
.ribbon-dot,
.live-dot,
.profile-mini-status-dot {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.profile-page, .modal-box {
    font-feature-settings: "cv11", "ss01", "ss02", "kern", "liga";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media (hover: none) {
    .profile-card:hover { transform: none; }
    .profile-card:hover::before { opacity: 0.35; animation-duration: 14s; }
    .profile-card:hover::after { opacity: 0.40; }
    .btn-action:hover { transform: none; }
    .profile-avatar:hover { transform: none; }
    .profile-customize-btn:hover { transform: none; }
    .manage-action:hover { transform: none; }
    
}