#new-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    margin-left: 4px;
}

#new-tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.1);
}


body.tab-style-vertical #tab-bar {
    overflow: visible;
}

body.tab-style-vertical .tab-item {
    overflow: visible;
}

body.tab-style-radial .tab-item:hover .tab-title {
    display: block !important;
    opacity: 1;
    bottom: 70px;
    background: #18181b;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 102;
    width: auto;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.tab-style-radial .tab-close {
    display: flex;
    opacity: 0;
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

body.tab-style-radial .tab-item:hover .tab-close {
    opacity: 1;
    transform: scale(1);
}

body.tab-style-dots #tab-bar {
    bottom: 15px !important;
}

body.tab-style-vertical .tab-item.active:not(:hover) {
    width: 48px !important;
    padding-left: 0 !important;
    justify-content: center !important;
    z-index: auto !important;
    box-shadow: none !important;
}

body.tab-style-vertical .tab-item.active:not(:hover) .tab-title,
body.tab-style-vertical .tab-item.active:not(:hover) .tab-close {
    display: none !important;
}

body.tab-style-vertical .tab-item:hover,
body.tab-style-vertical .tab-item.active {
    width: 48px !important;
    padding-left: 0 !important;
    justify-content: center !important;
    z-index: 9999 !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

body.tab-style-vertical .tab-title {
    position: absolute !important;
    left: 60px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #18181b !important;
    color: #fff !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    white-space: nowrap !important;
    display: none !important;
    width: auto !important;
    min-width: 0 !important;
    flex: none !important;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.tab-style-vertical .tab-item:hover .tab-title {
    display: block !important;
    opacity: 1;
}

body.tab-style-vertical .tab-close {
    position: absolute !important;
    top: auto !important;
    bottom: -5px !important;
    right: -5px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #ef4444 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.2s;
    z-index: 10000;
}

body.tab-style-vertical .tab-item:hover .tab-close {
    opacity: 1;
    transform: scale(1);
}


#loading-screen {
    position: fixed;
    inset: 0;
    background: #18181b;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), filter 1s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
    filter: blur(20px);
}

#loading-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.loading-content {
    position: relative;
    z-index: 1;
    text-align: center;
    pointer-events: none;
}

.loading-brand {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: 0.5rem;
    color: #f4f4f5;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease, transform 2s ease, letter-spacing 2s ease;
}

.loading-brand.visible {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.8rem;
}

.loading-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    opacity: 0.6;
}


#settings-content::-webkit-scrollbar {
    width: 6px;
}

#settings-content::-webkit-scrollbar-track {
    background: transparent;
}

#settings-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

#settings-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}


.version-tag {
    position: fixed;
    bottom: 20px;
    right: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.15);
    text-transform: uppercase;
    pointer-events: none;
    z-index: 9999;
}

body.tab-style-default .version-tag {
    bottom: 20px;
}

body.tab-style-dots .version-tag,
body.tab-style-radial .version-tag {
    bottom: 80px;
    right: 50%;
    transform: translateX(50%);
}


.custom-context-menu {
    position: fixed;
    background: #18181b;
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px;
    min-width: 180px;
    z-index: 999999;
    opacity: 0;
    transform: scale(0.95);
    transform-origin: top left;
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.1);
}

.custom-context-menu.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.context-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.context-menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 6px 0;
}


.iframe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.iframe-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
}

.iframe-overlay.hidden {
    display: none;
}


.nav-pill {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: rgba(24, 24, 27, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-pill.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-pill-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 18px;
}

.nav-pill-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: scale(1.05);
}

.nav-pill-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

body.tab-style-default .nav-pill {
    top: calc(50% + 21px);
}


.notification-btn {
    position: fixed !important;
    --bg-color: transparent;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
}

.notification-badge.active {
    display: flex;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin-animation {
    animation: spin 0.5s ease-in-out;
}