/* Global Public Header, Navigation & UI Stylesheet (public/css/header.css) */
/* Self-Hosted Local Telugu Typography (WOFF2 + TTF Fallback • 0ms External Latency) */
@font-face {
    font-family: 'Ramabhadra';
    src: url('/public/fonts/Ramabhadra-Regular.woff2') format('woff2'),
         url('/public/fonts/Ramabhadra-Regular.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'RamabhadraLocal';
    src: url('/public/fonts/Ramabhadra-Regular.woff2') format('woff2'),
         url('/public/fonts/Ramabhadra-Regular.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

        /* Vanilla CSS Grid & Flexbox Reset */
        * { box-sizing: border-box; }
        html { min-height: 100%; margin: 0; padding: 0; overflow-x: clip; }
        body { min-height: 100vh; min-height: 100dvh; height: auto !important; margin: 0; padding: 0; overflow-x: clip; display: flex; flex-direction: column; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: var(--color-bg-gray-100); color: #374151; line-height: 1.5; }
        h1, h2, h3, h4, h5, h6, .heading, .card-title { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important; font-weight: 700 !important; }
        
        /* Header & Navigation: Native Device Font */
        .desktop-header,
        .desktop-header *:not(.ticker-item-text):not(.ticker-label):not(.ticker-label-desktop):not(.ticker-label-mobile),
        .nav-header,
        .nav-header *,
        .desktop-nav,
        .desktop-nav *,
        .nav-link,
        .logo-bar,
        .logo-bar *,
        .mobile-header,
        .mobile-header *:not(.ticker-item-text):not(.ticker-label):not(.ticker-label-desktop):not(.ticker-label-mobile),
        .mobile-sidebar,
        .mobile-sidebar * {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
        }

        /* Exclusive Telugu Typography for Headlines & Categories */
        .ticker-item-text.font-telugu,
        .ticker-content-wrap .ticker-item-text,
        .font-mandali, .font-telugu, .font-ramabhadra,
        .article-title.font-telugu, .news-item-title,
        .cat-chip.font-telugu, .mu-cat-chip.font-telugu,
        .meta-cat-badge, .enews-cat-pill {
            font-family: 'Ramabhadra', 'RamabhadraLocal', system-ui, sans-serif !important;
        }

        .font-telugu-body { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important; }
        .header-container { width: 100%; max-width: var(--header-max-width, 1325px); margin-left: auto; margin-right: auto; }

        /* Global Master Dark Mode Support for Public Header & Pages */
        html.dark, body.dark {
            background-color: #0b0f19 !important;
            color: #f8fafc !important;
        }
        html.dark body {
            background-color: #0b0f19 !important;
            color: #f8fafc !important;
        }
        html.dark .logo-bar {
            background-color: #111827 !important;
            border-bottom: 1px solid #1f2937 !important;
            box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
        }
        html.dark .edition-card, html.dark .bg-white, html.dark .paper-card {
            background-color: #1e293b !important;
            color: #f8fafc !important;
            border-color: #334155 !important;
        }
        html.dark .bg-gray-50, html.dark .bg-gray-100 {
            background-color: #0f172a !important;
        }
        html.dark .text-gray-900, html.dark .text-gray-800, html.dark .text-gray-700 {
            color: #f1f5f9 !important;
        }
        html.dark .text-gray-600, html.dark .text-gray-500 {
            color: #94a3b8 !important;
        }
        html.dark .border-gray-200, html.dark .border-gray-100, html.dark .border-gray-300 {
            border-color: #334155 !important;
        }
        html.dark .clean-indigo-drawer-body {
            background: #0f172a !important;
            color: #f8fafc !important;
        }
        html.dark .menu-drawer-link {
            color: #e2e8f0 !important;
            border-bottom-color: #1e293b !important;
        }
        html.dark .menu-drawer-link:hover {
            background-color: #1e293b !important;
            color: #ffffff !important;
        }
        html.dark .clean-drawer-footer {
            background: #0b0f19 !important;
            border-top-color: #1e293b !important;
        }
        
        /* News Tickers Styling */
        .ticker-outer { width: 100%; }
        .ticker-bar { display: flex; align-items: center; height: 36px !important; max-height: 36px !important; position: relative; overflow: hidden; width: 100%; box-sizing: border-box; }
        .ticker-label { color: white !important; height: calc(100% - 6px); margin-top: 3px; margin-bottom: 3px; margin-left: 0 !important; margin-right: 0 !important; padding: 0 0.85rem; display: flex; align-items: center; gap: 0.35rem; z-index: 20; flex-shrink: 0; font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; font-weight: 500 !important; font-size: 13px !important; text-transform: uppercase; letter-spacing: 0.8px; white-space: nowrap; border-radius: 8px !important; background: #ef4444 !important; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35); text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15); }
        @media (min-width: 768px) { .ticker-label { padding: 0 1.1rem; gap: 0.5rem; } }
        .ticker-label-mobile { display: inline; font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; font-size: 13px !important; font-weight: 500 !important; letter-spacing: 0.8px; }
        .ticker-label-desktop { display: none; font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; font-size: 13px !important; font-weight: 500 !important; letter-spacing: 0.8px; }
        @media (min-width: 768px) { .ticker-label-mobile { display: none; } .ticker-label-desktop { display: inline; } }
        @media (max-width: 767px) {
            .ticker-outer-top .ticker-label-mobile { display: none !important; }
            .ticker-outer-top .ticker-label {
                width: 32px !important;
                min-width: 32px !important;
                padding: 0 0.5rem !important;
                justify-content: center !important;
                gap: 0 !important;
            }
        }
        .ticker-content-wrap { flex-grow: 1; overflow: hidden; position: relative; height: 100%; display: flex; align-items: center; padding-left: 6px; padding-right: 0 !important; }
        .ticker-item { display: flex; align-items: center; gap: 0.5rem; min-width: max-content; transition: opacity 0.2s; height: 100%; text-decoration: none; }
        .ticker-item:hover { opacity: 0.8; }
        .ticker-item-image-wrap { height: 24px; width: 36px; border-radius: 2px; overflow: hidden; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.2); }
        .ticker-item-image { height: 100%; width: 100%; object-fit: cover; }
        .ticker-outer.ticker-outer-top {
            border-bottom: 1px solid rgba(128, 128, 128, 0.25) !important;
            padding-top: env(safe-area-inset-top, 0px) !important;
        }
        .ticker-outer.ticker-outer-top,
        .ticker-bar.ticker-top {
            background-color: var(--color-main-color) !important;
        }
        .ticker-item-text { font-size: 22px !important; font-family: 'Ramabhadra', 'RamabhadraLocal', var(--telugu-font-family, system-ui), sans-serif !important; font-weight: 800 !important; line-height: normal !important; display: inline-flex; align-items: center; }
        @media (max-width: 768px) {
            .ticker-item-text { font-size: 17px !important; font-weight: 700 !important; line-height: normal !important; }
        }
        .ticker-item-text.text-white { color: white; }
        .ticker-item-text.text-gray { color: #1f2937; }
        .ticker-top .ticker-item-text,
        .ticker-text-main {
            color: var(--color-main-text-color) !important;
        }
        .ticker-datetime-btn {
            display: none;
            align-items: center;
            gap: 6px;
            font-size: 0.775rem;
            font-weight: 700;
            color: #0f172a !important;
            white-space: nowrap;
            flex-shrink: 0;
            background: #ffffff !important;
            border: 1px solid rgba(255, 255, 255, 0.95);
            border-radius: 8px;
            padding: 0 11px;
            height: calc(100% - 6px);
            margin: 3px 0 3px 0 !important;
            box-sizing: border-box;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
        }
        @media (min-width: 768px) {
            .ticker-datetime-btn {
                display: inline-flex;
            }
        }
        .ticker-clock-icon,
        .ticker-calendar-icon {
            color: #4f46e5 !important;
            flex-shrink: 0;
        }
        .ticker-separator { margin: 0 1rem; font-size: 0.875rem; }
        .ticker-separator.text-white { color: rgba(255,255,255,0.5); }
        .ticker-separator.text-gray { color: #9ca3af; }
        .ticker-top .ticker-separator,
        .ticker-separator-top {
            color: var(--color-main-text-color) !important;
            opacity: 0.65;
        }
        .bg-red-600 { background-color: #dc2626; }
        .bg-gray-100 { background-color: #f3f4f6; }

        /* Dark Mode News Tickers */
        html.dark .ticker-outer.ticker-outer-top,
        html.dark .ticker-bar.ticker-top {
            background: #0f172a !important;
            background-color: #0f172a !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        }
        html.dark .ticker-outer:not(.ticker-outer-top),
        html.dark .ticker-bar.ticker-bottom {
            background: #1e293b !important;
            background-color: #1e293b !important;
            border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        }
        html.dark .ticker-item-text,
        html.dark .ticker-top .ticker-item-text,
        html.dark .ticker-bottom .ticker-item-text,
        html.dark .ticker-item-text.text-gray {
            color: #f8fafc !important;
        }
        html.dark .ticker-separator,
        html.dark .ticker-top .ticker-separator,
        html.dark .ticker-bottom .ticker-separator,
        html.dark .ticker-separator.text-gray {
            color: #94a3b8 !important;
        }

        /* Ticker Animation */
        @keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
        .animate-marquee { display: flex; align-items: center; animation-name: marquee; animation-timing-function: linear; animation-iteration-count: infinite; will-change: transform; transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
        @media (min-width: 768px) { .animate-marquee:hover { animation-play-state: paused; } }

        /* Submenus */
        .submenu {
            display: none;
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            background-color: var(--color-main-color);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
            z-index: 50;
            min-width: 210px;
            border-radius: 14px;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.15);
            padding: 6px;
            backdrop-filter: blur(16px);
        }
        .submenu-container:hover .submenu { display: block; }
        .submenu a {
            color: var(--color-main-text-color);
            padding: 0.6rem 0.9rem;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
            font-weight: 500;
            border-radius: 8px;
            border-bottom: none;
            text-align: left;
            transition: all 0.15s ease;
        }
        .submenu a:hover {
            background-color: var(--color-hover-color);
            color: var(--color-hover-text-color);
            transform: translateX(2px);
        }
        .svg-icon { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
        .chevron { transition: transform 0.2s ease; }
        .chevron.rotate-180 { transform: rotate(180deg); }

        /* More Menu Styles */
        #more-menu-items .menu-item-wrapper { height: auto !important; border-bottom: 0 !important; }
        #more-menu-items .menu-item-wrapper > a {
            width: 100%;
            border-bottom: none !important;
            border-radius: 8px !important;
            background-color: transparent !important;
            color: var(--color-main-text-color) !important;
            padding: 0.6rem 0.9rem !important;
        }
        #more-menu-items .menu-item-wrapper > a:hover {
            background-color: var(--color-hover-color) !important;
            color: var(--color-hover-text-color) !important;
            transform: translateX(2px) !important;
        }

        /* Desktop Header Layout */
        .desktop-header { display: none; }
        @media (min-width: 768px) { .desktop-header { display: block; } }
        .desktop-top-border { width: 100%; height: 4px; background-color: var(--color-main-color); flex-shrink: 0; }
        .logo-bar {
            background-color: #ffffff;
            border-bottom: 1px solid rgba(226, 232, 240, 0.85);
            box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
            padding: 0.75rem 0;
            position: relative;
            z-index: 25;
            transition: background-color 0.25s ease, border-color 0.25s ease;
        }
        html.dark .logo-bar {
            background-color: #0f172a !important;
            border-bottom-color: rgba(51, 65, 85, 0.8) !important;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
        }
        .logo-bar-content {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            padding: 0 1rem !important;
            gap: 1.5rem !important;
            box-sizing: border-box !important;
            width: 100% !important;
        }
        .logo-bar-left {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            flex-wrap: nowrap;
        }
        .header-date-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.38rem 0.75rem;
            border-radius: 9999px;
            background: #f1f5f9;
            border: 1px solid #e2e8f0;
            color: #475569;
            font-size: 0.775rem;
            font-weight: 700;
            letter-spacing: -0.01em;
            white-space: nowrap;
        }
        html.dark .header-date-chip {
            background: #1e293b;
            border-color: #334155;
            color: #94a3b8;
        }
        .header-date-icon {
            width: 14px;
            height: 14px;
            color: #6366f1;
            flex-shrink: 0;
        }
        html.dark .header-date-icon {
            color: #818cf8;
        }
        .header-quick-epaper-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.38rem 0.85rem;
            border-radius: 9999px;
            background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
            border: 1px solid rgba(255, 255, 255, 0.25);
            color: #ffffff !important;
            font-size: 0.775rem;
            font-weight: 800;
            text-decoration: none !important;
            box-shadow: 0 2px 8px rgba(79, 70, 229, 0.28);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
            touch-action: manipulation;
        }
        .header-quick-epaper-btn svg {
            width: 13px;
            height: 13px;
        }
        .header-quick-epaper-btn:hover {
            background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.38);
        }
        .header-quick-epaper-btn:active {
            transform: scale(0.96);
        }
        .logo-bar-center {
            display: flex;
            align-items: center;
            justify-content: center;
            justify-self: center;
            text-align: center;
        }
        .logo-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s ease;
        }
        .logo-link:hover {
            transform: scale(1.02);
        }
        .logo-image {
            height: var(--logo-height-desktop, 60px);
            width: auto;
            max-height: 110px;
            object-fit: contain;
            display: block;
        }
        .logo-bar-right {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-left: auto;
            margin-right: 0;
            justify-content: flex-end;
        }
        .desktop-ad {
            flex-shrink: 0;
            display: none;
        }
        @media (min-width: 768px) {
            .desktop-ad { display: flex; align-items: center; justify-content: flex-end; }
        }
        .ad-image {
            max-height: 80px;
            width: auto;
            object-fit: contain;
            border-radius: 8px;
        }
        .header-status-pill {
            display: none !important;
            align-items: center;
            gap: 0.45rem;
            padding: 0.38rem 0.85rem;
            border-radius: 9999px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            color: #475569;
            font-size: 0.775rem;
            font-weight: 700;
            white-space: nowrap;
        }
        html.dark .header-status-pill {
            background: #1e293b;
            border-color: #334155;
            color: #94a3b8;
        }
        .header-live-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background-color: #22c55e;
            box-shadow: 0 0 0 2.5px rgba(34, 197, 94, 0.25);
            animation: liveDotPulse 2s infinite ease-in-out;
        }
        @keyframes liveDotPulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.3); opacity: 0.6; }
        }
        @media (max-width: 991px) {
            .header-date-chip { display: none !important; }
            .logo-bar-content { gap: 0.75rem !important; }
        }
        .nav-header { background-color: var(--color-main-color); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); position: sticky; top: 0; z-index: 30; }
        .nav-header .header-container, .ticker-outer .header-container, .header-container.px-4 { padding-left: 1rem; padding-right: 1rem; box-sizing: border-box; }
        .desktop-nav {
            display: flex;
            align-items: center;
            gap: 2px;
            height: 42px;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            position: relative;
        }

        /* Nav links styles */
        .menu-item-wrapper { height: 100%; display: flex; align-items: center; position: relative; }
        .desktop-nav > .menu-item-wrapper:not(:last-of-type)::after {
            content: "" !important;
            display: inline-block !important;
            width: 1px !important;
            height: 14px !important;
            background-color: rgba(255, 255, 255, 0.35) !important;
            margin: 0 2px !important;
            flex-shrink: 0 !important;
            align-self: center !important;
        }
        .desktop-nav > .menu-item-wrapper.last-menu-item:last-child::after,
        .desktop-nav > .menu-item-wrapper:last-child::after { display: none !important; content: none !important; }
        .nav-link {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.85rem;
            font-weight: 600;
            letter-spacing: -0.01em;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 0.35rem 0.65rem;
            height: calc(100% - 8px);
            margin-top: 4px;
            margin-bottom: 4px;
            border-radius: 10px !important;
            border: 1.5px solid transparent;
            white-space: nowrap;
            text-decoration: none;
            box-sizing: border-box;
            touch-action: manipulation;
        }
        .nav-link:active {
            transform: scale(0.96);
        }
        .nav-link-active {
            background: rgba(255, 255, 255, 0.22) !important;
            border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
            color: var(--color-hover-text-color) !important;
            opacity: 1;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 12px rgba(0, 0, 0, 0.16);
        }
        .nav-link-inactive {
            color: var(--color-main-text-color);
            opacity: 0.92;
            border: 1.5px solid transparent !important;
        }
        .nav-link-inactive:hover {
            opacity: 1;
            background: rgba(255, 255, 255, 0.15) !important;
            border-color: rgba(255, 255, 255, 0.4) !important;
            color: var(--color-hover-text-color) !important;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.12);
        }
        .more-menu-container { position: relative; height: 100%; display: flex; align-items: center; }
        .more-menu-container.hidden { display: none; }
        
        /* Desktop Right Action Area: Dark Mode Toggle + Profile / Login */
        .desktop-nav-right {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 8px;
            height: 100%;
            flex-shrink: 0;
            box-sizing: border-box;
        }
        .desktop-nav-right .user-pill-dropdown-container {
            margin-left: 0 !important;
        }
        .desktop-nav-right .nav-login-wrapper {
            margin-left: 0 !important;
            padding-left: 0 !important;
        }
        .desktop-theme-toggle-btn {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 34px !important;
            height: 34px !important;
            border-radius: 12px !important;
            background: rgba(255, 255, 255, 0.15) !important;
            border: 1px solid rgba(255, 255, 255, 0.3) !important;
            color: #ffffff !important;
            cursor: pointer !important;
            backdrop-filter: blur(12px) !important;
            -webkit-backdrop-filter: blur(12px) !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
            padding: 0 !important;
            flex-shrink: 0 !important;
            box-sizing: border-box !important;
        }
        .desktop-theme-toggle-btn:hover {
            background: rgba(255, 255, 255, 0.25) !important;
            border-color: rgba(255, 255, 255, 0.5) !important;
            transform: translateY(-1px) !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
        }
        .desktop-theme-toggle-btn:active {
            transform: translateY(0) !important;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
        }
        .nav-login-wrapper { position: relative; height: 100%; display: flex; align-items: center; margin-left: auto; padding-left: 1rem; flex-shrink: 0; }
        .nav-login-btn {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            font-size: 0.825rem;
            font-weight: 600;
            color: var(--color-main-text-color) !important;
            text-decoration: none;
            white-space: nowrap;
            flex-shrink: 0;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.25);
            border-radius: 12px !important;
            padding: 0.35rem 1rem;
            height: calc(100% - 6px);
            margin-top: 3px;
            margin-bottom: 3px;
            box-sizing: border-box;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(4px);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 4px rgba(0,0,0,0.1);
        }
        .nav-login-btn:hover {
            background: rgba(255, 255, 255, 0.18);
            border-color: rgba(255, 255, 255, 0.45);
            transform: translateY(-1px);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 10px rgba(0,0,0,0.15);
        }
        .nav-login-btn:active {
            transform: translateY(0);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 2px rgba(0,0,0,0.1);
        }

        /* High Contrast Dark Mode Typography & Styling for Desktop Menu */
        html.dark .nav-header {
            background-color: var(--color-main-color);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
        }
        html.dark .desktop-nav .nav-link {
            color: #ffffff !important;
            font-weight: 600 !important;
            letter-spacing: 0.015em;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
        }
        html.dark .desktop-nav .nav-link svg {
            color: #ffffff !important;
            opacity: 0.95;
            filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
        }
        html.dark .desktop-nav .nav-link-inactive {
            color: #f1f5f9 !important;
            opacity: 0.92 !important;
            border: 1.5px solid transparent !important;
        }
        html.dark .desktop-nav .nav-link-inactive:hover {
            color: #ffffff !important;
            opacity: 1 !important;
            background: rgba(255, 255, 255, 0.16) !important;
            border-color: rgba(255, 255, 255, 0.4) !important;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.25) !important;
        }
        html.dark .desktop-nav .nav-link-active {
            background: rgba(255, 255, 255, 0.22) !important;
            border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
            color: #ffffff !important;
            opacity: 1 !important;
            font-weight: 700 !important;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 8px rgba(0, 0, 0, 0.3) !important;
        }
        html.dark .desktop-nav > .menu-item-wrapper::after {
            background-color: rgba(255, 255, 255, 0.3) !important;
        }
        html.dark .submenu {
            background: #1e1b4b !important;
            border: 1px solid rgba(255, 255, 255, 0.18) !important;
            box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.5) !important;
        }
        html.dark .submenu a {
            color: #f8fafc !important;
            font-weight: 500;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
            -webkit-font-smoothing: antialiased;
        }
        html.dark .submenu a:hover {
            background-color: rgba(255, 255, 255, 0.15) !important;
            color: #ffffff !important;
        }
        html.dark #more-menu-items .menu-item-wrapper > a {
            color: #f8fafc !important;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        }
        html.dark #more-menu-items .menu-item-wrapper > a:hover {
            background-color: rgba(255, 255, 255, 0.15) !important;
            color: #ffffff !important;
        }
        html.dark .desktop-theme-toggle-btn {
            background: rgba(255, 255, 255, 0.14) !important;
            border-color: rgba(255, 255, 255, 0.3) !important;
            color: #ffffff !important;
        }
        html.dark .desktop-theme-toggle-btn:hover {
            background: rgba(255, 255, 255, 0.26) !important;
            border-color: rgba(255, 255, 255, 0.55) !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
        }
        html.dark .user-profile-pill {
            background: rgba(255, 255, 255, 0.18) !important;
            border-color: rgba(255, 255, 255, 0.35) !important;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
        }
        html.dark .user-profile-pill:hover {
            background: rgba(255, 255, 255, 0.28) !important;
            border-color: rgba(255, 255, 255, 0.55) !important;
        }
        html.dark .user-pill-name {
            color: #ffffff !important;
            font-weight: 700 !important;
            -webkit-font-smoothing: antialiased;
        }
        html.dark .nav-login-btn {
            background: rgba(255, 255, 255, 0.14) !important;
            border-color: rgba(255, 255, 255, 0.35) !important;
            color: #ffffff !important;
            font-weight: 600 !important;
        }
        html.dark .nav-login-btn:hover {
            background: rgba(255, 255, 255, 0.24) !important;
            border-color: rgba(255, 255, 255, 0.5) !important;
        }

        /* ============================================================
           Mobile Top Header & Dropdown System (Matching headersidebar.php)
           ============================================================ */
        .hs-mobile-header {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            padding: 0.5rem 0.85rem !important;
            padding-top: max(0.5rem, env(safe-area-inset-top)) !important;
            width: 100% !important;
            height: auto !important;
            min-height: var(--mobile-header-min-height, 3.5rem) !important;
            background: rgba(255, 255, 255, 0.94) !important;
            backdrop-filter: blur(20px) saturate(180%) !important;
            -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
            color: #0f172a !important;
            position: relative !important;
            box-sizing: border-box !important;
            transition: background 0.25s ease, border-color 0.25s ease !important;
            box-shadow: 0 1px 4px 0 rgba(15, 23, 42, 0.06), 0 6px 16px -4px rgba(15, 23, 42, 0.04) !important;
            border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
        }
        html.dark .hs-mobile-header {
            background: rgba(15, 23, 42, 0.94) !important;
            color: #f8fafc !important;
            border-bottom: 1px solid rgba(51, 65, 85, 0.8) !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
        }
        @media (min-width: 768px) {
            .hs-mobile-header { display: none !important; }
        }

        .hs-mobile-left {
            display: flex !important;
            align-items: center !important;
            gap: 0.5rem !important;
            flex-shrink: 0 !important;
        }
        .hs-mobile-center {
            display: flex !important;
            align-items: center !important;
            justify-content: flex-start !important;
            min-width: 0 !important;
            margin-left: 0.5rem !important;
            padding: 0 !important;
            text-align: left !important;
            flex-grow: 1 !important;
        }
        .hs-mobile-center a {
            display: flex !important;
            align-items: center !important;
            justify-content: flex-start !important;
            text-decoration: none !important;
            max-width: 100% !important;
        }
        .hs-mobile-center .logo-image {
            margin-left: 0 !important;
            display: block !important;
        }
        .hs-mobile-right {
            display: flex !important;
            align-items: center !important;
            gap: 0.5rem !important;
            margin-left: auto !important;
            flex-shrink: 0 !important;
        }

        /* Modern App Drawer Hamburger Button */
        .hs-hamburger {
            position: relative;
            z-index: 20;
            width: 2.35rem;
            height: 2.35rem;
            display: flex;
            justify-content: center;
            align-items: center;
            background: #f1f5f9 !important;
            border: 1px solid #cbd5e1 !important;
            border-radius: 12px !important;
            color: #1e293b !important;
            cursor: pointer;
            padding: 0;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            touch-action: manipulation;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
        }
        .hs-hamburger:hover {
            background: #e2e8f0 !important;
            color: #0f172a !important;
            transform: translateY(-1px);
            box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08) !important;
        }
        .hs-hamburger:active {
            transform: scale(0.92);
        }
        .hs-menu-svg {
            width: 1.25rem;
            height: 1.25rem;
            stroke: currentColor !important;
            color: currentColor !important;
            display: block;
            pointer-events: none;
            transition: transform 0.2s ease;
        }
        .hs-hamburger:hover .hs-menu-svg {
            transform: scale(1.05);
        }
        .hs-hamburger span {
            display: block;
            height: 2px;
            width: 1.15rem;
            background-color: currentColor !important;
            border-radius: 2px;
            transition: all 0.3s ease;
            pointer-events: none;
        }
        html.dark .hs-hamburger {
            background: #1e293b !important;
            border-color: #334155 !important;
            color: #f8fafc !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
        }
        html.dark .hs-hamburger:hover {
            background: #334155 !important;
            color: #ffffff !important;
        }

        .hs-icon-btn {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 2.35rem !important;
            height: 2.35rem !important;
            border-radius: 12px !important;
            background-color: #f1f5f9 !important;
            color: #1e293b !important;
            border: 1px solid #cbd5e1 !important;
            cursor: pointer !important;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
            text-decoration: none !important;
            padding: 0 !important;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
            touch-action: manipulation !important;
        }
        .hs-icon-btn:hover {
            background-color: #e2e8f0 !important;
            color: #0f172a !important;
            transform: translateY(-1px) !important;
            box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08) !important;
        }
        .hs-icon-btn:active {
            transform: scale(0.92) !important;
        }
        html.dark .hs-icon-btn {
            background-color: #1e293b !important;
            color: #f8fafc !important;
            border-color: #334155 !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
        }
        html.dark .hs-icon-btn:hover {
            background-color: #334155 !important;
            color: #ffffff !important;
        }

        /* Mobile Theme Toggle Button — Match Menu Bar Color Exactly */
        .hs-mobile-header .hs-theme-toggle-btn {
            color: #1e293b !important;
        }
        .hs-mobile-header .hs-theme-toggle-btn svg,
        .hs-mobile-header .hs-theme-toggle-btn .hs-theme-icon-moon,
        .hs-mobile-header .hs-theme-toggle-btn .hs-theme-icon-sun {
            stroke: currentColor !important;
            color: currentColor !important;
            display: block !important;
            pointer-events: none !important;
        }
        html.dark .hs-mobile-header .hs-theme-toggle-btn {
            color: #f8fafc !important;
        }
        html.dark .hs-mobile-header .hs-theme-toggle-btn svg,
        html.dark .hs-mobile-header .hs-theme-toggle-btn .hs-theme-icon-moon,
        html.dark .hs-mobile-header .hs-theme-toggle-btn .hs-theme-icon-sun {
            stroke: currentColor !important;
            color: currentColor !important;
        }

        /* Mobile Header Icon Boxes - Defined Little Dark Border */
        .hs-mobile-header .hs-hamburger,
        .hs-mobile-header .hs-icon-btn,
        .hs-mobile-header .hs-theme-toggle-btn,
        .hs-mobile-header .hs-login-btn,
        .hs-mobile-header .hs-notification-btn {
            border: 1px solid #cbd5e1 !important;
        }
        .hs-mobile-header .hs-hamburger:hover,
        .hs-mobile-header .hs-icon-btn:hover,
        .hs-mobile-header .hs-theme-toggle-btn:hover,
        .hs-mobile-header .hs-login-btn:hover,
        .hs-mobile-header .hs-notification-btn:hover {
            border-color: #94a3b8 !important;
        }
        html.dark .hs-mobile-header .hs-hamburger,
        html.dark .hs-mobile-header .hs-icon-btn,
        html.dark .hs-mobile-header .hs-theme-toggle-btn,
        html.dark .hs-mobile-header .hs-login-btn,
        html.dark .hs-mobile-header .hs-notification-btn {
            border: 1px solid #334155 !important;
        }
        html.dark .hs-mobile-header .hs-hamburger:hover,
        html.dark .hs-mobile-header .hs-icon-btn:hover,
        html.dark .hs-mobile-header .hs-theme-toggle-btn:hover,
        html.dark .hs-mobile-header .hs-login-btn:hover,
        html.dark .hs-mobile-header .hs-notification-btn:hover {
            border-color: #475569 !important;
        }

        /* Notification Bell Button & Badge */
        .hs-notification-btn {
            position: relative !important;
            background-color: #f1f5f9 !important;
            border: 1px solid #cbd5e1 !important;
            color: #334155 !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 2.35rem !important;
            height: 2.35rem !important;
            border-radius: 12px !important;
            cursor: pointer !important;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
            padding: 0 !important;
            touch-action: manipulation !important;
        }
        .hs-notification-btn svg {
            color: currentColor !important;
            stroke: currentColor !important;
        }
        .hs-notification-btn:hover {
            background-color: #e2e8f0 !important;
            color: #4f46e5 !important;
            transform: translateY(-1px) scale(1.02) !important;
            box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08) !important;
        }
        .hs-notification-btn:active {
            transform: scale(0.92) !important;
        }
        html.dark .hs-notification-btn {
            background-color: #1e293b !important;
            border-color: #334155 !important;
            color: #f8fafc !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
        }
        html.dark .hs-notification-btn:hover {
            background-color: #334155 !important;
            color: #818cf8 !important;
        }
        .hs-notif-icon-wrap {
            position: relative !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }
        .hs-notif-dot,
        .hs-notif-badge-pill {
            position: absolute !important;
            top: -2px !important;
            right: -2px !important;
            background: #ef4444 !important;
            color: transparent !important;
            font-size: 0 !important;
            line-height: 0 !important;
            min-width: 8.5px !important;
            width: 8.5px !important;
            height: 8.5px !important;
            border-radius: 50% !important;
            display: block !important;
            padding: 0 !important;
            box-shadow: 0 0 8px rgba(239, 68, 68, 0.9) !important;
            border: 1.5px solid #ffffff !important;
            animation: hsNotifDotPulse 2s infinite ease-in-out !important;
            box-sizing: border-box !important;
            pointer-events: none !important;
        }
        html.dark .hs-notif-dot,
        html.dark .hs-notif-badge-pill {
            border-color: #0f172a !important;
        }
        @keyframes hsNotifDotPulse {
            0%, 100% {
                transform: scale(1);
                opacity: 1;
                box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
            }
            50% {
                transform: scale(1.22);
                opacity: 0.9;
                box-shadow: 0 0 10px rgba(239, 68, 68, 1);
            }
        }

        /* Profile Dropdown: Full-Line Dark Mode Toggle */
        .hs-profile-theme-toggle {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            width: 100% !important;
            padding: 8px 12px !important;
            margin-top: 0.65rem !important;
            background: #f8fafc !important;
            border: 1px solid #e2e8f0 !important;
            border-radius: 10px !important;
            cursor: pointer !important;
            user-select: none !important;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
            box-sizing: border-box !important;
        }
        .hs-profile-theme-toggle:hover {
            background: #f1f5f9 !important;
            border-color: #cbd5e1 !important;
            transform: translateY(-1px) !important;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
        }
        .hs-profile-theme-toggle:active {
            transform: scale(0.98) !important;
        }
        .hs-theme-toggle-left {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
        }
        .hs-theme-toggle-icon-wrap {
            width: 30px !important;
            height: 30px !important;
            border-radius: 8px !important;
            background: rgba(99, 102, 241, 0.12) !important;
            color: #4f46e5 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            flex-shrink: 0 !important;
            transition: all 0.2s ease !important;
        }
        .hs-theme-toggle-text {
            display: flex !important;
            flex-direction: column !important;
            text-align: left !important;
            line-height: 1.2 !important;
        }
        .hs-theme-toggle-title {
            font-size: 0.82rem !important;
            font-weight: 700 !important;
            color: #1e293b !important;
        }
        .hs-theme-toggle-desc {
            font-size: 0.68rem !important;
            font-weight: 500 !important;
            color: #64748b !important;
            margin-top: 2px !important;
        }
        .hs-switch-track {
            width: 42px !important;
            height: 24px !important;
            border-radius: 12px !important;
            background: #cbd5e1 !important;
            position: relative !important;
            flex-shrink: 0 !important;
            transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }
        .hs-switch-thumb {
            width: 18px !important;
            height: 18px !important;
            border-radius: 50% !important;
            background: #ffffff !important;
            position: absolute !important;
            top: 3px !important;
            left: 3px !important;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
        }
        html.dark .hs-profile-theme-toggle {
            background: #0f172a !important;
            border-color: #334155 !important;
        }
        html.dark .hs-profile-theme-toggle:hover {
            background: #182234 !important;
            border-color: #475569 !important;
        }
        html.dark .hs-theme-toggle-title {
            color: #f8fafc !important;
        }
        html.dark .hs-theme-toggle-desc {
            color: #94a3b8 !important;
        }
        html.dark .hs-theme-toggle-icon-wrap {
            background: rgba(251, 191, 36, 0.15) !important;
            color: #fbbf24 !important;
        }
        html.dark .hs-switch-track {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
        }
        html.dark .hs-switch-thumb {
            transform: translateX(18px) !important;
            background: #ffffff !important;
        }

        /* Modern Mobile App-Like Notification Modal */
        .hs-notif-backdrop {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            background: rgba(15, 23, 42, 0.55) !important;
            backdrop-filter: blur(4px) !important;
            -webkit-backdrop-filter: blur(4px) !important;
            z-index: 10015 !important;
            animation: hsFadeIn 0.25s ease-out !important;
        }
        .hs-notif-backdrop.hidden,
        .hs-notif-modal.hidden {
            display: none !important;
        }
        .hs-notif-modal {
            position: fixed !important;
            z-index: 10020 !important;
        }
        @media (max-width: 639.98px) {
            .hs-notif-modal {
                bottom: 0 !important;
                left: 0 !important;
                right: 0 !important;
                top: auto !important;
                width: 100% !important;
                animation: hsSlideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
            }
            .hs-notif-card {
                border-radius: 24px 24px 0 0 !important;
                max-height: 85vh !important;
            }
            .hs-notif-handle-bar {
                display: block !important;
            }
        }
        @media (min-width: 640px) {
            .hs-notif-modal {
                top: 65px !important;
                right: 24px !important;
                bottom: auto !important;
                left: auto !important;
                width: 410px !important;
                max-width: calc(100vw - 32px) !important;
                animation: hsFadeInScale 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
            }
            .hs-notif-card {
                border-radius: 20px !important;
                max-height: 580px !important;
            }
            .hs-notif-handle-bar {
                display: none !important;
            }
        }
        @keyframes hsSlideUpModal {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }
        @keyframes hsFadeInScale {
            from { opacity: 0; transform: translateY(-8px) scale(0.97); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        @keyframes hsFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .hs-notif-card {
            background: #ffffff !important;
            box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.8) !important;
            display: flex !important;
            flex-direction: column !important;
            overflow: hidden !important;
            color: #1e293b !important;
        }
        html.dark .hs-notif-card {
            background: #0f172a !important;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(51, 65, 85, 0.8) !important;
            color: #f8fafc !important;
        }
        .hs-notif-handle-bar {
            width: 36px;
            height: 4px;
            border-radius: 2px;
            background: #cbd5e1;
            margin: 10px auto 4px auto;
        }
        html.dark .hs-notif-handle-bar {
            background: #475569;
        }
        .hs-notif-header {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            padding: 14px 16px 12px 16px !important;
            border-bottom: 1px solid #f1f5f9 !important;
            background: #ffffff !important;
        }
        html.dark .hs-notif-header {
            background: #0f172a !important;
            border-bottom-color: #1e293b !important;
        }
        .hs-notif-header-left {
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
        }
        .hs-notif-bell-badge {
            width: 34px !important;
            height: 34px !important;
            border-radius: 10px !important;
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
            color: #ffffff !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            box-shadow: 0 3px 8px rgba(79, 70, 229, 0.3) !important;
        }
        .hs-notif-title-text {
            font-size: 1.02rem !important;
            font-weight: 700 !important;
            margin: 0 !important;
            color: inherit !important;
        }
        .hs-notif-live-pill {
            font-size: 10.5px !important;
            font-weight: 700 !important;
            color: #4f46e5 !important;
            background: #eef2ff !important;
            padding: 2px 7px !important;
            border-radius: 6px !important;
            letter-spacing: 0.02em !important;
        }
        html.dark .hs-notif-live-pill {
            background: rgba(99, 102, 241, 0.25) !important;
            color: #a5b4fc !important;
        }
        .hs-notif-subtitle {
            font-size: 11px !important;
            color: #64748b !important;
            display: block !important;
        }
        html.dark .hs-notif-subtitle {
            color: #94a3b8 !important;
        }
        .hs-notif-header-right {
            display: flex !important;
            align-items: center !important;
            gap: 6px !important;
        }
        .hs-notif-action-btn {
            display: inline-flex !important;
            align-items: center !important;
            gap: 4px !important;
            padding: 5px 9px !important;
            border-radius: 8px !important;
            background: #f1f5f9 !important;
            color: #475569 !important;
            border: none !important;
            font-size: 11.5px !important;
            font-weight: 600 !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
        }
        .hs-notif-action-btn:hover {
            background: #e2e8f0 !important;
            color: #1e293b !important;
        }
        html.dark .hs-notif-action-btn {
            background: #1e293b !important;
            color: #cbd5e1 !important;
        }
        html.dark .hs-notif-action-btn:hover {
            background: #334155 !important;
            color: #ffffff !important;
        }
        .hs-notif-close-btn {
            width: 28px !important;
            height: 28px !important;
            border-radius: 50% !important;
            background: #f1f5f9 !important;
            color: #64748b !important;
            border: none !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
        }
        .hs-notif-close-btn:hover {
            background: #e2e8f0 !important;
            color: #0f172a !important;
        }
        html.dark .hs-notif-close-btn {
            background: #1e293b !important;
            color: #94a3b8 !important;
        }
        html.dark .hs-notif-close-btn:hover {
            background: #334155 !important;
            color: #ffffff !important;
        }
        .hs-notif-filter-bar {
            display: flex !important;
            align-items: center !important;
            gap: 6px !important;
            padding: 8px 16px !important;
            background: #f8fafc !important;
            border-bottom: 1px solid #e2e8f0 !important;
        }
        html.dark .hs-notif-filter-bar {
            background: #131d31 !important;
            border-bottom-color: #1e293b !important;
        }
        .hs-notif-tab {
            padding: 4px 10px !important;
            border-radius: 7px !important;
            font-size: 11.5px !important;
            font-weight: 600 !important;
            color: #64748b !important;
            background: transparent !important;
            border: none !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
        }
        .hs-notif-tab:hover {
            color: #1e293b !important;
            background: rgba(0, 0, 0, 0.04) !important;
        }
        .hs-notif-tab.active {
            background: #ffffff !important;
            color: #4f46e5 !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
        }
        html.dark .hs-notif-tab {
            color: #94a3b8 !important;
        }
        html.dark .hs-notif-tab:hover {
            color: #f8fafc !important;
            background: rgba(255, 255, 255, 0.05) !important;
        }
        html.dark .hs-notif-tab.active {
            background: #1e293b !important;
            color: #a5b4fc !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
        }
        .hs-notif-body {
            flex: 1 1 auto !important;
            overflow-y: auto !important;
            -webkit-overflow-scrolling: touch !important;
            padding: 4px 0 !important;
            max-height: 420px !important;
        }
        .hs-notif-item {
            display: flex !important;
            align-items: flex-start !important;
            gap: 12px !important;
            padding: 11px 16px !important;
            border-bottom: 1px solid #f1f5f9 !important;
            text-decoration: none !important;
            color: inherit !important;
            transition: background 0.15s ease !important;
            position: relative !important;
        }
        .hs-notif-item:last-child {
            border-bottom: none !important;
        }
        .hs-notif-item:hover {
            background: #f8fafc !important;
        }
        html.dark .hs-notif-item {
            border-bottom-color: #1e293b !important;
        }
        html.dark .hs-notif-item:hover {
            background: #131d31 !important;
        }
        .hs-notif-thumb {
            width: 44px !important;
            height: 44px !important;
            border-radius: 10px !important;
            object-fit: cover !important;
            background: #e2e8f0 !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
            flex-shrink: 0 !important;
        }
        .hs-notif-icon-circle {
            width: 40px !important;
            height: 40px !important;
            border-radius: 10px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            flex-shrink: 0 !important;
        }
        .hs-notif-icon-circle.edition {
            background: #eef2ff !important;
            color: #4f46e5 !important;
        }
        .hs-notif-icon-circle.news {
            background: #fef3c7 !important;
            color: #d97706 !important;
        }
        html.dark .hs-notif-icon-circle.edition {
            background: rgba(99, 102, 241, 0.2) !important;
            color: #a5b4fc !important;
        }
        html.dark .hs-notif-icon-circle.news {
            background: rgba(217, 119, 6, 0.2) !important;
            color: #fde68a !important;
        }
        .hs-notif-item-center {
            flex: 1 1 auto !important;
            min-width: 0 !important;
        }
        .hs-notif-item-header {
            display: flex !important;
            align-items: center !important;
            gap: 6px !important;
            margin-bottom: 3px !important;
        }
        .hs-notif-category-tag {
            font-size: 10px !important;
            font-weight: 700 !important;
            padding: 1px 6px !important;
            border-radius: 4px !important;
            text-transform: uppercase !important;
            letter-spacing: 0.04em !important;
        }
        .hs-notif-category-tag.edition {
            background: #e0e7ff !important;
            color: #3730a3 !important;
        }
        .hs-notif-category-tag.news {
            background: #fef3c7 !important;
            color: #92400e !important;
        }
        html.dark .hs-notif-category-tag.edition {
            background: rgba(99, 102, 241, 0.25) !important;
            color: #c7d2fe !important;
        }
        html.dark .hs-notif-category-tag.news {
            background: rgba(217, 119, 6, 0.25) !important;
            color: #fde68a !important;
        }
        .hs-notif-time-badge {
            font-size: 11px !important;
            color: #94a3b8 !important;
        }
        .hs-notif-item-title {
            font-size: 13px !important;
            font-weight: 700 !important;
            line-height: 1.3 !important;
            margin: 0 0 3px 0 !important;
            color: #1e293b !important;
            display: -webkit-box !important;
            -webkit-line-clamp: 2 !important;
            -webkit-box-orient: vertical !important;
            overflow: hidden !important;
        }
        html.dark .hs-notif-item-title {
            color: #f8fafc !important;
        }
        .hs-notif-item-msg {
            font-size: 12px !important;
            color: #64748b !important;
            line-height: 1.35 !important;
            margin: 0 !important;
            display: -webkit-box !important;
            -webkit-line-clamp: 2 !important;
            -webkit-box-orient: vertical !important;
            overflow: hidden !important;
        }
        html.dark .hs-notif-item-msg {
            color: #94a3b8 !important;
        }
        .hs-notif-unread-dot {
            width: 8px !important;
            height: 8px !important;
            border-radius: 50% !important;
            background: #3b82f6 !important;
            box-shadow: 0 0 6px #3b82f6 !important;
            display: block !important;
            flex-shrink: 0 !important;
            margin-top: 6px !important;
        }
        .hs-notif-unread-dot.read {
            display: none !important;
        }
        .hs-notif-empty-state {
            padding: 36px 20px !important;
            text-align: center !important;
            color: #64748b !important;
        }
        .hs-notif-empty-icon {
            width: 56px !important;
            height: 56px !important;
            border-radius: 50% !important;
            background: #f1f5f9 !important;
            color: #94a3b8 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            margin: 0 auto 12px auto !important;
        }
        html.dark .hs-notif-empty-icon {
            background: #1e293b !important;
            color: #64748b !important;
        }
        .hs-notif-empty-state h4 {
            font-size: 15px !important;
            font-weight: 700 !important;
            margin: 0 0 4px 0 !important;
            color: #1e293b !important;
        }
        html.dark .hs-notif-empty-state h4 {
            color: #f8fafc !important;
        }
        .hs-notif-empty-state p {
            font-size: 12.5px !important;
            margin: 0 !important;
        }
        .hs-notif-footer {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            padding: 10px 16px !important;
            background: #f8fafc !important;
            border-top: 1px solid #f1f5f9 !important;
            font-size: 11.5px !important;
        }
        html.dark .hs-notif-footer {
            background: #0f172a !important;
            border-top-color: #1e293b !important;
        }
        .hs-notif-footer-status {
            display: flex !important;
            align-items: center !important;
            gap: 6px !important;
            color: #64748b !important;
            font-weight: 500 !important;
        }
        html.dark .hs-notif-footer-status {
            color: #94a3b8 !important;
        }
        .hs-notif-status-dot {
            width: 6px !important;
            height: 6px !important;
            border-radius: 50% !important;
            background: #22c55e !important;
            box-shadow: 0 0 4px #22c55e !important;
        }
        .hs-notif-dashboard-link {
            display: inline-flex !important;
            align-items: center !important;
            gap: 3px !important;
            font-weight: 600 !important;
            color: #4f46e5 !important;
            text-decoration: none !important;
        }
        .hs-notif-dashboard-link:hover {
            text-decoration: underline !important;
        }
        html.dark .hs-notif-dashboard-link {
            color: #818cf8 !important;
        }

        .hs-divider-v {
            width: 1px;
            height: 1.25rem;
            background-color: #e2e8f0;
            margin: 0 0.15rem;
        }
        html.dark .hs-divider-v {
            background-color: #334155;
        }

        /* Avatar Glowing Ring System - 100% Circular */
        .hs-avatar-ring {
            width: 2.35rem;
            height: 2.35rem;
            border-radius: 50% !important;
            background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
            padding: 2px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-sizing: border-box;
            box-shadow: 0 2px 8px rgba(220, 39, 67, 0.35);
            transition: transform 0.2s ease;
            overflow: hidden !important;
            aspect-ratio: 1 / 1 !important;
            flex-shrink: 0;
        }
        .hs-avatar-ring:hover {
            transform: scale(1.05);
        }
        .hs-avatar-ring:active {
            transform: scale(0.92);
        }
        .hs-avatar-img {
            width: 100% !important;
            height: 100% !important;
            border-radius: 50% !important;
            object-fit: cover !important;
            background-color: #ffffff;
            display: block;
            aspect-ratio: 1 / 1 !important;
            overflow: hidden !important;
        }

        /* Mobile Profile Dropdown Card */
        .hs-profile-dropdown,
        .mobile-profile-dropdown {
            position: absolute !important;
            right: 0 !important;
            top: calc(100% + 8px) !important;
            width: 320px !important;
            max-width: calc(100vw - 20px) !important;
            background: #ffffff !important;
            border-radius: 16px !important;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.2) !important;
            border: 1px solid rgba(226, 232, 240, 0.8) !important;
            overflow: hidden !important;
            z-index: 10005 !important;
            animation: fadeInDropdown 0.2s ease-out;
            display: flex !important;
            flex-direction: column !important;
            color: #1e293b !important;
            text-align: left !important;
        }
        .hs-profile-dropdown.hidden,
        .mobile-profile-dropdown.hidden {
            display: none !important;
        }
        html.dark .hs-profile-dropdown,
        html.dark .mobile-profile-dropdown,
        body.dark .hs-profile-dropdown,
        body.dark .mobile-profile-dropdown {
            background: #0f172a !important;
            border-color: #334155 !important;
            color: #f8fafc !important;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.4) !important;
        }
        html.dark .hs-profile-dropdown h3,
        html.dark .mobile-profile-dropdown h3 {
            color: #f8fafc !important;
        }
        html.dark .hs-profile-dropdown p,
        html.dark .mobile-profile-dropdown p {
            color: #94a3b8 !important;
        }
        @keyframes fadeInDropdown {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .hs-dropdown-header-banner {
            height: 3.25rem;
            background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
        }
        .hs-dropdown-body {
            padding: 0 1rem 1rem 1rem;
            position: relative;
        }
        .hs-dropdown-avatar-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-top: -1.75rem;
            margin-bottom: 0.5rem;
        }
        .hs-dropdown-avatar-wrapper {
            width: 3.5rem;
            height: 3.5rem;
            border-radius: 50% !important;
            background: linear-gradient(135deg, #6366f1, #a855f7);
            padding: 3px;
            box-sizing: border-box;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
            overflow: hidden !important;
            aspect-ratio: 1 / 1 !important;
            flex-shrink: 0;
        }
        .hs-dropdown-avatar-wrapper img,
        .hs-dropdown-avatar-wrapper .hs-avatar-img {
            width: 100% !important;
            height: 100% !important;
            border-radius: 50% !important;
            object-fit: cover !important;
            display: block !important;
        }
        .hs-profile-action-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
            height: 2rem;
            border-radius: 50%;
            transition: all 0.2s ease;
            text-decoration: none;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
            background-color: #f1f5f9;
            color: #475569;
            border: 1px solid #e2e8f0;
        }
        .hs-profile-action-btn:hover {
            background-color: #e2e8f0;
            color: #1e293b;
            transform: translateY(-1px);
        }
        html.dark .hs-profile-action-btn {
            background-color: #334155;
            color: #cbd5e1;
            border-color: #475569;
        }
        html.dark .hs-profile-action-btn:hover {
            background-color: #475569;
            color: #ffffff;
        }
        .hs-role-badge {
            display: inline-block;
            padding: 0.2rem 0.5rem;
            background-color: #e0e7ff;
            color: #3730a3;
            border: 1px solid #a5b4fc;
            font-size: 10px;
            font-weight: 700;
            border-radius: 6px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        html.dark .hs-role-badge {
            background-color: rgba(99, 102, 241, 0.3);
            color: #c7d2fe;
            border-color: rgba(165, 180, 252, 0.4);
        }
        .hs-status-badge {
            display: inline-block;
            padding: 0.2rem 0.5rem;
            font-size: 10px;
            font-weight: 700;
            border-radius: 6px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .hs-status-badge.active {
            background-color: #dcfce7;
            color: #166534;
            border: 1px solid #86efac;
        }
        html.dark .hs-status-badge.active {
            background-color: rgba(34, 197, 94, 0.3);
            color: #bbf7d0;
            border-color: rgba(134, 239, 172, 0.4);
        }
        /* 3 Rows x 2 Columns Profile Quick Actions Grid */
        .hs-profile-grid-actions {
            display: grid !important;
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 6px !important;
            margin-top: 0.75rem !important;
            padding-top: 0.75rem !important;
            border-top: 1px solid rgba(128, 128, 128, 0.15) !important;
            box-sizing: border-box !important;
        }
        .hs-profile-grid-btn {
            display: flex !important;
            align-items: center !important;
            gap: 6px !important;
            padding: 7px 8px !important;
            border-radius: 8px !important;
            font-size: 0.74rem !important;
            font-weight: 600 !important;
            color: #334155 !important;
            background: #f8fafc !important;
            border: 1px solid #e2e8f0 !important;
            text-decoration: none !important;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
            box-sizing: border-box !important;
            width: 100% !important;
        }
        .hs-profile-grid-btn:hover {
            background: #eef2ff !important;
            color: #4f46e5 !important;
            border-color: #c7d2fe !important;
            transform: translateY(-1px) !important;
            box-shadow: 0 3px 6px rgba(79, 70, 229, 0.12) !important;
        }
        .hs-profile-grid-btn svg {
            width: 0.95rem !important;
            height: 0.95rem !important;
            flex-shrink: 0 !important;
            color: #6366f1 !important;
            transition: transform 0.2s ease !important;
        }
        .hs-profile-grid-btn:hover svg {
            transform: scale(1.12) !important;
            color: #4f46e5 !important;
        }
        html.dark .hs-profile-grid-btn {
            background: #1e293b !important;
            color: #cbd5e1 !important;
            border-color: #334155 !important;
        }
        html.dark .hs-profile-grid-btn:hover {
            background: rgba(99, 102, 241, 0.2) !important;
            color: #e0e7ff !important;
            border-color: rgba(99, 102, 241, 0.4) !important;
        }
        html.dark .hs-profile-grid-btn svg {
            color: #818cf8 !important;
        }
        html.dark .hs-profile-grid-btn:hover svg {
            color: #a5b4fc !important;
        }

        .hs-dropdown-footer {
            border-top: 1px solid #f1f5f9;
            padding: 0.5rem;
            background-color: #f8fafc;
        }
        html.dark .hs-dropdown-footer {
            border-top-color: #334155;
            background-color: rgba(30, 41, 59, 0.5);
        }
        
        /* Logout Button with Fluid Water Wave Liquid Animation */
        .hs-logout-btn {
            position: relative !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 0.5rem !important;
            width: 100% !important;
            padding: 0.55rem 0.75rem !important;
            border-radius: 10px !important;
            font-size: 0.85rem !important;
            font-weight: 600 !important;
            color: #ef4444 !important;
            background: #fef2f2 !important;
            border: 1px solid #fecaca !important;
            text-decoration: none !important;
            overflow: hidden !important;
            z-index: 1 !important;
            transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
            box-sizing: border-box !important;
        }
        .hs-logout-btn .hs-logout-content {
            position: relative !important;
            z-index: 2 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 0.5rem !important;
            transition: transform 0.2s ease !important;
        }
        .hs-logout-btn::before,
        .hs-logout-btn::after {
            content: '' !important;
            position: absolute !important;
            left: 50% !important;
            bottom: -180% !important;
            width: 220% !important;
            height: 340% !important;
            background: linear-gradient(180deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.45) 100%) !important;
            border-radius: 38% 42% 40% 44% !important;
            transform: translateX(-50%) !important;
            transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
            pointer-events: none !important;
            z-index: 1 !important;
        }
        .hs-logout-btn::after {
            bottom: -200% !important;
            background: linear-gradient(180deg, rgba(254, 202, 202, 0.4) 0%, rgba(239, 68, 68, 0.35) 100%) !important;
            border-radius: 44% 38% 42% 40% !important;
            opacity: 0.7 !important;
            transition: bottom 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }
        .hs-logout-btn:hover {
            color: #b91c1c !important;
            border-color: #f87171 !important;
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2) !important;
        }
        .hs-logout-btn:hover .hs-logout-content {
            transform: scale(1.03) !important;
        }
        .hs-logout-btn:hover::before {
            bottom: -35% !important;
            animation: hsWaterWaveFluid 3s infinite linear !important;
        }
        .hs-logout-btn:hover::after {
            bottom: -45% !important;
            animation: hsWaterWaveFluidRev 4.5s infinite linear !important;
        }
        @keyframes hsWaterWaveFluid {
            0% { transform: translateX(-50%) rotate(0deg); }
            100% { transform: translateX(-50%) rotate(360deg); }
        }
        @keyframes hsWaterWaveFluidRev {
            0% { transform: translateX(-50%) rotate(360deg); }
            100% { transform: translateX(-50%) rotate(0deg); }
        }
        html.dark .hs-logout-btn {
            background: rgba(239, 68, 68, 0.12) !important;
            border-color: rgba(239, 68, 68, 0.3) !important;
            color: #f87171 !important;
        }
        html.dark .hs-logout-btn:hover {
            color: #fca5a5 !important;
            border-color: #ef4444 !important;
            box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25) !important;
        }
        html.dark .hs-logout-btn::before {
            background: linear-gradient(180deg, rgba(239, 68, 68, 0.35) 0%, rgba(185, 28, 28, 0.6) 100%) !important;
        }
        html.dark .hs-logout-btn::after {
            background: linear-gradient(180deg, rgba(220, 38, 38, 0.25) 0%, rgba(153, 27, 27, 0.5) 100%) !important;
        }

        /* Mobile Ads & Tickers */
        .mobile-header {
            display: block;
            overflow: visible !important;
            position: -webkit-sticky !important;
            position: sticky !important;
            top: 0 !important;
            z-index: 1000 !important;
            width: 100% !important;
        }
        .mobile-sub-header { display: block; overflow: visible !important; width: 100% !important; }
        @media (min-width: 768px) {
            .mobile-header,
            .mobile-sub-header {
                display: none !important;
            }
        }
        .mobile-ad-row { width: 100%; display: flex; justify-content: center; align-items: center; padding: 0 !important; margin: 0 !important; background-color: transparent !important; border: none !important; line-height: 0; }
        .mobile-ad-link { display: inline-flex; justify-content: center; align-items: center; max-width: 100%; text-align: center; line-height: 0; }
        .mobile-ad-image { max-height: 60px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; display: block; border-radius: 4px; border: 1px solid rgba(0, 0, 0, 0.25); box-sizing: border-box; }
        .mobile-bottom-divider { height: 1px; width: 100%; background-color: #e5e7eb; }
        .mobile-ad-row + .mobile-bottom-divider { display: none !important; }

        /* Mobile Sidebar Drawer & Close Button */
        .mobile-sidebar {
            position: fixed;
            top: 0;
            bottom: 0;
            left: 0;
            width: 280px;
            max-width: 78%;
            background-color: var(--color-main-color, #1e1b4b);
            color: var(--color-main-text-color, #ffffff);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
            z-index: 10000;
            transform: translateX(-100%);
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            flex-direction: column;
        }
        .mobile-sidebar.open {
            transform: translateX(0) !important;
        }
        @media (min-width: 768px) { .mobile-sidebar { display: none !important; } }
        .mobile-sidebar-header {
            padding: 1rem;
            background-color: var(--color-main-color, #1e1b4b);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .mobile-sidebar-logo { height: 38px; width: auto; max-width: 180px; object-fit: contain; }
        
        .hs-sidebar-close-btn,
        .mobile-sidebar-close {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 2.15rem !important;
            height: 2.15rem !important;
            border-radius: 50% !important;
            background: rgba(255, 255, 255, 0.15) !important;
            color: #ffffff !important;
            border: 1px solid rgba(255, 255, 255, 0.25) !important;
            cursor: pointer !important;
            padding: 0 !important;
            transition: all 0.2s ease !important;
            z-index: 10001 !important;
            touch-action: manipulation;
        }
        .hs-sidebar-close-btn:hover,
        .mobile-sidebar-close:hover {
            background: rgba(255, 255, 255, 0.3) !important;
            transform: scale(1.05) !important;
        }
        .mobile-sidebar-divider { margin: 0 1rem; height: 1px; background-color: rgba(255, 255, 255, 0.2); margin-bottom: 0.5rem; }
        .mobile-sidebar-content { flex-grow: 1; overflow-y: auto; padding: 0.5rem; display: flex; flex-direction: column; gap: 2px; }
        .sidebar-overlay {
            position: fixed;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: rgba(0, 0, 0, 0.55);
            z-index: 9998;
            display: none;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
        }
        .sidebar-overlay.open {
            display: block !important;
        }
        @media (min-width: 768px) { .sidebar-overlay { display: none !important; } }

        /* Mobile items inside sidebar */
        .mobile-item { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0.375rem 0.75rem; border-radius: 4px; transition: background-color 0.2s, color 0.2s; box-sizing: border-box; text-decoration: none; border: none; background: transparent; cursor: pointer; text-align: left; }
        .mobile-item-active { background-color: var(--color-hover-color); color: var(--color-hover-text-color); }
        .mobile-item-inactive { color: var(--color-main-text-color); }
        .mobile-item-inactive:hover { background-color: var(--color-hover-color); color: var(--color-hover-text-color); }
        .mobile-submenu { display: none; padding-left: 0.75rem; padding-right: 0.5rem; padding-top: 0.125rem; padding-bottom: 0.125rem; }
        .mobile-submenu-inner { border-left: 2px solid rgba(255,255,255,0.2); padding-left: 0.5rem; display: flex; flex-direction: column; gap: 0; }
        .mobile-submenu-item { display: block; padding: 0.375rem 0.75rem; border-radius: 4px; font-size: 0.875rem; color: var(--color-main-text-color); text-decoration: none; transition: background-color 0.2s, color 0.2s; }
        .mobile-submenu-item:hover { background-color: var(--color-hover-color); color: var(--color-hover-text-color); }
        .mobile-item-title-wrap { display: flex; align-items: center; gap: 0.5rem; }

        .site-main { flex-grow: 1; width: 100%; }
        .site-main > *:first-child { margin-top: 0 !important; }

        /* Profile Pill & Dropdown Menu System */
        .user-pill-dropdown-container {
            position: relative;
            display: inline-flex;
            align-items: center;
            height: 100%;
            margin-left: auto !important; /* Exact right aligned */
        }
        .user-profile-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.15); /* Header matching translucent style */
            color: #ffffff !important;
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding: 0 14px 0 4px;
            height: calc(100% - 6px); /* Height like menu item */
            margin-top: 3px;
            margin-bottom: 3px;
            border-radius: 10px !important; /* Semi-rounded corners */
            cursor: pointer;
            backdrop-filter: blur(12px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            outline: none;
            user-select: none;
            box-sizing: border-box;
        }
        .user-profile-pill:hover {
            background: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        }
        .user-pill-avatar-ring {
            width: 28px;
            height: 28px;
            border-radius: 50% !important; /* Full circle profile photo */
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #ffffff;
            flex-shrink: 0;
            border: 4px solid #ffffff !important; /* White border 4px */
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
            box-sizing: border-box;
        }
        .user-pill-avatar-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50% !important;
        }
        .user-pill-name {
            font-size: 13.5px;
            font-weight: 700;
            color: #ffffff;
            white-space: nowrap;
            letter-spacing: 0.2px;
            max-width: 95px;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .user-pill-chevron {
            width: 14px;
            height: 14px;
            color: rgba(255,255,255,0.9);
            transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .user-pill-dropdown-container.active .user-pill-chevron {
            transform: rotate(180deg);
        }

        /* Menu Container - Header Dark Indigo Theme with Semi-rounded corners */
        .user-pill-menu {
            position: absolute;
            top: calc(100% + 4px);
            right: 0;
            width: 225px;
            background: linear-gradient(145deg, #1e1b4b 0%, #2e2a72 100%); /* Header dark background style */
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 16px; /* Semi-rounded corners */
            box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.35), 0 8px 16px -4px rgba(0, 0, 0, 0.2);
            padding: 8px;
            z-index: 99999;
            display: none;
            opacity: 0;
            transform: translateY(-4px) scale(0.98);
            transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(16px);
        }
        /* Invisible hover bridge to prevent hover loss when moving cursor down to menu items */
        .user-pill-menu::before {
            content: "";
            position: absolute;
            top: -12px;
            left: 0;
            right: 0;
            height: 12px;
            background: transparent;
        }
        .user-pill-dropdown-container.active .user-pill-menu {
            display: block;
            opacity: 1;
            transform: translateY(0) scale(1);
        }
        @media (min-width: 1024px) {
            .user-pill-dropdown-container:hover .user-pill-menu {
                display: block;
                opacity: 1;
                transform: translateY(0) scale(1);
            }
            .user-pill-dropdown-container:hover .user-pill-chevron {
                transform: rotate(180deg);
            }
        }

        /* Menu Items - Reduced Compact Height, Semi-rounded corners & Matching Hover Style */
        .user-pill-menu-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 7px 12px; /* Reduced height for compact clean dropdown */
            border-radius: 8px; /* Semi-rounded corners */
            font-size: 13.5px;
            font-weight: 600;
            color: #ffffff; /* Crisp white text */
            text-decoration: none;
            border: 1px solid transparent;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            box-sizing: border-box;
        }
        .user-pill-menu-item:hover {
            background: rgba(255, 255, 255, 0.18) !important;
            border-color: rgba(255, 255, 255, 0.45);
            color: #ffffff !important;
            transform: translateX(3px); /* Smooth slide hover animation */
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 10px rgba(0, 0, 0, 0.25);
        }
        .user-pill-menu-item svg {
            width: 17px;
            height: 17px;
            flex-shrink: 0;
            color: rgba(255, 255, 255, 0.85);
            transition: all 0.2s ease;
        }
        .user-pill-menu-item:hover svg {
            color: #ffffff;
            transform: scale(1.08);
        }
        .user-pill-menu-divider {
            height: 1px;
            background: rgba(255, 255, 255, 0.18);
            margin: 4px 6px;
        }
        /* Permanent light red background for Logout item at all times */
        .user-pill-menu-item.logout {
            background: rgba(239, 68, 68, 0.18) !important;
            border: 1px solid rgba(239, 68, 68, 0.35) !important;
            color: #fca5a5 !important;
            margin-top: 2px;
        }
        .user-pill-menu-item.logout svg {
            color: #fca5a5 !important;
        }
        .user-pill-menu-item.logout:hover {
            background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important; /* Bold Vibrant Red Background */
            border-color: #f87171 !important;
            color: #ffffff !important;
            box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
        }
        .user-pill-menu-item.logout:hover svg {
            color: #ffffff !important;
        }

/* Push Notification Bell & Animations */
.floating-push-bell-wrap {
    position: fixed !important;
    left: 20px !important;
    bottom: 24px !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    visibility: visible !important;
    opacity: 1 !important;
}
@media (max-width: 768px) {
    .floating-push-bell-wrap {
        left: 16px !important;
        bottom: 84px !important; /* Safely floating above the mobile bottom toolbar */
    }
}
.floating-push-bell-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: #ffffff;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
.floating-push-bell-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.6);
}
.floating-push-bell-btn:active {
    transform: scale(0.95);
}
.floating-bell-icon {
    width: 23px;
    height: 23px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}
.floating-push-bell-btn.unsubscribed {
    animation: bellPulse 2.5s infinite;
}
.floating-push-bell-btn.unsubscribed .floating-bell-icon {
    animation: bellRing 4s infinite ease-in-out;
}
.floating-bell-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #ef4444;
    transition: background 0.3s;
}
.floating-push-bell-wrap.is-subscribed,
.floating-push-bell-wrap:has(.subscribed),
.floating-push-bell-btn.subscribed {
    display: none !important;
}
.floating-bell-tooltip {
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 9999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.floating-push-bell-wrap:hover .floating-bell-tooltip {
    opacity: 1;
    transform: translateX(0);
}
@keyframes bellRing {
    0%, 80%, 100% { transform: rotate(0); }
    85% { transform: rotate(-16deg); }
    90% { transform: rotate(16deg); }
    95% { transform: rotate(-10deg); }
}
@keyframes bellPulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.65); }
    70% { box-shadow: 0 0 0 14px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

/* Push Toast Alerts */
.push-toast-box {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    max-width: 380px;
    width: calc(100% - 48px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.35);
    border-radius: 16px;
    padding: 16px;
    color: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    cursor: pointer;
    box-sizing: border-box;
}
.push-toast-box.visible {
    transform: translateX(0);
    opacity: 1;
}
.push-toast-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.push-toast-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    background: #ffffff;
    padding: 3px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.push-toast-meta {
    flex: 1;
    min-width: 0;
}
.push-toast-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.push-toast-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.15);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}
.push-toast-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s ease;
}
.push-toast-close:hover {
    color: #ffffff;
}
.push-toast-title {
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    margin-top: 4px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.push-toast-body {
    font-size: 12px;
    color: #cbd5e1;
    margin-top: 3px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.push-toast-img {
    width: 100%;
    max-height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.push-toast-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}
.push-toast-btn-action {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    border: none;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
    transition: opacity 0.2s ease, transform 0.1s ease;
}
.push-toast-btn-action:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}


/* ==========================================================================
   Main Ads Responsive System (Moved to header.css for global browser caching)
   ========================================================================== */
/* Responsive Main Ads System */
.main-ad-desktop-only { display: block; }
.main-ad-mobile-only { display: none; }
@media (max-width: 768px) {
    .main-ad-desktop-only { display: none !important; }
    .main-ad-mobile-only { display: block !important; }
}
.main-ad-container { text-align: center; box-sizing: border-box; width: 100%; margin: 0 auto !important; padding: 4px !important; line-height: 0; }
.main-ad-link { display: inline-flex; justify-content: center; align-items: center; max-width: 100%; text-decoration: none; line-height: 0; vertical-align: middle; }
.main-ad-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    object-fit: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    vertical-align: middle;
}
html.dark .main-ad-image {
    border-color: rgba(255, 255, 255, 0.25);
}

/* AD1 - Desktop Header (900x90) */
.main-ad-AD1 { display: flex; align-items: center; justify-content: flex-end; margin: 0 !important; padding: 0 !important; line-height: normal; }
.main-ad-AD1 .main-ad-image { max-height: 90px; }

/* AD2 - Mobile Header (320x50) */
.main-ad-AD2 { padding: 4px !important; margin: 0 auto !important; background: transparent; line-height: normal; display: flex; justify-content: center; align-items: center; }
.main-ad-AD2 .main-ad-image { max-height: 65px; }

/* AD3 & AD8 - Above Edition (900x90 / 320x50) */
.main-ad-above-edition { margin: 0 auto !important; max-width: 1375px; padding: 4px !important; line-height: normal; }
.main-ad-above-edition .main-ad-image { max-height: 100px; }

/* AD4 & AD9 - Below Edition (900x90 / 300x250) */
.main-ad-below-edition { margin: 0 auto !important; max-width: 1375px; padding: 4px !important; line-height: normal; }
.main-ad-below-edition .main-ad-image { max-height: 100px; }

/* AD5 & AD6 - Desktop Sidebars / Gutters (160x600) */
.main-ad-gutter-wrap { display: flex; justify-content: center; align-items: flex-start; gap: 8px; width: 100%; max-width: 1800px; margin: 0 auto; box-sizing: border-box; }
.main-ad-sidebar-left, .main-ad-sidebar-right { width: 160px; flex-shrink: 0; position: sticky; top: 75px; z-index: 10; margin: 0; padding: 4px 0; line-height: normal; }
.main-ad-sidebar-left .main-ad-image, .main-ad-sidebar-right .main-ad-image { width: 100%; max-width: 160px; height: auto; }
@media (max-width: 1400px) {
    .main-ad-sidebar-left, .main-ad-sidebar-right { display: none !important; }
}

/* AD7 - Desktop Bottom Banner (900x90) */
.main-ad-AD7 { margin: 0 auto !important; max-width: 1375px; padding: 4px !important; line-height: normal; }
.main-ad-AD7 .main-ad-image { max-height: 100px; }

/* AD10 - Above Footer Banner (All Devices - 900x90 / 320x100) */
.main-ad-AD10 { margin: 0 auto !important; max-width: 1375px; padding: 4px !important; line-height: normal; }
.main-ad-AD10 .main-ad-image { max-height: 100px; }

/* Placeholder Border Box for Empty Ad Slots */
.main-ad-placeholder-box {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    border: 2.5px dashed #4f46e5 !important;
    border-radius: 8px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%) !important;
    color: #1e1b4b;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: normal !important;
    text-align: center;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.main-ad-placeholder-box:hover {
    border-color: #4338ca !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.18);
}
html.dark .main-ad-placeholder-box {
    border-color: #818cf8 !important;
    background: linear-gradient(135deg, #1e1b4b 0%, #172554 100%) !important;
    color: #f8fafc;
}
html.dark .main-ad-placeholder-box:hover {
    border-color: #a5b4fc !important;
    box-shadow: 0 4px 14px rgba(129, 140, 248, 0.25);
}

.main-ad-pb-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: #e0e7ff;
    color: #4338ca;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
    white-space: nowrap;
}
html.dark .main-ad-pb-badge {
    background: #312e81;
    color: #c7d2fe;
}
.main-ad-pb-badge.sky {
    font-size: 10px;
    padding: 2px 6px;
}
.main-ad-pb-size-tag {
    font-size: 12px;
    color: #475569;
    background: #e2e8f0;
    padding: 4px 10px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}
html.dark .main-ad-pb-size-tag {
    background: #334155;
    color: #cbd5e1;
}
.main-ad-pb-size-tag.sky {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
    display: block;
    line-height: 1.3;
}
.main-ad-pb-size-pill {
    font-size: 10.5px;
    font-weight: 700;
    color: #475569;
    background: #e2e8f0;
    padding: 2px 7px;
    border-radius: 9999px;
    line-height: 1.2;
    white-space: nowrap;
}
html.dark .main-ad-pb-size-pill {
    background: #334155;
    color: #cbd5e1;
}
.main-ad-pb-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #4f46e5;
    color: #ffffff !important;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.15s ease, transform 0.15s ease;
    line-height: 1.2;
    white-space: nowrap;
}
.main-ad-pb-phone-btn:hover {
    background: #4338ca;
    transform: scale(1.02);
}
.main-ad-pb-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #059669;
    color: #ffffff !important;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.15s ease, transform 0.15s ease;
    line-height: 1.2;
    white-space: nowrap;
}
.main-ad-pb-wa-btn:hover {
    background: #047857;
    transform: scale(1.02);
}
.main-ad-pb-icon-sm {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Leaderboard Specific Layout (AD1, AD3, AD4, AD7, AD10) */
.main-ad-pb-leaderboard {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    max-height: 90px;
    max-width: 900px;
    padding: 0 16px;
    gap: 12px;
}
.main-ad-pb-lb-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.main-ad-pb-lb-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}
html.dark .main-ad-pb-lb-label {
    color: #94a3b8;
}
.main-ad-pb-lb-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.main-ad-pb-lb-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
@media (max-width: 991px) {
    .main-ad-pb-leaderboard {
        flex-wrap: wrap;
        height: auto;
        max-height: none;
        padding: 10px 12px;
        gap: 8px;
        justify-content: center;
    }
}

/* Mobile Banner Specific Layout (AD2, AD8 - 320x50) */
.main-ad-pb-mobile-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    max-width: 340px;
    padding: 0 10px;
    gap: 6px;
}
.main-ad-pb-mb-left {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}
.main-ad-pb-mb-left .main-ad-pb-badge {
    font-size: 9px;
    padding: 2px 5px;
}
.main-ad-pb-mb-right .main-ad-pb-phone-btn {
    padding: 4px 8px;
    font-size: 11px;
    gap: 4px;
}

/* Skyscraper Specific Layout (AD5, AD6 - 160x600) */
.main-ad-pb-skyscraper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 600px;
    padding: 20px 8px;
    gap: 12px;
    box-sizing: border-box;
}
.main-ad-pb-sky-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e7ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
html.dark .main-ad-pb-sky-icon {
    background: #312e81;
    color: #a5b4fc;
}
.main-ad-pb-sky-icon svg { width: 20px; height: 20px; }
.main-ad-pb-sky-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    text-align: center;
}
html.dark .main-ad-pb-sky-title { color: #f8fafc; }
.main-ad-pb-sky-divider {
    width: 60%;
    height: 1px;
    background: #cbd5e1;
    margin: 2px 0;
}
html.dark .main-ad-pb-sky-divider { background: #334155; }
.main-ad-pb-sky-prompt {
    font-size: 10.5px;
    color: #64748b;
    line-height: 1.3;
    text-align: center;
}
html.dark .main-ad-pb-sky-prompt { color: #94a3b8; }
.main-ad-pb-phone-btn.sky, .main-ad-pb-wa-btn.sky {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    font-size: 11px;
    padding: 6px 8px;
}

/* Rectangle Specific Layout (AD9 - 300x250) */
.main-ad-pb-rectangle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 250px;
    margin: 0 auto;
    padding: 16px;
    gap: 8px;
    box-sizing: border-box;
}
.main-ad-pb-rect-head {
    display: flex;
    align-items: center;
    gap: 8px;
}
.main-ad-pb-rect-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #e0e7ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
html.dark .main-ad-pb-rect-icon {
    background: #312e81;
    color: #a5b4fc;
}
.main-ad-pb-rect-icon svg { width: 18px; height: 18px; }
.main-ad-pb-rect-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
html.dark .main-ad-pb-rect-title { color: #f8fafc; }
.main-ad-pb-rect-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
    max-width: 250px;
    text-align: center;
}
html.dark .main-ad-pb-rect-desc { color: #94a3b8; }
.main-ad-pb-rect-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
}
