/* Extracted from trangchu.blade.php style blocks */

        /* Custom styles for QB Macro */
        .bg-dark {
            background-color: #1a1a1a;
        }

        .bg-light-dark {
            background-color: #2a2a2a;
        }

        /* Button hover effect */
        .vip-button {
            background-color: #7c3aed;
            transition: all 0.3s ease;
        }

        .vip-button:hover {
            background-color: #6d28d9;
            transform: translateY(-2px);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        /* Navigation */
        .nav-container {
            max-width: 80rem;
            margin-left: auto;
            margin-right: auto;
            padding-left: 1rem;
            padding-right: 1rem;
        }

        .nav-flex {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 4rem;
            height: auto;
            padding: 0.5rem 0;
        }

        .nav-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .nav-buttons {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .nav-buttons a,
        .nav-buttons button {
            text-decoration: none;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        /* Responsive adjustments */
        @media (max-width: 640px) {
            .nav-flex {
                padding: 0.5rem 0;
            }

            .nav-content {
                gap: 0.5rem;
            }

            .nav-buttons {
                gap: 0.5rem;
            }

            .nav-buttons a,
            .nav-buttons button {
                font-size: 0.875rem;
                padding: 0.5rem 0.75rem;
            }
        }

        /* Mobile Menu Styles */
        #mobileMenu {
            transition: all 0.3s ease-in-out;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            display: none;
        }

        #mobileMenu.show {
            max-height: min(80vh, 900px);
            overflow-y: auto;
            opacity: 1;
            display: block;
        }

        /* Force mobile menu visibility */
        @media (max-width: 1023px) {
            #mobileMenu.lg\\:hidden {
                display: none;
            }
            
            #mobileMenu.lg\\:hidden.show {
                display: block !important;
            }
        }

        #mobileMenu a,
        #mobileMenu button {
            transition: all 0.2s ease;
            border-radius: 0.375rem;
        }

        #mobileMenu a:hover,
        #mobileMenu button:hover {
            background-color: rgba(255, 255, 255, 0.1);
            transform: translateX(5px);
        }

        /* Mobile menu button animation */
        .mobile-menu-button {
            transition: all 0.2s ease;
            background: transparent !important;
            border: none !important;
            outline: none !important;
        }

        .mobile-menu-button:hover {
            transform: scale(1.05);
            background: transparent !important;
            border: none !important;
        }

        .mobile-menu-button:focus {
            outline: none !important;
            box-shadow: none !important;
        }

        /* Force responsive behavior */
        @media (max-width: 1023px) {
            /* Hide all desktop navigation buttons */
            .nav-buttons.hidden.lg\\:flex {
                display: none !important;
                visibility: hidden !important;
                opacity: 0 !important;
                position: absolute !important;
                left: -9999px !important;
            }
            
            /* Hide any other navigation buttons that might be visible */
            .nav-buttons:not(.mobile-menu-container) {
                display: none !important;
                visibility: hidden !important;
                opacity: 0 !important;
            }
            
            /* Show mobile elements */
            .lg\\:hidden {
                display: block !important;
                visibility: visible !important;
                opacity: 1 !important;
            }
            
            /* Ensure mobile menu button is visible */
            .mobile-menu-container {
                display: flex !important;
                width: 100% !important;
                justify-content: center !important;
                visibility: visible !important;
                opacity: 1 !important;
                flex: 1 !important;
            }
            
            /* Make mobile menu button take full width */
            .mobile-menu-container button {
                width: 90% !important;
                max-width: 90% !important;
                background: transparent !important;
                border: none !important;
                outline: none !important;
            }
            
            /* Hide any navigation links that might be showing */
            .nav-content > a,
            .nav-content > button {
                display: none !important;
            }
            
            /* Hide all navigation buttons except mobile menu */
            .nav-buttons {
                display: none !important;
            }
            
            /* Only show mobile menu container */
            .nav-content > .mobile-menu-container,
            .mobile-menu-container {
                display: flex !important;
            }
            
            /* Hide all other navigation elements */
            .nav-content > *:not(.mobile-menu-container) {
                display: none !important;
            }
        }

        @media (min-width: 1024px) {
            /* Hide mobile elements on desktop */
            .lg\\:hidden {
                display: none !important;
                visibility: hidden !important;
                opacity: 0 !important;
            }
            
            /* Show desktop navigation */
            .nav-buttons.hidden.lg\\:flex {
                display: flex !important;
                visibility: visible !important;
                opacity: 1 !important;
                position: static !important;
                left: auto !important;
            }
            
            /* Hide mobile menu button on desktop */
            .mobile-menu-container {
                display: none !important;
                visibility: hidden !important;
                opacity: 0 !important;
            }
        }

        @media (min-width: 641px) {
            .nav-flex {
                padding: 0.75rem 0;
            }

            .nav-content {
                gap: 0.75rem;
            }

            .nav-buttons {
                gap: 0.75rem;
            }

            .nav-buttons a,
            .nav-buttons button {
                font-size: 0.875rem;
                padding: 0.5rem 1rem;
            }
        }

        /* Hero Section */
        .hero-section {
            position: relative;
            overflow: hidden;
            padding-top: 0.5rem;
            margin-top: 0;
        }

        .hero-wrapper {
            position: relative;
            z-index: 10;
            padding-bottom: 1rem;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: flex-start;
            max-width: 80rem;
            margin: 0 auto;
            padding: 2rem 1rem;
            gap: 1rem;
        }

      
        .hero-content {
            flex: 1;
            max-width: 100%;
        }

        .hero-title {
            font-size: 1.875rem;
            line-height: 1.2;
            font-weight: 800;
            color: white;
            letter-spacing: -0.025em;
        }

        @media (min-width: 640px) {
            .hero-title {
                font-size: 2.25rem;
            }
        }

        @media (min-width: 768px) {
            .hero-title {
                font-size: 2.5rem;
            }
        }

        @media (min-width: 1024px) {
            .hero-title {
                font-size: 3rem;
            }
        }

        @media (min-width: 1280px) {
            .hero-title {
                font-size: 3.5rem;
            }
        }

        .hero-title span {
            display: block;
            color: #818cf8;
        }

        .hero-subtitle {
            flex: 1;
            max-width: 100%;
            margin-top: 0;
            font-size: 1rem;
            color: #d1d5db;
            padding-left: 0;
            line-height: 1.5;
            width: 100%;
            white-space: normal;
            word-wrap: break-word;
        }

        @media (min-width: 768px) {
            .hero-wrapper {
                flex-direction: row;
                align-items: flex-start;
                justify-content: space-between;
                gap: 2rem;
            }
            .hero-content {
                max-width: 50%;
            }
            .hero-subtitle {
                max-width: 50%;
                margin-top: 2rem;
                padding-left: 2rem;
            }
        }

        @media (min-width: 640px) {
            .hero-subtitle {
                font-size: 1.125rem;
                line-height: 1.6;
                margin-top: 2.5rem;
            }
        }

        @media (min-width: 768px) {
            .hero-subtitle {
                font-size: 1.25rem;
                line-height: 1.6;
                margin-top: 3rem;
            }
        }

        @media (min-width: 1024px) {
            .hero-subtitle {
                font-size: 1.375rem;
                line-height: 1.6;
                max-width: 45%;
                margin-top: 3.5rem;
            }
        }

        /* Product Card Styles */
        .product-card {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
            transition: all 0.3s ease;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
        }

        .product-card.expanded {
            width: 200%;
        }

        .product-card:not(.expanded):not(.no-hover):hover {
            transform: scale(1.05);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
        }

        .product-panel {
            width: 100%;
            height: 100%;
            transition: all 0.3s ease;
        }

        .product-detail-panel {
            width: 100%;
            height: 100%;
            background: inherit;
            backdrop-filter: blur(10px);
            position: absolute;
            right: 0;
            top: 0;
            transform-origin: right;
            transform: scaleX(0);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 1rem;
            border-left: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0;
            visibility: hidden;
            z-index: 2;
            overflow-y: auto;
        }

        .product-detail-panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
            z-index: -1;
        }

        .product-detail-panel.active {
            transform: scaleX(1);
            opacity: 1;
            visibility: visible;
        }

        .product-detail-panel.closing {
            transform: scaleX(0);
            opacity: 0;
            visibility: hidden;
        }

        .panel-header {
            position: relative;
            display: flex;
            align-items: center;
            margin-bottom: 0.75rem;
            padding: 0.125rem 0;
        }

        .close-panel-button {
            position: relative;
            color: white;
            cursor: pointer;
            padding: 0.25rem;
            transition: transform 0.3s ease;
            z-index: 10;
            margin-right: 0.75rem;
        }

        .close-panel-button:hover {
            transform: translateX(-5px);
        }

        .close-panel-button svg {
            width: 1.5rem;
            height: 1.5rem;
        }

        .panel-title {
            flex: 1;
            text-align: center;
            color: white;
            font-size: 1.125rem;
            font-weight: 600;
            margin: 0;
        }

        /* Detail Popup */
        .detail-popup {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 50;
        }

        .detail-popup.active {
            display: flex;
        }

        .detail-popup-content {
            width: 90%;
            max-width: 800px;
            height: 80vh;
            background: #1a1a1a;
            border-radius: 1rem;
            overflow: hidden;
            position: relative;
        }

        .product-card[data-color] {
            background: linear-gradient(145deg, var(--color-start), var(--color-end));
        }

        .product-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            object-position: center;
            border-radius: 20px 20px 0 0;
        }

        .w-full.h-48.relative.cursor-pointer.overflow-hidden {
            height: 180px;
            overflow: hidden;
        }

        .w-full.h-48.relative.cursor-pointer.overflow-hidden img {
            object-fit: cover;
            object-position: center;
            transform: scale(1.4);
            height: 100%;
            width: 100%;
        }

        .product-content {
            padding: 20px;
            border-radius: 0 0 20px 20px;
            transition: background 0.3s ease;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .product-info {
            flex: 1;
            margin-bottom: 1rem;
            display: flex;
            flex-direction: column;
            min-height: 140px;
        }

        .product-description {
            height: 4.5rem;
            overflow-y: auto;
            color: #e5e7eb;
            font-size: 0.875rem;
            line-height: 1.5rem;
            padding-right: 0.5rem;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
        }

        /* Tùy chỉnh thanh cuộn cho Chrome */
        .product-description::-webkit-scrollbar {
            width: 4px;
        }

        .product-description::-webkit-scrollbar-track {
            background: transparent;
        }

        .product-description::-webkit-scrollbar-thumb {
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
        }

        .product-actions {
            padding-top: 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: auto;
        }

        .product-actions .flex {
            gap: 1rem;
        }

        .product-card:hover .product-content {
            filter: brightness(1.1);
        }

        .product-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: white;
            margin-bottom: 0.5rem;
        }

        .product-date {
            color: #9ca3af;
            font-size: 0.875rem;
            margin-bottom: 0.75rem;
        }

        .product-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .product-button {
            background-color: #4f46e5;
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            font-size: 0.875rem;
            transition: background-color 0.2s;
        }

        .product-button:hover {
            background-color: #4338ca;
        }

        .product-style {
            color: #9ca3af;
            font-size: 0.875rem;
        }

        /* Status Badge */
        .status-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            backdrop-filter: blur(5px);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .status-maintenance {
            background-color: #fff7ed;
            color: #c2410c;
        }

        .status-development {
            background-color: #f5f3ff;
            color: #6d28d9;
        }

        .download-button {
            flex: 1;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            font-size: 0.875rem;
            transition: all 0.3s ease;
            text-align: center;
            cursor: pointer;
        }

        .download-button.active {
            background-color: #057a55;
            color: white;
        }

        .download-button.active:hover {
            background-color: #065f46;
        }

        .download-button.maintenance {
            background-color: #f97316;
            color: white;
            cursor: not-allowed;
        }

        .download-button.development {
            background-color: #6d28d9;
            color: white;
            cursor: not-allowed;
        }

        /* Swiper Styles */
        .swiper {
            width: 100%;
            padding-top: 50px;
            padding-bottom: 50px;
            perspective: 1000px;
        }

        .swiper-slide {
            width: 300px;
            height: 440px;
            position: relative;
            transition: all 0.3s ease;
            transform-style: preserve-3d;
        }

        .swiper-slide:hover {
            z-index: 10;
            filter: brightness(1) !important;
        }

        .swiper-slide:not(.swiper-slide-active):not(:hover) {
            filter: brightness(0.5);
        }

        .swiper-slide-active {
            filter: brightness(1) !important;
            z-index: 5;
            transform: scale(1.1);
        }

        .swiper-slide-active:hover {
            transform: scale(1.1);
        }

        .swiper-pagination {
            bottom: 0 !important;
        }

        .swiper-pagination-bullet {
            width: 10px;
            height: 10px;
            background: #4f46e5;
            opacity: 0.5;
        }

        .swiper-pagination-bullet-active {
            opacity: 1;
            background: #4f46e5;
        }

        /* Video Popup */
        .video-popup {
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.75);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }

        .video-popup.active {
            display: flex;
        }

        .video-container {
            position: relative;
            width: 100%;
            max-width: 64rem;
            margin: 0 1rem;
            min-width: 0;
            border-radius: 1rem;
            overflow: hidden;
        }

        .video-popup-panel {
            min-width: 0;
            width: 100%;
        }

        .mobile-menu-inner {
            width: 90%;
            margin: 0 auto;
        }

        .video-close {
            position: absolute;
            top: -2.5rem;
            right: 0;
            color: white;
            cursor: pointer;
            transition: color 0.2s;
        }

        .video-close:hover {
            color: #d1d5db;
        }

        .video-wrapper {
            position: relative;
            width: 100%;
            padding-top: 56.25%;
            border-radius: 1rem;
            overflow: hidden;
        }

        .video-iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 1rem;
        }

        /* Play Button */
        .play-button {
            width: 3.5rem;
            height: 3.5rem;
            background-color: #dc2626;
            border-radius: 9999px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .play-button:hover {
            transform: scale(1.1);
            background-color: #b91c1c;
            box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
        }

        .play-icon {
            width: 1.75rem;
            height: 1.75rem;
            color: white;
        }

        /* Features Section */
        .features-container {
            max-width: 80rem;
            margin-left: auto;
            margin-right: auto;
            padding: 3rem 1rem;
        }

        .features-title {
            font-size: 1.875rem;
            font-weight: 700;
            color: white;
            margin-bottom: 2rem;
        }

        .features-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        @media (min-width: 768px) {
            .features-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .feature-card {
            background-color: #1a1a1a;
            border-radius: 0.5rem;
            padding: 1.5rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .feature-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: white;
            margin-bottom: 1rem;
        }

        .feature-description {
            color: #d1d5db;
            margin-bottom: 1rem;
        }

        .feature-list {
            list-style-type: disc;
            list-style-position: inside;
            color: #d1d5db;
        }

        .feature-list li {
            margin-bottom: 0.5rem;
        }

        /* Thêm style cho nút Xem chi tiết */
        .detail-button {
            transform: scale(1);
            transition: transform 0.3s ease;
        }

        .detail-button:hover {
            transform: scale(1.05);
        }

        .detail-content {
            display: flex;
            gap: 1rem;
            height: calc(100% - 3rem);
        }

        .detail-panel {
            flex: 1;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 0.5rem;
            padding: 1rem;
            overflow-y: auto;
        }

        .detail-panel h4 {
            color: white;
            font-size: 1.125rem;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .detail-info {
            color: #e5e7eb;
            font-size: 0.875rem;
            line-height: 1.5;
        }

        .detail-info p,
        .detail-text,
        .product-description,
        .version-description {
            margin-bottom: 0.75rem;
            white-space: pre-line;
            word-break: break-word;
            overflow-wrap: break-word;
        }

        .detail-text br,
        .product-description br,
        .version-description br {
            display: block;
            content: "";
            margin-top: 0.35em;
        }

        .detail-info strong {
            color: white;
            font-weight: 600;
        }

        .requirements-list {
            list-style-type: disc;
            list-style-position: inside;
            color: #e5e7eb;
            margin-bottom: 0.75rem;
            padding-left: 1rem;
        }

        .requirements-list li {
            margin-bottom: 0.5rem;
            line-height: 1.5;
        }

        .requirements-list li:last-child {
            margin-bottom: 0;
        }

        .version-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .version-item {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 0.5rem;
            padding: 1rem;
        }

        .version-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
        }

        .version-number {
            color: white;
            font-weight: 600;
        }

        .version-date {
            color: #9ca3af;
            font-size: 0.875rem;
        }

        .version-description {
            color: #e5e7eb;
            font-size: 0.875rem;
            margin-bottom: 0.75rem;
        }

        .version-download {
            color: #60a5fa;
            text-decoration: none;
            font-size: 0.875rem;
            transition: color 0.2s;
            font-weight: 500;
        }

        .version-download:hover {
            color: #93c5fd;
        }

        .detail-tabs {
            display: none;
            margin-top: 1rem;
        }

        .tab-buttons {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .tab-button {
            padding: 0.5rem 1rem;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 0.5rem;
            color: white;
            cursor: pointer;
            transition: background 0.2s;
        }

        .tab-button.active {
            background: rgba(255, 255, 255, 0.2);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        @media (max-width: 1024px) {
            .detail-content {
                display: none;
            }

            .detail-tabs {
                display: block;
            }

            .detail-panel {
                display: none;
            }
        }

        /* Product Manager Styles */
        .product-manager-item {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 0.5rem;
            padding: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid transparent;
        }

        .product-manager-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .product-manager-item.active {
            background: rgba(79, 70, 229, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .product-manager-item.status-active {
            background: rgba(34, 197, 94, 0.1);
        }

        .product-manager-item.status-maintenance {
            background: rgba(249, 115, 22, 0.1);
        }

        .product-manager-item.status-development {
            background: rgba(168, 85, 247, 0.1);
        }

        .product-manager-item.status-inactive {
            background: rgba(107, 114, 128, 0.1);
        }

        .product-preview {
            width: 300px;
            height: 440px;
            position: relative;
            transform-style: preserve-3d;
            transition: all 0.3s ease;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .version-item {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 0.5rem;
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .version-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        /* Custom scrollbar styles */
        .overflow-y-auto::-webkit-scrollbar {
            width: 8px;
        }

        .overflow-y-auto::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }

        .overflow-y-auto::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
        }

        .overflow-y-auto::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        /* Ensure sticky headers stay on top */
        .sticky {
            position: sticky;
            top: 0;
            z-index: 10;
        }

        /* Smooth scrolling */
        .overflow-y-auto {
            scroll-behavior: smooth;
        }

        /* Thêm vào phần style */
        #customAlert {
            transform: translateX(100%);
            opacity: 0;
            transition: all 0.3s ease-in-out;
        }

        #customAlert.show {
            transform: translateX(0);
            opacity: 1;
        }

        #customAlert.success {
            border-left: 4px solid #10B981;
        }

        #customAlert.error {
            border-left: 4px solid #EF4444;
        }

        #customAlert.warning {
            border-left: 4px solid #F59E0B;
        }

        #customAlert.info {
            border-left: 4px solid #3B82F6;
        }

        /* Thêm vào phần style */
        #deleteConfirmPopup {
            display: none;
        }

        #deleteConfirmPopup.show {
            display: flex;
        }

        #deleteConfirmPopup .bg-white {
            transform: translateY(-100%);
            transition: transform 0.3s ease-out;
        }

        #deleteConfirmPopup.show .bg-white {
            transform: translateY(0);
        }

        #deleteMessage {
            display: none;
        }

        #deleteMessage.show {
            display: block;
            animation: slideDown 0.3s ease-out;
        }

        @keyframes slideDown {
            from {
                transform: translate(-50%, -100%);
            }

            to {
                transform: translate(-50%, 0);
            }
        }

        .version-number {
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .text-gray-500 {
            color: #6B7280;
        }

        .text-green-500 {
            color: #10B981;
        }

        .text-orange-500 {
            color: #F97316;
        }

        .text-red-500 {
            color: #EF4444;
        }

        .version-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 0.5rem;
        }

        .version-detail-btn {
            background-color: #4B5563;
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 0.375rem;
            font-size: 0.875rem;
            transition: background-color 0.2s;
        }

        .version-detail-btn:hover {
            background-color: #374151;
        }

        .version-download {
            background-color: #4B5563;
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 0.375rem;
            font-size: 0.875rem;
            transition: all 0.2s;
            text-decoration: none;
            display: inline-block;
        }

        .version-download:hover:not(.disabled) {
            background-color: #374151;
        }

        .version-download.disabled {
            background-color: #374151;
            opacity: 0.5;
            cursor: not-allowed;
        }

            /* Thêm vào phần style */
            #customAlert {
                transform: translateX(100%);
                opacity: 0;
                transition: all 0.3s ease-in-out;
            }

            #customAlert.show {
                transform: translateX(0);
                opacity: 1;
            }

            #customAlert.success {
                border-left: 4px solid #10B981;
            }

            #customAlert.error {
                border-left: 4px solid #EF4444;
            }

            #customAlert.warning {
                border-left: 4px solid #F59E0B;
            }

            #customAlert.info {
                border-left: 4px solid #3B82F6;
            }

            /* Thêm vào phần style */
            #deleteConfirmPopup {
                display: none;
            }

            #deleteConfirmPopup.show {
                display: flex;
            }

            #deleteConfirmPopup .bg-white {
                transform: translateY(-100%);
                transition: transform 0.3s ease-out;
            }

            #deleteConfirmPopup.show .bg-white {
                transform: translateY(0);
            }

            #deleteMessage {
                display: none;
            }

            #deleteMessage.show {
                display: block;
                animation: slideDown 0.3s ease-out;
            }

            @keyframes slideDown {
                from {
                    transform: translate(-50%, -100%);
                }

                to {
                    transform: translate(-50%, 0);
                }
            }

/* Product detail page /san-pham */
.sp-page {
    min-height: calc(100vh - 4rem);
    background: #1a1a1a;
}
.sp-hero {
    position: relative;
    padding: 2.5rem 0 2rem;
}
.sp-hero-inner { position: relative; z-index: 1; }
.sp-latest-link {
    color: #a5b4fc;
    text-decoration: none;
    font-weight: 600;
}
.sp-latest-link:hover {
    color: #c7d2fe;
    text-decoration: underline;
}
.sp-breadcrumb {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1.25rem;
}
.sp-breadcrumb a { color: #a5b4fc; text-decoration: none; }
.sp-breadcrumb a:hover { color: #c7d2fe; text-decoration: underline; }
.sp-hero-grid {
    display: grid;
    gap: 1.75rem;
    align-items: start;
}
@media (min-width: 900px) {
    .sp-hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 2.5rem;
        align-items: center;
    }
}
.sp-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}
.sp-badge-active { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
.sp-badge-maintenance { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.sp-badge-dev { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.sp-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 0.6rem;
}
.sp-subtitle {
    color: #d1d5db;
    font-size: 0.95rem;
    margin: 0 0 1rem;
}
.sp-lead {
    color: #e5e7eb;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}
.sp-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 0.65rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.sp-btn-primary {
    background: #4f46e5;
    color: #fff;
}
.sp-btn-primary:hover { background: #4338ca; color: #fff; }
.sp-btn-ghost {
    color: #e5e7eb;
    border: none;
    background: rgba(75, 85, 99, 0.15);
}
.sp-btn-ghost:hover { background: rgba(38, 38, 38, 0.95); color: #fff; }
.sp-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    background: #111;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
.sp-video-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.sp-video-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sp-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease;
}
.sp-card .detail-info {
    padding: 0.35rem 0.5rem 0.75rem;
}
.sp-video:hover .sp-video-overlay { background: rgba(0, 0, 0, 0.5); }
.sp-video-label {
    color: #f3f4f6;
    font-size: 0.9rem;
    font-weight: 600;
}
.sp-sections { display: grid; gap: 1.5rem; }
.sp-card {
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, color-mix(in srgb, var(--sp-c1) 35%, transparent), transparent 70%),
        linear-gradient(145deg, color-mix(in srgb, var(--sp-c1) 22%, #1a1a1a), color-mix(in srgb, var(--sp-c2) 18%, #121212) 55%, #1a1a1a);
    border: none;
    border-radius: 1rem;
    padding: 1.5rem 1.35rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
@media (min-width: 640px) {
    .sp-card { padding: 1.75rem 1.75rem; }
}
.sp-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
}
.sp-versions .version-list { margin: 0; }
