.fx-sidebar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.fx-sidebar::-webkit-scrollbar { display: none; }


.fx-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 14px 14px 18px;
}
.fx-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-width: 0;
}
@keyframes fxSidebarLabelsIn { from { opacity:0; white-space:nowrap; } to { opacity:1; white-space:nowrap; } }
@media (min-width:769px) and (prefers-reduced-motion:no-preference) {
    body.fx-sidebar-opening .fx-sidebar :is(.fx-nav-label, .fx-nav-section-title, .fx-brand-text, .fx-userpill-info, .fx-userpill-guest-text) {
        animation: fxSidebarLabelsIn .15s ease-out .22s backwards;
    }
}
.fx-brand-text {
    min-width: 0;
    overflow: hidden;
}

body[data-page-category="tools"] :is(.fx-page-crumb-current, .fx-tool-hero h2, .chat-tool-heading h2, .sv-head h2, .ys-intro h2, .ve-head h2) {
    font-family: 'Studio Unbounded', var(--fx-font-main), sans-serif;
}

.fx-brand-title {
    font-size: 14px; font-weight: 800; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fx-brand-sub {
    font-size: 11px; color: var(--fx-text-muted, #888);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


.fx-sidebar-toggle {
    width: 32px; height: 32px;
    box-sizing: border-box;
    border-radius: var(--fx-radius-pill);
    background: transparent;
    border: 1px solid transparent;
    color: var(--fx-text-muted, #888);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
    padding: 0;
    flex-shrink: 0;
}
.fx-sidebar-toggle:hover {
    background: var(--fx-bg-hover, rgba(255,255,255,0.05));
    color: var(--fx-text-main, #eee);
    border-color: var(--fx-border);
}
.fx-sidebar-toggle:focus-visible { outline: 2px solid var(--fx-ac2); outline-offset: 2px; }
.fx-sidebar-toggle-icon {
    width: 20px; height: 20px;
    color: currentColor;
}
.fx-sidebar-toggle-icon [data-toggle-arrow] {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform .25s ease;
}

body.fx-collapsed .fx-sidebar-toggle-icon [data-toggle-arrow] {
    transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
    .fx-sidebar-toggle,
    .fx-sidebar-toggle-icon [data-toggle-arrow] { transition: none; }
}

@media (max-width: 768px) {
    .fx-sidebar-toggle { display: none; }
}

.fx-sidebar {
    transition: width 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 768px) {
    .fx-sidebar {
        transition: transform .25s ease, opacity .2s ease, visibility 0s .25s;
    }
    body.fx-sidebar-open .fx-sidebar { transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) {
    .fx-sidebar { transition: none; }
}
.fx-stage {
    transition: margin-left 0.3s ease;
}


@media (min-width: 769px) {

    .fx-nav a > span,
    .fx-brand-text,
    .fx-userpill-info,
    .fx-userpill-guest-text {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.25s ease 0.2s, transform 0.3s ease 0.2s;
        white-space: nowrap;
    }

    body.fx-collapsed .fx-nav a > span,
    body.fx-collapsed .fx-brand-text,
    body.fx-collapsed .fx-userpill-info,
    body.fx-collapsed .fx-userpill-guest-text {
        opacity: 0;
        transform: translateX(-8px);
        transition: opacity 0.1s ease, transform 0.15s ease;
        pointer-events: none;
    }
}


@media (min-width: 769px) {
    body.fx-collapsed .fx-sidebar {
        width: var(--fx-sidebar-w-mini, 72px);
        overflow: visible;  
    }
    body.fx-collapsed .fx-stage {
        margin-left: calc(var(--fx-sidebar-w-mini, 72px) + 12px);
    }

    
    body.fx-collapsed .fx-brand-text {
        display: none;
    }
    body.fx-collapsed .fx-brand {
        flex-direction: column;
        gap: 12px;
        padding: 14px 0;
        align-items: center;
    }
    body.fx-collapsed .fx-brand-link {
        justify-content: center;
        flex: 0 0 auto;
    }

    
    body.fx-collapsed .fx-nav-section-title {
        display: none;
    }

    
    body.fx-collapsed .fx-nav a {
        justify-content: center;
        padding: 10px 0;
        position: relative;
    }
    body.fx-collapsed .fx-nav a > span {
        display: none;
    }
    body.fx-collapsed .fx-nav-icon {
        width: 20px; height: 20px;
        opacity: 0.85;
    }
    body.fx-collapsed .fx-nav a.active .fx-nav-icon {
        opacity: 1;
    }

    
    body.fx-collapsed .fx-nav-section + .fx-nav-section {
        border-top: 1px solid var(--fx-border, rgba(255,255,255,0.08));
        margin-top: 8px;
        padding-top: 8px;
    }

    
    body.fx-collapsed .fx-sidebar {
        overflow: visible !important;
    }
    
    body.fx-collapsed .fx-nav {
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-gutter: auto;        
        scrollbar-width: none;          
    }
    body.fx-collapsed .fx-nav::-webkit-scrollbar {
        width: 0;                       
        display: none;
    }
    body.fx-collapsed .fx-nav-content,
    body.fx-collapsed .fx-nav-section {
        overflow: visible;
    }
}


.fx-tooltip {
    position: fixed;
    background: var(--fx-bg-elevated, #16161a);
    color: var(--fx-text-main, #eee);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--fx-border, rgba(255,255,255,0.1));
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.fx-tooltip.visible {
    opacity: 1;
    transform: translateX(0);
}

.fx-tooltip::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--fx-bg-elevated, #16161a);
}

@media (min-width: 769px) {

    body.fx-collapsed .fx-userpill-bottom {
        padding: 0;
        justify-content: center;
    }
    body.fx-collapsed .fx-userpill-info {
        display: none;
    }

    body.fx-collapsed .fx-notif-icon {
        display: none;
    }

    body.fx-collapsed .fx-userpill-collapsed-avatar {
        position: relative;
        margin: 0 auto;
    }
    body.fx-collapsed .fx-userpill-collapsed-badge {
        position: absolute;
        top: -4px; right: -4px;
        min-width: 18px; height: 18px; padding: 0 5px;
        background: var(--fx-error, #ff4d4d);
        color: #fff;
        border-radius: 9px;
        font-size: 10px; font-weight: 800;
        display: flex; align-items: center; justify-content: center;
        line-height: 1;
        border: 2px solid var(--fx-sidebar-bg, #0b0b0f);
    }
    body.fx-collapsed .fx-userpill-collapsed-badge.hidden { display: none; }

    .fx-userpill-collapsed-badge {
        display: none;
    }
    body.fx-collapsed .fx-userpill-collapsed-badge:not(.hidden) {
        display: flex;
    }


    body.fx-collapsed .fx-userpill-guest {
        padding: 10px;
        justify-content: center;
    }
    body.fx-collapsed .fx-userpill-guest-text {
        display: none;
    }
}


@media (max-width: 768px) {
    .fx-userpill-collapsed-badge {
        display: none !important;
    }
}


.fx-userpill-bottom {
    display: flex; align-items: center; gap: 10px;
    padding: 10px;
    margin: 0;
    background: transparent;
    border: none;
    text-decoration: none;
    color: inherit;
    transition: var(--fx-transition, 0.25s);
    border-radius: var(--fx-radius-md, 24px);
}
.fx-userpill-bottom:hover {
    background: var(--fx-bg-hover, rgba(255,255,255,0.05));
}

.fx-userpill-bottom .fx-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: #fff;
    flex-shrink: 0;
}

.fx-userpill-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
    line-height: 1.2;
}
.fx-userpill-name {
    font-size: 13px; font-weight: 700; color: #fff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fx-userpill-status {
    font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
    margin-top: 2px;
}
.fx-userpill-status.pro { color: var(--fx-ac2, #38e8c5); }
.fx-userpill-status.free { color: var(--fx-text-muted, #888); }
.fx-userpill-status.ultra {
    background: linear-gradient(90deg, #ffc75c, #b98aff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffc75c; 
    font-weight: 800;
}

.fx-notif-icon {
    padding: 0; border: 0; background: transparent; font: inherit;
    position: relative;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--fx-text-main, #eee);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--fx-transition);
}
.fx-notif-icon:hover { background: rgba(255,255,255,0.05); }
.fx-notif-icon svg { width: 20px; height: 20px; }
.fx-notif-icon:focus-visible { outline: 2px solid var(--fx-ac2); outline-offset: 2px; }

.fx-notif-badge {
    position: absolute;
    top: 2px; right: 2px;
    min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--fx-error, #ff4d4d);
    color: #fff;
    border-radius: 8px;
    font-size: 9px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    border: 2px solid var(--fx-sidebar-bg, #0b0b0f);
}
.fx-notif-badge.hidden { display: none; }

.fx-userpill-guest {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 4px;
    background: var(--fx-ac1, #7a4df5);
    border-radius: var(--fx-radius-md, 24px);
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease;
    box-shadow: 0 4px 12px rgba(var(--fx-ac1-rgb), .25);
}
.fx-userpill-guest:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(var(--fx-ac1-rgb), .4);
}
.fx-userpill-guest-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.fx-userpill-guest-svg {
    width: 20px; height: 20px;
    color: #fff;
}
.fx-userpill-guest-icon:empty::before,
.fx-userpill-guest-icon:has(> :empty)::before {
    content: "👤";
    font-size: 18px;
}
.fx-userpill-guest-text {
    display: flex; flex-direction: column; line-height: 1.2;
}
.fx-userpill-guest .login-title {
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.2px;
}
.fx-userpill-guest .login-sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    margin-top: 2px;
}

.fx-topbar {
    display: flex; align-items: center; gap: 12px;
}
.fx-topbar .fx-topbar-right { display: none; }
.fx-service-notice {
    margin: 12px clamp(12px, 3vw, 28px) 0;
    padding: 12px 16px;
    border: 1px solid rgba(173, 151, 255, .24);
    border-radius: 14px;
    background: rgba(122, 77, 245, .08);
    color: var(--fx-text-muted, #bbb9c8);
    font-size: 14px;
    line-height: 1.5;
}

.fx-page-title {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}
.fx-page-crumb-group {
    color: var(--fx-text-muted, #888);
    opacity: 0.4;         
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
a.fx-page-crumb-group:hover {
    opacity: 1;
    color: var(--fx-ac1, #7a4df5);
}
.fx-page-crumb-sep {
    color: var(--fx-text-dim, #555);
    opacity: 0.5;              
    margin: 0 12px;
    font-weight: 300;
    font-size: 18px;
    user-select: none;
    flex-shrink: 0;
}
.fx-page-crumb-current {
    color: var(--fx-text-main, #eee);
    font-weight: 700;
    font-size: 18px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

@media (max-width: 768px) {
    .fx-page-title .fx-page-crumb-group,
    .fx-page-title .fx-page-crumb-sep {
        display: none !important;
    }
}


@media (min-width: 769px) {
    .fx-burger { display: none !important; }
}

.fx-burger-dot {
    position: absolute;
    top: 4px; right: 4px;
    width: 12px; height: 12px;
    background: var(--fx-error, #ff4d4d);
    border-radius: 50%;
    border: 2px solid var(--fx-bg, #0b0b0d);
    display: none;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.6);
    animation: fxNotifPulse 2s ease-in-out infinite;
}
.fx-burger-dot.visible { display: block; }
@keyframes fxNotifPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 77, 77, 0.6); }
    50%      { box-shadow: 0 0 12px rgba(255, 77, 77, 0.9); }
}


#fx-preloader { display: none !important; }
.fx-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(var(--fx-ac1-rgb), .3);
    border-top-color: var(--fx-ac2);
    border-radius: 50%; animation: fx-spin 0.8s linear infinite;
}
@keyframes fx-spin { to { transform: rotate(360deg); } }

.fx-nav {
    scroll-behavior: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color .24s ease;
}
.fx-nav:hover,
.fx-nav:focus-within,
.fx-nav:active {
    scrollbar-color: color-mix(in srgb, var(--fx-text-main) 14%, transparent) transparent;
}
.fx-nav::-webkit-scrollbar {
    width: 5px;
    background: transparent;
}
.fx-nav::-webkit-scrollbar-track,
.fx-nav::-webkit-scrollbar-corner {
    background: transparent;
}
.fx-nav::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}
.fx-nav::-webkit-scrollbar-thumb {
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    background-color: transparent;
    transition: background-color .24s ease;
}
.fx-nav:hover::-webkit-scrollbar-thumb,
.fx-nav:focus-within::-webkit-scrollbar-thumb,
.fx-nav:active::-webkit-scrollbar-thumb {
    background-color: color-mix(in srgb, var(--fx-text-main) 14%, transparent);
}


.fx-nav-section {
    margin-bottom: 14px;
}
.fx-nav-section-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: var(--fx-text-muted, #888);
    padding: 6px 8px 4px;
    margin: 0;
}
.fx-nav-content {
    display: flex;
    flex-direction: column;
}


.fx-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    margin: 0 0 1px 0; 
    text-decoration: none;
    color: var(--fx-text-main, #eee);
    font-size: 14px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
    font-weight: 500;
    position: relative;
}
.fx-nav a:hover {
    background: var(--fx-bg-hover, rgba(255,255,255,0.05));
    color: #fff;
}
.fx-nav-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    flex-shrink: 0;
    color: currentColor;
    transition: opacity 0.15s ease, color 0.15s ease;
}
.fx-nav a:hover .fx-nav-icon { opacity: 1; }

.fx-nav a.fx-nav-section-link {
    justify-content: flex-start;
    gap: 6px;
    padding: 6px 8px 4px;
    margin: 0;
    border-radius: 4px;
    color: var(--fx-text-muted, #888);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: none;
}
.fx-nav a.fx-nav-section-link:hover {
    background: transparent;
    color: var(--fx-text-muted, #888);
}

.fx-nav a.active {
    background: var(--fx-ac1-soft);
    color: var(--fx-text-main);
    font-weight: 600;
    box-shadow: none;
}
.fx-nav a.active .fx-nav-icon {
    opacity: 1;
    color: var(--fx-ac1, #7a4df5);
}
.fx-nav a.active::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--fx-ac1, #7a4df5);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--fx-ac1, #7a4df5);
}
.fx-nav a:not(.active)::before {
    content: none;
}

.fx-nav a.gold .fx-nav-icon {
    color: var(--fx-gold, #ffda6b);
    opacity: 1;
}
.fx-nav a.gold:hover {
    color: var(--fx-gold, #ffda6b);
}
.fx-nav a.gold:hover .fx-nav-icon {
    color: var(--fx-gold, #ffda6b);
}
.fx-nav a.active.gold::before {
    background: var(--fx-gold, #ffda6b);
    box-shadow: 0 0 10px var(--fx-gold, #ffda6b);
}
.fx-nav a.active.gold .fx-nav-icon {
    color: var(--fx-gold, #ffda6b);
}
.fx-nav a.active.gold {
    background: var(--fx-gold-soft);
}
.fx-nav a.gold-text { color: var(--fx-gold, #ffda6b); }
.fx-nav a > .fx-nav-label { min-width: 0; line-height: 1.45; white-space: normal; }
.fx-nav-tier {
    display: inline; margin-left: 5px; white-space: nowrap;
    font-size: 10px; font-weight: 700; letter-spacing: .02em;
    color: var(--fx-text-muted, #999);
}
.fx-nav-tier::before { content: '·'; margin-right: 4px; }
.fx-nav-tier--pro { color: var(--fx-tier-pro, #38e8c5); }
.fx-nav-tier--ultra { color: var(--fx-gold, #ffda6b); }
[data-theme="light"] .fx-nav-tier--pro { color: color-mix(in srgb, var(--fx-tier-pro, #38e8c5) 45%, #073d33); }

.fx-notif-dropdown {
    position: fixed;
    left: calc(var(--fx-sidebar-w, 248px) + 20px);
    bottom: 16px;
    width: 380px;
    max-height: min(520px, calc(100vh - 32px));
    max-height: min(520px, calc(100dvh - 32px));
    box-sizing: border-box;
    
    background: var(--fx-bg-elevated, #16161a);
    border: 1px solid var(--fx-border, rgba(255,255,255,0.08));
    border-radius: var(--fx-radius-lg, 32px);
    box-shadow: 0 10px 32px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.06);
    display: none;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    overscroll-behavior: contain;
}
.fx-notif-dropdown.open {
    display: flex;
    animation: fxNotifReveal .2s ease-out;
}
@keyframes fxNotifReveal {
    from { opacity: 0; transform: translate(var(--fx-notif-enter-x, -8px), var(--fx-notif-enter-y, 0px)); }
    to { opacity: 1; transform: translate(0, 0); }
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .fx-notif-dropdown {
        background: color-mix(in srgb, var(--fx-bg-elevated, #16161a) 68%, transparent);
        -webkit-backdrop-filter: blur(24px) saturate(125%);
        backdrop-filter: blur(24px) saturate(125%);
    }
}
@media (prefers-reduced-transparency: reduce) {
    .fx-notif-dropdown {
        background: var(--fx-bg-elevated, #16161a);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .fx-notif-dropdown.open { animation: none; }
}

body.fx-collapsed .fx-notif-dropdown {
    left: calc(var(--fx-sidebar-w-mini, 72px) + 20px);
}

.fx-notif-dropdown-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px;
    flex-shrink: 0;
    gap: 12px;
}
.fx-notif-dropdown-title {
    font-size: 15px; font-weight: 800; color: var(--fx-text-main);
}
.fx-notif-dropdown-actions {
    display: flex; align-items: center; gap: 8px;
}
.fx-notif-dropdown :is(.fx-notif-mark-all, .fx-notif-dropdown-footer) {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: var(--fx-radius-pill);
}
.fx-notif-mark-all {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    color: var(--fx-text-main); white-space: nowrap;
    min-height: 44px;
    font-size: 12px; font-weight: 600;
    cursor: pointer;
    padding: 0 12px;
}
.fx-notif-mark-all:enabled:hover { color: var(--fx-ac2); }
.fx-notif-mark-all svg { width: 18px; height: 18px; flex-shrink: 0; }
.fx-notif-close svg { width: 20px; height: 20px; }
.fx-notif-mark-all:disabled { opacity: 0.5; cursor: default; text-decoration: none; }


.fx-notif-close {
    display: none;
    background: transparent;
    border: none;
    color: var(--fx-text-muted, #888);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--fx-radius-pill);
    font-size: 20px;
    line-height: 1;
    transition: color .15s ease, background-color .15s ease;
}
.fx-notif-close:hover {
    color: var(--fx-text-main);
    background: var(--fx-bg-hover);
}
.fx-notif-dropdown button:focus-visible,
.fx-notif-dropdown a:focus-visible { outline: 2px solid var(--fx-ac2); outline-offset: -3px; }

.fx-notif-dropdown-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.fx-notif-dropdown-list::-webkit-scrollbar { width: 6px; }
.fx-notif-dropdown-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.fx-notif-loading,
.fx-notif-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--fx-text-muted, #888);
    font-size: 13px;
}
.fx-notif-empty-icon {
    display: flex; justify-content: center;
    margin-bottom: 12px;
    opacity: 0.5;
}

.fx-notif-item {
    display: flex; gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--fx-border, rgba(255,255,255,0.05));
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.fx-notif-item:last-child { border-bottom: none; }
.fx-notif-item:hover { background: var(--fx-bg-hover); }
.fx-notif-item.unread .fx-notif-item-title { color: var(--fx-text-main); font-weight: 750; }
.fx-notif-item.unread .fx-notif-item-title::after {
    content: ''; position: absolute; right: 0; top: calc(50% - 3px);
    width: 6px; height: 6px; border-radius: 50%; background: var(--fx-ac2);
}

.fx-notif-item-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}
.fx-notif-item-icon svg { width: 20px; height: 20px; }
.fx-notif-empty-icon svg { width: 36px; height: 36px; }
.fx-notif-dropdown-footer svg { width: 16px; height: 16px; flex-shrink: 0; }

.fx-notif-item-icon.payment { background: rgba(var(--fx-ac2-rgb), .15); color: var(--fx-ac2); }
.fx-notif-item-icon.message { background: rgba(var(--fx-ac1-rgb), .15); color: var(--fx-ac1); }
.fx-notif-item-icon.news    { background: rgba(var(--fx-gold-rgb), .15); color: var(--fx-gold); }
.fx-notif-item-icon.system  { background: var(--fx-bg-hover); color: var(--fx-text-muted); }

.fx-notif-item-body { flex: 1; min-width: 0; }
.fx-notif-item-title {
    position: relative; padding-right: 14px;
    font-size: 13px; font-weight: 600; color: var(--fx-text-muted);
    margin-bottom: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fx-notif-item-text {
    font-size: 12px; color: var(--fx-text-muted, #aaa);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fx-notif-item-time {
    font-size: 11px; color: var(--fx-text-muted, #888); opacity: .75;
}

.fx-notif-dropdown-footer {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; box-sizing: border-box; padding: 12px 16px;
    align-self: center; margin: 4px 12px 10px; text-align: center;
    color: var(--fx-text-muted);
    font-size: 13px; font-weight: 700;
    text-decoration: none;
    transition: color .15s ease;
    flex-shrink: 0;
}
.fx-notif-dropdown-footer:hover {
    color: var(--fx-ac2);
}


@media (max-width: 768px) {
    .fx-notif-dropdown {
        --fx-notif-edge: max(12px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
        --fx-notif-bottom: max(12px, env(safe-area-inset-bottom, 0px));
        --fx-notif-enter-x: 0px;
        --fx-notif-enter-y: 12px;
        left: var(--fx-notif-edge) !important;
        right: var(--fx-notif-edge);
        bottom: var(--fx-notif-bottom);
        top: auto;
        width: auto;
        max-width: 420px;
        margin-inline: auto;
        max-height: min(560px, 75vh);
        max-height: min(560px, 75dvh, calc(100dvh - var(--fx-notif-bottom) - max(12px, env(safe-area-inset-top, 0px))));
    }
    
    .fx-notif-dropdown-header::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: color-mix(in srgb, var(--fx-text-main) 20%, transparent);
        border-radius: 2px;
    }
    .fx-notif-dropdown-header {
        padding-top: 16px;
        position: relative;
    }
    .fx-notif-dropdown-actions { margin-inline-start: auto; }
    
    .fx-notif-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
}
@media (max-width: 340px) {
    .fx-notif-dropdown-header { gap: 6px; padding-inline: 10px; }
    .fx-notif-dropdown-actions { gap: 4px; }
    .fx-notif-mark-all { padding-inline: 10px; }
    .fx-notif-mark-all svg { display: none; }
}


.fx-notif-overlay {
    position: fixed;
    inset: 0;
    background: transparent;
    
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    z-index: 9998;
    display: none;
}
.fx-notif-overlay.open { display: block; }
@media (max-width: 768px) {
    .fx-notif-overlay.open {
        background: rgba(0, 0, 0, .16);
    }
}


.fx-shell :is(button, a, input):is(.fx-btn, .btn-primary, .btn-ghost, .btn-main, .btn-buy, .btn-render, .btn-magic, .btn-guest, .modal-btn, .btn-danger, .btn-sec, .account-btn, .artist-primary-button, .artist-ghost-button, .artist-export-button, .gen-btn, .gen-upsell-btn, .midi-download-btn, .rc-btn-primary, .rc-btn-ghost, .promo-btn, .action-btn, .producer-button, .scale-btn, .ys-button, .an-button, .rp-button, .sp-btn, .sl-btn, .ts-btn, .sf-button, .gc-btn, .pro-btn, .pt-btn, .tp-btn, .ac-btn, .exp-btn, .hub-gen-btn, .hub-upload-btn),
.fx-shell :is(.btn, .button)[type="submit"] { border-radius: var(--fx-radius-pill, 100px); }
