






:root {
    --bg-primary: #09090B;
    --bg-secondary: #0F0F15;
    --bg-tertiary: #14141B;
    --glass-bg: rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.10);
    --accent: #A98EEF;
    --accent-light: #C2B2FF;
    --accent-dark: #8B5CF6;
    --accent-deep: #6D5BFF;
    --accent-glow: rgba(169,142,239,0.25);
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8C7;
    --text-muted: #7C7C8A;
    --radius-lg: 36px;
    --radius-md: 28px;
    --radius-sm: 18px;
    --radius-xs: 12px;
    --font-display: 'Manrope', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --line: rgba(255, 255, 255, .08);
    --line-soft: rgba(255, 255, 255, .045);
    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .14);
    --muted: #a7a3b7;
    --subtle: #6f6b7e;
    --surface: #111119;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #fb7185;
}

* { margin: 0; padding: 0; box-sizing: border-box; }





html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
img { max-width: 100%; display: block; }


.ambient-blob {
    position: fixed; border-radius: 50%; filter: blur(120px);
    pointer-events: none; z-index: 0; opacity: 0.45; will-change: transform;
}
.ambient-blob--1 {
    width: 700px; height: 700px; top: -200px; left: -200px;
    background: radial-gradient(circle, rgba(169,142,239,0.25), transparent 70%);
    animation: blobFloat 20s ease-in-out infinite alternate;
}
.ambient-blob--2 {
    width: 520px; height: 520px; bottom: -120px; right: -100px;
    background: radial-gradient(circle, rgba(107,91,255,0.16), transparent 70%);
    animation: blobFloat 25s ease-in-out infinite alternate-reverse;
}
@keyframes blobFloat {
    0% { transform: translate(0,0) scale(1); }
    33% { transform: translate(30px,-40px) scale(1.05); }
    66% { transform: translate(-20px,30px) scale(0.95); }
    100% { transform: translate(10px,-20px) scale(1.02); }
}


.site-header {
    position: fixed; inset: 0 0 auto; z-index: 1000;
    min-height: 64px;
    padding: 0 clamp(20px, 4vw, 76px);
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 8, 12, .88);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
    backdrop-filter: blur(28px) saturate(125%);
    -webkit-backdrop-filter: blur(28px) saturate(125%);
}
.header-brand { display: flex; align-items: center; justify-self: start; }
.header-brand img { width: auto; height: 30px; max-width: 130px; object-fit: contain; }
.header-center { display: flex; align-items: center; justify-content: center; gap: 23px; }
.header-nav { display: flex; align-items: center; gap: 25px; list-style: none; }
.header-nav a {
    position: relative; color: var(--text-secondary);
    font-size: .85rem; font-weight: 500; transition: color .2s ease;
}
.header-nav a:hover, .header-nav a.active { color: #fff; }
.header-nav a::after {
    content: ''; position: absolute; left: 0; bottom: -7px; width: 0; height: 2px;
    border-radius: 2px; background: var(--accent); transition: width .2s ease;
}
.header-nav a:hover::after, .header-nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-button {
    min-height: 34px; padding: 7px 18px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025);
    color: #aaa5b3; font-size: .78rem; font-weight: 600;
    transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease;
}
.header-button:hover { color: #fff; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.055); transform: translateY(-1px); }
.header-button.primary {
    border-color: rgba(169, 142, 239, .2);
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff; box-shadow: 0 6px 20px rgba(111, 73, 255, .32);
}
.header-right { justify-self: end; display: flex; align-items: center; gap: 11px; }
.header-icon {
    width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: 50%; color: #8f8a99; transition: color .2s ease, background .2s ease;
}
.header-icon:hover { color: #fff; background: rgba(255,255,255,.045); }
.header-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-profile { display: flex; align-items: center; gap: 8px; position: relative; }
.header-avatar {
    
    width: 36px; height: 36px; padding: 0; overflow: visible; display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.15); border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    position: relative;
}
.header-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.header-avatar .avatar-fallback { font-size: .85rem; font-weight: 700; color: #fff; }
.header-username { max-width: 100px; overflow: hidden; color: #ccc7d2; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.header-arrow { color: #716c7b; font-size: .7rem; }
.auth-links { display: flex; align-items: center; gap: 10px; color: #aaa5b3; font-size: .78rem; }



.auth-pill {
    display: inline-flex; align-items: center; justify-content: center;
    height: 34px; padding: 0 18px; border-radius: 999px;
    font-size: .8rem; font-weight: 600; white-space: nowrap;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    background: rgba(255,255,255,.04);
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.auth-pill:hover { border-color: rgba(169,142,239,.45); background: rgba(169,142,239,.1); }
.auth-pill--primary {
    color: #fff; border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    box-shadow: 0 8px 22px rgba(109,91,255,.32);
}
.auth-pill--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(109,91,255,.42); }

.avatar-dropdown-container {
    position: fixed; z-index: 2000; display: none; opacity: 0; pointer-events: none;
    transform: translateY(-8px) scale(.97);
    transition: opacity .2s ease, transform .2s ease;
}
.avatar-dropdown-container.active { display: block; opacity: 1; pointer-events: auto; transform: none; }
.avatar-dropdown {
    min-width: 200px; overflow: hidden; padding: 8px 0;
    border: 1px solid var(--line); border-radius: 14px;
    background: rgba(20,20,27,.96); box-shadow: 0 18px 50px rgba(0,0,0,.55);
    backdrop-filter: blur(24px);
}




.nav-burger {
    display: none;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: transparent;
    border: 0;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    transition: opacity .2s ease;
    cursor: pointer; flex-shrink: 0;
}
.nav-burger:hover span { background: #fff; }
.nav-burger span {
    display: block; width: 18px; height: 2px;
    background: #ccc7d2; border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease, width .2s ease;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }



.mobile-nav {
    display: none; 
    position: fixed;
    top: 64px; 
    left: 0; right: 0;
    z-index: 999;
    flex-direction: column;
    padding: 12px 14px 20px;
    background: rgba(9, 9, 11, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(28px) saturate(130%);
    -webkit-backdrop-filter: blur(28px) saturate(130%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
    
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .22s ease;
}
.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}


.mobile-nav__item {
    display: flex; align-items: center; gap: 12px;
    min-height: 44px; 
    padding: 0 12px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: .9rem; font-weight: 550;
    transition: background .18s ease, color .18s ease;
    text-decoration: none;
    cursor: pointer;
    border: none; background: none; font-family: var(--font-body); width: 100%; text-align: left;
}
.mobile-nav__item:hover,
.mobile-nav__item:focus-visible { background: rgba(255,255,255,.055); color: #fff; }
.mobile-nav__item.active { color: var(--accent-light); }
.mobile-nav__item svg {
    width: 18px; height: 18px; flex-shrink: 0;
    fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}


.mobile-nav__divider {
    height: 1px; background: var(--line); margin: 8px 12px;
}


.mobile-nav__item.primary-action {
    margin-top: 6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff; justify-content: center;
    box-shadow: 0 6px 20px rgba(111,73,255,.32);
    font-weight: 650;
}
.mobile-nav__item.primary-action:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    transform: translateY(-1px);
}


.mobile-nav__item.danger { color: var(--danger); }
.mobile-nav__item.danger:hover { background: rgba(251,113,133,.1); color: var(--danger); }


@media (max-width: 1260px) {
    .site-header { padding-inline: 22px; }
    .header-nav { gap: 17px; }
    
    .header-nav li:nth-child(5), .header-nav li:nth-child(6) { display: none; }
}



@media (max-width: 980px) {
    .site-header {
        
        grid-template-columns: auto 1fr auto;
        gap: 0;
    }
    .header-center { display: none; } 
    .nav-burger { display: flex; }   

    
    .header-right { gap: 6px; }
    .header-username { display: none; }   
    .header-arrow  { display: none; }     
    

    .auth-links a:first-child { display: none; }
    .auth-pill { height: 32px; padding: 0 14px; font-size: .76rem; }

    
    .mobile-nav { display: flex; }
}


@media (max-width: 680px) {
    .site-header { min-height: 56px; padding-inline: 12px; }
    .mobile-nav  { top: 56px; } 
    .header-brand img { height: 26px; max-width: 100px; }
    
    .header-icon { width: 30px; height: 30px; }
    .header-icon svg { width: 16px; height: 16px; }
    .header-avatar { width: 30px; height: 30px; }
    .header-right { gap: 4px; }
}


@media (max-width: 360px) {
    .site-header { padding-inline: 8px; }
    .header-brand img { max-width: 80px; }
    .header-right { gap: 2px; }
}


.page {
    position: relative; z-index: 1;
    padding: 96px clamp(16px, 3vw, 40px) 64px;
    max-width: 1440px; margin: 0 auto;
}
.page-narrow { max-width: 900px; }

.page-head { margin-bottom: 24px; }
.page-title {
    font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
}
.page-subtitle { margin-top: 8px; color: var(--text-secondary); font-size: .94rem; }

.breadcrumb {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
    color: var(--text-muted); font-size: .8rem;
}
.breadcrumb a { color: var(--accent-light); }
.breadcrumb a:hover { color: #fff; }


.panel {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: linear-gradient(155deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
    backdrop-filter: blur(18px);
}
.panel-pad { padding: 26px 28px; }
.panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 18px;
}
.panel-title {
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 750; letter-spacing: -.02em;
}
.panel-link { color: var(--accent-light); font-size: .78rem; font-weight: 600; transition: color .2s; }
.panel-link:hover { color: #fff; }
.stack { display: flex; flex-direction: column; gap: 22px; }


.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.split-left { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.split-right { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 96px; }
@media (max-width: 1000px) {
    .split { grid-template-columns: 1fr; }
    .split-right { position: static; }
}


.flash {
    padding: 13px 17px; border-radius: 14px; font-size: .88rem; font-weight: 500;
    border: 1px solid transparent;
}
.flash-success { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.25); color: #a7f3d0; }
.flash-error { background: rgba(251,113,133,.1); border-color: rgba(251,113,133,.25); color: #fda4af; }

.empty-state {
    padding: 30px 18px; text-align: center; color: var(--text-muted); font-size: .88rem;
    border: 1px dashed var(--border); border-radius: 16px;
}
.empty-state strong { display: block; color: var(--text-secondary); margin-bottom: 4px; }


.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px; border-radius: 999px; border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff; font-size: .92rem; font-weight: 650;
    box-shadow: 0 8px 24px rgba(109,91,255,.28);
    transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(109,91,255,.4); }
.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px; border-radius: 999px;
    background: transparent; border: 1px solid rgba(255,255,255,.14);
    color: var(--text-secondary); font-size: .92rem; font-weight: 650;
    transition: color .2s, background .2s;
}
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.05); }
.btn-soft {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 38px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--border); background: rgba(255,255,255,.04);
    color: #fff; font-size: .8rem; font-weight: 620;
    transition: background .2s, border-color .2s, transform .2s;
}
.btn-soft:hover { background: rgba(255,255,255,.08); border-color: rgba(169,142,239,.4); transform: translateY(-1px); }
.btn-soft.danger { color: #fda4af; border-color: rgba(251,113,133,.28); }
.btn-soft.danger:hover { background: rgba(251,113,133,.12); border-color: rgba(251,113,133,.45); }
.btn-soft svg, .btn-primary svg, .btn-ghost svg {
    width: 15px; height: 15px; fill: none; stroke: currentColor;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }


.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; margin-bottom: 7px; color: var(--text-secondary);
    font-size: .82rem; font-weight: 550;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="search"],
.form-group textarea,
.form-group select {
    width: 100%; padding: 13px 16px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px; color: #fff; font-size: .95rem;
    font-family: var(--font-body); outline: none;
    transition: border .2s, box-shadow .2s;
}
.form-group textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--accent); box-shadow: 0 0 0 4px rgba(169,142,239,.14);
}
.form-group input:disabled { opacity: .55; cursor: not-allowed; }
.form-hint { margin-top: 6px; color: var(--text-muted); font-size: .74rem; }





.field {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    color: #fff;
    font-size: .88rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field::placeholder { color: var(--text-muted); }
.field:hover { background: rgba(255, 255, 255, .07); }
.field:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 0 0 4px rgba(169, 142, 239, .14);
}
.field:disabled { opacity: .55; cursor: not-allowed; }
.field--sm { padding: 8px 11px; border-radius: 10px; font-size: .78rem; }


.field.is-saved {
    border-color: rgba(134, 212, 175, .65);
    box-shadow: 0 0 0 4px rgba(134, 212, 175, .16);
}




.field--file,
.form-group input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px dashed rgba(255, 255, 255, .16);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: .82rem;
    font-family: var(--font-body);
    outline: none;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.field--file:hover,
.form-group input[type="file"]:hover {
    border-color: rgba(169, 142, 239, .45);
    background: rgba(255, 255, 255, .06);
}
.field--file:focus-visible,
.form-group input[type="file"]:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(169, 142, 239, .14);
}
.field--file::file-selector-button,
.form-group input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.field--file::file-selector-button:hover,
.form-group input[type="file"]::file-selector-button:hover {
    background: rgba(169, 142, 239, .22);
    border-color: rgba(169, 142, 239, .45);
}


form.is-busy { opacity: .6; pointer-events: none; }









@media (min-width: 981px) {
    .sidebar-nav {
        
        min-height: calc(100vh - 128px);
    }
}





.sidebar-tg {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas: "icon text" "btn btn";
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(169, 142, 239, .22);
    border-radius: 16px;
    background: linear-gradient(150deg, rgba(169, 142, 239, .14), rgba(109, 91, 255, .05));
    color: inherit;
    text-decoration: none;
    transition: border-color .2s, background .2s, transform .2s;
}
.sidebar-tg:hover {
    border-color: rgba(169, 142, 239, .45);
    background: linear-gradient(150deg, rgba(169, 142, 239, .22), rgba(109, 91, 255, .09));
    transform: translateY(-1px);
}
.sidebar-tg__icon {
    grid-area: icon;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    
    background: linear-gradient(140deg, var(--accent), var(--accent-deep));
    box-shadow: 0 6px 16px rgba(109, 91, 255, .3);
}
.sidebar-tg__icon svg {
    width: 19px;
    height: 19px;
    fill: #fff;
    stroke: none;
}
.sidebar-tg__text { grid-area: text; min-width: 0; align-self: center; }
.sidebar-tg__text strong {
    display: block;
    color: #fff;
    font-size: .84rem;
    font-weight: 620;
}
.sidebar-tg__text small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: .71rem;
    line-height: 1.35;
}


.sidebar-tg__btn {
    grid-area: btn;
    min-height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff;
    font-size: .81rem;
    font-weight: 650;
    box-shadow: 0 6px 18px rgba(109, 91, 255, .26);
    transition: filter .2s, box-shadow .2s;
}
.sidebar-tg:hover .sidebar-tg__btn {
    filter: brightness(1.08);
    box-shadow: 0 10px 24px rgba(109, 91, 255, .38);
}





@media (min-width: 981px) {
    .sidebar-tg { margin-top: auto; }
}



@media (max-width: 980px) {
    .sidebar-tg { display: none; }
}
.char-count { float: right; color: var(--text-muted); font-size: .72rem; }
.form-actions { display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap; }


.avatar {
    
    border-radius: 50%; overflow: visible; flex-shrink: 0; position: relative;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff; font-weight: 700;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar--40 { width: 40px; height: 40px; font-size: .85rem; }
.avatar--48 { width: 48px; height: 48px; font-size: .95rem; }
.avatar--56 { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar--88 { width: 88px; height: 88px; font-size: 1.8rem; }

.status-dot-sm {
    position: absolute; right: 0; bottom: 0;
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid #0c0c12; background: var(--success);
}

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px;
    background: rgba(255,255,255,.05); border: 1px solid var(--border);
    color: var(--text-secondary); font-size: .72rem; font-weight: 600;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip.active {
    color: #fff; border-color: rgba(169,142,239,.45); background: rgba(169,142,239,.14);
}


.tabs {
    display: flex; gap: 6px; padding: 6px; margin-bottom: 22px;
    border: 1px solid var(--border); border-radius: 999px;
    background: rgba(255,255,255,.03); width: fit-content; max-width: 100%;
    overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px; border-radius: 999px;
    color: var(--text-secondary); font-size: .82rem; font-weight: 600;
    white-space: nowrap; transition: color .2s, background .2s;
}
.tab:hover { color: #fff; }
.tab.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(169,142,239,.24), rgba(109,91,255,.14));
    box-shadow: inset 0 0 0 1px rgba(169,142,239,.2);
}
.tab-count {
    padding: 1px 7px; border-radius: 999px;
    background: rgba(255,255,255,.08); font-size: .68rem; font-weight: 800;
}


.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); }
table.data {
    width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 640px;
}
table.data th {
    padding: 13px 16px; text-align: left;
    background: rgba(255,255,255,.04);
    color: var(--text-secondary); font-size: .74rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
table.data td {
    padding: 13px 16px; border-bottom: 1px solid var(--line-soft);
    color: var(--text-secondary); vertical-align: middle;
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(255,255,255,.022); }
table.data td strong { color: #fff; font-weight: 620; }
.cell-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; }
.inline-form input[type="text"] {
    min-width: 160px; padding: 8px 12px; border-radius: 999px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    color: #fff; font-size: .8rem; font-family: var(--font-body); outline: none;
}
.inline-form input[type="text"]:focus { border-color: var(--accent); }


.stat-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px;
}
.stat-card {
    padding: 20px 22px; border: 1px solid var(--border); border-radius: 18px;
    background: linear-gradient(155deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
}
.stat-card__value {
    font-family: var(--font-display); font-size: 1.9rem; font-weight: 800;
    letter-spacing: -.03em; line-height: 1.05;
}
.stat-card__label { margin-top: 6px; color: var(--text-muted); font-size: .78rem; }


.scroll-y { overflow-y: auto; scrollbar-width: thin; }
.scroll-y::-webkit-scrollbar { width: 8px; }
.scroll-y::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 8px; }

@media (max-width: 680px) {
    .page { padding: 84px 14px 48px; }
    .panel-pad { padding: 20px 18px; }
}








.tabbar { display: none; }

@media (max-width: 980px) {
    .tabbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
        display: grid; grid-template-columns: repeat(5, 1fr);
        padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
        background: rgba(12, 12, 17, .94);
        border-top: 1px solid rgba(255, 255, 255, .07);
        backdrop-filter: blur(22px) saturate(140%);
        -webkit-backdrop-filter: blur(22px) saturate(140%);
    }
    .tabbar__item {
        display: flex; flex-direction: column; align-items: center; gap: 4px;
        padding: 6px 2px; border-radius: 12px;
        color: #8b8796; font-size: .6rem; font-weight: 600;
        text-decoration: none; transition: color .2s ease;
        -webkit-tap-highlight-color: transparent;
        

        min-width: 0;
    }
    .tabbar__item svg {
        width: 22px; height: 22px;
        fill: none; stroke: currentColor; stroke-width: 1.7;
        stroke-linecap: round; stroke-linejoin: round;
    }
    .tabbar__item.active { color: var(--accent-light); }
    .tabbar__item.active svg { stroke: var(--accent-light); }
    .tabbar__item:active { color: #fff; }

    
    .tabbar__icon-wrap { position: relative; display: inline-flex; }
    .tabbar__dot {
        position: absolute; top: -1px; right: -3px;
        width: 8px; height: 8px; border-radius: 50%;
        background: #ff4d5e; border: 2px solid #0c0c11;
        display: none;
    }
    .tabbar__dot.visible { display: block; }

    





    .tabbar__fab {
        position: relative;
        display: flex; justify-content: center; align-items: center;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    .tabbar__fab-circle {
        position: absolute; left: 50%; top: 50%;
        display: grid; place-items: center;
        width: 60px; height: 60px; border-radius: 50%;
        background: linear-gradient(135deg, var(--accent), var(--accent-deep));
        border: 3px solid #0c0c11;
        box-shadow: 0 8px 22px rgba(111, 73, 255, .42);
        


        transform: translate(-50%, -50%) translateY(-8px);
        transition: transform .18s ease, box-shadow .18s ease;
    }
    .tabbar__fab-circle svg {
        width: 27px; height: 27px;
        fill: none; stroke: #fff; stroke-width: 2.4;
        stroke-linecap: round; stroke-linejoin: round;
    }
    
    .tabbar__fab.active .tabbar__fab-circle {
        box-shadow: 0 8px 22px rgba(111, 73, 255, .42),
                    0 0 0 2px rgba(194, 178, 255, .55);
    }
    


    .tabbar__fab:active .tabbar__fab-circle {
        transform: translate(-50%, -50%) translateY(-8px) scale(.93);
        box-shadow: 0 4px 14px rgba(111, 73, 255, .5);
    }

    

    .tabbar__item > span:not(.tabbar__icon-wrap) {
        max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }

    




    body[data-authenticated="true"] {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }
}







@media (max-width: 760px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    textarea,
    select {
        font-size: 16px !important;
    }
}

































[class*="avatar"] > img[src],
[class*="ava"] > img[src] {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    
    max-height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    
    align-self: center;
    justify-self: center;
}

.avatar,
.header-avatar,
.hero-avatar,
.nav-avatar,
.wall-post__avatar,
.friend-row__avatar,
.comment-avatar,
.comment-form-avatar,
.wall-comment__avatar,
.composer-avatar,
.friend-avatar,
.feed-ava,
.dash-level__ava,
.participant-avatar,
.message-avatar,
.invite-row__ava,
.invite-modal__ava,
.shell-notification__avatar,
.shell-messages__avatar {
    aspect-ratio: 1 / 1;
    


    background-clip: padding-box;
}

.avatar img,
.header-avatar img,
.hero-avatar img,
.nav-avatar img,
.wall-post__avatar img,
.friend-row__avatar img,
.comment-avatar img,
.comment-form-avatar img,
.wall-comment__avatar img,
.composer-avatar img,
.friend-avatar img,
.feed-ava img,
.dash-level__ava img,
.participant-avatar img,
.message-avatar img,
.invite-row__ava img,
.invite-modal__ava img,
.shell-notification__avatar img,
.shell-messages__avatar img {
    width: 100%;
    
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
