/* =============================================================================
   ElectroCircuit Store - Taste-Skill Anti-Slop Design System
   Aesthetic:
     - Dark Mode: Sleek Precision Obsidian (Carbon / Electric Cyan)
     - Light Mode: Taste-Skill Soft Rose White (#fff8f8 / #fff0f2) & Technical Cyan (#0284c7)
   Standards: WCAG AA Compliant High Contrast, Typographic Discipline, Tabular Figures
   ============================================================================= */

/* 1. GLOBAL ENHANCEMENTS & TYPOGRAPHIC DISCIPLINE */
:root {
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-dark, #090d16) !important;
    color: var(--text-main, #f8fafc) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.011em;
}

html[data-theme="dark"] body,
body:not(.light-mode) {
    background-color: #090d16 !important;
    color: #f8fafc !important;
}

h1, h2, h3, h4, h5, h6, .brand-name, .brand-title, .modal-title, .section-title h2, .bento-card-title {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif !important;
    letter-spacing: -0.028em !important;
    text-wrap: balance;
}

/* Tabular figures for all numeric, financial and technical values across all pages */
.price-current, .price-old, .stat-num, .cart-total-preview, 
#cart-subtotal, #cart-discount, #cart-grand-total, .card-price, 
.count-badge, .spec-tag, #qr-amount-text, #qr-memo-text, .stk-badge,
#total-cost, #pcb-unit-price, #stencil-cost, #cnc-total-price, #unit-price, 
#lead-time-display, .order-history-code, .order-history-total, .order-history-date, 
.metric-val, .param-value, .pricing-breakdown-val, .calc-cost-display, 
#volume-disp, #area-disp, #weight-disp, .pcb-summary-row .val {
    font-variant-numeric: tabular-nums !important;
    letter-spacing: -0.02em;
}

/* Tactile click feedback on all interactive controls across Store, PCB & CNC */
button, .btn, .action-btn, .cat-chip, a.dropdown-item, .product-card,
.param-btn, .layer-btn, .color-pill, .material-option, .process-btn, .order-tab-btn, .gerber-tab-btn {
    transition: transform 0.15s var(--ease-out), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

button:active, .btn:active, .action-btn:active, .cat-chip:active,
.param-btn:active, .layer-btn:active, .color-pill:active, .material-option:active, .process-btn:active, .order-tab-btn:active, .gerber-tab-btn:active {
    transform: scale(0.98) !important;
}

/* 2. TOP BANNER - HOẠT ẢNH CHẠY CHỮ MARQUEE LIÊN TỤC */
.top-banner {
    background: #060910;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.45rem 0;
    font-size: 0.8rem;
    overflow: hidden;
}

.top-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.top-banner-marquee-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(90deg, transparent 0%, #000 2%, #000 98%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 2%, #000 98%, transparent 100%);
}

.top-banner-msg {
    display: inline-block !important;
    white-space: nowrap !important;
    animation: marqueeBanner 18s linear infinite !important;
    will-change: transform;
    padding-right: 2.5rem !important;
    color: var(--text-muted);
    font-weight: 500;
}

.top-banner-marquee-wrap:hover .top-banner-msg {
    animation-play-state: paused !important;
}

@keyframes marqueeBanner {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.top-banner-msg .code-badge {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-weight: 700;
}

.top-links a {
    color: var(--text-muted) !important;
    text-shadow: none !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
}

.top-links a:hover {
    color: var(--primary-cyan) !important;
    text-shadow: none !important;
}

.top-links a i {
    color: var(--primary-cyan) !important;
}

/* 3. MAIN HEADER */
.main-header, .pcb-page-header, header.main-header {
    background: rgba(9, 13, 22, 0.85) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    padding: 0.75rem 0 !important;
    height: auto !important;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.brand-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-cyan);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-nav .nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: #94a3b8;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.header-nav .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.header-nav .nav-link.active {
    color: var(--primary-cyan);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.dropdown-menu {
    background: #0d121f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.5rem;
}

.dropdown-item {
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.dropdown-sub-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem 0.2rem;
}

/* Header search & action buttons */
.search-container input {
    background: #0d121f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 0.5rem 1rem 0.5rem 2.25rem;
    transition: all 0.2s ease;
}

.search-container input:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
    background: #111827;
}

.search-icon {
    color: #64748b;
    left: 0.8rem;
}

.header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    flex-shrink: 0 !important;
}

.action-btn, #open-order-history-btn, .theme-toggle-btn, #theme-toggle-btn, #mobile-menu-btn {
    background: #0d121f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border-radius: 10px !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
}

#open-order-history-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Order History Icon - Enhanced Size (Clean Silhouette, No Extra Stroke) */
#open-order-history-btn .order-history-icon-svg,
.order-history-icon-svg,
#open-order-history-btn svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    color: #7df9ff;
    fill: currentColor !important;
    stroke: none !important;
    stroke-width: 0 !important;
    vertical-align: middle !important;
    display: inline-block !important;
    margin: 0 !important;
    filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.55));
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

#open-order-history-btn:hover .order-history-icon-svg,
#open-order-history-btn:hover svg {
    transform: scale(1.08);
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.85));
}

/* User Profile Badge Button (Supports Icon + Name dynamically without collision) */
.user-profile-btn, #open-user-profile-btn {
    background: #0d121f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border-radius: 10px !important;
    width: auto !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 0.75rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.user-profile-btn .customer-code-badge {
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: var(--primary-cyan) !important;
    background: rgba(2, 132, 199, 0.12) !important;
    border: 1px solid rgba(2, 132, 199, 0.25) !important;
    padding: 0.15rem 0.5rem !important;
    border-radius: 6px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.action-btn:hover, #open-order-history-btn:hover, .theme-toggle-btn:hover, #theme-toggle-btn:hover, .cart-btn:hover, .user-profile-btn:hover, #open-user-profile-btn:hover {
    background: #151d2e;
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.cart-btn {
    width: auto !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 0.85rem !important;
    gap: 0.5rem !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.cart-total-preview {
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffffff;
}

/* 4. REFINED SPLIT HERO SECTION - OPENAI AURA & COSMIC AESTHETICS */
.hero-section {
    position: relative;
    overflow: hidden;
    background-color: #030712;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 4.8rem 0 3.8rem;
}

/* Ambient Aurora Backdrop */
.hero-aurora-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 35%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 35%, transparent 100%);
    opacity: 0.7;
}

/* 3D Celestial Starlight Particle Constellation */
.hero-stars-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.aurora-beam {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
    will-change: transform, opacity;
}

.aurora-beam-1 {
    top: -15%;
    left: 15%;
    width: 580px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.38) 0%, rgba(59, 130, 246, 0.18) 55%, transparent 75%);
    animation: aurora-drift-1 16s ease-in-out infinite alternate;
}

.aurora-beam-2 {
    top: 5%;
    right: 5%;
    width: 520px;
    height: 440px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(168, 85, 247, 0.14) 55%, transparent 75%);
    animation: aurora-drift-2 20s ease-in-out infinite alternate;
}

.aurora-beam-3 {
    bottom: -20%;
    left: 30%;
    width: 620px;
    height: 360px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(6, 182, 212, 0.14) 55%, transparent 75%);
    animation: aurora-drift-3 18s ease-in-out infinite alternate;
}

@keyframes aurora-drift-1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.35; }
    50% { transform: translate(60px, 30px) scale(1.1); opacity: 0.55; }
    100% { transform: translate(-40px, 50px) scale(0.95); opacity: 0.32; }
}

@keyframes aurora-drift-2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(-50px, -40px) scale(1.15); opacity: 0.48; }
    100% { transform: translate(30px, 30px) scale(0.9); opacity: 0.28; }
}

@keyframes aurora-drift-3 {
    0% { transform: translate(0, 0) scale(0.9); opacity: 0.22; }
    50% { transform: translate(-30px, -30px) scale(1.1); opacity: 0.38; }
    100% { transform: translate(40px, -20px) scale(1); opacity: 0.22; }
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--primary-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
}

.hero-eyebrow .eyebrow-line,
.bento-header-badge .eyebrow-line {
    display: inline-block;
    width: 20px;
    height: 1.5px;
    background-color: currentColor;
    border-radius: 1px;
    opacity: 0.85;
}

/* Pulsing Status Beacon */
.beacon-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--primary-cyan, #06b6d4);
    box-shadow: 0 0 10px var(--primary-cyan, #06b6d4);
    position: relative;
    display: inline-block;
    margin: 0 0.15rem;
    flex-shrink: 0;
}

.beacon-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-cyan, #06b6d4);
    animation: beacon-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes beacon-ping {
    0% { transform: scale(1); opacity: 0.85; }
    70%, 100% { transform: scale(2.4); opacity: 0; }
}

.hero-text h1 {
    font-size: clamp(2.1rem, 3.9vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 1.15rem;
    letter-spacing: -0.03em;
    text-shadow: 0 0 45px rgba(6, 182, 212, 0.18);
}

.hero-text h1 .highlight-cyan {
    background: linear-gradient(135deg, #22d3ee 0%, #38bdf8 45%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: iridescent-shine 8s ease infinite alternate;
    display: inline-block;
}

@keyframes iridescent-shine {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.hero-desc-wrap {
    max-width: 700px;
    width: 100%;
    margin-bottom: 2rem;
}

.hero-lead {
    font-size: 0.98rem;
    color: #94a3b8;
    line-height: 1.65;
    margin-bottom: 0.95rem;
    max-width: 100%;
    text-align: justify;
    text-justify: inter-word;
}

.hero-desc-wrap .hero-lead:last-child {
    margin-bottom: 0;
}

.hero-btns {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    position: relative;
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    color: #030712;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 1.6rem;
    border-radius: 10px;
    border: 1px solid rgba(34, 211, 238, 0.4);
    box-shadow: 0 4px 18px rgba(6, 182, 212, 0.35), 0 0 25px rgba(6, 182, 212, 0.2);
    overflow: hidden;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: rotate(25deg);
    animation: sheen-sweep 4.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sheen-sweep {
    0%, 70% { left: -60%; }
    100% { left: 160%; }
}

.btn-primary:hover {
    background: #22d3ee;
    border-color: #22d3ee;
    color: #030712;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.5), 0 0 35px rgba(6, 182, 212, 0.35);
    filter: brightness(1.08);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.4rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.25s var(--ease-out);
}

.btn-glass:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.45);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.2), 0 0 15px rgba(6, 182, 212, 0.15);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.55rem;
    font-weight: 800;
    color: #22d3ee;
    text-shadow: 0 0 18px rgba(6, 182, 212, 0.35);
    letter-spacing: -0.02em;
    font-family: var(--font-mono, monospace);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.stat-item:hover .stat-num {
    color: #67e8f9;
    text-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
}

.stat-label {
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.2rem;
    font-weight: 600;
}

/* Featured Hero Showcase Card - Border Beam & Glassmorphic */
.hero-card-featured {
    position: relative;
    border-radius: 20px;
    padding: 2px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 40px rgba(6, 182, 212, 0.14);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.hero-card-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.85), 0 0 50px rgba(6, 182, 212, 0.25);
}

.card-beam-glow {
    position: absolute;
    inset: -150%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 65deg,
        rgba(6, 182, 212, 0.25) 80deg,
        #22d3ee 98deg,
        #818cf8 118deg,
        rgba(99, 102, 241, 0.25) 135deg,
        transparent 165deg,
        transparent 360deg
    );
    animation: spin-beam 7s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes spin-beam {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.featured-card-inner {
    position: relative;
    z-index: 1;
    background: rgba(10, 15, 27, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 18px;
    padding: 1.25rem;
    height: 100%;
}

.featured-badge {
    background: rgba(6, 182, 212, 0.12);
    color: var(--primary-cyan);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.featured-img-wrap {
    background: #080c14;
    border-radius: 12px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.featured-img-wrap img {
    max-height: 85%;
    max-width: 85%;
    object-fit: contain;
    transition: transform 0.3s var(--ease-out);
}

.hero-card-featured:hover .featured-img-wrap img {
    transform: scale(1.04);
}

.featured-details h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.specs-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.specs-mini span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.75rem;
    color: #94a3b8;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.featured-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.price-current {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-cyan);
}

.price-old {
    font-size: 0.82rem;
    color: #64748b;
    text-decoration: line-through;
    margin-left: 0.4rem;
}

/* 5. BENTO SERVICES HUB SECTION */
.bento-services-section {
    background: #090d16;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4.5rem 0;
    position: relative;
}

/* Header Alignment: perfectly centered with 4 cards below */
.bento-header,
.bento-section-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bento-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-cyan, #06b6d4);
    border: 1px solid rgba(6, 182, 212, 0.3);
    margin-bottom: 0.85rem;
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.15);
}

.bento-section-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.bento-section-desc {
    color: #94a3b8;
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}

.bento-grid, .bento-grid-hub {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    perspective: 1200px;
}

.bento-card {
    background: #0d121f;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 1.35rem 1.25rem 1.45rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    grid-column: auto !important;
    height: 100%;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(0);
    transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    will-change: transform;
    cursor: pointer;
    text-decoration: none;
}

.bento-card:hover {
    border-color: rgba(6, 182, 212, 0.45);
    box-shadow: 0 20px 42px -10px rgba(0, 0, 0, 0.5), 0 0 25px rgba(6, 182, 212, 0.18);
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateZ(8px) scale3d(1.02, 1.02, 1.02);
}

.bento-card-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    z-index: 10;
    background: radial-gradient(circle 260px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.12) 0%, transparent 80%);
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: overlay;
}

.bento-card:hover .bento-card-glare {
    opacity: 1;
}

.bento-card-content {
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
}

.bento-3d-visual-wrap {
    transform: translateZ(30px);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.bento-card:hover .bento-3d-visual-wrap {
    transform: translateZ(40px);
}

.bento-card-pcb {
    grid-column: auto !important;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.06) 0%, #0d121f 60%);
}

.bento-card-cnc {
    grid-column: auto !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, #0d121f 60%);
}

.bento-card-hardware {
    grid-column: auto !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, #0d121f 60%);
}

.bento-card-firmware {
    grid-column: auto !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, #0d121f 60%);
}

/* 3D Visual Stage Viewport */
.bento-3d-visual-wrap {
    width: 100%;
    height: 108px;
    margin-bottom: 1rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bento-3d-pcb {
    background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.15) 0%, rgba(13, 18, 31, 0.85) 75%);
    border-color: rgba(6, 182, 212, 0.22);
}

.bento-3d-cnc {
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, rgba(13, 18, 31, 0.85) 75%);
    border-color: rgba(59, 130, 246, 0.22);
}

.bento-3d-hardware {
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.14) 0%, rgba(13, 18, 31, 0.85) 75%);
    border-color: rgba(16, 185, 129, 0.22);
}

.bento-3d-firmware {
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, rgba(13, 18, 31, 0.85) 75%);
    border-color: rgba(139, 92, 246, 0.22);
}

/* Stage 1: 3D PCB */
.stage-pcb {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.pcb-isometric-board {
    position: relative;
    width: 114px;
    height: 64px;
    transform-style: preserve-3d;
    transform: perspective(600px) rotateX(56deg) rotateZ(-26deg);
    animation: pcbHoverFloat 4.2s ease-in-out infinite;
}

@keyframes pcbHoverFloat {
    0%, 100% {
        transform: perspective(600px) rotateX(56deg) rotateZ(-26deg) translateY(0px);
    }
    50% {
        transform: perspective(600px) rotateX(52deg) rotateZ(-24deg) translateY(-5px);
    }
}

.pcb-layer {
    position: absolute;
    inset: 0;
    border-radius: 8px;
}

.pcb-layer-bottom {
    background: #022c22;
    transform: translateZ(-8px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.6);
}

.pcb-layer-core {
    background: #047857;
    transform: translateZ(-4px);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.pcb-layer-top {
    background: linear-gradient(135deg, #059669 0%, #064e3b 85%);
    border: 1px solid rgba(52, 211, 153, 0.5);
    transform: translateZ(0);
    transform-style: preserve-3d;
    overflow: hidden;
}

.pcb-trace {
    position: absolute;
    background: rgba(245, 158, 11, 0.7);
    border-radius: 2px;
}

.trace-1 { top: 14px; left: 8px; width: 32px; height: 2px; box-shadow: 0 0 5px rgba(245, 158, 11, 0.8); }
.trace-2 { bottom: 12px; left: 12px; width: 36px; height: 2px; box-shadow: 0 0 5px rgba(245, 158, 11, 0.8); }
.trace-3 { top: 16px; right: 12px; width: 30px; height: 2px; box-shadow: 0 0 5px rgba(245, 158, 11, 0.8); }
.trace-4 { bottom: 14px; right: 8px; width: 34px; height: 2px; box-shadow: 0 0 5px rgba(245, 158, 11, 0.8); }

.pcb-via {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fbbf24;
    border: 1px solid #fef08a;
    box-shadow: 0 0 6px #f59e0b;
}

.via-1 { top: 12px; left: 6px; }
.via-2 { bottom: 10px; left: 10px; }
.via-3 { top: 14px; right: 10px; }
.via-4 { bottom: 12px; right: 6px; }

.pcb-chip {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%) translateZ(6px);
    background: #111827;
    border: 1px solid #374151;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.pcb-chip-label {
    font-size: 8px;
    font-weight: 800;
    color: #38bdf8;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.pcb-chip-dot {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #00f2fe;
    box-shadow: 0 0 6px #00f2fe;
    animation: chipLedBlink 1.4s infinite alternate;
}

@keyframes chipLedBlink {
    0% { opacity: 0.3; }
    100% { opacity: 1; transform: scale(1.3); }
}

.pcb-laser-beam {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #00f2fe;
    box-shadow: 0 0 12px 2px #00f2fe, 0 0 20px 4px rgba(6, 182, 212, 0.5);
    animation: laserScanSweep 3.2s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes laserScanSweep {
    0% { left: 8px; opacity: 0.3; }
    50% { opacity: 0.95; }
    100% { left: calc(100% - 10px); opacity: 0.3; }
}

/* Stage 2: 3D CNC & 3D Print */
.stage-cnc {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.cnc-workpiece-wrap {
    position: relative;
    width: 110px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.cnc-cube-3d {
    position: relative;
    width: 44px;
    height: 44px;
    transform-style: preserve-3d;
    transform: perspective(600px) rotateX(60deg) rotateZ(45deg);
    animation: cncCubeWobble 6s ease-in-out infinite;
}

@keyframes cncCubeWobble {
    0%, 100% {
        transform: perspective(600px) rotateX(60deg) rotateZ(45deg) translateY(0px);
    }
    50% {
        transform: perspective(600px) rotateX(54deg) rotateZ(48deg) translateY(-4px);
    }
}

.cube-face {
    position: absolute;
    box-sizing: border-box;
}

.cube-top {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    transform: translateZ(22px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.1);
}

.cube-front {
    width: 44px;
    height: 22px;
    background: linear-gradient(to bottom, #64748b, #334155);
    transform: rotateX(-90deg) translateZ(22px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cube-right {
    width: 22px;
    height: 44px;
    background: linear-gradient(to right, #475569, #1e293b);
    transform: rotateY(90deg) translateZ(22px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cnc-bore-hole {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0f172a;
    border: 1.5px solid #0284c7;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8), 0 0 6px rgba(2, 132, 199, 0.5);
}

.cnc-toolpath-line {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px dashed rgba(56, 189, 248, 0.5);
    animation: toolpathRotate 8s linear infinite;
}

@keyframes toolpathRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cnc-spindle-head {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-style: preserve-3d;
    animation: spindleMotion 3.5s ease-in-out infinite alternate;
}

@keyframes spindleMotion {
    0% { transform: translateX(-50%) translate3d(-10px, 0, 10px); }
    100% { transform: translateX(-50%) translate3d(12px, 2px, 16px); }
}

.spindle-body {
    width: 14px;
    height: 16px;
    background: linear-gradient(90deg, #94a3b8, #ffffff, #64748b);
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.spindle-collet {
    width: 9px;
    height: 6px;
    background: #2563eb;
    border-radius: 1px;
}

.spindle-tool {
    width: 3px;
    height: 12px;
    background: #e2e8f0;
    box-shadow: 0 0 4px #93c5fd;
}

.spindle-laser {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8, 0 0 18px #2563eb;
    animation: sparkPulse 0.3s infinite alternate;
}

@keyframes sparkPulse {
    0% { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(1.3); opacity: 1; }
}

.spindle-spark {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fef08a;
    border-radius: 50%;
    box-shadow: 0 0 4px #fef08a;
    pointer-events: none;
}

.spark-1 { animation: sparkBurst1 1.2s infinite; }
.spark-2 { animation: sparkBurst2 1.4s infinite 0.3s; }
.spark-3 { animation: sparkBurst3 1.1s infinite 0.6s; }

@keyframes sparkBurst1 {
    0% { transform: translate(0, 36px) scale(1); opacity: 1; }
    100% { transform: translate(-14px, 44px) scale(0); opacity: 0; }
}
@keyframes sparkBurst2 {
    0% { transform: translate(0, 36px) scale(1); opacity: 1; }
    100% { transform: translate(16px, 42px) scale(0); opacity: 0; }
}
@keyframes sparkBurst3 {
    0% { transform: translate(0, 36px) scale(1); opacity: 1; }
    100% { transform: translate(-6px, 48px) scale(0); opacity: 0; }
}

/* Stage 3: 3D Hardware */
.stage-hardware {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.hw-schematic-wrap {
    position: relative;
    width: 110px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.hw-wafer-board {
    position: relative;
    width: 96px;
    height: 60px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 8px;
    transform-style: preserve-3d;
    transform: perspective(500px) rotateX(55deg) rotateZ(16deg);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    animation: hwWaferFloat 4.8s ease-in-out infinite;
}

@keyframes hwWaferFloat {
    0%, 100% {
        transform: perspective(500px) rotateX(55deg) rotateZ(16deg) translateY(0px);
    }
    50% {
        transform: perspective(500px) rotateX(52deg) rotateZ(18deg) translateY(-5px);
    }
}

.hw-bus-line {
    position: absolute;
    background: rgba(52, 211, 153, 0.6);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.bus-diag-1 {
    top: 50%;
    left: 8px;
    right: 8px;
    height: 1px;
    transform: translateY(-50%);
}

.bus-diag-2 {
    left: 50%;
    top: 8px;
    bottom: 8px;
    width: 1px;
    transform: translateX(-50%);
}

.hw-core-chip {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%) translateZ(6px);
    background: #0f172a;
    border: 1px solid #10b981;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

.hw-core-die {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #34d399, #059669);
    border-radius: 2px;
}

.hw-core-pulse {
    position: absolute;
    inset: -3px;
    border: 1px solid #34d399;
    border-radius: 6px;
    opacity: 0.6;
    animation: coreChipBreathe 2s ease-in-out infinite;
}

@keyframes coreChipBreathe {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0.9; }
}

.hw-emc-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid #10b981;
    pointer-events: none;
}

.ring-1 {
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    animation: emcPulseWave 2.8s cubic-bezier(0.1, 0.7, 0.4, 1) infinite;
}

.ring-2 {
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    animation: emcPulseWave 2.8s cubic-bezier(0.1, 0.7, 0.4, 1) infinite 1.4s;
}

@keyframes emcPulseWave {
    0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(1.7); opacity: 0; }
}

.hw-node {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
}

.hw-node-1 { top: 8px; left: 16px; animation: nodeGlow 1.6s infinite alternate; }
.hw-node-2 { bottom: 10px; right: 18px; animation: nodeGlow 1.9s infinite alternate 0.5s; }
.hw-node-3 { top: 12px; right: 14px; animation: nodeGlow 1.4s infinite alternate 0.8s; }

@keyframes nodeGlow {
    0% { opacity: 0.4; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.25); }
}

/* Stage 4: 3D Firmware & IoT */
.stage-firmware {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.iot-device-wrap {
    position: relative;
    width: 110px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.iot-gateway-box {
    position: relative;
    width: 44px;
    height: 38px;
    transform-style: preserve-3d;
    transform: perspective(500px) rotateX(55deg) rotateZ(-35deg);
    animation: iotGatewayFloat 4.6s ease-in-out infinite;
}

@keyframes iotGatewayFloat {
    0%, 100% {
        transform: perspective(500px) rotateX(55deg) rotateZ(-35deg) translateY(0px);
    }
    50% {
        transform: perspective(500px) rotateX(51deg) rotateZ(-33deg) translateY(-5px);
    }
}

.iot-antenna {
    position: absolute;
    top: -16px;
    left: 8px;
    width: 2.5px;
    height: 18px;
    background: #a78bfa;
    transform: translateZ(10px);
    box-shadow: 0 0 5px #8b5cf6;
}

.iot-antenna::after {
    content: "";
    position: absolute;
    top: -3px;
    left: -2px;
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    background: #c084fc;
    box-shadow: 0 0 10px #c084fc, 0 0 18px #a855f7;
    animation: antennaBeacon 1.2s infinite alternate;
}

@keyframes antennaBeacon {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 1; }
}

.iot-rf-wave {
    position: absolute;
    top: -20px;
    left: 2px;
    border-radius: 50%;
    border: 1.5px solid rgba(192, 132, 252, 0.7);
    pointer-events: none;
}

.wave-1 { width: 24px; height: 24px; animation: rfWavePulse 2.4s ease-out infinite; }
.wave-2 { width: 24px; height: 24px; animation: rfWavePulse 2.4s ease-out infinite 0.8s; }
.wave-3 { width: 24px; height: 24px; animation: rfWavePulse 2.4s ease-out infinite 1.6s; }

@keyframes rfWavePulse {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.9; }
    100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}

.iot-box-face {
    position: absolute;
    box-sizing: border-box;
}

.iot-top {
    width: 44px;
    height: 38px;
    background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
    transform: translateZ(14px);
    border: 1px solid rgba(167, 139, 250, 0.4);
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 6px;
}

.iot-led-status {
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.led-rx {
    background: #00f2fe;
    box-shadow: 0 0 6px #00f2fe;
    animation: ledBlinkFast 0.6s infinite alternate;
}

.led-tx {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: ledBlinkFast 0.9s infinite alternate 0.3s;
}

@keyframes ledBlinkFast {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}

.iot-front {
    width: 44px;
    height: 14px;
    background: #18181b;
    transform: rotateX(-90deg) translateZ(14px);
    border: 1px solid rgba(167, 139, 250, 0.3);
    display: flex;
    align-items: flex-end;
    gap: 3px;
    padding: 2px 4px;
}

.iot-graph-bar {
    width: 5px;
    background: #8b5cf6;
    border-radius: 1px;
}

.bar-1 { height: 5px; animation: graphJump 1.2s infinite alternate; }
.bar-2 { height: 9px; animation: graphJump 0.8s infinite alternate 0.2s; }
.bar-3 { height: 7px; animation: graphJump 1s infinite alternate 0.4s; }

@keyframes graphJump {
    0% { height: 3px; }
    100% { height: 10px; }
}

.iot-side {
    width: 14px;
    height: 38px;
    background: #0f172a;
    transform: rotateY(90deg) translateZ(30px);
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.iot-hologram-particles {
    position: absolute;
    right: 4px;
    top: 0;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.iot-glyph {
    font-size: 9px;
    font-weight: 800;
    font-family: monospace;
    color: #c084fc;
    text-shadow: 0 0 6px rgba(192, 132, 252, 0.8);
}

.glyph-1 { animation: floatGlyph 2.4s infinite; }
.glyph-2 { animation: floatGlyph 2.8s infinite 0.7s; }
.glyph-3 { animation: floatGlyph 2.6s infinite 1.4s; }

@keyframes floatGlyph {
    0% { transform: translateY(16px) translateZ(0); opacity: 0; }
    40% { opacity: 0.95; }
    100% { transform: translateY(-26px) translateZ(20px); opacity: 0; }
}

.bento-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.bento-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.bento-icon-pill {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.bento-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
}

.bento-card-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.bento-card-text {
    font-size: 0.86rem;
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 1.1rem;
}

.bento-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.3rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.bento-features-list li {
    font-size: 0.8rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.025);
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.bento-features-list li i {
    color: var(--primary-cyan);
    font-size: 0.75rem;
}

.bento-card-action {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-cyan);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.5rem;
}

.bento-card:hover .bento-card-action i {
    transform: translateX(4px);
}

/* 6. PRODUCT CATALOG & FILTERS */
.catalog-section {
    padding: 4rem 0;
}

.filter-box {
    background: #0d121f;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.reset-btn {
    font-size: 0.75rem;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
}

.reset-btn:hover {
    color: var(--primary-cyan);
}

.filter-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.cat-chips-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cat-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    font-size: 0.82rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cat-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.cat-chip.active {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.35);
    color: var(--primary-cyan);
    font-weight: 600;
}

.checkbox-label {
    font-size: 0.82rem;
    color: #94a3b8;
}

.price-display {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.tech-tip-card {
    background: #0d121f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem;
}

.tech-tip-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.tech-tip-card p {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.5;
}

.catalog-toolbar {
    background: #0d121f;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.catalog-info h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.count-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: #94a3b8;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}

.sort-selector label {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-right: 0.5rem;
}

#sort-select {
    background: #080c14;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
}

/* Product Cards */
.product-card {
    background: #0d121f;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.45);
}

.card-img-wrap {
    background: #080c14;
    border-radius: 10px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    overflow: hidden;
}

.card-img-wrap img {
    max-height: 85%;
    max-width: 85%;
    object-fit: contain;
    transition: transform 0.25s var(--ease-out);
}

.product-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.card-desc-short {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.spec-tag, .app-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.card-price-row {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-price-row .price-current {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-cyan);
}

.card-price-row .btn-add-cart {
    height: 34px;
    padding: 0 0.85rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

/* 7. COMBO KITS SECTION */
.combo-kits-section {
    background: #080c14;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4rem 0;
}

.section-title h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.section-title p {
    color: #94a3b8;
}

/* 8. FOOTER */
.main-footer {
    background: #05080f;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 0 2rem;
}

.footer-col h4 {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #cbd5e1;
    margin-bottom: 1.15rem;
}

.footer-col ul li a {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.6;
    transition: color 0.15s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-cyan);
}

.stk-badge {
    background: rgba(6, 182, 212, 0.08);
    border: 1px dashed rgba(6, 182, 212, 0.4);
    color: var(--primary-cyan);
    border-radius: 8px;
    padding: 0.4rem 0.85rem;
}

.stk-badge:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--primary-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
}

.copyright-row p {
    color: #64748b;
    font-size: 0.8rem;
}

.view-counter-badge {
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    border-radius: 6px;
}

/* =============================================================================
   9. LIGHT MODE - TASTE-SKILL SOFT ROSE WHITE & TECHNICAL CYAN (#fff8f8 / #fff0f2)
   Standards: Unified Engineering Palette Synchronized with PCB & CNC
   Canvas: Soft Rose White (#fff8f8), Ceramic White (#ffffff), Subtle Rose Tint (#fff0f2)
   Accents: Technical Cyan (#0284c7) + Rose/Crimson Micro-Accents (#e11d48 / #fda4af)
   ============================================================================= */
html[data-theme="light"], body.light-mode {
    --bg-dark: #fff8f8;
    --bg-page: #fff8f8;
    --bg-card: #ffffff;
    --bg-card-subtle: #fff0f2;
    --bg-card-hover: #ffe4e6;
    --bg-glass: rgba(255, 248, 248, 0.95);

    /* Electric Cyan / CAD Sky Blue */
    --primary-cyan: #0284c7;
    --primary-blue: #0284c7;
    --primary-hover: #0369a1;

    --text-main: #0f172a;
    --text-muted: #334155;
    --text-light: #64748b;
    --text-dark: #020617;

    --border-color: rgba(254, 205, 211, 0.85);
    --border-subtle: #fecdd3;
    --border-glow: rgba(2, 132, 199, 0.25);

    --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.15);
    --shadow-card: 0 4px 20px rgba(225, 29, 72, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
    --shadow-card-hover: 0 12px 28px -4px rgba(225, 29, 72, 0.12), 0 0 0 1px rgba(2, 132, 199, 0.4);
}

/* Global Body in Light Mode */
html[data-theme="light"] body,
body.light-mode {
    color: #0f172a !important;
    background-color: #fff8f8 !important;
}

/* Top Banner in Light Mode - Gradient Hồng Nhạt Chuẩn PCB/CNC */
html[data-theme="light"] .top-banner,
body.light-mode .top-banner {
    background: linear-gradient(90deg, #ffe4e6, #fff1f2, #ffe4e6) !important;
    border-bottom: 1px solid #fecdd3 !important;
    color: #881337 !important;
}

html[data-theme="light"] .top-banner-msg,
body.light-mode .top-banner-msg {
    color: #881337 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .top-banner-msg .code-badge,
body.light-mode .top-banner-msg .code-badge {
    background: rgba(225, 29, 72, 0.12) !important;
    color: #e11d48 !important;
    border: 1px solid #fda4af !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .top-links a,
body.light-mode .top-links a {
    color: #881337 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .top-links a:hover,
body.light-mode .top-links a:hover {
    color: #0284c7 !important;
}

/* Header & Nav in Light Mode */
html[data-theme="light"] .main-header,
body.light-mode .main-header,
html[data-theme="light"] header.main-header,
body.light-mode header.main-header,
html[data-theme="light"] .pcb-page-header,
body.light-mode .pcb-page-header {
    background: rgba(255, 248, 248, 0.95) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border-bottom: 1px solid rgba(254, 205, 211, 0.9) !important;
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.05) !important;
}

html[data-theme="light"] .brand-name,
body.light-mode .brand-name {
    color: #0f172a !important;
}

html[data-theme="light"] .brand-sub,
body.light-mode .brand-sub {
    color: #0284c7 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .nav-link,
body.light-mode .nav-link {
    color: #334155 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .nav-link:hover,
body.light-mode .nav-link:hover {
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.08) !important;
}

html[data-theme="light"] .nav-link.active,
body.light-mode .nav-link.active {
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.12) !important;
    border-color: rgba(2, 132, 199, 0.35) !important;
}

html[data-theme="light"] .dropdown-menu,
body.light-mode .dropdown-menu {
    background: #ffffff !important;
    border-color: #fecdd3 !important;
    box-shadow: 0 16px 36px -4px rgba(225, 29, 72, 0.1), 0 0 0 1px rgba(254, 205, 211, 0.5) !important;
}

html[data-theme="light"] .dropdown-item,
body.light-mode .dropdown-item {
    color: #334155 !important;
    font-weight: 500 !important;
}

html[data-theme="light"] .dropdown-item:hover,
body.light-mode .dropdown-item:hover {
    color: #0284c7 !important;
    background: #fff0f2 !important;
}

html[data-theme="light"] .dropdown-sub-label,
body.light-mode .dropdown-sub-label {
    color: #475569 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .search-container input,
body.light-mode .search-container input {
    background: #ffffff !important;
    border-color: #fecdd3 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .search-container input:focus,
body.light-mode .search-container input:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

html[data-theme="light"] .search-container input::placeholder,
body.light-mode .search-container input::placeholder {
    color: #64748b !important;
}

html[data-theme="light"] .search-icon,
body.light-mode .search-icon {
    color: #475569 !important;
}

html[data-theme="light"] .action-btn,
body.light-mode .action-btn,
html[data-theme="light"] #open-order-history-btn,
body.light-mode #open-order-history-btn,
html[data-theme="light"] .theme-toggle-btn,
body.light-mode .theme-toggle-btn,
html[data-theme="light"] #theme-toggle-btn,
body.light-mode #theme-toggle-btn,
html[data-theme="light"] .cart-btn,
body.light-mode .cart-btn,
html[data-theme="light"] .user-profile-btn,
body.light-mode .user-profile-btn,
html[data-theme="light"] #open-user-profile-btn,
body.light-mode #open-user-profile-btn,
html[data-theme="light"] #mobile-menu-btn,
body.light-mode #mobile-menu-btn {
    background: #ffffff !important;
    border: 1px solid #fecdd3 !important;
    border-radius: 10px !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(225, 29, 72, 0.06) !important;
}

html[data-theme="light"] .theme-toggle-btn,
body.light-mode .theme-toggle-btn,
html[data-theme="light"] #theme-toggle-btn,
body.light-mode #theme-toggle-btn,
html[data-theme="light"] #open-order-history-btn,
body.light-mode #open-order-history-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border-radius: 10px !important;
}

html[data-theme="light"] .user-profile-btn,
body.light-mode .user-profile-btn,
html[data-theme="light"] #open-user-profile-btn,
body.light-mode #open-user-profile-btn {
    width: auto !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 0 0.75rem !important;
    gap: 0.45rem !important;
    border: 1px solid rgba(2, 132, 199, 0.35) !important;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.08) !important;
}

html[data-theme="light"] .user-profile-btn:hover,
body.light-mode .user-profile-btn:hover,
html[data-theme="light"] #open-user-profile-btn:hover,
body.light-mode #open-user-profile-btn:hover {
    background: #f0f9ff !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
}

html[data-theme="light"] .action-btn:hover,
body.light-mode .action-btn:hover,
html[data-theme="light"] #open-order-history-btn:hover,
body.light-mode #open-order-history-btn:hover,
html[data-theme="light"] .theme-toggle-btn:hover,
body.light-mode .theme-toggle-btn:hover,
html[data-theme="light"] #theme-toggle-btn:hover,
body.light-mode #theme-toggle-btn:hover,
html[data-theme="light"] .cart-btn:hover,
body.light-mode .cart-btn:hover {
    background: #fff0f2 !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
}

html[data-theme="light"] .action-btn i,
body.light-mode .action-btn i,
html[data-theme="light"] #open-order-history-btn i,
body.light-mode #open-order-history-btn i,
html[data-theme="light"] .theme-toggle-btn i,
body.light-mode .theme-toggle-btn i,
html[data-theme="light"] #theme-toggle-btn i,
body.light-mode #theme-toggle-btn i,
html[data-theme="light"] .cart-btn i,
body.light-mode .cart-btn i,
html[data-theme="light"] .user-profile-btn i,
body.light-mode .user-profile-btn i {
    color: #0284c7 !important;
}

html[data-theme="light"] #open-order-history-btn .order-history-icon-svg,
body.light-mode #open-order-history-btn .order-history-icon-svg,
html[data-theme="light"] .order-history-icon-svg,
body.light-mode .order-history-icon-svg,
html[data-theme="light"] #open-order-history-btn svg,
body.light-mode #open-order-history-btn svg {
    color: #0284c7 !important;
    fill: #0284c7 !important;
    stroke: none !important;
    stroke-width: 0 !important;
    filter: none !important;
}

html[data-theme="light"] #open-order-history-btn:hover .order-history-icon-svg,
body.light-mode #open-order-history-btn:hover .order-history-icon-svg,
html[data-theme="light"] #open-order-history-btn:hover svg,
body.light-mode #open-order-history-btn:hover svg {
    color: #0369a1 !important;
    fill: #0369a1 !important;
    stroke: none !important;
}

html[data-theme="light"] .user-profile-btn .customer-code-badge,
body.light-mode .user-profile-btn .customer-code-badge {
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.12) !important;
    border: 1px solid rgba(2, 132, 199, 0.25) !important;
}

html[data-theme="light"] .cart-badge,
body.light-mode .cart-badge,
html[data-theme="light"] .order-history-badge,
body.light-mode .order-history-badge {
    background: #0284c7 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .cart-total-preview,
body.light-mode .cart-total-preview {
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* HERO SECTION - SOFT ROSE WHITE VỚI LƯỚI BẢN VẼ KỸ THUẬT SIÊU MẢNH */
html[data-theme="light"] .hero-section,
body.light-mode .hero-section {
    background-color: #fff8f8 !important;
    background-image: 
        linear-gradient(to right, rgba(225, 29, 72, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(225, 29, 72, 0.045) 1px, transparent 1px) !important;
    background-size: 24px 24px !important;
    border-bottom: 1px solid rgba(254, 205, 211, 0.85) !important;
    position: relative;
}

html[data-theme="light"] .hero-aurora-bg,
body.light-mode .hero-aurora-bg {
    display: none !important;
}

html[data-theme="light"] .hero-stars-canvas,
body.light-mode .hero-stars-canvas {
    display: none !important;
}

html[data-theme="light"] .beacon-dot,
body.light-mode .beacon-dot {
    background-color: #0284c7 !important;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.4) !important;
}

html[data-theme="light"] .beacon-dot::after,
body.light-mode .beacon-dot::after {
    border-color: #0284c7 !important;
}

html[data-theme="light"] .hero-eyebrow,
body.light-mode .hero-eyebrow {
    background: #ffffff !important;
    border: 1px solid rgba(2, 132, 199, 0.35) !important;
    color: #0284c7 !important;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.05) !important;
}

html[data-theme="light"] .hero-text h1,
body.light-mode .hero-text h1 {
    color: #0f172a !important;
}

html[data-theme="light"] .hero-text h1 .highlight-cyan,
body.light-mode .hero-text h1 .highlight-cyan {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

html[data-theme="light"] .hero-lead,
body.light-mode .hero-lead {
    color: #334155 !important;
    font-weight: 500 !important;
}

html[data-theme="light"] .btn-primary,
body.light-mode .btn-primary {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
}

html[data-theme="light"] .btn-primary::after,
body.light-mode .btn-primary::after {
    display: none !important;
}

html[data-theme="light"] .btn-primary:hover,
body.light-mode .btn-primary:hover {
    background: #0369a1 !important;
    border-color: #0369a1 !important;
}

html[data-theme="light"] .btn-glass,
body.light-mode .btn-glass {
    background: #ffffff !important;
    border-color: #fecdd3 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(225, 29, 72, 0.06) !important;
}

html[data-theme="light"] .btn-glass:hover,
body.light-mode .btn-glass:hover {
    background: #fff0f2 !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
}

/* Hero Stat Numbers in Light Mode */
html[data-theme="light"] .stat-num,
body.light-mode .stat-num {
    color: #0284c7 !important;
    font-weight: 800 !important;
}

html[data-theme="light"] .stat-label,
body.light-mode .stat-label {
    color: #475569 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .hero-stats,
body.light-mode .hero-stats {
    border-top-color: #fecdd3 !important;
}

/* Featured Hero Showcase Card */
html[data-theme="light"] .hero-card-featured,
body.light-mode .hero-card-featured {
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid #fecdd3 !important;
    box-shadow: 0 16px 36px -6px rgba(225, 29, 72, 0.08), 0 0 0 1px rgba(254, 205, 211, 0.5) !important;
}

html[data-theme="light"] .card-beam-glow,
body.light-mode .card-beam-glow {
    display: none !important;
}

html[data-theme="light"] .featured-card-inner,
body.light-mode .featured-card-inner {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 1.25rem !important;
}

html[data-theme="light"] .featured-badge,
body.light-mode .featured-badge {
    background: rgba(2, 132, 199, 0.1) !important;
    color: #0284c7 !important;
    border-color: rgba(2, 132, 199, 0.35) !important;
}

html[data-theme="light"] .featured-img-wrap,
body.light-mode .featured-img-wrap {
    background: #fff8f8 !important;
    border-color: #fecdd3 !important;
}

html[data-theme="light"] .featured-details h3,
body.light-mode .featured-details h3 {
    color: #0f172a !important;
}

html[data-theme="light"] .specs-mini span,
body.light-mode .specs-mini span {
    background: #fff0f2 !important;
    border-color: #fecdd3 !important;
    color: #334155 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .featured-price-row,
body.light-mode .featured-price-row {
    border-top-color: #fecdd3 !important;
}

html[data-theme="light"] .price-current,
body.light-mode .price-current {
    color: #0284c7 !important;
}

html[data-theme="light"] .price-old,
body.light-mode .price-old {
    color: #64748b !important;
}

/* BENTO SERVICES HUB - SOFT ROSE NHẸ (#fff0f2) & DOT MATRIX */
html[data-theme="light"] .bento-services-section,
body.light-mode .bento-services-section,
html[data-theme="light"] #services-hub,
body.light-mode #services-hub {
    background-color: #fff0f2 !important;
    background-image: radial-gradient(rgba(225, 29, 72, 0.09) 1.2px, transparent 1.2px) !important;
    background-size: 20px 20px !important;
    border-bottom: 1px solid rgba(254, 205, 211, 0.85) !important;
}

html[data-theme="light"] .bento-header-badge,
body.light-mode .bento-header-badge {
    background: rgba(2, 132, 199, 0.08) !important;
    color: #0284c7 !important;
    border-color: rgba(2, 132, 199, 0.25) !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1) !important;
}

html[data-theme="light"] .bento-section-title,
body.light-mode .bento-section-title {
    color: #0f172a !important;
}

html[data-theme="light"] .bento-section-desc,
body.light-mode .bento-section-desc {
    color: #334155 !important;
    font-weight: 500 !important;
}

html[data-theme="light"] .bento-card,
body.light-mode .bento-card {
    background: #ffffff !important;
    border: 1px solid #fecdd3 !important;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.05) !important;
}

html[data-theme="light"] .bento-card:hover,
body.light-mode .bento-card:hover {
    border-color: #0284c7 !important;
    box-shadow: 0 16px 36px rgba(2, 132, 199, 0.18), 0 0 0 1px #0284c7 !important;
}

html[data-theme="light"] .bento-card-glare,
body.light-mode .bento-card-glare {
    background: radial-gradient(circle 260px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(2, 132, 199, 0.08) 0%, transparent 80%) !important;
}

html[data-theme="light"] .bento-3d-pcb,
body.light-mode .bento-3d-pcb {
    background: radial-gradient(ellipse at center, rgba(2, 132, 199, 0.08) 0%, rgba(255, 255, 255, 0.95) 80%) !important;
    border-color: rgba(2, 132, 199, 0.22) !important;
}

html[data-theme="light"] .bento-3d-cnc,
body.light-mode .bento-3d-cnc {
    background: radial-gradient(ellipse at center, rgba(225, 29, 72, 0.07) 0%, rgba(255, 255, 255, 0.95) 80%) !important;
    border-color: rgba(254, 205, 211, 0.9) !important;
}

html[data-theme="light"] .bento-3d-hardware,
body.light-mode .bento-3d-hardware {
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0.95) 80%) !important;
    border-color: rgba(167, 243, 208, 0.9) !important;
}

html[data-theme="light"] .bento-3d-firmware,
body.light-mode .bento-3d-firmware {
    background: radial-gradient(ellipse at center, rgba(147, 51, 234, 0.08) 0%, rgba(255, 255, 255, 0.95) 80%) !important;
    border-color: rgba(233, 213, 255, 0.9) !important;
}

html[data-theme="light"] .bento-card-pcb,
body.light-mode .bento-card-pcb {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.04), #ffffff) !important;
}

html[data-theme="light"] .bento-card-cnc,
body.light-mode .bento-card-cnc {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.04), #ffffff) !important;
}

html[data-theme="light"] .bento-card-hardware,
body.light-mode .bento-card-hardware {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), #ffffff) !important;
}

html[data-theme="light"] .bento-card-firmware,
body.light-mode .bento-card-firmware {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.04), #ffffff) !important;
}

html[data-theme="light"] .bento-card-title,
body.light-mode .bento-card-title {
    color: #0f172a !important;
}

html[data-theme="light"] .bento-card-text,
body.light-mode .bento-card-text {
    color: #334155 !important;
}

html[data-theme="light"] .bento-tag,
body.light-mode .bento-tag {
    background: #fff0f2 !important;
    border-color: #fecdd3 !important;
    color: #334155 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .bento-icon-pill,
body.light-mode .bento-icon-pill {
    background: rgba(2, 132, 199, 0.1) !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
    color: #0284c7 !important;
}

html[data-theme="light"] .bento-features-list li,
body.light-mode .bento-features-list li {
    background: #fff8f8 !important;
    border-color: #fecdd3 !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .bento-features-list li i,
body.light-mode .bento-features-list li i {
    color: #0284c7 !important;
}

html[data-theme="light"] .bento-card-action,
body.light-mode .bento-card-action {
    color: #0284c7 !important;
    font-weight: 700 !important;
}

/* Product Catalog Sidebar & Filters in Light Mode */
html[data-theme="light"] .filter-box,
body.light-mode .filter-box {
    background: #ffffff !important;
    border-color: #fecdd3 !important;
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.04) !important;
}

html[data-theme="light"] .filter-header h3,
body.light-mode .filter-header h3 {
    color: #0f172a !important;
}

html[data-theme="light"] .reset-btn,
body.light-mode .reset-btn {
    color: #475569 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .reset-btn:hover,
body.light-mode .reset-btn:hover {
    color: #0284c7 !important;
}

html[data-theme="light"] .filter-title,
body.light-mode .filter-title {
    color: #1e293b !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .cat-chip,
body.light-mode .cat-chip {
    color: #334155 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .cat-chip:hover,
body.light-mode .cat-chip:hover {
    background: #fff0f2 !important;
    color: #0284c7 !important;
}

html[data-theme="light"] .cat-chip.active,
body.light-mode .cat-chip.active {
    background: rgba(2, 132, 199, 0.1) !important;
    border-color: rgba(2, 132, 199, 0.4) !important;
    color: #0284c7 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .checkbox-label,
body.light-mode .checkbox-label {
    color: #0f172a !important;
    font-weight: 500 !important;
}

html[data-theme="light"] .price-display,
body.light-mode .price-display {
    color: #334155 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .tech-tip-card,
body.light-mode .tech-tip-card {
    background: #ffffff !important;
    border-color: #fecdd3 !important;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.04) !important;
}

html[data-theme="light"] .tech-tip-card h4,
body.light-mode .tech-tip-card h4 {
    color: #0f172a !important;
}

html[data-theme="light"] .tech-tip-card p,
body.light-mode .tech-tip-card p {
    color: #334155 !important;
}

/* Catalog Toolbar in Light Mode */
html[data-theme="light"] .catalog-toolbar,
body.light-mode .catalog-toolbar {
    background: #ffffff !important;
    border-color: #fecdd3 !important;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.04) !important;
}

html[data-theme="light"] .catalog-info h2,
body.light-mode .catalog-info h2 {
    color: #0f172a !important;
}

html[data-theme="light"] .count-badge,
body.light-mode .count-badge {
    background: #fff0f2 !important;
    border-color: #fecdd3 !important;
    color: #334155 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .sort-selector label,
body.light-mode .sort-selector label {
    color: #334155 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] #sort-select,
body.light-mode #sort-select {
    background: #ffffff !important;
    border-color: #fecdd3 !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}

/* Product Cards in Light Mode */
html[data-theme="light"] .product-card,
body.light-mode .product-card {
    background: #ffffff !important;
    border-color: #fecdd3 !important;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.04) !important;
}

html[data-theme="light"] .product-card:hover,
body.light-mode .product-card:hover {
    border-color: #0284c7 !important;
    box-shadow: 0 10px 24px -4px rgba(2, 132, 199, 0.2), 0 0 0 1px #0284c7 !important;
}

html[data-theme="light"] .card-img-wrap,
body.light-mode .card-img-wrap {
    background: #fff8f8 !important;
    border-bottom: 1px solid #fff0f2 !important;
}

html[data-theme="light"] .card-title,
body.light-mode .card-title {
    color: #0f172a !important;
}

html[data-theme="light"] .card-desc-short,
body.light-mode .card-desc-short {
    color: #475569 !important;
}

html[data-theme="light"] .spec-tag,
body.light-mode .spec-tag {
    background: #fff0f2 !important;
    border-color: #fecdd3 !important;
    color: #334155 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .app-tag,
body.light-mode .app-tag {
    background: #fff0f2 !important;
    border-color: #fecdd3 !important;
    color: #334155 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .apps-label,
body.light-mode .apps-label {
    color: #0284c7 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .card-price-row,
body.light-mode .card-price-row {
    border-top-color: #fff0f2 !important;
}

html[data-theme="light"] .card-price-row .price-current,
body.light-mode .card-price-row .price-current {
    color: #0284c7 !important;
}

html[data-theme="light"] .card-price-row .price-old,
body.light-mode .card-price-row .price-old {
    color: #64748b !important;
}

html[data-theme="light"] .empty-state h3,
body.light-mode .empty-state h3 {
    color: #0f172a !important;
}

html[data-theme="light"] .empty-state p,
body.light-mode .empty-state p {
    color: #334155 !important;
}

/* COMBO KITS SECTION - TONE HỒNG NHẠT VỚI GRID MẢNH */
html[data-theme="light"] .combo-kits-section,
body.light-mode .combo-kits-section {
    background-color: #fff8f8 !important;
    background-image: 
        linear-gradient(to right, rgba(225, 29, 72, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(225, 29, 72, 0.04) 1px, transparent 1px) !important;
    background-size: 24px 24px !important;
    border-top: 1px solid #fecdd3 !important;
}

html[data-theme="light"] .section-title h2,
body.light-mode .section-title h2 {
    color: #0f172a !important;
}

html[data-theme="light"] .section-title p,
body.light-mode .section-title p {
    color: #334155 !important;
    font-weight: 500 !important;
}

html[data-theme="light"] .combo-card,
body.light-mode .combo-card {
    background: #ffffff !important;
    border-color: #fecdd3 !important;
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.05) !important;
}

html[data-theme="light"] .combo-title,
body.light-mode .combo-title {
    color: #0f172a !important;
}

html[data-theme="light"] .combo-desc,
body.light-mode .combo-desc {
    color: #475569 !important;
}

html[data-theme="light"] .combo-items-list li,
body.light-mode .combo-items-list li {
    color: #0f172a !important;
}

/* Footer Section in Light Mode */
html[data-theme="light"] .main-footer,
body.light-mode .main-footer {
    background: #fff0f2 !important;
    border-top: 1px solid #fecdd3 !important;
}

html[data-theme="light"] .footer-col h4,
body.light-mode .footer-col h4 {
    color: #0f172a !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .footer-col ul li a,
body.light-mode .footer-col ul li a {
    color: #334155 !important;
    font-weight: 500 !important;
}

html[data-theme="light"] .footer-col ul li a:hover,
body.light-mode .footer-col ul li a:hover {
    color: #0284c7 !important;
}

html[data-theme="light"] .footer-col p,
body.light-mode .footer-col p {
    color: #334155 !important;
}

html[data-theme="light"] .footer-col a,
body.light-mode .footer-col a {
    color: #0284c7 !important;
}

html[data-theme="light"] .stk-badge,
body.light-mode .stk-badge {
    background: rgba(2, 132, 199, 0.08) !important;
    border: 1px dashed rgba(2, 132, 199, 0.45) !important;
    color: #0284c7 !important;
}

html[data-theme="light"] .footer-bottom,
body.light-mode .footer-bottom {
    border-top-color: #fecdd3 !important;
}

html[data-theme="light"] .copyright-row p,
body.light-mode .copyright-row p {
    color: #475569 !important;
}

html[data-theme="light"] .view-counter-badge,
body.light-mode .view-counter-badge {
    background: #ffe4e6 !important;
    border-color: #fda4af !important;
    color: #881337 !important;
    font-weight: 600 !important;
}

/* Modals & Cart Drawer in Light Mode */
html[data-theme="light"] .modal-card,
body.light-mode .modal-card,
html[data-theme="light"] .cart-drawer,
body.light-mode .cart-drawer {
    background: #ffffff !important;
    border-color: #fecdd3 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .cart-header h3,
body.light-mode .cart-header h3 {
    color: #0f172a !important;
}

html[data-theme="light"] .cart-item-name,
body.light-mode .cart-item-name {
    color: #0f172a !important;
}

html[data-theme="light"] .summary-row,
body.light-mode .summary-row {
    color: #334155 !important;
}

html[data-theme="light"] .summary-row.total-row,
body.light-mode .summary-row.total-row {
    color: #0f172a !important;
}

html[data-theme="light"] .form-group label,
body.light-mode .form-group label {
    color: #1e293b !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .form-group input,
body.light-mode .form-group input,
html[data-theme="light"] .form-group textarea,
body.light-mode .form-group textarea {
    background: #fff8f8 !important;
    border-color: #fecdd3 !important;
    color: #0f172a !important;
}

/* =============================================================================
   10. CROSS-PAGE EXTENSION & UNIFICATION (PCB, CNC, ORDER HISTORY)
   ============================================================================= */
/* PCB & CNC & Order History shared controls */
.param-btn, .layer-btn, .color-pill, .material-option, .process-btn, .order-tab-btn, .gerber-tab-btn {
    transition: transform 0.15s var(--ease-out), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.param-btn:active, .layer-btn:active, .color-pill:active, .material-option:active, .process-btn:active, .order-tab-btn:active, .gerber-tab-btn:active {
    transform: scale(0.98) !important;
}

/* Tabular figures for PCB & CNC calculations */
#total-cost, #pcb-unit-price, #stencil-cost, #cnc-total-price, #unit-price, 
#lead-time-display, .order-history-code, .order-history-total, .order-history-date, 
.metric-val, .param-value, .pricing-breakdown-val, .calc-cost-display, 
#volume-disp, #area-disp, #weight-disp, .pcb-summary-row .val {
    font-variant-numeric: tabular-nums !important;
    letter-spacing: -0.02em !important;
}

/* Light Mode & Dark Mode specific enhancements for PCB & CNC pages */
html[data-theme="light"] .pcb-page-container,
body.light-mode .pcb-page-container {
    background-color: #fff8f8 !important;
    background-image: 
        linear-gradient(to right, rgba(225, 29, 72, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(225, 29, 72, 0.045) 1px, transparent 1px) !important;
    background-size: 24px 24px !important;
}

html[data-theme="dark"] .pcb-page-container,
body:not(.light-mode) .pcb-page-container {
    background-color: #090d16 !important;
}

html[data-theme="light"] .pcb-card,
body.light-mode .pcb-card,
html[data-theme="light"] .pcb-calculator-card,
body.light-mode .pcb-calculator-card,
html[data-theme="light"] .cnc-config-card,
body.light-mode .cnc-config-card,
html[data-theme="light"] .order-history-card,
body.light-mode .order-history-card,
html[data-theme="light"] .rp-card,
body.light-mode .rp-card {
    background: #ffffff !important;
    border: 1px solid #fecdd3 !important;
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.05) !important;
}

html[data-theme="dark"] .pcb-card,
body:not(.light-mode) .pcb-card {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .sub-section,
body:not(.light-mode) .sub-section {
    border-color: rgba(255, 255, 255, 0.07) !important;
}

html[data-theme="dark"] .material-btn:not(.active),
html[data-theme="dark"] .color-btn:not(.active),
html[data-theme="dark"] .silkscreen-btn:not(.active),
html[data-theme="dark"] .test-btn:not(.active),
html[data-theme="dark"] .mark-btn:not(.active),
html[data-theme="dark"] .stencil-btn:not(.active),
html[data-theme="dark"] .gold-btn:not(.active),
html[data-theme="dark"] .number-btn:not(.active),
html[data-theme="dark"] .layer-btn:not(.active),
body:not(.light-mode) .material-btn:not(.active),
body:not(.light-mode) .color-btn:not(.active),
body:not(.light-mode) .silkscreen-btn:not(.active),
body:not(.light-mode) .test-btn:not(.active),
body:not(.light-mode) .mark-btn:not(.active),
body:not(.light-mode) .stencil-btn:not(.active),
body:not(.light-mode) .gold-btn:not(.active),
body:not(.light-mode) .number-btn:not(.active),
body:not(.light-mode) .layer-btn:not(.active) {
    background: #151d30 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .material-btn.active,
html[data-theme="dark"] .color-btn.active,
html[data-theme="dark"] .layer-btn.active,
html[data-theme="dark"] .number-btn.active,
body:not(.light-mode) .material-btn.active,
body:not(.light-mode) .color-btn.active,
body:not(.light-mode) .layer-btn.active,
body:not(.light-mode) .number-btn.active {
    background: rgba(2, 132, 199, 0.15) !important;
    border-color: #0284c7 !important;
    color: #38bdf8 !important;
}

html[data-theme="light"] .summary-card,
body.light-mode .summary-card,
html[data-theme="light"] .rp-summary-panel,
body.light-mode .rp-summary-panel {
    background: #ffffff !important;
    border-color: #fecdd3 !important;
}

html[data-theme="light"] .gerber-viewer-container,
body.light-mode .gerber-viewer-container {
    border-color: #fecdd3 !important;
}

/* =============================================================================
   11. HIGH-CONTRAST TYPOGRAPHY & BOXES IN DARK MODE & LIGHT MODE (WCAG AAA)
   Ensures crystal-clear text on dark cards, info boxes, price breakdowns, and forms
   ============================================================================= */

/* Info Box / Notification in Dark Mode */
html[data-theme="dark"] .info-box,
body:not(.light-mode) .info-box {
    background: rgba(14, 165, 233, 0.12) !important;
    border: 1px solid rgba(14, 165, 233, 0.3) !important;
    border-left: 3.5px solid #00f2fe !important;
    border-radius: 8px !important;
}

html[data-theme="dark"] .info-box p,
body:not(.light-mode) .info-box p {
    color: #f1f5f9 !important;
    font-size: 0.82rem !important;
    line-height: 1.55 !important;
}

html[data-theme="dark"] .info-box p strong,
body:not(.light-mode) .info-box p strong {
    color: #38bdf8 !important;
    font-weight: 700 !important;
}

html[data-theme="dark"] .info-box i,
body:not(.light-mode) .info-box i {
    color: #00f2fe !important;
}

/* Info Box in Light Mode */
html[data-theme="light"] .info-box,
body.light-mode .info-box {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    border-left: 3.5px solid #10b981 !important;
    border-radius: 8px !important;
}

html[data-theme="light"] .info-box p,
body.light-mode .info-box p {
    color: #0f172a !important;
    font-size: 0.82rem !important;
    line-height: 1.55 !important;
}

html[data-theme="light"] .info-box p strong,
body.light-mode .info-box p strong {
    color: #047857 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .info-box i,
body.light-mode .info-box i {
    color: #10b981 !important;
}

/* Price Box & Calculation Breakdown in Dark Mode */
html[data-theme="dark"] .price-box,
body:not(.light-mode) .price-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .price-row,
body:not(.light-mode) .price-row {
    color: #e2e8f0 !important;
    font-size: 0.88rem !important;
    padding: 0.45rem 0 !important;
}

html[data-theme="dark"] .price-row span:first-child,
body:not(.light-mode) .price-row span:first-child {
    color: #cbd5e1 !important;
    font-weight: 500 !important;
}

html[data-theme="dark"] .price-row span:last-child,
html[data-theme="dark"] #price-fab-base,
body:not(.light-mode) .price-row span:last-child,
body:not(.light-mode) #price-fab-base {
    color: #f8fafc !important;
    font-weight: 700 !important;
}

html[data-theme="dark"] #price-surcharge,
body:not(.light-mode) #price-surcharge {
    color: #fbbf24 !important;
    font-weight: 700 !important;
}

html[data-theme="dark"] .price-total,
body:not(.light-mode) .price-total {
    border-top: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #ffffff !important;
    padding-top: 0.85rem !important;
}

html[data-theme="dark"] .price-total span:first-child,
body:not(.light-mode) .price-total span:first-child {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
}

html[data-theme="dark"] .price-total .value,
html[data-theme="dark"] #price-total,
body:not(.light-mode) .price-total .value,
body:not(.light-mode) #price-total {
    color: #10b981 !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.4) !important;
}

/* Price Box in Light Mode */
html[data-theme="light"] .price-box,
body.light-mode .price-box {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%) !important;
    border: 1px solid #6ee7b7 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08) !important;
}

html[data-theme="light"] .price-row,
body.light-mode .price-row {
    color: #1e293b !important;
    font-size: 0.88rem !important;
    padding: 0.45rem 0 !important;
}

html[data-theme="light"] .price-row span:first-child,
body.light-mode .price-row span:first-child {
    color: #334155 !important;
    font-weight: 500 !important;
}

html[data-theme="light"] .price-row span:last-child,
html[data-theme="light"] #price-fab-base,
body.light-mode .price-row span:last-child,
body.light-mode #price-fab-base {
    color: #0f172a !important;
    font-weight: 700 !important;
}

html[data-theme="light"] #price-surcharge,
body.light-mode #price-surcharge {
    color: #b45309 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .price-total,
body.light-mode .price-total {
    border-top: 1px solid #a7f3d0 !important;
    color: #064e3b !important;
    padding-top: 0.85rem !important;
}

html[data-theme="light"] .price-total span:first-child,
body.light-mode .price-total span:first-child {
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
}

html[data-theme="light"] .price-total .value,
html[data-theme="light"] #price-total,
body.light-mode .price-total .value,
body.light-mode #price-total {
    color: #059669 !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
}

/* Urgent Notice in Dark Mode */
html[data-theme="dark"] .urgent-notice,
body:not(.light-mode) .urgent-notice {
    background: rgba(2, 132, 199, 0.12) !important;
    border: 1px solid rgba(2, 132, 199, 0.3) !important;
    border-left: 3.5px solid #0284c7 !important;
}

html[data-theme="dark"] .urgent-notice p,
body:not(.light-mode) .urgent-notice p {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .urgent-notice p strong,
body:not(.light-mode) .urgent-notice p strong {
    color: #38bdf8 !important;
}

/* Specs Summary Grid in Dark Mode */
html[data-theme="dark"] .specs-summary,
body:not(.light-mode) .specs-summary {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .specs-summary h4,
body:not(.light-mode) .specs-summary h4 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .spec-row,
body:not(.light-mode) .spec-row {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .spec-row label,
body:not(.light-mode) .spec-row label {
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

html[data-theme="dark"] .spec-row .value,
body:not(.light-mode) .spec-row .value {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Delivery Options in Dark Mode */
html[data-theme="dark"] .delivery-option,
body:not(.light-mode) .delivery-option {
    background: #111827 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .delivery-option.active,
body:not(.light-mode) .delivery-option.active {
    background: rgba(2, 132, 199, 0.15) !important;
    border-color: #0284c7 !important;
}

html[data-theme="dark"] .delivery-option-header,
body:not(.light-mode) .delivery-option-header {
    color: #f8fafc !important;
    font-weight: 700 !important;
}

html[data-theme="dark"] .delivery-time,
body:not(.light-mode) .delivery-time {
    color: #94a3b8 !important;
}

/* Form Inputs, Labels & Checkbox in Dark Mode */
html[data-theme="dark"] .form-group label,
body:not(.light-mode) .form-group label {
    color: #cbd5e1 !important;
    font-weight: 500 !important;
}

html[data-theme="dark"] .checkbox-row,
body:not(.light-mode) .checkbox-row {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .sub-section-title,
body:not(.light-mode) .sub-section-title {
    color: #f8fafc !important;
    font-weight: 700 !important;
}

html[data-theme="dark"] .section-title,
body:not(.light-mode) .section-title {
    color: #ffffff !important;
    font-weight: 700 !important;
}

html[data-theme="dark"] .switch-option span,
body:not(.light-mode) .switch-option span {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] .upload-zone h4,
body:not(.light-mode) .upload-zone h4 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .upload-zone p,
body:not(.light-mode) .upload-zone p {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .upload-format,
body:not(.light-mode) .upload-format {
    color: #64748b !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .bento-grid, .bento-grid-hub {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 680px) {
    .bento-grid, .bento-grid-hub {
        grid-template-columns: 1fr !important;
    }
    .hero-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }
    .hero-btns {
        flex-direction: column !important;
    }
    .hero-btns .btn {
        width: 100% !important;
        text-align: center !important;
    }
}
