        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            color: #333;
           /* display: flex; */
            /* display: flex; */
            /* overflow: hidden; */
        }

/* menu list TMP */
      .main-list {
            list-style-type: none;
            
        }
        
        .menu_main-item {
           
            margin-bottom: 20px;
/*
            background-color: #f8f9fa;
*/
            border-radius: 8px;
            padding: 15px;
/*
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
*/
            transition: all 0.3s ease;
           
        }

		.menu_border_s1 {
		 border-left: 4px solid #4474af;
		}
		
		.menu_border_s2 {
		 border-left: 4px solid red;
		}

		.menu_border_spav {
		 border-left: 4px solid green;
		}
        
        .main-item:hover {
            background-color: #edf2f7;
            transform: translateX(5px);
        }
        
        .main-item::before {
           
            font-weight: bold;
            color: #3498db;
            margin-right: 8px;
            font-size: 1.2em;
        }
        
        .main-title {
            font-weight: 600;
            color: #2c3e50;
            font-size: 1.2em;
            display: inline;
        }
        
        .sub-list {
            list-style-type: none;
            margin-top: 12px;
            padding-left: 25px;
            
        }
        
        .menu_sub-item {
            
            padding: 0px 0px;
            margin-bottom: 0px;
/*
            background-color: white;
*/
            border-radius: 6px;
/*
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
*/
            transition: all 0.2s ease;
            
        }
        
        .menu_sub-item:hover {
/*
            background-color: #f1f8e9;
*/
            transform: translateX(3px);
        }
        
        .sub-item::before {
            
            font-weight: 500;
            color: #2ecc71;
            margin-right: 5px;
        }
        
        .sub-title {
            color: #34495e;
            font-size:1.1em !important;
            background: #fff;
        }
        
        .footer {
            text-align: center;
            margin-top: 30px;
            color: #7f8c8d;
            font-size: 0.9em;
        }
        
        @media (max-width: 600px) {
            .container {
                padding: 20px;
            }
            
            h1 {
                font-size: 1.5em;
            }
            
            .main-item, .sub-item {
                padding: 12px;
            }
        }
/* menu list TMP ENDS */



/* === TOP NAVIGATION BAR --starts-- === */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            color: #333;
            line-height: 1.6;
            padding-top: 3rem;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        /* === TOP NAVIGATION BAR - ORIGINAL SIZE === */
        .top-bar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 3rem; /* 48px - Original size */
            background: #fff;
            color: #000;
            display: flex;
            align-items: center;
            padding: 0 1rem;
            z-index: 1000;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
            gap: 1rem;
        }

        .top-bar-logo {
            display: flex;
            align-items: center;
             /* margin-right: auto; */
        }

        .logo-link {
            display: flex;
            align-items: center;
            height: 1.5rem;
            text-decoration: none;
            color: #000;
            font-weight: bold;
            font-size: 1.2rem;
        }

        .logo-desktop,
        .logo-mobile {
            height: 100%;
            width: auto;
        }

        .logo-desktop {
            display: block;
        }

        .logo-mobile {
            display: none;
        }

        /* Links positioned near the logo */
        .top-bar-links.menu-left {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-right: auto;
        }

        /* Links to the right of logo */
        .top-bar-links.logo-right {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-right: 1rem;
        }

        .top-bar-link {
            color: #000;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.35rem 0.6rem;
            border-radius: 4px;
            transition: all 0.3s ease;
            font-size: 1rem;
            position: relative;
        }

        .top-bar-link:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .link-icon {
            width: 16px;
            height: 16px;
        }

        .link-text {
            white-space: nowrap;
        }

        /* Email link */
        .top-bar-email {
            margin-right: 1rem;
        }

        .top-bar-email a {
            color: #000;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.85rem;
        }

        /* Menu button with fixed width */
        .top-bar-menu-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgb(0 0 0 / 30%);
            color: #000;
            padding: 0.35rem 0.75rem;
            border-radius: 4px;
            cursor: pointer;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            transition: all 0.3s ease;
            width: 90px;
            flex-shrink: 0;
        }
        
        .close-text {
        color:#fff}
        
        .close-icon {
        color:#fff
        }

        .top-bar-menu-btn:hover {
           background: rgb(211 187 187 / 20%);
           color: #ab0006;
        }

        .top-bar-menu-btn.menu-open {
            background: #e74c3c;
            border-color: #e74c3c;
        }

        /* === MENU PANEL WITH SLIDE-FROM-RIGHT ANIMATION === */
        .top-menu-panel {
            position: fixed;
            top: 3rem;
            right: 0;
            width: 300px;
            height: calc(100vh - 3rem);
            background: white;
            color: #333;
            z-index: 999;
            box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
            transform: translateX(100%);
            transition: transform 0.4s ease;
            overflow-y: auto;
        }

        .top-menu-panel.menu-open {
            transform: translateX(0);
        }

        .top-menu-content {
            padding: 1rem;
        }

        .top-menu-close {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: none;
            border: none;
            font-size: 1.2rem;
            cursor: pointer;
            color: #666;
            padding: 0.25rem;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
        }

        .top-menu-close:hover {
            background: #f0f0f0;
        }

        .top-menu-panel nav ul {
            list-style: none;
            margin-top: 0rem;
        }

        .top-menu-panel nav li {
            margin-bottom: 0.5rem;
        }

        .top-menu-panel a {
            text-decoration: none;
            color: #2c3e50;
            padding: 0.1rem 0.1rem;
            display: block;
            font-size: 0.95rem;
            transition: all 0.2s ease;
            border-radius: 4px;
        }

        .top-menu-panel a:hover {
            color: #3498db;
/*
            background: #f8f9fa;
*/
        }

        /* Overlay for menu */
        .top-menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 998;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .top-menu-overlay.active {
            opacity: 1;
        }

        /* === INFO TOOLTIPS === */
        .info-tooltip-wrapper {
            position: relative;
            display: inline-block;
        }

        .info-tooltip {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            color: #333;
            padding: 0.75rem;
            border-radius: 6px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
            z-index: 1001;
            width: 250px;
            font-size: 0.8rem;
            line-height: 1.4;
            display: none;
            border: 1px solid #e0e0e0;
            user-select: text;
            margin-top: 0.25rem;
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .info-tooltip.active {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .info-tooltip-close {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            background: none;
            border: none;
            font-size: 0.9rem;
            cursor: pointer;
            color: #666;
            padding: 0.1rem;
            border-radius: 3px;
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .info-tooltip-close:hover {
            background: #f0f0f0;
        }

        .info-tooltip-content {
            padding-right: 1.25rem;
        }

        /* === DEMO CONTENT === */
        .demo-content {
            max-width: 1000px;
            margin: 0 auto;
            padding: 2rem;
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        h1 {
            color: #2c3e50;
            margin-bottom: 1rem;
            font-size: 1.8rem;
        }

        h2 {
            color: #3498db;
            margin: 1.5rem 0 0.75rem;
            font-size: 1.4rem;
        }

        p {
            margin-bottom: 0.75rem;
            font-size: 1rem;
        }

        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }

        .feature-card {
            background: #f8f9fa;
            padding: 1rem;
            border-radius: 6px;
            border-left: 4px solid #3498db;
        }

        .feature-card h3 {
            margin-bottom: 0.5rem;
            color: #2c3e50;
            font-size: 1.1rem;
        }

        /* === RESPONSIVE DESIGN === */
        @media (max-width: 768px) {
            .logo-desktop {
                display: none;
            }
            
            .logo-mobile {
                display: block;
            }
            
            .top-bar-links .link-text {
                display: none;
            }
            
            .top-bar-email span {
                display: none;
            }
            
            .top-bar-menu-btn {

                width: 90px;

                padding: 0.3rem 0.5rem;
            }
            
            .demo-content {
                padding: 1rem;
            }
            
            h1 {
                font-size: 1.5rem;
            }
        }

        @media (max-width: 576px) {
            .top-bar-links.menu-left,
            .top-bar-links.logo-right {
                gap: 0.4rem;
            }
            
            .top-bar-link {
                padding: 0.3rem 0.5rem;
            }
            
            .info-tooltip {
                width: 220px;
            }
            
            .top-menu-panel {
                width: 85%;
            }
        }
/* === TOP NAVIGATION BAR --ENDS-- === */




        /* Main Content Area - Always fits available space */
        .content {
            position: absolute;
            top: 3rem; /* ←←← ADD THIS LINE */

            left: 0;
            right: 0;

            bottom: 0; 
            /* padding: 30px; */
            overflow-y: auto;
            transition: all 0.3s ease;
            z-index: 1;
        }
        /* When both panels are visible on desktop */
        .content.both-panels {
            left: 340px;
            right: 340px;
        }
        /* When only left panel is visible */
        .content.left-panel-only {
            left: 340px;
            right: 0;
        }
        /* When only right panel is visible */
        .content.right-panel-only {
            left: 0;
            right: 340px;
        }
        h1 {
            margin-bottom: 20px;
            color: #2c3e50;
        }
        p {
            line-height: 1.6;
            margin-bottom: 15px;
        }
		
		
		/* Adjust panels to start below top bar */
.panel,
.detail-panel {
    top: 3rem; /* ← below top bar */
    height: calc(100vh - 3rem); /* ← full height minus top bar */
}
		
		
		
        /* Panel Styles */
        .panel {
            position: fixed;
            right: 0;
            /* top: 0; */
            /* height: 100%; */ /* height: 100vh; */ 
			/* max-height: 100vh; */
            width: 340px;
            background: white;
            box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            z-index: 5;
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        .panel.left {
            right: auto;
            left: 0;
            box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
            transform: translateX(0);
        }
        .toolbar {
/*
            padding: 15px;
*/
            background: rgba(230, 230, 230, 0.1);
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #2980b9;
            flex-shrink: 0;
            transition: all 0.3s ease;
        }
        .cards-container {
            flex: 1;
            overflow: hidden;
            position: relative;
            display: flex;
            -webkit-overflow-scrolling: touch;
        }
        .cards-scroll {
            display: flex;
            height: 100%;
            transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        /* Detail Panel Styles */
        .detail-panel {
            position: fixed;
            width: 340px;
            /* height: 100vh; */
            background: white;
            box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
            z-index: 1001;
            display: none;
            flex-direction: column;
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            opacity: 0;
            transform: translateX(100%);
        }
        .detail-panel.left {
            left: 0;
            right: auto;
            box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
            transform: translateX(-100%);
        }
        .detail-panel.right {
            right: 0;
            left: auto;
            transform: translateX(100%);
        }
        .detail-panel.active {
            opacity: 1;
            transform: translateX(0);
        }
        .detail-panel.fullscreen {
            width: 100%;
            height: 100vh;
            z-index: 1002;
            transform: none;
        }
        /* Modal Mode for Details Panel */
        .modal-mode .detail-panel {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.9);
            width: 90%;
            max-width: 700px;
            height: 80%;
            max-height: 600px;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            z-index: 2001;
            display: none;
            opacity: 0;
            transition: all 0.3s ease;
        }
        .modal-mode .detail-panel.active {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
        .modal-mode .detail-panel.fullscreen {
            width: 90%;
            height: 80%;
            max-width: 700px;
            max-height: 600px;
            border-radius: 12px;
        }
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .modal-overlay.active {
            opacity: 1;
        }
        .detail-toolbar {
            padding: 15px;
            background: #3498db;
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #2980b9;
            flex-shrink: 0;
            border-radius: 12px 12px 0 0;
        }
        .detail-content {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
        }
        .detail-header {
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        .detail-body {
            line-height: 1.6;
            flex: 1;
        }
        .detail-body p {
            margin-bottom: 15px;
        }
        /* Full-width close button */
        .detail-close-bottom {
            display: none;
            width: 100%;
            padding: 15px;
            background: #e74c3c;
            color: white;
            border: none;
            font-size: 1rem;
            cursor: pointer;
            text-align: center;
            transition: background 0.3s;
            flex-shrink: 0;
            border-radius: 0 0 12px 12px;
        }
        .detail-close-bottom:hover {
            background: #c0392b;
        }
        /* Desktop/Landscape Mode */
        @media (min-width: 768px) and (orientation: landscape) {
		
		
		
		
		
            .cards-scroll {
                flex-direction: column;
                width: 100%;
                height: max-content;
                padding: 15px;
                gap: 15px;
            }
            .card {
                min-height: 50px;
                width: 100%;
                padding: 20px;
                transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                            box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
                touch-action: pan-y;
                /* Suppress system tap highlight globally */
                -webkit-tap-highlight-color: transparent;
                outline: none;
            }
            .cards-container {
                overflow-y: auto;
                overflow-x: hidden;
            }
            .detail-panel {
                /* top: 0;  */
            }
            /* FIX: Remove active blue highlight in landscape */
            .card.active {
                border: none;
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            }
        }
        /* Mobile/Portrait Mode */
        @media (max-width: 767px), (orientation: portrait) {
		
		

		
		
            .panel {
                width: 100%;
                height: 28vh; /* 35vh -- PANEL !!! original !!! */
                top: auto;
                bottom: 0;
                left: 0;
                right: 0;
                border-radius: 12px 12px 0 0;
                transform: translateY(100%);
            }
            .panel.active {
                transform: translateY(0);
            }
            .panel.top {
                bottom: auto;
                top: 0;
                border-radius: 0 0 12px 12px;
                transform: translateY(-100%);
            }
            .panel.top.active {
                transform: translateY(0);
            }
            .toolbar {
                order: 2;
/*
                border-top: 1px solid #2980b9;
*/
                border-bottom: none;
                padding: 10px 15px;
            }
            .cards-container {
                order: 1;
                overflow-x: auto;
                overflow-y: hidden;
/*
                scroll-snap-type: x mandatory;
*/
                scroll-behavior: smooth;
                -webkit-overflow-scrolling: touch;
                width: 100%;
            }
            .cards-scroll {
                flex-direction: row;
                height: 100%;
                padding: 1px; /* Portrait ... style */
                gap: 1px;
                align-items: center;
                width: max-content;
                min-width: 100%;
            }
            .card {
                width: 45vw; /* was: 65vw */
                height: 90%;
                border-radius: 8px;
                padding: 15px;
                transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
                margin: 0;
                flex-shrink: 0;
                -webkit-tap-highlight-color: transparent;
                touch-action: pan-x;
                scroll-snap-align: center;
            }
            .card:not(.active) {
                opacity: 0.9;
                transform: scale(1);
                filter: brightness(1);
            }
            .card.active {
                opacity: 1;
                transform: scale(0.95);
                filter: brightness(1);
                z-index: 2;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
                border: 2px solid #3498db;
            }
            .content {
                bottom: 28vh; /* 35vh */
            }
            .content.full-height {
                bottom: 0;
            }
            .detail-panel {
                width: 100%;
                height: 100vh;
                z-index: 1002;
            }
            .detail-panel.fullscreen {
                width: 100%;
            }
            .detail-panel.mobile-bottom {
                bottom: 0;
                top: auto;
                border-radius: 12px 12px 0 0;
                transform: translateY(100%);
            }
            .detail-panel.mobile-bottom.active {
                transform: translateY(0);
            }
            .detail-panel.mobile-top {
                top: 0;
                bottom: auto;
                border-radius: 0 0 12px 12px;
                transform: translateY(-100%);
            }
            .detail-panel.mobile-top.active {
                transform: translateY(0);
            }
            .detail-close-bottom {
                display: block;
            }
            .show-details-btn {
                padding: 10px 15px;
                font-size: 0.9rem;
                bottom: 15px;
                right: 15px;
            }
        }
        
        
         .cards_header {
			border-left: 3px solid #910000;
            background: white;
/*
            border-radius: 10px;
*/
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: center;
            flex-shrink: 0;
            margin: 0;
            position: relative;
            overflow: hidden;
            /* Suppress system tap highlight globally */
            -webkit-tap-highlight-color: transparent;
            outline: none;
        }
        .cards_header span {
/*
			background:ivory;
*/
			font-size:1.5rem;
			padding-left: 1rem;
			padding-right: 1rem;
			}
        
        
        /* Card Styles */
        .card {
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            justify-content: center;
            flex-shrink: 0;
            margin: 0;
            position: relative;
            overflow: hidden;
            /* Suppress system tap highlight globally */
            -webkit-tap-highlight-color: transparent;
            outline: none;
        }
        .card:focus,
        .card:active {
            outline: none !important;
        }
        .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }
        
        /* Card Colors 
        .card:nth-child(1) { background: #e74c3c; color: white; }
        .card:nth-child(2) { background: #2ecc71; color: white; }
        .card:nth-child(3) { background: #f39c12; color: white; }
        .card:nth-child(4) { background: #9b59b6; color: white; }
        .card:nth-child(5) { background: #1abc9c; color: white; }
        .card:nth-child(6) { background: #34495e; color: white; }
        .card:nth-child(7) { background: #e67e22; color: white; }
        .card:nth-child(8) { background: #16a085; color: white; }
        */
        
        .card h3 {
            margin-bottom: 10px;
            font-size: 1.2rem;
        }
        .card p {
            font-size: 0.9rem;
            opacity: 0.9;
            margin-bottom: 0;
        }
        /* Show Details Button */
        .show-details-btn {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background: rgba(255, 255, 255, 0.9);
            color: #333;
            border: none;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.8rem;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.3s ease;
            z-index: 10;
            -webkit-tap-highlight-color: transparent;
        }
        .card.active .show-details-btn {
            opacity: 1;
            transform: translateY(0);
        }
        .show-details-btn:hover {
            background: white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        .show-details-btn.close-mode {
            background: #e74c3c;
            color: white;
        }
        .show-details-btn.close-mode:hover {
            background: #c0392b;
        }
        
        .minimize-btn {
        background: #aeaeae !important;
        left: -15px;
        border-radius: 0px !important;
        }
        .arrow-btn {
            font-size: 2rem;
            line-height: 0;
        }
        
        .arrow-btn svg {
         width: 2rem; height: 2rem; }
        
        /* Button Styles */
        .btn {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 65px !important;
/*
            border: 1px solid gray;
*/
            color: #b50006;
            padding: 12px 12px;
            border-radius: 4px;
            cursor: pointer;
            transition: background 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s 
cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-5px);
        }
        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .btn-group {
            display: flex;
            gap: 8px;
            opacity: 0.8;
        }
        .nav-btn {
            font-weight: bold;
            min-width: 36px;
        }
        .panel.collapsed {
            width: 60px;
            height: 100vh;
        }
        .panel.collapsed .cards-container {
            display: none;
        }
        .panel.collapsed .toolbar {
            flex-direction: column;
            height: 100%;
            justify-content: flex-start;
            padding: 15px 10px;
            border-bottom: none;
        }
        .panel.collapsed .btn-group {
            flex-direction: column;
        }
        .panel.collapsed .btn-group:first-child {
            order: 1;
        }
        .panel.collapsed .btn-group:nth-child(2) {
            order: 2;
        }
        .panel.collapsed .btn-group:last-child {
            order: 3;
            margin-top: 20px;
            margin-bottom: 20px;
        }
        @media (max-width: 767px), (orientation: portrait) {
            .panel.collapsed {
                width: 100%;
                height: 50px;
            }
            .panel.collapsed .toolbar {
                flex-direction: row;
                height: 100%;
                justify-content: space-between;
                padding: 8px 15px;
            }
            .panel.collapsed .btn-group {
                flex-direction: row;
            }
            .panel.collapsed .btn-group:last-child {
                margin-top: 0;
                margin-bottom: 0;
            }
        }
        .demo-controls {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 20px;
        }
        .demo-btn {
            background: #3498db;
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 4px;
            cursor: pointer;
            transition: background 0.3s;
        }
        .demo-btn:hover {
            background: #2980b9;
        }
        .cards-container::-webkit-scrollbar,
        .detail-content::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        .cards-container::-webkit-scrollbar-track,
        .detail-content::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }
        .cards-container::-webkit-scrollbar-thumb,
        .detail-content::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 4px;
        }
        .cards-container::-webkit-scrollbar-thumb:hover,
        .detail-content::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1001;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .overlay.active {
            opacity: 1;
        }
        .slide-in-left {
            animation: slideInLeft 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        }
        .slide-in-right {
            animation: slideInRight 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        }
        .slide-in-bottom {
            animation: slideInBottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        }
        .slide-in-top {
            animation: slideInTop 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        }
        .fade-in {
            animation: fadeIn 0.3s ease forwards;
        }
        @keyframes slideInLeft {
            from { transform: translateX(-100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        @keyframes slideInRight {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        @keyframes slideInBottom {
            from { transform: translateY(100%); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        @keyframes slideInTop {
            from { transform: translateY(-100%); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .close-btn {
			display:none !important;
            position: absolute;
            top: 10px;
            right: 10px;
            background: transparent;
            border: none;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            z-index: 10;
            transition: transform 0.3s ease;
        }
        .close-btn:hover {
            transform: scale(1.2);
        }
        .card-transition-enter {
            opacity: 0;
            transform: translateY(20px);
        }
        .card-transition-enter-active {
            opacity: 1;
            transform: translateY(0);
            transition: opacity 0.5s, transform 0.5s;
        }
        .card-transition-exit {
            opacity: 1;
            transform: translateY(0);
        }
        .card-transition-exit-active {
            opacity: 0;
            transform: translateY(-20px);
            transition: opacity 0.5s, transform 0.5s;
        }
        @media (max-width: 767px), (orientation: portrait) {
            .card {
                -webkit-user-select: none;
                -moz-user-select: none;
                -ms-user-select: none;
                user-select: none;
            }
            .show-details-btn {
                opacity: 1 !important;
                transform: translateY(0) !important;
                pointer-events: auto;
            }
        }

        /* FIX (3): Ensure bottom toolbar is visible on mobile landscape */
        @media (min-width: 768px) and (max-height: 500px) {
            .toolbar {
                position: relative;
                z-index: 1001;
            }
        }
