 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            padding: 0px;
        }

        .container {
            max-width: 980px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            padding: 20px 30px 30px 30px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }

        h1 {
            color: #2c3e50;
            font-size: 32px;
        }

        .section {
            margin-bottom: 30px;
			padding-top: 20px;
        }

        .section-title {
            color: #34495e;
            font-size: 20px;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .section-subtitle {
            color: #666;
            font-size: 14px;
            margin-bottom: 15px;
            font-weight: 400;
        }

        .filter-group {
            margin-bottom: 20px;
        }

        .filter-label {
            display: block;
            color: #555;
            margin-bottom: 8px;
            font-weight: 500;
        }

        select, input {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 16px;
            background: white;
            transition: all 0.3s ease;
        }

        select:focus, input:focus {
            outline: none;
            border-color: #eb296e;
        }

        .filter-grid {
            display: grid;
			grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
			gap: 10px;
			margin-bottom: 0;
        }

        .custom-time-inputs {
            display: none;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 10px;
        }

        .custom-time-inputs.active {
            display: grid;
        }

        .button {
            background: linear-gradient(135deg, #eb296e 0%, #c71f5a 100%);
            color: white;
            border: none;
            padding: 14px 28px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            margin-top: 10px;
        }

        .button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(235, 41, 110, 0.4);
        }

        .button:active {
            transform: translateY(0);
        }

        .button-secondary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .button-secondary:hover {
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        .thumbnails-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        @media (max-width: 768px) {
            .thumbnails-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .thumbnail-item {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            display: flex;
            flex-direction: column;
        }

        .thumbnail-item:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        }

        .thumbnail-item.deselected {
            opacity: 0.4;
            filter: grayscale(100%);
        }

        .thumbnail-image-wrapper {
            width: 100%;
            padding-top: 133%;
            position: relative;
            background: #f8f9fa;
        }

        .thumbnail-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .thumbnail-info {
            padding: 12px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .thumbnail-tags {
            font-size: 11px;
            color: #666;
            margin-bottom: 8px;
            line-height: 1.4;
            flex-grow: 1;
        }

        .toggle-switch {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: auto;
        }

        .switch {
            position: relative;
            width: 48px;
            height: 24px;
            background: #ccc;
            border-radius: 24px;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .switch.active {
            background: #eb296e;
        }

        .switch-slider {
            position: absolute;
            top: 2px;
            left: 2px;
            width: 20px;
            height: 20px;
            background: white;
            border-radius: 50%;
            transition: transform 0.3s ease;
        }

        .switch.active .switch-slider {
            transform: translateX(24px);
        }

        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .overlay.active {
            display: flex;
            animation: fadeIn 0.4s ease forwards;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        .overlay-timer {
            position: absolute;
            top: 20px;
            left: 20px;
            color: white;
            font-size: 36px;
            font-weight: 700;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
            z-index: 15;
            background: rgba(0, 0, 0, 0.5);
            padding: 10px 20px;
            border-radius: 8px;
            backdrop-filter: blur(10px);
        }

        .overlay-timer.flicker {
            animation: flicker 0.5s ease-in-out infinite;
        }

        .overlay-close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            color: white;
            font-size: 36px;
            font-weight: 700;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
            z-index: 15;
            background: rgba(0, 0, 0, 0.5);
            padding: 10px 20px;
            border-radius: 8px;
            backdrop-filter: blur(10px);
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            line-height: 1;
        }

        .overlay-close-btn:hover {
            background: rgba(235, 41, 110, 0.7);
        }

        .overlay-counter {
            position: absolute;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            font-size: 14px;
            font-weight: 600;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
            z-index: 15;
            background: rgba(0, 0, 0, 0.5);
            padding: 6px 12px;
            border-radius: 6px;
            backdrop-filter: blur(10px);
        }

        .overlay-counter.warning {
            background: rgba(255, 167, 38, 0.7);
        }

        .carousel-container {
            position: absolute;
            top: 45px;
            left: 0;
            width: 100vw;
            height: calc(100vh - 45px);
            display: flex;
            align-items: flex-start;
            padding-top: 50px;
            justify-content: center;
            touch-action: pan-y;
        }

        .carousel-card {
			position: absolute;
			transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
			border-radius: 8px;
			overflow: hidden;
			box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        }

        .carousel-card img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }

        .carousel-card.center {
            z-index: 10;
            transform: translate(-50%, 0) scale(1);
            width: 55%;
            max-width: 600px;
            height: 75vh;
            left: 50%;
            top: 0;
            opacity: 1;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
            transition: box-shadow 0.3s ease;
        }

        .carousel-card.center.warning {
            animation: warningBorder 0.5s ease-in-out infinite;
        }

        @keyframes warningBorder {
            0%, 100% {
                box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 0px rgba(255, 255, 255, 0);
            }
            50% {
                box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(255, 255, 255, 1);
            }
        }

        @keyframes flicker {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.5;
            }
        }

        .carousel-card.right-1 {
            z-index: 9;
            transform: translate(-50%, 0) scale(0.85);
            width: 47%;
            max-width: 510px;
            height: 68vh;
            left: 68%;
            top: 30px;
            opacity: 0.3;
            box-shadow: -10px 20px 40px rgba(0, 0, 0, 0.4);
            filter: blur(2px);
            cursor: pointer;
        }

        .carousel-card.right-2 {
            z-index: 8;
            transform: translate(-50%, 0) scale(0.72);
            width: 39.6%;
            max-width: 432px;
            height: 57.6vh;
            left: 72%;
            top: 50px;
            opacity: 0.2;
            box-shadow: -15px 15px 30px rgba(0, 0, 0, 0.3);
            filter: blur(3px);
        }

        .carousel-card.right-3 {
            z-index: 7;
            transform: translate(-50%, 0) scale(0.61);
            width: 33.55%;
            max-width: 366px;
            height: 48.8vh;
            left: 75%;
            top: 70px;
            opacity: 0.15;
            box-shadow: -20px 10px 20px rgba(0, 0, 0, 0.2);
            filter: blur(4px);
        }

        .carousel-card.left-1 {
            z-index: 9;
            transform: translate(-50%, 0) scale(0.85);
            width: 47%;
            max-width: 510px;
            height: 68vh;
            left: 32%;
            top: 30px;
            opacity: 0.3;
            box-shadow: 10px 20px 40px rgba(0, 0, 0, 0.4);
            filter: blur(2px);
            cursor: pointer;
        }

        .carousel-card.left-2 {
            z-index: 8;
            transform: translate(-50%, 0) scale(0.72);
            width: 39.6%;
            max-width: 432px;
            height: 57.6vh;
            left: 28%;
            top: 50px;
            opacity: 0.2;
            box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.3);
            filter: blur(3px);
        }

        .carousel-card.left-3 {
            z-index: 7;
            transform: translate(-50%, 0) scale(0.61);
            width: 33.55%;
            max-width: 366px;
            height: 48.8vh;
            left: 25%;
            top: 70px;
            opacity: 0.15;
            box-shadow: 20px 10px 20px rgba(0, 0, 0, 0.2);
            filter: blur(4px);
        }

        .carousel-card.hidden {
            opacity: 0;
            pointer-events: none;
            transform: translate(-50%, -50%) scale(0.5);
        }

        .overlay-info-container {
            position: absolute;
            bottom: 60px;
            left: 50%;
            transform: translateX(-50%);
            text-align: center;
            width: 95%;
            max-width: 1200px;
            padding: 0 30px;
        }

        .overlay-caption {
            color: white;
            font-size: 18px;
            margin-bottom: 8px;
            font-weight: 500;
            line-height: 1.4;
        }

        .overlay-pack-info {
            color: #ccc;
            font-size: 14px;
            line-height: 1.5;
			padding-top: 10px;
        }

        @media (max-width: 768px) {
            .overlay-info-container {
                width: 90%;
                padding: 0 20px;
            }
            
            .overlay-caption {
                font-size: 16px;
            }
            
            .overlay-pack-info {
                font-size: 13px;
            }
			.ad-content {
			max-width: 95%;
			}
			.ad-timer {
				font-size: 14px;
				padding: 8px 16px;
			}
			.filter-grid {
				grid-template-columns: 1fr; /* Single column on mobile */
				gap: 10px;
			}
		
		
			.filter-grid .button {
			margin-top: 0;
			height: fit-content;
			align-self: end; /* Align to bottom of grid cell */
			}
        }

        .overlay-pack-info a {
            color: #eb296e;
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .overlay-pack-info a:hover {
            color: #ff4081;
            text-decoration: underline;
        }

        .progress-indicator {
            display: none;
        }

        .progress-indicator.warning {
            display: none;
        }

        .overlay-controls {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .overlay-button {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.2);
            color: white;
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 20px;
            font-weight: 600;
            transition: all 0.3s ease;
            min-width: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .overlay-button:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.4);
        }

        .ad-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 1001;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }

        .ad-overlay.active {
            display: flex;
        }

        .ad-timer {
            color: white;
            font-size: 18px;
            margin-bottom: 20px;
        }

        .ad-content {
            max-width: 90vw;
            max-height: 70vh;
        }

        .ad-content img {
            max-width: 100%;
            max-height: 70vh;
            object-fit: contain;
            border-radius: 8px;
        }

        .class-mode-options {
            display: none;
        }

        .class-mode-options.active {
            display: block;
        }

        .interval-mode-options {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .interval-mode-options.hidden {
            display: none;
        }

        .class-mode-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        @media (max-width: 768px) {
            .interval-mode-options,
            .class-mode-layout {
                grid-template-columns: 1fr;
            }
        }

        .mode-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }

        .mode-tab {
            flex: 1;
            padding: 12px;
            background: #f0f0f0;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .mode-tab.active {
            background: linear-gradient(135deg, #eb296e 0%, #c71f5a 100%);
            color: white;
        }

        .glass-panel {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .break-message {
            text-align: center;
            color: white;
            font-size: 32px;
            font-weight: 700;
        }

        .hidden {
            display: none;
        }

        .loading {
            text-align: center;
            padding: 40px;
            color: #666;
            font-size: 18px;
        }
		
		/* Tag Filter Pills */
#tagPillsContainer {
    margin: 20px 0;
    display: none;
}

.tag-pills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 80px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.tag-pills-wrapper.collapsed {
    max-height: 80px;
}

.tag-pills-wrapper:not(.collapsed) {
    max-height: none;
}

.tag-pill {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tag-pill.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tag-pill:not(.selected) {
    background: #e0e0e0;
    color: #666;
}

.tag-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tag-pill.selected:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.tag-pill:not(.selected):hover {
    background: #d0d0d0;
    color: #333;
}

.expand-tags-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #667eea;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.expand-tags-btn:hover {
    background: #f5f5f5;
    border-color: #667eea;
}

.expand-tags-btn .arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Optional: Add accent color variable if you want to customize */
:root {
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}


/* Carousel size constraints - prevents overflow */
.carousel-card.center {
    max-height: 75vh !important;
    max-width: 90vw !important;
}

.carousel-card.left-1,
.carousel-card.right-1 {
    max-height: 64vh !important;
    max-width: 85vw !important;
}



/* WordPress Navigation Styles with Submenu Support */
.wp-navigation {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 30px;
}

.wp-navigation {
    z-index: 100 !important; /* Higher than filter overlay */
}

.nav-menu.mobile-open {
    z-index: 101 !important;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    z-index: 1001;
}

.nav-logo:hover {
    color: #667eea;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 2px;
    background: #333;
    position: relative;
    transition: background 0.3s;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: #333;
    transition: all 0.3s;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

.mobile-menu-toggle.active .hamburger-icon {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Main menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.nav-item {
    margin: 0;
    position: relative;
}

.nav-item.has-submenu {
    position: relative;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
    padding: 8px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Submenu arrow */
.submenu-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-item.has-submenu.submenu-open .submenu-arrow {
    transform: rotate(180deg);
}

/* Submenu dropdown */
.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    list-style: none;
    margin: 10px 0 0 0;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item.has-submenu.submenu-open .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-submenu-item {
    margin: 0;
}

.nav-submenu-link {
    display: block;
    padding: 10px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.nav-submenu-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding-left: 25px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .nav-container {
        height: 60px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        align-items: flex-start;
    }
    
    .nav-menu.mobile-open {
        transform: translateX(0);
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
        padding: 15px 0;
    }
    
    .nav-link {
        font-size: 18px;
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Mobile submenu */
    .nav-submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        margin: 10px 0 0 0;
        padding: 0 0 0 15px;
        min-width: auto;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease;
    }
    
    .nav-item.has-submenu.submenu-open .nav-submenu {
        max-height: 500px;
    }
    
    .nav-submenu-item {
        border-bottom: 1px solid #f5f5f5;
    }
    
    .nav-submenu-item:last-child {
        border-bottom: none;
    }
    
    .nav-submenu-link {
        font-size: 15px;
        padding: 12px 15px;
    }
    
    .nav-submenu-link:hover {
        padding-left: 20px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .nav-submenu {
        min-width: 220px;
    }
}

//* Notification Bell in Navigation */
.notification-bell-item {
    position: relative;
}

.notification-bell-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.notification-bell-btn:hover {
    transform: scale(1.1);
}

.bell-icon {
    width: 24px;
    height: 24px;
    color: #555;
    transition: color 0.2s;
}

.notification-bell-btn:hover .bell-icon {
    color: #eb296e;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 3px 4px 0 4px;
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Notification Dropdown */
.notification-dropdown {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 420px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 100px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Notification Header */
.notification-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.notification-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.notification-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* Filter Buttons */
.notification-filters {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #eee;
}

.filter-btn {
    flex: 1;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #ebebeb;
}

.filter-btn.active {
    background: linear-gradient(135deg, #eb296e 0%, #d6b2f1 100%);
    color: white;
    border-color: transparent;
}

.filter-icon {
    font-size: 16px;
}

/* Notification List */
.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    max-height: 400px;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Notification Item */
.notification-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.notification-item:hover {
    background: #f0f1f3;
    transform: translateX(2px);
}

.notification-item.feature {
    border-left-color: #667eea;
}

.notification-item.content {
    border-left-color: #f39c12;
}

.notification-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.notification-category-icon {
    font-size: 16px;
}

.notification-version {
    font-size: 11px;
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.notification-date {
    font-size: 11px;
    color: #999;
    margin-left: auto;
}

.notification-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.notification-description {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.notification-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.notification-link:hover {
    color: #764ba2;
}

/* Empty State */
.notification-empty {
    text-align: center;
    padding: 40px 20px;
}

.notification-empty p {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
}

.empty-subtext {
    font-size: 14px !important;
    color: #999 !important;
}

/* Notification Footer */
.notification-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-dismiss-all {
    flex: 1;
    padding: 10px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-dismiss-all:hover {
    background: #e5e5e5;
    color: #333;
}

.btn-view-all {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(135deg, #eb296e 0%, #ff6b9d 100%);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-view-all:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(235, 41, 110, 0.3);
    background: linear-gradient(135deg, #c71f59 0%, #eb296e 100%);
}

.dismiss-success {
    text-align: center;
    color: #27ae60;
    font-weight: 500;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-dropdown {
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
        top: 60px;
    }
    
    .notification-list {
        max-height: calc(100vh - 300px);
    }
    
    .notification-footer {
        flex-direction: column;
    }
    
    .btn-dismiss-all,
    .btn-view-all {
        width: 100%;
    }
}

.study-mode-sticky {
    /* NO position property - just normal block element */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin: 0 auto 30px;
    max-width: 980px;
}

/* Force remove any sticky behavior */
.study-mode-sticky {
    position: static !important; /* Force normal flow */
}

/* Hide any leftover sticky elements */
.study-mode-sticky .sticky-content,
.study-mode-sticky .sticky-title-wrapper,
.study-mode-sticky .sticky-start-btn,
.study-mode-placeholder {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   STEP 3: FINAL CSS - COMPLETE & BALANCED
   ═══════════════════════════════════════════════════════════ */

/* Desktop: Side-by-side layout */
@media (min-width: 769px) {
    /* Force grid layout on thumbnail section */
    .container .section#thumbnailSection {
        display: grid !important;
        grid-template-columns: 280px 1fr !important;
        grid-template-rows: auto auto !important; /* Only 2 rows: title, then content */
        gap: 30px !important;
        align-items: start !important;
    }
    
    /* Section title - first row, spans both columns */
    .container .section#thumbnailSection .section-title {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
    }
    
    /* Filter sidebar on left - second row, first column */
    .container .section#thumbnailSection #tagPillsContainer {
        grid-column: 1 / 2 !important;
        grid-row: 2 !important; /* Changed from 3 to 2 */
        position: sticky !important;
        top: 20px !important;
        max-height: calc(100vh - 40px) !important;
        overflow-y: auto !important;
        padding: 20px !important;
        background: #f8f9fa !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
        display: block !important;
    }
    
    /* Thumbnails grid on right - second row, second column */
    .container .section#thumbnailSection #thumbnailsContainer {
        grid-column: 2 / 3 !important;
        grid-row: 2 !important; /* Changed from 3 to 2 */
    }
    
    /* No images message on right - second row, second column */
    .container .section#thumbnailSection #noImagesMessage {
        grid-column: 2 / 3 !important;
        grid-row: 2 !important; /* Changed from 3 to 2 */
    }
    
    /* Hide mobile elements on desktop */
    .mobile-filter-toggle {
        display: none !important;
    }
    
    .mobile-filter-close {
        display: none !important;
    }
    
    /* Scrollbar styling */
    #tagPillsContainer::-webkit-scrollbar {
        width: 6px;
    }
    
    #tagPillsContainer::-webkit-scrollbar-track {
        background: #e0e0e0;
        border-radius: 3px;
    }
    
    #tagPillsContainer::-webkit-scrollbar-thumb {
        background: #667eea;
        border-radius: 3px;
    }
}

/* Mobile: Hamburger menu with overlay */
@media (max-width: 768px) {
    /* Reset grid on mobile */
    .container .section#thumbnailSection {
        display: block !important;
    }
    
    /* Mobile filter toggle button - STICKY */
    .mobile-filter-toggle {
        position: sticky;
        top: 60px; /* Below main navigation */
        z-index: 999;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        border-radius: 12px;
        color: white;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 20px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
    
    .mobile-filter-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
    
    /* Hamburger icon in filter button - NOT the nav hamburger */
    .mobile-filter-toggle .hamburger-icon {
        font-size: 20px;
        font-style: normal;
    }
    
    .mobile-filter-toggle .filter-count {
        background: rgba(255, 255, 255, 0.3);
        padding: 2px 8px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 700;
    }
    
    /* Filter overlay */
    #tagPillsContainer {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: rgba(0, 0, 0, 0.8) !important;
        z-index: 10000 !important;
        display: none !important;
        opacity: 0;
        transition: opacity 0.3s ease;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    #tagPillsContainer.mobile-open {
        display: block !important;
        opacity: 1;
    }
    
    /* Filter panel slides in */
    #tagPillsContainer .categorized-tags-wrapper {
        position: absolute;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: white;
        overflow-y: auto;
        padding: 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
    }
    
    #tagPillsContainer.mobile-open .categorized-tags-wrapper {
        transform: translateX(0);
    }
    
    /* Mobile close button */
    .mobile-filter-close {
        display: flex !important;
        position: sticky;
        top: 0;
        left: 0;
        width: calc(100% + 40px);
        padding: 15px 20px;
        margin: -20px -20px 20px -20px;
        background: white;
        border: none;
        border-bottom: 2px solid #f0f0f0;
        align-items: center;
        justify-content: space-between;
        font-size: 16px;
        font-weight: 600;
        color: #333;
        cursor: pointer;
        z-index: 10;
    }
    
    .mobile-filter-close .close-icon {
        font-size: 24px;
        color: #999;
    }
    
    /* Reset button at bottom */
    #tagPillsContainer .reset-tags-btn {
        position: sticky;
        bottom: 0;
        margin: 20px -20px -20px -20px;
        border-radius: 0;
        width: calc(100% + 40px);
    }
}

/* Adjust thumbnail section */
#thumbnailSection {
    margin-bottom: 0;
    padding-bottom: 30px;
}

/* ═══════════════════════════════════════════════════════════
   CATEGORIZED TAG STYLES (Work on both desktop & mobile)
   ═══════════════════════════════════════════════════════════ */

.categorized-tags-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.tag-category-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.tag-category-section:hover {
    background: #f0f1f3;
}

.tag-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
}

.tag-category-header:hover {
    background: rgba(102, 126, 234, 0.1);
}

.category-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #667eea;
}

.category-arrow {
    font-size: 10px;
    color: #999;
    transition: transform 0.3s ease;
}

.tag-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.tag-category-pills.expanded {
    max-height: 500px;
    opacity: 1;
    margin-top: 12px;
}

.tag-category-pills.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.tag-category-pills .tag-pill {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tag-category-pills .tag-pill.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tag-category-pills .tag-pill:not(.selected) {
    background: #e0e0e0;
    color: #666;
}

.tag-category-pills .tag-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.reset-tags-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #eb296e 0%, #c71f5a 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.reset-tags-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 41, 110, 0.4);
}

.reset-tags-btn:active {
    transform: translateY(0);
}

/* Hide old tag pills wrapper */
.tag-pills-wrapper {
    display: none !important;
}

#expandTagsBtn {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   FLOATING START SESSION BUTTON (Bottom-Left, within container)
   Add this to the end of your styles.css
   ═══════════════════════════════════════════════════════════ */

.floating-start-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-460px); /* Half of container (980px/2) = 490px minus 30px padding = -460px */
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 28px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.floating-start-btn.visible {
    opacity: 1;
    transform: translateX(-460px) translateY(0) scale(1);
    pointer-events: auto;
}

.floating-start-btn:hover {
    transform: translateX(-460px) translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.floating-start-btn:active {
    transform: translateX(-460px) translateY(-2px) scale(1);
}

.floating-start-btn svg {
    flex-shrink: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .floating-start-btn {
        left: 20px;
        transform: none;
        bottom: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .floating-start-btn.visible {
        transform: translateY(0) scale(1);
    }
    
    .floating-start-btn:hover {
        transform: translateY(-4px) scale(1.05);
    }
    
    .floating-start-btn:active {
        transform: translateY(-2px) scale(1);
    }
    
    .floating-start-btn svg {
        width: 16px;
        height: 16px;
        margin-right: 6px !important;
    }
}

/* Animation for first appearance */
@keyframes slideInLeft {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.floating-start-btn.visible {
    animation: slideInLeft 0.4s ease-out;
}

/* ═══════════════════════════════════════════════════════════
   STEP 4: BACK TO TOP ARROW (within container with padding)
   Add this to the end of your styles.css
   ═══════════════════════════════════════════════════════════ */

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(404px); /* Half of container (980px/2) minus button width (56px) minus 30px padding = 404px */
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #eb296e 0%, #c71f5a 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(235, 41, 110, 0.3);
    transition: all 0.3s ease;
    z-index: 998;
    opacity: 0;
    pointer-events: none;
}

.back-to-top-btn.visible {
    opacity: 1;
    transform: translateX(404px) translateY(0) scale(1);
    pointer-events: auto;
}

.back-to-top-btn:hover {
    transform: translateX(404px) translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(235, 41, 110, 0.4);
}

.back-to-top-btn:active {
    transform: translateX(404px) translateY(-2px) scale(1);
}

.back-to-top-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .back-to-top-btn {
        right: 20px;
        left: auto;
        transform: none;
        bottom: 20px;
        width: 48px;
        height: 48px;
    }
    
    .back-to-top-btn.visible {
        transform: translateY(0) scale(1);
    }
    
    .back-to-top-btn:hover {
        transform: translateY(-4px) scale(1.05);
    }
    
    .back-to-top-btn:active {
        transform: translateY(-2px) scale(1);
    }
    
    .back-to-top-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Animation for first appearance */
@keyframes slideInUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.back-to-top-btn.visible {
    animation: slideInUp 0.4s ease-out;
}