/* =============================================================================
   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,
h4,
h5,
h6,
.brand-name,
.brand-title,
.modal-title,
.section-title h2 {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    letter-spacing: -0.015em !important;
    text-wrap: balance;
}

h3,
.bento-card-title,
.card-title {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    letter-spacing: -0.015em !important;
    text-wrap: normal !important;
}

/* 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: 1fr 1.12fr;
    gap: 2.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.1vw, 3.2rem);
    font-weight: 800;
    line-height: 1.24;
    color: #ffffff;
    margin-bottom: 1.15rem;
    letter-spacing: -0.015em;
    text-shadow: 0 0 45px rgba(6, 182, 212, 0.18);
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.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: nowrap !important;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.specs-mini::-webkit-scrollbar {
    display: none;
}

.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;
    white-space: nowrap !important;
    flex-shrink: 0;
}

.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;
}

/* 4.1 Hero Showcase Split: Shrunk Product (1/2) + Feedback Running Stream (1/2) */
.hero-showcase-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    align-items: stretch;
    height: 480px;
    max-height: 480px;
    width: 100%;
    min-width: 0;
}

/* Shrunk Product Card (1/2 size) - Perfect 50/50 Split (1 nửa ảnh, 1 nửa thông tin) */
.hero-card-compact {
    display: flex;
    flex-direction: column;
    height: 480px;
    max-height: 480px;
    overflow: hidden;
}

.hero-card-compact .featured-card-inner {
    padding: 0.95rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    gap: 0.65rem;
}

.hero-card-compact .featured-img-wrap {
    height: 215px; /* 1 NỬA ẢNH (50% chiều cao) */
    flex-shrink: 0;
    margin-bottom: 0;
    background: #080c14;
    position: relative;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.hero-card-compact .featured-img-wrap .featured-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    margin-bottom: 0;
    font-size: 0.68rem;
    padding: 0.18rem 0.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-card-compact .featured-details {
    flex: 1; /* 1 NỬA THÔNG TIN (50% chiều cao) */
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-card-compact .featured-details h3 {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-card-compact .specs-mini {
    gap: 0.25rem;
    margin-bottom: 0.35rem;
}

.hero-card-compact .specs-mini span {
    font-size: 0.68rem;
    padding: 0.12rem 0.38rem;
}

.hero-card-compact .compact-desc {
    font-size: 0.72rem;
    color: #cbd5e1;
    line-height: 1.36;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-card-compact .compact-specs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.4rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.hero-card-compact .compact-specs-list li {
    font-size: 0.68rem;
    color: #f1f5f9;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.45rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-card-compact .compact-specs-list li i {
    color: var(--primary-cyan);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.hero-card-compact .featured-price-row {
    padding-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
    gap: 0.5rem;
}

.hero-card-compact .price-current {
    font-size: 1.08rem;
}

.hero-card-compact .price-old {
    font-size: 0.75rem;
}

.hero-card-compact .btn-sm {
    padding: 0.32rem 0.65rem;
    font-size: 0.78rem;
    white-space: nowrap;
}

/* Feedback Running Stream */
.hero-feedback-stream {
    position: relative;
    background: rgba(10, 15, 27, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.22);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 35px rgba(6, 182, 212, 0.12);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 480px;
    max-height: 480px;
    overflow: hidden;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.hero-feedback-stream:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 25px 55px -10px rgba(0, 0, 0, 0.85), 0 0 45px rgba(6, 182, 212, 0.22);
}

.feedback-stream-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stream-header-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e2e8f0;
}

.stream-header-title i {
    font-size: 0.92rem;
    color: var(--primary-cyan);
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.45));
}

.pulse-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.stream-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.45);
    padding: 0.2rem 0.52rem;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #fcd34d;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.16);
    transition: all 0.25s var(--ease-out);
}

.stream-rating-pill i.fa-star {
    color: #f59e0b;
    font-size: 0.72rem;
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.65));
}

.stream-rating-pill span:not(.stream-count-badge) {
    color: #fcd34d;
    font-weight: 800;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
}

.stream-count-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.32);
    padding: 0.08rem 0.38rem;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: 0.03em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Body containing dual tracks */
.feedback-stream-body {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(6, 10, 19, 0.6);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, transparent 100%);
}

.feedback-tracks-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    height: 100%;
    padding: 0.4rem 0.2rem;
}

.feedback-track {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    will-change: transform;
}

.feedback-track-up {
    animation: scrollUpTrack 32s linear infinite;
}

.feedback-track-down {
    animation: scrollDownTrack 32s linear infinite;
}

.feedback-stream-body:hover .feedback-track {
    animation-play-state: paused !important;
}

@keyframes scrollUpTrack {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

@keyframes scrollDownTrack {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0);
    }
}

/* Feedback Card */
.feedback-card {
    position: relative;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.35rem;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.feedback-card:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(6, 182, 212, 0.55);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(6, 182, 212, 0.25);
}

.feedback-img-wrap {
    position: relative;
    width: 100%;
    height: 130px;
    border-radius: 6px;
    overflow: hidden;
    background: #020617;
}

.feedback-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s var(--ease-out);
}

.feedback-card:hover .feedback-img-wrap img {
    transform: scale(1.06);
}

.feedback-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s var(--ease-out);
}

.feedback-card:hover .feedback-card-overlay {
    opacity: 1;
}

.feedback-zoom-pill {
    background: rgba(6, 182, 212, 0.9);
    color: #030712;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.feedback-card-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.3rem;
    padding: 0 0.15rem;
}

.feedback-card-rating {
    font-size: 0.6rem;
    letter-spacing: 0.02em;
}

.feedback-verified {
    font-size: 0.6rem;
    color: #94a3b8;
}

.feedback-stream-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stream-footer-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    color: #cbd5e1;
    font-weight: 500;
}

.stream-footer-count i {
    font-size: 0.72rem;
}

/* Nút popup Đánh giá ở góc nhỏ phải phía dưới */
.btn-review-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.24rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #38bdf8;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(14, 165, 233, 0.28));
    border: 1px solid rgba(6, 182, 212, 0.45);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.2);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    outline: none;
}

.btn-review-trigger:hover {
    transform: translateY(-1px) scale(1.04);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(14, 165, 233, 0.45));
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.btn-review-trigger i {
    font-size: 0.75rem;
    color: #38bdf8;
    transition: transform 0.25s ease;
}

.btn-review-trigger:hover i {
    color: #ffffff;
    transform: rotate(-10deg) scale(1.15);
}

/* Lightbox Modal */
.feedback-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out);
    padding: 1.5rem;
}

.feedback-lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content-box {
    position: relative;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(6, 182, 212, 0.2);
    transform: scale(0.94);
    transition: transform 0.25s var(--ease-out);
}

.feedback-lightbox-modal.active .lightbox-content-box {
    transform: scale(1);
}

.lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.lightbox-count {
    font-size: 0.75rem;
    color: var(--primary-cyan);
    font-family: var(--font-mono, monospace);
    background: rgba(6, 182, 212, 0.12);
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}

.lightbox-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.lightbox-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.lightbox-image-container {
    position: relative;
    flex: 1;
    min-height: 280px;
    max-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: #020617;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.lightbox-nav-btn:hover {
    background: var(--primary-cyan);
    color: #030712;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.6);
}

.lightbox-nav-btn.prev {
    left: -20px;
}

.lightbox-nav-btn.next {
    right: -20px;
}

.lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    font-size: 0.76rem;
    color: #94a3b8;
}

/* ============================================================
   Popup Đánh Giá Khách Hàng (Feedback Review Modal)
   ============================================================ */
.feedback-review-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out);
    padding: 1.25rem;
}

.feedback-review-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.review-modal-card {
    position: relative;
    max-width: 490px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 16px;
    padding: 1.35rem 1.45rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(6, 182, 212, 0.2);
    transform: scale(0.94);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.feedback-review-modal.active .review-modal-card {
    transform: scale(1);
}

.review-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.review-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.review-header-title h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 0.2rem 0;
}

.review-header-title p {
    font-size: 0.73rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.35;
}

.review-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.review-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Star Picker */
.review-rating-group {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.9rem;
    text-align: center;
}

.review-stars-picker {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.6rem;
    margin: 0.35rem 0;
    cursor: pointer;
}

.review-stars-picker i {
    color: rgba(255, 255, 255, 0.2);
    transition: transform 0.15s ease, color 0.15s ease;
}

.review-stars-picker i.active {
    color: #f59e0b;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.55));
}

.review-stars-picker i:hover {
    transform: scale(1.22);
}

.review-score-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #fcd34d;
    min-height: 1.2rem;
}

/* Fields */
.review-field {
    margin-bottom: 0.8rem;
}

.review-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.review-field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.3rem;
}

.review-field-label .text-danger {
    color: #ef4444;
}

.review-input {
    width: 100%;
    background: rgba(2, 6, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
    color: #f8fafc;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.review-input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.review-input::placeholder {
    color: #64748b;
}

select.review-input {
    cursor: pointer;
}

select.review-input option {
    background: #0f172a;
    color: #f8fafc;
}

/* Upload Area */
.review-upload-area {
    border: 1px dashed rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.05);
    border-radius: 8px;
    padding: 0.65rem;
    text-align: center;
    cursor: pointer;
    font-size: 0.72rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.review-upload-area:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: #06b6d4;
    color: #e2e8f0;
}

.review-preview-box {
    position: relative;
    display: inline-block;
    margin-top: 0.5rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.review-preview-box img {
    max-height: 80px;
    display: block;
}

.btn-remove-preview {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.75);
    border: none;
    color: #ef4444;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
}

/* Modal Actions */
.review-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-review-cancel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-review-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-review-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #06b6d4, #0284c7);
    border: none;
    color: #ffffff;
    padding: 0.45rem 1.15rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
    transition: all 0.2s ease;
}

.btn-review-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.45);
}

/* Light mode styles */
html[data-theme="light"] .hero-feedback-stream,
body.light-mode .hero-feedback-stream {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 168, 181, 0.3);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.1), 0 0 30px rgba(0, 168, 181, 0.1);
}

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

html[data-theme="light"] .stream-rating-pill,
body.light-mode .stream-rating-pill {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.15);
}

html[data-theme="light"] .stream-rating-pill i.fa-star,
body.light-mode .stream-rating-pill i.fa-star {
    color: #d97706;
    filter: none;
}

html[data-theme="light"] .stream-rating-pill span:not(.stream-count-badge),
body.light-mode .stream-rating-pill span:not(.stream-count-badge) {
    color: #92400e !important;
    font-weight: 800;
}

html[data-theme="light"] .stream-count-badge,
body.light-mode .stream-count-badge {
    background: #fde68a;
    border: 1px solid #d97706;
    color: #78350f !important;
    font-weight: 800;
    box-shadow: none;
}

html[data-theme="light"] .feedback-card,
body.light-mode .feedback-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .feedback-stream-body,
body.light-mode .feedback-stream-body {
    background: rgba(241, 245, 249, 0.6);
}

html[data-theme="light"] .hero-card-compact .featured-img-wrap,
body.light-mode .hero-card-compact .featured-img-wrap {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .hero-card-compact .compact-desc,
body.light-mode .hero-card-compact .compact-desc {
    color: #64748b;
}

html[data-theme="light"] .hero-card-compact .compact-specs-list li,
body.light-mode .hero-card-compact .compact-specs-list li {
    background: rgba(0, 0, 0, 0.035);
    border-color: rgba(0, 0, 0, 0.06);
    color: #334155;
}

html[data-theme="light"] .feedback-stream-footer,
body.light-mode .feedback-stream-footer {
    border-top-color: rgba(0, 0, 0, 0.08);
    color: #64748b;
}

html[data-theme="light"] .stream-footer-count,
body.light-mode .stream-footer-count {
    color: #475569;
}

html[data-theme="light"] .btn-review-trigger,
body.light-mode .btn-review-trigger {
    background: #e0f2fe;
    border-color: #0284c7;
    color: #0369a1;
    box-shadow: 0 1px 4px rgba(2, 132, 199, 0.15);
}

html[data-theme="light"] .btn-review-trigger i,
body.light-mode .btn-review-trigger i {
    color: #0284c7;
}

html[data-theme="light"] .btn-review-trigger:hover,
body.light-mode .btn-review-trigger:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
}

html[data-theme="light"] .btn-review-trigger:hover i,
body.light-mode .btn-review-trigger:hover i {
    color: #ffffff;
}

html[data-theme="light"] .review-modal-card,
body.light-mode .review-modal-card {
    background: #ffffff;
    border-color: rgba(0, 168, 181, 0.3);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15), 0 0 25px rgba(0, 168, 181, 0.1);
}

html[data-theme="light"] .review-modal-header,
body.light-mode .review-modal-header,
html[data-theme="light"] .review-modal-actions,
body.light-mode .review-modal-actions {
    border-color: rgba(0, 0, 0, 0.08);
}

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

html[data-theme="light"] .review-header-title p,
body.light-mode .review-header-title p {
    color: #64748b;
}

html[data-theme="light"] .review-modal-close,
body.light-mode .review-modal-close {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #64748b;
}

html[data-theme="light"] .review-rating-group,
body.light-mode .review-rating-group {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .review-stars-picker i,
body.light-mode .review-stars-picker i {
    color: #cbd5e1;
}

html[data-theme="light"] .review-stars-picker i.active,
body.light-mode .review-stars-picker i.active {
    color: #d97706;
}

html[data-theme="light"] .review-score-label,
body.light-mode .review-score-label {
    color: #b45309;
}

html[data-theme="light"] .review-field-label,
body.light-mode .review-field-label {
    color: #334155;
}

html[data-theme="light"] .review-input,
body.light-mode .review-input {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

html[data-theme="light"] select.review-input option,
body.light-mode select.review-input option {
    background: #ffffff;
    color: #0f172a;
}

html[data-theme="light"] .review-upload-area,
body.light-mode .review-upload-area {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #475569;
}

html[data-theme="light"] .btn-review-cancel,
body.light-mode .btn-review-cancel {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

/* 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);
}

/* Bento Services Hub - Clean Photo Slideshow on Hover */
.bento-slideshow-wrap,
.bento-pcb-slideshow-wrap {
    width: 100%;
    height: 116px;
    margin-bottom: 1rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background: #0b1120;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: translateZ(30px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Individual Tile Card Accent Borders */
.bento-card-pcb .bento-slideshow-wrap,
.bento-pcb-slideshow-wrap {
    border-color: rgba(6, 182, 212, 0.28);
}

.bento-card-pcb:hover .bento-slideshow-wrap,
.bento-card:hover .bento-pcb-slideshow-wrap {
    transform: translateZ(40px);
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(6, 182, 212, 0.22);
}

.bento-card-cnc .bento-slideshow-wrap {
    border-color: rgba(59, 130, 246, 0.28);
}

.bento-card-cnc:hover .bento-slideshow-wrap {
    transform: translateZ(40px);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(59, 130, 246, 0.22);
}

.bento-card-hardware .bento-slideshow-wrap {
    border-color: rgba(16, 185, 129, 0.28);
}

.bento-card-hardware:hover .bento-slideshow-wrap {
    transform: translateZ(40px);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(16, 185, 129, 0.22);
}

.bento-card-firmware .bento-slideshow-wrap {
    border-color: rgba(139, 92, 246, 0.28);
}

.bento-card-firmware:hover .bento-slideshow-wrap {
    transform: translateZ(40px);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(139, 92, 246, 0.22);
}

.bento-slide-img,
.bento-pcb-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
    user-select: none;
}

/* Light mode for Bento Slideshow */
html[data-theme="light"] .bento-slideshow-wrap,
body.light-mode .bento-slideshow-wrap,
html[data-theme="light"] .bento-pcb-slideshow-wrap,
body.light-mode .bento-pcb-slideshow-wrap {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .bento-card-pcb:hover .bento-slideshow-wrap,
body.light-mode .bento-card-pcb:hover .bento-slideshow-wrap,
html[data-theme="light"] .bento-card:hover .bento-pcb-slideshow-wrap,
body.light-mode .bento-card:hover .bento-pcb-slideshow-wrap {
    border-color: rgba(2, 132, 199, 0.55) !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.18) !important;
}

html[data-theme="light"] .bento-card-cnc:hover .bento-slideshow-wrap,
body.light-mode .bento-card-cnc:hover .bento-slideshow-wrap {
    border-color: rgba(37, 99, 235, 0.55) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.18) !important;
}

html[data-theme="light"] .bento-card-hardware:hover .bento-slideshow-wrap,
body.light-mode .bento-card-hardware:hover .bento-slideshow-wrap {
    border-color: rgba(5, 150, 105, 0.55) !important;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.18) !important;
}

html[data-theme="light"] .bento-card-firmware:hover .bento-slideshow-wrap,
body.light-mode .bento-card-firmware:hover .bento-slideshow-wrap {
    border-color: rgba(147, 51, 234, 0.55) !important;
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.18) !important;
}

/* 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: clamp(0.92rem, 1.02vw, 1.08rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
    text-wrap: normal !important;
    white-space: normal;
}

@media (min-width: 1201px) {
    .bento-card-title {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

.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: 0.95rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

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

.product-card .card-body {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.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);
}

/* 3 ô: Điện áp, Số sao, Đã bán LUÔN Ở 1 DÒNG trong 1 ô sản phẩm, tỉ lệ 100% zoom */
.card-specs-tags {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0.28rem !important;
    margin-bottom: 0.5rem;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.card-specs-tags::-webkit-scrollbar {
    display: none;
}

.card-specs-tags .spec-tag {
    font-size: 0.68rem !important;
    font-family: var(--font-mono, monospace);
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
    padding: 0.16rem 0.38rem !important;
    border-radius: 4px;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.22rem;
    line-height: 1.25;
    flex-shrink: 0;
}

.card-specs-tags .spec-tag i {
    font-size: 0.82em;
    flex-shrink: 0;
}

.card-specs-tags .spec-tag.sold-tag {
    background: rgba(0, 242, 254, 0.08) !important;
    color: #00e5ff !important;
    border: 1px solid rgba(0, 242, 254, 0.22) !important;
    font-weight: 600;
}

html[data-theme="light"] .card-specs-tags .spec-tag,
body.light-mode .card-specs-tags .spec-tag {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #475569 !important;
}

html[data-theme="light"] .card-specs-tags .spec-tag.sold-tag,
body.light-mode .card-specs-tags .spec-tag.sold-tag {
    background: rgba(0, 168, 181, 0.1) !important;
    color: #00838f !important;
    border-color: rgba(0, 168, 181, 0.25) !important;
}

.card-title {
    font-size: clamp(0.85rem, 0.9vw, 0.95rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.35rem;
    line-height: 1.32;
    letter-spacing: -0.012em;
    text-wrap: normal !important;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
    overflow-wrap: normal;
    min-height: auto;
    height: auto;
}

.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: block !important;
    opacity: 0.85 !important;
    z-index: 0 !important;
}

html[data-theme="light"] .hero-grid-pattern,
body.light-mode .hero-grid-pattern {
    background-image: radial-gradient(rgba(2, 132, 199, 0.12) 1px, transparent 1px) !important;
    opacity: 0.5 !important;
}

html[data-theme="light"] .hero-stars-canvas,
body.light-mode .hero-stars-canvas {
    display: block !important;
    opacity: 1 !important;
    z-index: 1 !important;
}

html[data-theme="light"] .aurora-beam-1,
body.light-mode .aurora-beam-1 {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(56, 189, 248, 0.1) 55%, transparent 75%) !important;
}

html[data-theme="light"] .aurora-beam-2,
body.light-mode .aurora-beam-2 {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(225, 29, 72, 0.08) 55%, transparent 75%) !important;
}

html[data-theme="light"] .aurora-beam-3,
body.light-mode .aurora-beam-3 {
    background: radial-gradient(circle, rgba(20, 184, 166, 0.18) 0%, rgba(2, 132, 199, 0.09) 55%, transparent 75%) !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;
    }
}