 @media (min-width: 640px) {
            .container {
                padding-left: 1.5rem;
                padding-right: 1.5rem;
            }
        }

        @media (min-width: 1024px) {
            .container {
                padding-left: 2rem;
                padding-right: 2rem;
            }
        }

        .flex-grow {
            flex-grow: 1;
        }

        /* --- STATS GRID --- */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1rem;
            margin-bottom: 3rem;
        }

        @media (max-width: 480px) {
            .stats-grid {
                gap: 0.75rem;
            }
        }

        @media (min-width: 1024px) {
            .stats-grid {
                grid-template-columns: repeat(4, minmax(0, 1fr));
                gap: 1.5rem;
            }
        }

        .stat-card {
            background-color: white;
            padding: 1.25rem 1.5rem;
            border-radius: 1.25rem;
            border: 1px solid rgba(226, 232, 240, 0.8);
            box-shadow: 0 4px 20px -2px rgba(148, 163, 184, 0.06);
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        @media (max-width: 480px) {
            .stat-card {
                padding: 1rem;
                gap: 0.75rem;
            }
            .stat-icon-wrapper {
                width: 2.75rem !important;
                height: 2.75rem !important;
                border-radius: 0.75rem !important;
            }
            .stat-number {
                font-size: 1.25rem !important;
            }
            .stat-label {
                font-size: 0.6875rem !important;
            }
        }

        .stat-icon-wrapper {
            width: 3rem;
            height: 3rem;
            border-radius: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .stat-icon-wrapper svg {
            width: 1.5rem;
            height: 1.5rem;
        }

        .stat-bg-primary {
            background-color: #fff7ed;
            color: #f97316;
        }

        .stat-bg-secondary {
            background-color: #f0fdf4;
            color: #16a34a;
        }

        .stat-bg-amber {
            background-color: #fef3c7;
            color: #d97706;
        }

        .stat-bg-blue {
            background-color: #eff6ff;
            color: #2563eb;
        }

        .stat-number {
            display: block;
            font-size: 1.5rem;
            font-weight: 700;
            color: #0f172a;
            line-height: 1.2;
        }

        .stat-label {
            font-size: 0.75rem;
            font-weight: 600;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* --- DOCUMENTS GRID --- */
        .documents-grid {
            display: grid;
            grid-template-columns: repeat(1, minmax(0, 1fr));
            gap: 1.5rem;
        }

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

        @media (min-width: 1024px) {
            .documents-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }

        /* --- DOCUMENT CARDS --- */
        .doc-card {
            background-color: white;
            border-radius: 1.75rem;
            padding: 10px;
            border: 1px solid rgba(226, 232, 240, 0.7);
            box-shadow: 0 4px 20px -2px rgba(148, 163, 184, 0.06), 0 2px 8px -1px rgba(148, 163, 184, 0.04);
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
        }

        .doc-card:hover {
            box-shadow: 0 20px 25px -5px rgba(148, 163, 184, 0.12), 0 10px 10px -5px rgba(148, 163, 184, 0.06);
            transform: translateY(-6px);
        }

        .popular-badge {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            background-color: #fd0000;
            color: white;
            font-size: 0.625rem;
            font-weight: 800;
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            box-shadow: 0 2px 8 rgba(249, 115, 22, 0.2);
        }

        .popular-badge svg {
            width: 0.6875rem;
            height: 0.6875rem;
            fill: currentColor;
        }

        .doc-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .doc-icon-box {
            width: 3.25rem;
            height: 3.25rem;
            border-radius: 1.125rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .doc-card:hover .doc-icon-box {
            transform: scale(1.08);
        }

        .doc-icon-box svg {
            width: 1.5rem;
            height: 1.5rem;
        }

        .bg-orange-50-custom { 
        background-color: #fff7ed; 
        color: #f97316; 
            
        }
        .bg-emerald-50-custom { background-color: #f0fdf4; color: #16a34a; }
        .bg-blue-50-custom { background-color: #eff6ff; color: #3b82f6; }

        .doc-meta-header span {
            display: block;
        }

        .doc-category-label {
            font-size: 0.75rem;
            font-weight: 700;
            color: #10b981;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .doc-code {
            font-size: 0.6875rem;
            font-weight: 600;
            color: #94a3b8;
            margin-top: 0.125rem;
        }

        .doc-title {
            font-size: 1.125rem;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 0.625rem;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            height: 3.15rem;
            transition: color 0.25s ease;
        }

        .doc-card:hover .doc-title {
            color: #10b981;
        }

        .doc-desc {
            font-size: 0.8125rem;
            color: #64748b;
            margin-bottom: 1.5rem;
            line-height: 1.6;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            height: 3.9rem;
        }

        .doc-specs {
            border-top: 1px solid #f1f5f9;
            background-color: #f8fafc;
            border-radius: 0.75rem;
            padding: 0.875rem 1.25rem;
            margin-bottom: 1.25rem;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .spec-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.8125rem;
            color: #94a3b8;
            font-weight: 500;
        }

        .spec-left {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            color: #64748b;
        }

        .spec-right {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            color: #1e293b;
            font-weight: 600;
        }

        .spec-row svg {
            width: 0.875rem;
            height: 0.875rem;
            color: #94a3b8;
            flex-shrink: 0;
        }

        .btn-group {
            display: flex;
            gap: 0.75rem;
        }

        .btn-secondary {
            flex: 1.2;
            background-color: #f1f5f9;
            color: #334155;
            font-weight: 600;
            font-size: 0.8125rem;
            border: none;
            padding: 0.75rem 1rem;
            border-radius: 9999px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.375rem;
            transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .btn-secondary:hover {
            background-color: #e2e8f0;
        }

        .btn-secondary svg {
            width: 1rem;
            height: 1rem;
            color: #475569;
        }

        .btn-primary {
            flex: 1;
            background-color: #10b981;
            color: white;
            font-weight: 700;
            font-size: 0.8125rem;
            border: none;
            padding: 0.75rem 1rem;
            border-radius: 9999px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.375rem;
            box-shadow: 0 4px 10px rgba(249, 115, 22, 0.15);
            transition: background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.1s ease;
        }

        .btn-primary:hover {
            background-color: #F26522;
            box-shadow: 0 6px 14px rgba(249, 115, 22, 0.25);
        }

        .btn-primary:active {
            transform: scale(0.97);
        }

        .btn-primary svg {
            width: 1rem;
            height: 1rem;
            color: white;
        }

        /* --- EMPTY STATE --- */
        .empty-state {
            text-align: center;
            padding: 4rem 2rem;
            background: #ffffff;
            border: 2px dashed #e2e8f0;
            border-radius: 1.25rem;
            width: 100%;
        }

        .empty-icon {
            width: 4rem;
            height: 4rem;
            background-color: #f8fafc;
            color: #94a3b8;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem auto;
        }

        .empty-icon svg {
            width: 2rem;
            height: 2rem;
        }

        .empty-state h3 {
            font-size: 1.25rem;
            font-weight: 700;
            color: #1e293b;
            margin: 0 0 0.5rem 0;
        }

        .empty-state p {
            font-size: 0.95rem;
            color: #64748b;
            margin: 0;
        }

        /* --- SPECIAL REQUEST BANNER --- */
        .request-banner {
            margin-top: 5rem;
            background: #151e31;
            color: white;
            border-radius: 1.75rem;
            padding: 2rem;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }

        @media (min-width: 768px) {
            .request-banner {
                padding: 3rem;
            }
        }

        .banner-grid {
            display: grid;
            grid-template-columns: repeat(1, minmax(0, 1fr));
            gap: 2rem;
            align-items: center;
            position: relative;
            z-index: 10;
        }

        @media (min-width: 1024px) {
            .banner-grid {
                grid-template-columns: repeat(12, minmax(0, 1fr));
            }
        }

        .banner-text-side {
            grid-column: span 1;
        }

        @media (min-width: 1024px) {
            .banner-text-side {
                grid-column: span 7;
            }
        }

        .banner-tag {
            color: #fb923c;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            display: block;
            margin-bottom: 0.75rem;
        }

        .banner-title {
            font-size: 1.75rem;
            font-weight: 800;
            margin-bottom: 1rem;
            line-height: 1.25;
        }

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

        .banner-desc {
            color: #cbd5e1;
            font-size: 0.875rem;
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .banner-features {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            font-size: 0.75rem;
            color: #cbd5e1;
        }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 0.375rem;
        }

        .feature-item svg {
            width: 1rem;
            height: 1rem;
            color: #22c55e;
        }

        .banner-form-side {
            grid-column: span 1;
            background-color: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(12px);
            padding: 1.5rem;
            border-radius: 1.25rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        @media (min-width: 768px) {
            .banner-form-side {
                padding: 2rem;
            }
        }

        @media (min-width: 1024px) {
            .banner-form-side {
                grid-column: span 5;
            }
        }

        .form-title {
            font-size: 1.125rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .form-group {
            margin-bottom: 1rem;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            margin-bottom: 1rem;
        }

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

        .form-label {
            display: block;
            font-size: 0.687rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #cbd5e1;
            margin-bottom: 0.25rem;
        }

        .form-input, .form-textarea {
            width: 100%;
            background-color: rgba(30, 41, 59, 0.8);
            border: 1px solid #6a6a6a;
            color: white;
            font-size: 0.875rem;
            padding: 0.625rem 1rem;
            border-radius: 0.5rem;
            outline: none;
            transition: border-color 0.2s ease;
        }

        .form-input::placeholder, .form-textarea::placeholder {
            color: #64748b;
        }

        .form-input:focus, .form-textarea:focus {
            border-color: #10b981;
        }

        .form-textarea {
            resize: none;
        }

        .btn-submit {
            width: 100%;
            background-color: #10b981;
            color: white;
            font-weight: 700;
            font-size: 0.875rem;
            border: none;
            padding: 0.75rem;
            border-radius: 0.5rem;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .btn-submit:hover:not(:disabled) {
            background-color: #ea580c;
        }

        .btn-submit:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .success-box {
            display: none;
            text-align: center;
            padding: 1.5rem 0;
        }

        .success-icon {
            width: 3rem;
            height: 3rem;
            background-color: rgba(34, 197, 94, 0.2);
            color: #4ade80;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
        }

        .success-icon svg {
            width: 1.5rem;
            height: 1.5rem;
        }

        .success-box h4 {
            font-size: 1.125rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
        }

        .success-box p {
            font-size: 0.75rem;
            color: #cbd5e1;
            margin-bottom: 1rem;
        }

        .btn-reset-form {
            background: none;
            border: none;
            color: #fff7ed;
            font-size: 0.75rem;
            cursor: pointer;
            text-decoration: underline;
        }

        /* --- MODERN 2-COLUMN POPUP MODAL --- */
        .custom-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(15, 23, 42, 0.7);
            backdrop-filter: blur(4px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            animation: fadeInModal 0.25s ease-out;
        }

        .custom-modal-card {
            background: #ffffff;
            width: 100%;
            max-width: 48rem; /* 768px */
            border-radius: 1.75rem;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            position: relative;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            max-height: 90vh;
            animation: slideUpModal 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @media (min-width: 768px) {
            .custom-modal-card {
                flex-direction: row;
            }
        }

        .modal-visual {
            background-color: #f1f5f9;
            padding: 2.5rem 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            border-bottom: 1px solid #e2e8f0;
        }

        @media (min-width: 768px) {
            .modal-visual {
                width: 50%;
                border-bottom: none;
                border-right: 1px solid #e2e8f0;
            }
        }

        .visual-decor {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, rgba(251, 146, 60, 0.05) 100%);
            pointer-events: none;
        }

        .modal-image-preview-container {
            width: 14rem;
            aspect-ratio: 1 / 1.4;
            background: #ffffff;
            border-radius: 1.25rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            border: 1px solid #e2e8f0;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transform: rotate(1deg);
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
        }

        .modal-image-preview-container:hover {
            transform: rotate(0deg);
        }

        .modal-doc-mock {
            position: absolute;
            inset: 0;
            background-color: white;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            z-index: 1;
        }

        .modal-thumb-actual {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: relative;
            z-index: 2;
        }

        .mock-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #f1f5f9;
            padding-bottom: 0.75rem;
        }

        .mock-dots {
            display: flex;
            gap: 0.25rem;
        }

        .dot {
            width: 0.5rem;
            height: 0.5rem;
            border-radius: 50%;
        }

        .dot-red { background-color: #f87171; }
        .dot-yellow { background-color: #fbbf24; }
        .dot-green { background-color: #34d399; }

        .mock-tag {
            font-size: 0.625rem;
            font-weight: 700;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .mock-body {
            margin: auto 0;
            text-align: center;
            padding: 1rem 0;
        }

        .mock-icon {
            width: 4rem;
            height: 4rem;
            border-radius: 1rem;
            margin: 0 auto 0.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .mock-icon svg {
            width: 2rem;
            height: 2rem;
        }

        .mock-title {
            font-size: 0.75rem;
            font-weight: 700;
            color: #1e293b;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            padding: 0 0.5rem;
        }

        .mock-copy {
            font-size: 0.562rem;
            color: #94a3b8;
            margin-top: 0.25rem;
        }

        .mock-footer {
            border-top: 1px solid #f1f5f9;
            padding-top: 0.75rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.625rem;
            color: #94a3b8;
            font-weight: 500;
        }

        .modal-details {
            padding: 15px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 100%;
        }

        @media (min-width: 768px) {
            .modal-details {
                width: 50%;
                padding: 2.25rem;
            }
        }

        .modal-top-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0.75rem;
        }

        .modal-badge {
            background-color: #10b981;
            color: #ffffff;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 0.35rem 0.75rem;
            border-radius: 0.375rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .btn-close {
            width: 2.25rem;
            height: 2.25rem;
            border-radius: 50%;
            background-color: #f1f5f9;
            border: none;
            color: #64748b;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .btn-close:hover {
            background-color: #e2e8f0;
            color: #1e293b;
        }

        .btn-close svg {
            width: 1.25rem;
            height: 1.25rem;
        }

        .modal-title {
            font-size: 20px;
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 0.75rem;
            line-height: 1.35;
        }

        .modal-desc {
            font-size: 0.925rem;
            color: #64748b;
            line-height: 1.6;
            margin: 0 0 1.5rem 0;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .modal-meta-grid-modern {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
            background-color: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 1rem;
            padding: 1.25rem;
            margin-bottom: 1.5rem;
        }

        .modal-meta-grid-modern .meta-item {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .modal-meta-grid-modern .meta-item-label {
            font-size: 0.8125rem;
            color: #94a3b8;
            font-weight: 500;
        }

        .modal-meta-grid-modern .meta-item-val {
            font-size: 0.875rem;
            color: #1e293b;
            font-weight: 700;
        }

        .modal-btn-download-modern {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            background: #10b981;
            color: #ffffff;
            font-size: 0.9375rem;
            font-weight: 700;
            padding: 0.875rem 2rem;
            border-radius: 9999px;
            border: none;
            cursor: pointer;
            width: 100%;
            text-decoration: none;
            box-shadow: 0 4px 14px rgb(72 136 123);
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .modal-btn-download-modern:hover {
            background: #F26522;
            box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
            transform: translateY(-1px);
        }

        .modal-btn-download-modern svg {
            width: 1.25rem;
            height: 1.25rem;
            stroke-width: 2.5;
        }

        .redirect-alert {
            display: none;
            background-color: #f0fdf4;
            border: 1px solid #dcfce7;
            color: #15803d;
            padding: 0.625rem 1rem;
            border-radius: 0.75rem;
            font-size: 0.75rem;
            align-items: center;
            gap: 0.5rem;
            margin-top: 1rem;
            font-weight: 500;
            animation: fadeInModal 0.2s ease;
        }

        .redirect-alert svg {
            width: 1rem;
            height: 1rem;
            flex-shrink: 0;
        }

        /* --- GLOBAL TOAST SYSTEM --- */
        .custom-toast {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background-color: #0f172a;
            color: white;
            padding: 0.875rem 1.5rem;
            border-radius: 1rem;
            box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
            font-size: 0.875rem;
            font-weight: 600;
            z-index: 10000;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transform: translateY(100px);
            opacity: 0;
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
            pointer-events: none;
        }

        .custom-toast.show {
            transform: translateY(0);
            opacity: 1;
        }

        /* --- ANIMATIONS --- */
        @keyframes fadeInModal {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideUpModal {
            from { transform: translateY(30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
         /* Tiêu đề trang */
        .header-title {
            text-align: center;
            margin-bottom: 24px;
        }

        @media (min-width: 640px) {
            .header {
                margin-bottom: auto;.header
            }
        }

        .header-title h1 {
            font-size: 20px;
            font-weight: 800;
            color: #475569;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            position: relative;
            display: inline-block;
            padding-bottom: 8px;
        }

        @media (min-width: 640px) {
            .header-title h1 {
                font-size: 25px;
                padding-bottom: 12px;
            }
        }

        .header-title h1::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 25%;
            right: 25%;
            height: 3px;
            background-color: #10b981;
            border-radius: 9999px;
        }

        @media (min-width: 640px) {
            .header h1::after {
                height: 4px;
            }
        }

        /* Responsive Grid: 
           - Mobile (< 640px): Hiển thị dạng dòng hàng dọc (1 cột full-width) để tối ưu layout ảnh trái, chữ phải.
           - Tablet nhỏ (>= 640px): Hiển thị 2 cột dọc.
           - Tablet lớn (>= 768px): Hiển thị 3 cột dọc.
           - Desktop (>= 1024px): Hiển thị 4 cột dọc (3 hàng 12 bài).
        */
        .products-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }

        @media (min-width: 640px) {
            .products-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 16px;
            }
        }

        @media (min-width: 768px) {
            .products-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 20px;
            }
        }

        @media (min-width: 1024px) {
            .products-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 24px;
            }
        }

        /* Thiết kế Thẻ sản phẩm (Card) đa bố cục bằng Grid */
        .download-card {
            background-color: #ffffff;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #f1f5f9;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            display: grid;
            /* Trên di động: Cột 1 là ảnh (120px), Cột 2 là nội dung chữ */
            grid-template-columns: 120px 1fr;
            grid-template-rows: auto auto 1fr;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @media (min-width: 640px) {
            .download-card {
                border-radius: 16px;
                /* Trên Desktop: Trở lại giao diện cột dọc */
                grid-template-columns: 1fr;
                grid-template-rows: auto 1fr auto;
            }
        }

        /* Hiệu ứng di chuột lên cả Card */
        .download-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
            border-color: #cbd5e1;
        }

        @media (min-width: 640px) {
            .download-card:hover {
                transform: translateY(-6px);
                box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
            }
        }

        /* Vùng ảnh preview */
        .card-image-wrapper {
            grid-column: 1;
            grid-row: 1 / span 3; /* Chiếm trọn chiều cao cột trái trên mobile */
            position: relative;
            overflow: hidden;
            background: linear-gradient(135deg, #475569, #334155);
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
        }

        @media (min-width: 640px) {
            .card-image-wrapper {
                grid-column: 1;
                grid-row: 1;
                aspect-ratio: 4 / 3;
                height: auto;
            }
        }

        .card-image {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px;
            transition: transform 0.5s ease;
        }

        @media (min-width: 640px) {
            .card-image {
                padding: 16px;
            }
        }

        /* Phóng to ảnh nhẹ khi hover vào Card */
        .download-card:hover .card-image {
            transform: scale(1.05);
        }

        /* Định lượng kích thước SVG/Icon ảnh để tương thích mobile */
        .card-image svg {
            max-width: 65px;
            max-height: 65px;
        }

        @media (min-width: 640px) {
            .card-image svg {
                max-width: 80px;
                max-height: 80px;
            }
        }

        /* Nút TẢI nhỏ góc trái phía trên ảnh */
        .badge-download {
            position: absolute;
            top: 6px;
            left: 6px;
            background-color: #dc2626;
            color: #ffffff;
            font-size: 8px;
            font-weight: 700;
            padding: 2px 5px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            gap: 2px;
            text-decoration: none;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
            z-index: 10;
        }

        @media (min-width: 640px) {
            .badge-download {
                top: 12px;
                left: 12px;
                font-size: 12px;
                padding: 6px 10px;
                border-radius: 6px;
                gap: 4px;
            }
        }

        .badge-download:hover {
            background-color: #b91c1c;
        }

        /* Tiêu đề sản phẩm (Cột phải trên di động / Phủ mờ trên Desktop) */
        .card-title-container {
            grid-column: 2;
            grid-row: 1;
            padding: 10px 10px 2px 10px;
            display: flex;
            align-items: center;
        }

        @media (min-width: 640px) {
            .card-title-container {
                grid-column: 1;
                grid-row: 1;
                align-self: end; /* Đưa xuống chân ảnh */
                background-color: rgba(0, 0, 0, 0.75);
                padding: 12px 14px;
                min-height: 56px;
                z-index: 2;
            }
        }

        .card-title-container h3 {
            color: #1e293b; /* Màu tối trên di động */
            font-size: 14px;
            font-weight: 700;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        @media (min-width: 640px) {
            .card-title-container h3 {
                color: #ffffff; /* Màu sáng khi đè ảnh trên desktop */
                font-size: 14px;
                line-height: 1.4;
                font-weight: 600;
            }
        }

        /* Khu vực thông số chi tiết */
        .card-details {
            grid-column: 2;
            grid-row: 2;
            padding: 2px 10px;
        }

        @media (min-width: 640px) {
            .card-details {
                grid-column: 1;
                grid-row: 2;
                padding: 16px;
            }
        }

        .details-list {
            list-style: none;
        }

        .details-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #f1f5f9;
            padding-bottom: 4px;
            margin-bottom: 4px;
            font-size: 10px;
            color: #475569;
        }

        @media (min-width: 640px) {
            .details-item {
                padding-bottom: 10px;
                margin-bottom: 10px;
                font-size: 13px;
            }
        }

        .details-item:last-child {
            border-bottom: none;
            padding-bottom: 0;
            margin-bottom: 0;
        }

        .details-label {
            display: flex;
            align-items: center;
            gap: 4px;
            color: #64748b;
        }

        @media (min-width: 640px) {
            .details-label {
                gap: 8px;
            }
        }

        .details-label i {
            color: #3b82f6;
            width: 12px;
            text-align: center;
        }

        @media (min-width: 640px) {
            .details-label i {
                width: 16px;
            }
        }

        .details-value {
            font-weight: 700;
            color: #1d4ed8;
        }

        /* Khối chứa nút bấm chân trang */
        .card-footer {
            grid-column: 2;
            grid-row: 3;
            padding: 4px 10px 10px 10px;
            align-self: end;
        }

        @media (min-width: 640px) {
            .card-footer {
                grid-column: 1;
                grid-row: 3;
                padding: 0 16px 16px 16px;
                align-self: auto;
            }
        }

        /* Nút TẢI NGAY */
        .btn-download {
            width: 100%;
            background-color: #10b981;
            color: #ffffff;
            font-weight: 700;
            padding: 6px 8px;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            transition: all 0.2s ease-in-out;
        }

        @media (min-width: 640px) {
            .btn-download {
                padding: 12px 16px;
                border-radius: 12px;
                font-size: 14px;
                letter-spacing: 0.5px;
                gap: 8px;
                box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            }
        }

        /* --- HIỆU ỨNG RUNG LẮC (SHAKE ANIMATION) KHI RÀ CHUỘT VÀO NÚT TẢI NGAY --- */
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            15% { transform: translateX(-4px) rotate(-1deg); }
            30% { transform: translateX(3px) rotate(1.5deg); }
            45% { transform: translateX(-3px) rotate(-1deg); }
            60% { transform: translateX(2px) rotate(1deg); }
            75% { transform: translateX(-1px) rotate(-0.5deg); }
        }

        .btn-download:hover {
            animation: shake 0.5s ease-in-out;
            background-color: #b91c1c; /* Đổi sang đỏ sẫm hơn */
            box-shadow: 0 6px 16px rgba(229, 62, 62, 0.4);
        }

        .btn-download:active {
            transform: scale(0.95);
        }

        /* Hiệu ứng xoay chậm icon tuyết */
        @keyframes spin-slow {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        .spin-slow {
            animation: spin-slow 10s linear infinite;
        }

        /* --- TOAST NOTIFICATION (CSS THUẦN) --- */
        .toast-notification {
            position: fixed;
            bottom: 16px;
            right: 16px;
            left: 16px;
            background-color: #0f172a;
            color: #ffffff;
            padding: 12px 16px;
            border-radius: 8px;
            box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            gap: 10px;
            border: 1px solid #1e293b;
            z-index: 50;
            transform: translateY(30px);
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }

        @media (min-width: 640px) {
            .toast-notification {
                bottom: 20px;
                right: 20px;
                left: auto;
                padding: 16px 20px;
                border-radius: 12px;
                max-width: 384px;
                transform: translateY(40px);
            }
        }

        .toast-notification.show {
            transform: translateY(0);
            opacity: 1;
            pointer-events: auto;
        }

        .toast-icon {
            background-color: #10b981;
            padding: 4px;
            border-radius: 6px;
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        @media (min-width: 640px) {
            .toast-icon {
                padding: 6px;
                border-radius: 8px;
            }
        }

        .toast-content h4 {
            font-weight: 700;
            font-size: 12px;
            color: #34d399;
        }

        @media (min-width: 640px) {
            .toast-content h4 {
                font-size: 14px;
            }
        }

        .toast-content p {
            font-size: 11px;
            color: #cbd5e1;
            margin-top: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 180px;
        }

        @media (min-width: 640px) {
            .toast-content p {
                font-size: 12px;
                max-width: 250px;
            }
        }
        
.section-title { 
            font-size: 1.5rem; 
            font-weight: 700; 
            color: #1e293b; 
            margin-bottom: 2rem; 
        }

        .articles-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }

        .article-card {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 1.5rem;
            padding: 0.75rem;
            text-decoration: none;
            color: inherit;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .article-card:hover {
            border-color: #6366f1;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }

        .img-container {
            width: 100%;
            height: 200px;
            overflow: hidden;
            border-radius: 1rem;
            margin-bottom: 1rem;
        }

        .img-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .article-card:hover .img-container img { 
            transform: scale(1.05); 
        }

        .article-title { 
    font-size: 15px; 
    color: #1e293b; 
    margin-bottom: 0.5rem; 
    font-weight: 700;
    line-height: 1.4;

    /* ---- THÊM ĐOẠN DƯỚI ĐÂY ĐỂ GIỚI HẠN 2 HÀNG ---- */
    display: -webkit-box;
    -webkit-line-clamp: 2;           /* Số hàng tối đa muốn hiển thị */
    -webkit-box-orient: vertical;
    overflow: hidden;                /* Ẩn phần chữ thừa bị tràn ra ngoài */
    text-overflow: ellipsis;         /* Thêm dấu ba chấm (...) ở cuối hàng thứ 2 */
    
    /* Mẹo nhỏ (Tùy chọn): Cố định chiều cao bằng đúng 2 hàng 
       để các khung Card luôn bằng đều tăm tắp nhau kể cả tiêu đề chỉ có 1 hàng */
    min-height: calc(15px * 1.4 * 2); /* font-size * line-height * số hàng */
}
        
        .article-desc { 
            font-size: 0.9rem; 
            color: #475569; 
            line-height: 1.5; 
        }

        /* Responsive cho điện thoại di động */
        @media (max-width: 768px) {
            .articles-grid { 
                grid-template-columns: 1fr; 
                gap: 0.8rem;
            }
            
            .article-card {
                display: grid;
                grid-template-columns: 100px 1fr;
                grid-template-rows: auto auto;
                grid-template-areas: 
                    "title title"
                    "image desc";
                gap: 0.75rem 1.2rem;
                padding: 10px;
                border-radius: 1.5rem;
            }

            .article-title {
                grid-area: title;
                font-size: 1.15rem;
                margin-bottom: 0;
                line-height: 1.4;
            }

            .img-container {
                grid-area: image;
                width: 100px;
                height: 85px;
                margin-bottom: 0;
                border-radius: 0.75rem;
                flex-shrink: 0;
            }

            .article-desc {
                grid-area: desc;
                font-size: 0.85rem;
                line-height: 1.5;
                color: #475569;
            }
        }