
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/inter/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/inter/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/inter/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/inter/inter-latin-700-normal.woff2') format('woff2');
}

* { font-family: 'Inter', sans-serif; }
  body { background: #fafafa; }
  .scrollbar-hide::-webkit-scrollbar { display: none; }
  .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
  .product-card:hover .product-img { transform: scale(1.05); }
  .product-img { transition: transform 0.5s ease; }
  .fade-in { animation: fadeIn 0.5s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
  .slide-in { animation: slideIn 0.3s ease; }
  @keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
  .slide-in-right { animation: slideInRight 0.3s ease; }
  @keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
  .toast { animation: toastIn 0.3s ease; }
  @keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  .heart-btn.active svg { fill: #ef4444; stroke: #ef4444; }
  .badge-new { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
  .badge-sale { background: linear-gradient(135deg, #ef4444, #f97316); }
  .badge-hot { background: linear-gradient(135deg, #f59e0b, #eab308); }
  .gradient-text { background: linear-gradient(135deg, #ec4899, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .hero-gradient { background: linear-gradient(135deg, #831843 0%, #9d174d 50%, #be185d 100%); }
  .hero-gradient-2 { background: linear-gradient(135deg, #be185d 0%, #db2777 50%, #ec4899 100%); }
  .marquee { animation: marquee 30s linear infinite; }
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .cart-badge { animation: cartBadgePop 0.3s ease; }
  @keyframes cartBadgePop { 0% { transform: scale(0); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
  .cart-item { transition: all 0.3s ease; }
  .cart-item:hover { background: #f9fafb; }
  .qty-btn { transition: all 0.2s ease; }
  .qty-btn:hover { background: #e5e7eb; }
  .qty-btn:active { transform: scale(0.95); }
  .search-box { transition: all 0.3s ease; }
  .search-box:focus-within { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); border-color: #ec4899; }
  .currency-option { transition: all 0.15s ease; }
  .currency-option:hover { background: #f5f3ff; color: #ec4899; }
  .currency-option.active { background: #eef2ff; color: #ec4899; font-weight: 600; }
  
  /* Mega Menu */
  .mega-menu-trigger { position: relative; }
  .mega-menu-trigger.active > a { color: #ec4899; }
  .mega-menu-trigger.active > a svg.chevron { transform: rotate(180deg); }
  .mega-menu-trigger > a svg.chevron { transition: transform 0.25s ease; }
  .mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
  }
  .mega-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .mega-menu-col-title { 
    font-size: 0.8rem; 
    font-weight: 700; 
    color: #111; 
    text-transform: uppercase; 
    letter-spacing: 0.05em;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
  }
  .mega-menu-l2 { margin-bottom: 1rem; }
  .mega-menu-l2-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #ec4899;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
  }
  .mega-menu-l2-title::before {
    content: '';
    width: 3px;
    height: 12px;
    background: linear-gradient(135deg, #ec4899, #ec4899);
    border-radius: 2px;
  }
  .mega-menu-l3-link {
    display: block;
    padding: 0.3rem 0;
    font-size: 0.8rem;
    color: #6b7280;
    transition: all 0.15s ease;
  }
  .mega-menu-l3-link:hover {
    color: #ec4899;
    padding-left: 4px;
  }
  .mega-menu-hot {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
    margin-left: 4px;
  }
  .mega-menu-featured-card {
    transition: all 0.25s ease;
  }
  .mega-menu-featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  }

* { font-family: 'Inter', sans-serif; }
  body { background: #fafafa; }
  .gradient-text { background: linear-gradient(135deg, #ec4899, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .fade-in { animation: fadeIn 0.4s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  .slide-in { animation: slideIn 0.3s ease; }
  @keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
  .toast { animation: toastIn 0.3s ease; }
  @keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  .menu-item { transition: all 0.2s ease; }
  .menu-item:hover { background: #f5f3ff; }
  .menu-item.active { background: linear-gradient(135deg, #eef2ff, #faf5ff); color: #ec4899; border-right: 3px solid #ec4899; font-weight: 600; }
  .menu-item.active .menu-icon { color: #ec4899; }
  .section { display: none; }
  .section.active { display: block; animation: fadeIn 0.3s ease; }
  .team-card { transition: all 0.3s ease; }
  .team-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
  .timeline-item { position: relative; padding-left: 2rem; }
  .timeline-item::before { content: ''; position: absolute; left: 0; top: 0.5rem; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, #ec4899, #ec4899); }
  .timeline-item::after { content: ''; position: absolute; left: 5px; top: 1.5rem; bottom: -1rem; width: 2px; background: #e5e7eb; }
  .timeline-item:last-child::after { display: none; }

* { font-family: 'Inter', sans-serif; }
  body { background: #fafafa; }
  .gradient-text { background: linear-gradient(135deg, #ec4899, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .fade-in { animation: fadeIn 0.4s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  .slide-in { animation: slideIn 0.3s ease; }
  @keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
  .toast { animation: toastIn 0.3s ease; }
  @keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  .input-focus:focus { border-color: #ec4899; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
  .menu-item { transition: all 0.2s ease; }
  .menu-item:hover { background: #f5f3ff; }
  .menu-item.active { background: linear-gradient(135deg, #eef2ff, #faf5ff); color: #ec4899; border-right: 3px solid #ec4899; font-weight: 600; }
  .menu-item.active .menu-icon { color: #ec4899; }
  .section { display: none; }
  .section.active { display: block; animation: fadeIn 0.3s ease; }
  .modal-backdrop { animation: fadeIn 0.2s ease; }
  .modal-content { animation: modalIn 0.3s ease; }
  @keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
  .status-badge { padding: 4px 10px; border-radius: 9999px; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; }
  .status-delivered { background: #dcfce7; color: #166534; }
  .status-processing { background: #fef3c7; color: #92400e; }
  .status-shipped { background: #dbeafe; color: #1e40af; }
  .status-cancelled { background: #fee2e2; color: #991b1b; }
  .avatar-ring { background: linear-gradient(135deg, #ec4899, #ec4899); padding: 2px; }

* { font-family: 'Inter', sans-serif; }
  body { background: #fafafa; }
  .gradient-text { background: linear-gradient(135deg, #ec4899, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .fade-in { animation: fadeIn 0.5s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
  .slide-in { animation: slideIn 0.3s ease; }
  @keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
  .toast { animation: toastIn 0.3s ease; }
  @keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  .hero-gradient { background: linear-gradient(135deg, #831843 0%, #9d174d 50%, #be185d 100%); }
  .hero-gradient-2 { background: linear-gradient(135deg, #be185d 0%, #db2777 50%, #ec4899 100%); }
  .page { display: none; }
  .page.active { display: block; }
  .blog-card:hover .blog-img { transform: scale(1.05); }
  .blog-img { transition: transform 0.5s ease; }
  .category-chip { transition: all 0.2s ease; }
  .category-chip.active { background: #111; color: #fff; border-color: #111; }
  .category-chip:hover:not(.active) { border-color: #ec4899; color: #ec4899; }
  .prose { font-size: 1rem; line-height: 1.8; color: #374151; letter-spacing: 0.01em; }
  .prose h1 { font-size: 2.25rem; font-weight: 800; margin-top: 3rem; margin-bottom: 1.5rem; color: #111; line-height: 1.3; letter-spacing: -0.02em; }
  .prose h2 { font-size: 1.75rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; color: #111; line-height: 1.35; }
  .prose h3 { font-size: 1.35rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; color: #1f2937; }
  .prose h4 { font-size: 1.15rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; color: #374151; }
  .prose p { color: #4b5563; line-height: 1.8; margin-bottom: 1.25rem; }
  .prose strong { font-weight: 700; color: #1f2937; }
  .prose em { font-style: italic; }
  .prose a { color: #ec4899; text-decoration: underline; text-underline-offset: 2px; }
  .prose a:hover { color: #4f46e5; }
  .prose ul { list-style: disc; padding-left: 1.5rem; color: #4b5563; margin-bottom: 1.25rem; }
  .prose ul li { margin-bottom: 0.5rem; line-height: 1.7; }
  .prose ol { list-style: decimal; padding-left: 1.5rem; color: #4b5563; margin-bottom: 1.25rem; }
  .prose ol li { margin-bottom: 0.5rem; line-height: 1.7; }
  .prose blockquote { border-left: 4px solid #ec4899; padding: 1rem 1.5rem; background: #f5f3ff; margin: 2rem 0; border-radius: 0 0.5rem 0.5rem 0; font-style: italic; color: #4338ca; }
  .prose img { border-radius: 1rem; margin: 2rem 0; max-width: 100%; height: auto; }
  .prose figure { margin: 2rem 0; }
  .prose figcaption { font-size: 0.875rem; color: #9ca3af; text-align: center; margin-top: 0.5rem; }
  .prose hr { border: 0; border-top: 1px solid #e5e7eb; margin: 2.5rem 0; }
  .prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
  .prose th { background: #f9fafb; font-weight: 600; text-align: left; padding: 0.75rem 1rem; border-bottom: 2px solid #e5e7eb; color: #111; }
  .prose td { padding: 0.75rem 1rem; border-bottom: 1px solid #f3f4f6; color: #4b5563; }
  .prose code { background: #f3f4f6; padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-size: 0.875em; color: #ef4444; }
  .prose pre { background: #1f2937; color: #f3f4f6; padding: 1.25rem; border-radius: 0.75rem; overflow-x: auto; margin: 1.5rem 0; font-size: 0.875rem; line-height: 1.6; }
  .prose pre code { background: transparent; color: inherit; padding: 0; }
  .toc-item { transition: all 0.2s ease; border-left: 2px solid transparent; }
  .toc-item:hover { border-left-color: #ec4899; color: #ec4899; background: #f5f3ff; }
  .toc-item.active { border-left-color: #ec4899; color: #ec4899; font-weight: 600; }
  .comment-card { transition: all 0.2s ease; }
  .comment-card:hover { background: #f9fafb; }

* { font-family: 'Inter', sans-serif; }
  body { background: #fafafa; }
  .scrollbar-hide::-webkit-scrollbar { display: none; }
  .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
  .product-card:hover .product-img { transform: scale(1.05); }
  .product-img { transition: transform 0.5s ease; }
  .filter-chip.active { background: #111; color: #fff; border-color: #111; }
  .fade-in { animation: fadeIn 0.4s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  .slide-in { animation: slideIn 0.3s ease; }
  @keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
  .toast { animation: toastIn 0.3s ease; }
  @keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  .heart-btn.active svg { fill: #ef4444; stroke: #ef4444; }
  .badge-new { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
  .badge-sale { background: linear-gradient(135deg, #ef4444, #f97316); }
  .badge-hot { background: linear-gradient(135deg, #f59e0b, #eab308); }
  .gradient-text { background: linear-gradient(135deg, #ec4899, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .hero-gradient { background: linear-gradient(135deg, #831843 0%, #9d174d 50%, #be185d 100%); }
  .search-box { transition: all 0.3s ease; }
  .search-box:focus-within { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); border-color: #ec4899; }
  .currency-option { transition: all 0.15s ease; }
  .currency-option:hover { background: #f5f3ff; color: #ec4899; }
  .currency-option.active { background: #eef2ff; color: #ec4899; font-weight: 600; }
  .cart-badge { animation: cartBadgePop 0.3s ease; }
  @keyframes cartBadgePop { 0% { transform: scale(0); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
  .active-filter-tag { animation: fadeIn 0.2s ease; }
  .price-range-item { transition: all 0.15s ease; }
  .price-range-item:hover { background: #f5f3ff; }
  .price-range-item.checked { background: #eef2ff; border-color: #ec4899 !important; }

* { font-family: 'Inter', sans-serif; }
  body { background: #fafafa; }
  .gradient-text { background: linear-gradient(135deg, #ec4899, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .fade-in { animation: fadeIn 0.4s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  .slide-in { animation: slideIn 0.3s ease; }
  @keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
  .toast { animation: toastIn 0.3s ease; }
  @keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  .input-focus:focus { border-color: #ec4899; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
  .btn-hover { transition: all 0.2s ease; }
  .btn-hover:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2); }
  .option-card { transition: all 0.2s ease; cursor: pointer; }
  .option-card:hover { border-color: #a5b4fc; }
  .option-card.selected { border-color: #ec4899; background: linear-gradient(135deg, #eef2ff, #faf5ff); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
  .option-card.selected .option-radio { background: #ec4899; border-color: #ec4899; }
  .option-card.selected .option-radio::after { background: white; }
  .option-radio { width: 20px; height: 20px; border: 2px solid #d1d5db; border-radius: 50%; position: relative; transition: all 0.2s ease; flex-shrink: 0; }
  .option-radio::after { content: ''; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%, -50%); transition: all 0.2s ease; }
  .step-badge { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
  .secure-badge { background: linear-gradient(135deg, #dcfce7, #d1fae5); }
  .summary-sticky { position: sticky; top: 100px; }
  .divider-line { background: linear-gradient(90deg, transparent, #e5e7eb, transparent); }
  .checkout-progress { background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #ec4899 100%); }

* { font-family: 'Inter', sans-serif; }
  body { background: #fafafa; }
  .gradient-text { background: linear-gradient(135deg, #ec4899, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .fade-in { animation: fadeIn 0.4s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  .slide-in { animation: slideIn 0.3s ease; }
  @keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
  .toast { animation: toastIn 0.3s ease; }
  @keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  .thumb-active { border-color: #ec4899 !important; }
  .star { color: #fbbf24; }
  .zoom-img { transition: transform 0.3s ease; cursor: zoom-in; }
  .zoom-img:hover { transform: scale(1.05); }
  .pulse-dot { animation: pulse 2s infinite; }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
  .heart-active svg { fill: #ef4444; stroke: #ef4444; }
  .product-card:hover .product-img { transform: scale(1.05); }
  .product-img { transition: transform 0.5s ease; }
  .badge-new { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
  .badge-sale { background: linear-gradient(135deg, #ef4444, #f97316); }
  .badge-hot { background: linear-gradient(135deg, #f59e0b, #eab308); }
  .hero-gradient { background: linear-gradient(135deg, #831843 0%, #9d174d 50%, #be185d 100%); }
  .marquee { animation: marquee 30s linear infinite; }
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .search-box { transition: all 0.3s ease; }
  .search-box:focus-within { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); border-color: #ec4899; }
  #currencyDropdown { background: #eef2ff; }
  .currency-option { transition: all 0.15s ease; }
  .currency-option:hover { background: #f5f3ff; color: #ec4899; }
  .currency-option.active { background: #eef2ff; color: #ec4899; font-weight: 600; }
  .cart-badge { animation: cartBadgePop 0.3s ease; }
  @keyframes cartBadgePop { 0% { transform: scale(0); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
  .cart-item { transition: all 0.3s ease; }
  .qty-btn { transition: all 0.2s ease; }
  .qty-btn:hover { background: #e5e7eb; }
  .qty-btn:active { transform: scale(0.95); }
  .slide-in-right { animation: slideInRight 0.3s ease; }
  @keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
  .section-divider { position: relative; }
  .section-divider::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, #e5e7eb, transparent); }
  
  /* Lightbox Styles */
  .lightbox { animation: lightboxFadeIn 0.3s ease; }
  @keyframes lightboxFadeIn { from { opacity: 0; } to { opacity: 1; } }
  .lightbox-image { animation: lightboxZoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
  @keyframes lightboxZoomIn { 
    from { opacity: 0; transform: scale(0.8); } 
    to { opacity: 1; transform: scale(1); } 
  }
  .lightbox-close { animation: lightboxCloseFade 0.3s ease; }
  @keyframes lightboxCloseFade { from { opacity: 0; transform: scale(0.8) rotate(-90deg); } to { opacity: 1; transform: scale(1) rotate(0deg); } }
  .lightbox-nav { transition: all 0.2s ease; }
  .lightbox-nav:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }
  .lightbox-nav:active { transform: scale(0.95); }

* { font-family: 'Inter', sans-serif; }
  body { background: #fafafa; }
  .gradient-text { background: linear-gradient(135deg, #ec4899, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .fade-in { animation: fadeIn 0.5s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
  .slide-in { animation: slideIn 0.3s ease; }
  @keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
  .toast { animation: toastIn 0.3s ease; }
  @keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  .input-focus:focus { border-color: #ec4899; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
  .btn-hover { transition: all 0.2s ease; }
  .btn-hover:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2); }
  .divider-line { background: linear-gradient(90deg, transparent, #e5e7eb, transparent); }
  .marquee { animation: marquee 30s linear infinite; }
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* Config-driven mega menu: 6 columns on large screens (5 category families + featured). */
  @media (min-width: 1024px) {
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  }

  .error-icon { animation: errorShake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
  @keyframes errorShake {
    0%, 100% { transform: scale(1) rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: scale(1.05) rotate(-3deg); }
    20%, 40%, 60%, 80% { transform: scale(1.05) rotate(3deg); }
  }
  .error-ring { animation: errorRingPulse 1.5s ease-in-out infinite; }
  @keyframes errorRingPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
  }

  .success-checkmark { animation: checkmarkPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
  @keyframes checkmarkPop { 
    0% { transform: scale(0) rotate(-180deg); opacity: 0; } 
    60% { transform: scale(1.2) rotate(10deg); } 
    100% { transform: scale(1) rotate(0deg); opacity: 1; } 
  }
  .success-ring { animation: ringExpand 0.8s ease-out; }
  @keyframes ringExpand {
    0% { transform: scale(0.5); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
  }


  /* 404 Specific */
  .error-404 {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #ec4899 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: floatText 3s ease-in-out infinite;
    font-size: 80px;
  }
  @keyframes floatText {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  .ghost-icon {
    animation: ghostFloat 2.5s ease-in-out infinite;
  }
  @keyframes ghostFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
  }
  .sparkle {
    position: absolute;
    animation: sparkle 2s ease-in-out infinite;
  }
  @keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
  }
  .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: blobMove 8s ease-in-out infinite;
  }
  @keyframes blobMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
  }

@media (min-width: 640px)  { .error-404 { font-size: 120px; } }
@media (min-width: 1024px) { .error-404 { font-size: 180px; } }

#lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex; align-items: center; justify-content: center;
  }
  #lightbox.hidden { display: none; }

  /* 关闭按钮 */
  .lightbox-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff; font-size: 24px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer;
    z-index: 20;                            /* ✅ 提高层级 */
    transition: background-color 0.2s;
  }
  .lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

  /* 左右导航按钮 */
  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);  /* 稍加不透明 */
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    border: none; cursor: pointer;
    z-index: 20;                            /* ✅ 关键：高于图片 */
    transition: background-color 0.2s;
  }
  .lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }
  .lightbox-nav.prev { left: 12px; }
  .lightbox-nav.next { right: 12px; }

  /* 图片容器：用 flex 居中，给按钮留边 */
  #lightboxImage {
    max-width: calc(100vw - 120px);         /* ✅ 左右各留 60px 给按钮 */
    max-height: 85vh;
    object-fit: contain;
    z-index: 1;                             /* ✅ 低于按钮 */
    transition: opacity 0.2s ease;
  }

  /* 计数器 */
  .lightbox-counter {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    z-index: 20;
  }

  /* ✅ 移动端专门优化 */
  @media (max-width: 640px) {
    .lightbox-nav {
      width: 40px; height: 40px;
      background: rgba(0, 0, 0, 0.5);       /* 深底更显眼 */
      border: 1px solid rgba(255, 255, 255, 0.3);
    }
    .lightbox-nav.prev { left: 8px; }
    .lightbox-nav.next { right: 8px; }

    #lightboxImage {
      max-width: calc(100vw - 80px);        /* 移动端留窄一点 */
    }

    .lightbox-close {
      top: 12px; right: 12px;
      background: rgba(0, 0, 0, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.3);
    }
  }