/* ==========================================
   ElectroCircuit Store - Master Style System
   Theme: Dark Tech Cyberpunk / Glassmorphism
   ========================================== */

:root {
    /* Taste-Skill Design System: Sleek Precision Obsidian / High-Tech Industrial */
    --bg-dark: #090d16;
    --bg-page: #090d16;
    --bg-card: #0f172a;
    --bg-card-subtle: #131d31;
    --bg-card-hover: #172238;
    --bg-glass: rgba(11, 17, 30, 0.82);

    /* Single Calibrated Accent (Saturation < 80% per Taste-Skill Lila Rule) */
    --primary-cyan: #06b6d4;
    --primary-blue: #0284c7;
    --primary-hover: #0891b2;
    --accent-neon: #06b6d4;
    --accent-magenta: #06b6d4;
    --accent-gold: #f59e0b;
    --accent-green: #10b981;
    --accent-red: #f43f5e;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --text-dark: #0f172a;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(6, 182, 212, 0.3);
    --border-active: #06b6d4;

    --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Plus Jakarta Sans', 'Inter', monospace;

    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-glow: 0 0 24px rgba(6, 182, 212, 0.12);
    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.45), 0 2px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-card-hover: 0 12px 32px -4px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(6, 182, 212, 0.3);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-feature-settings: "zero" 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-heading);
    line-height: 1.6;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: 95%;
    width: 95%;
    margin: 0 auto;
    padding: 0 0.6rem;
}

.hidden {
    display: none !important;
}

/* Utility Colors & Text */
.text-cyan {
    color: var(--primary-cyan) !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.text-green {
    color: var(--accent-green) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Theme Toggle Button Animation & Colors */
.theme-toggle-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--primary-cyan);
    transform: scale(1.08);
}

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

html[data-theme="light"] .theme-toggle-btn:hover,
body.light-mode .theme-toggle-btn:hover {
    background: #fef3c7;
    border-color: #f59e0b;
}

.theme-spin i {
    animation: themeRotate 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes themeRotate {
    0% {
        transform: rotate(0deg) scale(0.7);
    }

    50% {
        transform: rotate(180deg) scale(1.25);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.btn-outline {
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
}

.btn-outline:hover {
    background: rgba(0, 242, 254, 0.1);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* Top Banner */
/* Top Banner */
.top-banner {
    background: linear-gradient(90deg, #0b0f19, #151d30, #0b0f19);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.82rem;
    padding: 0.42rem 0;
    line-height: 1.4;
    overflow: hidden;
    position: relative;
    z-index: 999;
}

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

.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;
    white-space: nowrap;
    animation: marqueeBanner 18s linear infinite;
    will-change: transform;
    padding-right: 2.5rem;
}

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

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

    100% {
        transform: translateX(-100%);
    }
}

.code-badge {
    background: rgba(255, 183, 3, 0.15);
    color: var(--accent-gold);
    padding: 0.12rem 0.45rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    border: 1px dashed var(--accent-gold);
    font-weight: 700;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--text-main);
    flex-shrink: 0;
    white-space: nowrap;
}

.top-links a {
    color: #00f2fe !important;
    font-weight: 700;
    font-size: 0.82rem;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
    white-space: nowrap;
}

.top-links a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.8);
}

.top-links a i {
    color: #ffb703 !important;
    font-size: 0.85rem;
}

.top-links a:hover {
    color: #ffb703 !important;
    text-shadow: 0 0 12px rgba(255, 183, 3, 0.7);
}

/* Header Navbar */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(9, 13, 22, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon,
.logo-img-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid var(--border-glow);
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.logo-img-wrapper:hover {
    transform: scale(1.06);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.5);
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    white-space: nowrap;
    line-height: 1.15;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #f3f4f6;
    white-space: nowrap;
    line-height: 1.15;
    display: block;
}

.accent-text {
    color: var(--primary-cyan);
}

.brand-sub {
    font-size: 0.72rem;
    color: #38bdf8;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    line-height: 1.15;
    display: block;
    margin-top: 2px;
}

/* Header Navigation Links & Dropdown */
.header-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #d1d5db;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-cyan);
    background: rgba(0, 242, 254, 0.08);
}

.drop-arrow {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
    margin-left: 0.2rem;
}

.dropdown:hover .drop-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu Popup */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 290px;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 120;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dropdown-menu li:last-child .dropdown-item {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(0, 242, 254, 0.12);
    color: var(--primary-cyan);
    padding-left: 1.35rem;
}

/* Product Dropdown Sub-label & Divider */
.dropdown-sub-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.3rem 0.75rem;
    pointer-events: none;
}

/* Product dropdown wider for content */
.dropdown-menu-products {
    width: 280px;
}

.dropdown-item .badge-new {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Search Bar */
.search-container {
    position: relative;
    flex: 1;
    max-width: 480px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-container input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-main);
    transition: var(--transition);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

#search-clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.action-btn,
#open-order-history-btn,
.theme-toggle-btn,
.user-profile-btn,
.cart-btn,
#mobile-menu-btn {
    height: 40px;
    padding: 0 0.85rem;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.18), rgba(79, 172, 254, 0.15));
    border: 1px solid #00f2fe;
    border-radius: 10px !important;
    color: #00f2fe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.25);
    transition: all 0.25s ease;
    position: relative;
    white-space: nowrap;
}

.action-btn:hover,
#open-order-history-btn:hover,
.theme-toggle-btn:hover,
.user-profile-btn:hover,
.cart-btn:hover,
#mobile-menu-btn:hover {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.3), rgba(79, 172, 254, 0.25));
    border-color: #00f2fe;
    color: #ffffff;
    box-shadow: 0 0 22px rgba(0, 242, 254, 0.45);
    transform: translateY(-1px);
}

.action-btn i,
#open-order-history-btn i,
.action-btn svg,
#open-order-history-btn svg,
.theme-toggle-btn i,
.user-profile-btn i,
.cart-btn i,
#mobile-menu-btn i {
    color: #7df9ff;
    fill: currentColor;
    filter: drop-shadow(0 0 4px rgba(0, 242, 254, 0.6));
    width: 1.15em;
    height: 1.15em;
    display: inline-block;
    vertical-align: middle;
}

.order-history-icon-svg,
#open-order-history-btn svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    stroke: none;
    stroke-width: 0;
    vertical-align: middle;
    display: inline-block;
}

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

.cart-badge,
.order-history-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ec4899;
    color: white;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    padding: 0 0.3rem;
    border-radius: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.5);
    line-height: 1;
}

.order-history-badge.has-unread-notif {
    background: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6) !important;
    animation: none !important;
}

@keyframes orderNotifPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    }

    50% {
        transform: scale(1.18);
        box-shadow: 0 0 18px rgba(239, 68, 68, 1);
    }
}

.cart-total-preview {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #7df9ff;
    font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
    padding: 3.5rem 0;
    background: radial-gradient(circle at 80% 20%, rgba(0, 242, 254, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 0, 127, 0.05) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid var(--border-glow);
    color: var(--primary-cyan);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-text h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.highlight-cyan {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 92%;
    margin-bottom: 0.65rem;
}

.hero-text p+p {
    margin-top: 0.65rem;
    margin-bottom: 1.75rem;
}

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

.hero-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-cyan);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Featured Hero Card */
.hero-card-featured {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    transition: var(--transition);
}

.hero-card-featured:hover {
    transform: translateY(-5px);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-magenta);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
}

.featured-img-wrap {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.featured-img-wrap img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

.featured-details h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.specs-mini {
    display: flex;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.specs-mini span {
    white-space: nowrap !important;
    flex-shrink: 0;
}

.featured-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

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

/* Catalog Layout */
.catalog-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 1.75rem;
    padding: 3rem 1rem;
    align-items: start;
}

/* Filter Sidebar */
.filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 135;
}

.filter-overlay:not(.hidden) {
    display: block;
}

.filter-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-cyan) rgba(255, 255, 255, 0.05);
    align-self: start;
    padding-right: 4px;
    z-index: 30;
}

.filter-sidebar::-webkit-scrollbar {
    width: 4px;
}

.filter-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 4px;
}

.filter-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.85rem;
}

.filter-header h3 {
    font-size: 0.98rem;
}

.reset-btn {
    font-size: 0.78rem;
    color: var(--accent-magenta);
}

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

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-title {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

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

.cat-chip {
    text-align: left;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
    white-space: normal;
    word-break: break-word;
}

.cat-chip:hover,
.cat-chip.active {
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary-cyan);
    font-weight: 600;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.checkbox-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

.checkbox-label input {
    accent-color: var(--primary-cyan);
    flex-shrink: 0;
}

.price-slider-wrap input[type=range] {
    width: 100%;
    accent-color: var(--primary-cyan);
}

.price-display {
    font-size: 0.8rem;
    margin-top: 0.35rem;
    color: var(--text-muted);
}

.tech-tip-card {
    background: rgba(255, 183, 3, 0.05);
    border: 1px solid rgba(255, 183, 3, 0.2);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
}

.tip-icon {
    font-size: 1.25rem;
    color: var(--accent-gold);
    margin-bottom: 0.35rem;
}

.tech-tip-card h4 {
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
    color: var(--accent-gold);
}

.tech-tip-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Products Toolbar */
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.catalog-info h2 {
    font-size: 1.5rem;
}

.count-badge {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sort-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.sort-selector select {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    outline: none;
}

/* Product Grid Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 1200px) and (min-width: 993px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.card-badge-top {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    background: rgba(0, 242, 254, 0.15);
    color: var(--primary-cyan);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-glow);
}

.card-img-wrap {
    height: 180px;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.card-img-wrap img.card-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

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

/* Hover Preview Gallery Strip on Product Cards */
.card-hover-gallery {
    position: absolute;
    bottom: 0.6rem;
    left: 50%;
    transform: translateX(-50%) translateY(14px);
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    background: rgba(10, 15, 30, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.product-card:hover .card-hover-gallery {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.hover-preview-thumb {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.5);
    opacity: 0.55;
    filter: blur(0.8px) grayscale(20%);
    transition: all 0.2s ease;
    cursor: pointer;
}

.hover-preview-thumb:hover,
.hover-preview-thumb.active {
    opacity: 1;
    filter: blur(0) grayscale(0%);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
    transform: scale(1.15);
}

.card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.card-specs-tags {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 0.28rem;
    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;
}

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

.spec-tag.sold-tag {
    background: rgba(0, 242, 254, 0.08);
    color: #00e5ff;
    border: 1px solid rgba(0, 242, 254, 0.22);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    white-space: nowrap !important;
    flex-shrink: 0;
}

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

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-desc-short {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ứng dụng thực tế trên thẻ sản phẩm */
.card-apps-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.apps-label {
    font-size: 0.72rem;
    color: var(--primary-cyan);
    font-weight: 600;
    white-space: nowrap;
    margin-right: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.app-tag {
    font-size: 0.68rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: rgba(200, 230, 255, 0.85);
    border-radius: var(--radius-full);
    padding: 0.15rem 0.5rem;
    display: inline-block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--transition);
}

.app-tag:hover {
    background: rgba(0, 242, 254, 0.18);
    color: #fff;
    border-color: rgba(0, 242, 254, 0.5);
}

.card-footer-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.price-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-cyan);
    font-family: var(--font-mono);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn-action {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.icon-btn-action:hover {
    background: var(--primary-cyan);
    color: var(--text-dark);
    border-color: var(--primary-cyan);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Combo Kits Section */
.combo-kits-section {
    padding: 4rem 0;
    background: rgba(18, 24, 38, 0.4);
    border-top: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
}

.section-title p {
    color: var(--text-muted);
}

.combo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.combo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.combo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    position: relative;
}

.combo-badge {
    display: inline-block;
    background: rgba(0, 242, 254, 0.15);
    color: var(--primary-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glow);
}

.combo-card-header h3 {
    font-size: 1.25rem;
}

.combo-list {
    margin: 1rem 0;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.combo-list li {
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.combo-list li i {
    color: var(--primary-cyan);
}

.combo-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin: 0.75rem 0 1rem 0;
}

.combo-thumb-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glow);
    transition: all 0.25s ease;
    cursor: pointer;
}

.combo-thumb-item:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--primary-cyan);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.35);
}

.combo-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.combo-thumb-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(10, 15, 29, 0.85);
    color: var(--primary-cyan);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid rgba(0, 242, 254, 0.4);
    backdrop-filter: blur(4px);
}

/* Footer Stats Bar */
.footer-stats {
    background: rgba(0, 242, 254, 0.03);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.footer-stats-inner {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.footer-stat-item:hover {
    border-color: var(--border-glow);
    background: rgba(0, 242, 254, 0.06);
}

.footer-stat-item i {
    font-size: 1.5rem;
    color: var(--primary-cyan);
}

.footer-stat-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    font-family: var(--font-mono);
}

.footer-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

/* Footer */
.main-footer {
    background: rgba(9, 13, 22, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 0;
}

.main-footer .container {
    max-width: 95%;
    width: 95%;
    margin: 0 auto;
    padding: 0 0.6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
}

.contact-col {
    justify-self: stretch;
}

.footer-col h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--primary-cyan);
    white-space: nowrap;
}

.footer-col p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.contact-col p i {
    color: var(--primary-cyan);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.65rem;
}

.footer-col ul a {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    line-height: 1.45;
    max-width: 100%;
    white-space: nowrap;
    transition: var(--transition);
}

.footer-col ul a i {
    margin-right: 0.45rem;
    flex-shrink: 0;
}

.footer-col ul a:hover {
    color: var(--primary-cyan);
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-cyan);
    color: var(--text-dark);
}

.footer-bottom {
    background: rgba(9, 13, 22, 0.95);
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.copyright-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.view-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.view-counter-badge i {
    font-size: 0.7rem;
    color: var(--primary-cyan);
    opacity: 0.5;
}

/* Order History Badge */
.order-history-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-magenta);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Order History Card */
.order-history-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

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

.order-history-code {
    font-size: 0.85rem;
    font-weight: 700;
    color: #22d3ee;
    font-family: var(--font-mono);
}

.order-history-date {
    font-size: 0.7rem;
    color: #94a3b8;
}

.order-history-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.order-history-specs {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.order-history-specs span {
    font-size: 0.8rem;
    color: #cbd5e1;
}

.order-history-total {
    font-size: 1rem;
    font-weight: 700;
    color: #22d3ee;
    font-family: var(--font-mono);
}

.order-history-status {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.status-badge-paid {
    font-size: 0.7rem;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-badge-delivery {
    font-size: 0.7rem;
    color: #94a3b8;
}

.order-history-modal-content {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f1f5f9;
}

.order-history-modal-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-history-modal-content h3 i {
    color: #22d3ee;
}

.order-history-modal-content .modal-close-btn {
    color: #94a3b8;
    background: #1e293b;
}

.order-history-modal-content .modal-close-btn:hover {
    background: #334155;
    color: white;
}

/* Drawer Cart */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 200;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    z-index: 9999 !important;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.3s ease;
}

.cart-drawer-overlay {
    z-index: 9998 !important;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
    flex-shrink: 0;
}

.cart-close-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.5);
    color: #ff4757;
    transform: scale(1.1) rotate(90deg);
}


.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--primary-cyan);
    font-family: var(--font-mono);
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.5rem;
}

.qty-btn {
    color: var(--text-muted);
    font-weight: 700;
}

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

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #0f1420;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
}

.promo-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.promo-box input {
    flex: 1;
    padding: 0.6rem 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 500;
    min-width: 0;
    transition: var(--transition);
}

.promo-box input::placeholder {
    color: #94a3b8;
}

.promo-box input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.2);
}

.promo-box .btn {
    padding: 0.6rem 1.15rem;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    background: rgba(0, 242, 254, 0.1);
    border: 1.5px solid var(--primary-cyan);
    color: var(--primary-cyan);
    transition: var(--transition);
}

.promo-box .btn:hover {
    background: var(--primary-cyan);
    color: #090d16;
}

.promo-msg {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
    color: #cbd5e1;
}

.summary-row span:first-child {
    color: #cbd5e1;
    font-weight: 500;
}

.summary-row span:last-child {
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-mono);
}

#discount-summary-row span:first-child,
#discount-summary-row #cart-discount {
    color: #fbbf24 !important;
}

.summary-row.total-row {
    font-size: 1.15rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 0.75rem;
}

.summary-row.total-row span:first-child {
    color: #f8fafc;
    font-weight: 700;
}

.summary-row.total-row #cart-grand-total {
    color: var(--primary-cyan) !important;
    font-weight: 800;
    font-size: 1.35rem;
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}

.btn-checkout {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 800;
    border-radius: var(--radius-sm);
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* AI Quote Modal */
.ai-quote-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.ai-quote-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(255, 183, 3, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-cyan);
    flex-shrink: 0;
}

.ai-quote-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--primary-cyan);
}

.ai-quote-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.ai-quote-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ai-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-dropzone:hover,
.ai-dropzone.dragover {
    border-color: var(--primary-cyan);
    background: rgba(0, 242, 254, 0.05);
}

.ai-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.ai-drop-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.ai-drop-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.ai-drop-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.ai-browse-link {
    color: var(--primary-cyan);
    cursor: pointer;
    text-decoration: underline;
}

.ai-drop-formats {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.ai-file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 242, 254, 0.1);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--primary-cyan);
}

.ai-file-info i {
    font-size: 1.25rem;
}

.ai-file-info span {
    flex: 1;
    font-weight: 500;
}

.ai-remove-file {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition);
}

.ai-remove-file:hover {
    color: #ff6b6b;
}

.ai-analysis {
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.ai-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.ai-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ai-loading p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ai-result h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-green);
}

.ai-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.ai-spec-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.ai-spec-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.ai-spec-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.ai-price-box {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(255, 183, 3, 0.1));
    border: 1px solid var(--primary-cyan);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1.25rem;
}

.ai-price-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.ai-price-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-cyan);
    font-family: var(--font-mono);
}

.ai-price-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.ai-action-btns {
    display: flex;
    gap: 0.75rem;
}

.ai-action-btns .btn {
    flex: 1;
}

.ai-guide {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.ai-guide h5 {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

.ai-guide ol {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
}

.modal-close-btn:hover {
    color: var(--primary-cyan);
    background: rgba(255, 255, 255, 0.1);
}

.modal-body-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    padding: 2.5rem 2rem;
}

/* Modal Specs Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.85rem;
}

.spec-table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.spec-table td:first-child {
    color: var(--text-muted);
    width: 40%;
}

/* Checkout Grid */
.checkout-card {
    max-width: 950px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    padding: 2.5rem 2rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
}

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

.payment-method-selector {
    margin: 1.5rem 0;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.payment-option.active {
    border-color: var(--primary-cyan);
    background: rgba(0, 242, 254, 0.08);
}

/* QR Code Box & Payment Display — Centered, Symmetrical & Perfectly Balanced */
.checkout-qr-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.checkout-qr-side h3 {
    width: 100%;
    font-size: 1.05rem;
    color: #f8fafc;
    margin-bottom: 0.65rem;
    text-align: center;
}

.checkout-items-preview {
    width: 100%;
    margin-bottom: 0.85rem;
}

.qr-payment-box {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: 16px;
    padding: 1.15rem 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.qr-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
}

.qr-img-wrapper {
    width: 190px;
    max-width: 100%;
    margin: 0.25rem auto 0.85rem;
    background: #ffffff;
    padding: 0.55rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.qr-img-wrapper img,
#vietqr-img {
    width: 100% !important;
    height: auto !important;
    max-height: 230px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
    margin: 0 auto;
}

.qr-details {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.82rem;
    text-align: left;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.qr-details p {
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e2e8f0;
}

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

.qr-details p strong {
    color: #94a3b8;
    font-weight: 500;
}

.qr-details .qr-label {
    color: #94a3b8;
    font-weight: 500;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--primary-cyan);
    box-shadow: var(--shadow-glow);
    color: var(--text-main);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 300;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.scroll-top-btn:hover {
    background: var(--primary-cyan);
    color: var(--bg-main);
    transform: translateY(-3px);
}

.scroll-top-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(79, 172, 254, 0.1));
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
    flex-shrink: 0;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:active {
    background: var(--primary-cyan);
    color: #0b0f19;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.6);
}

/* Hide / Lower Header when any Modal is open so close [X] button is 100% visible */
body.modal-open {
    overflow: hidden;
}

body.modal-open .main-header {
    z-index: 10 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, z-index 0.25s ease;
}

.mobile-nav-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-cyan);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-nav-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.mobile-nav-close-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 135;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.menu-open .mobile-nav-overlay,
body.filter-open-body .mobile-nav-overlay,
.mobile-nav-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.filter-toggle-btn {
    display: none;
}

.promo-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.promo-box input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.85rem;
    min-width: 0;
}

.modal-action-btns {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

body.menu-open {
    overflow: hidden;
}

/* Responsive — Tablet */
@media (max-width: 992px) {
    .main-header {
        background: #090d16;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .mobile-nav-header {
        display: flex;
    }

    .filter-toggle-btn {
        display: inline-flex;
    }

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

    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: auto;
    }

    .search-container {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100vh;
        height: 100dvh;
        background: #0d1322;
        border-left: 1px solid var(--border-glow);
        z-index: 9999;
        padding: 1.25rem 1.25rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: none;
        visibility: hidden;
        pointer-events: none;
        display: flex;
        flex-direction: column;
    }

    .header-nav.open {
        transform: translateX(0);
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8);
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-nav-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-bottom: 0.85rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid var(--border-glow);
        flex-shrink: 0;
    }

    .mobile-nav-title {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--primary-cyan);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.4rem;
    }

    .nav-link {
        white-space: normal;
        padding: 0.85rem 1rem;
        width: 100%;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-sm);
        color: #f1f5f9;
        font-weight: 600;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(0, 242, 254, 0.12);
        border-color: var(--border-glow);
        color: var(--primary-cyan);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: 1px solid var(--border-glow);
        background: rgba(10, 15, 26, 0.95);
        border-radius: var(--radius-sm);
        margin-top: 0.4rem;
        padding: 0.5rem;
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
    }

    .dropdown-item {
        color: #f1f5f9;
        padding: 0.75rem 1rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: var(--radius-sm);
        margin: 3px 0;
        font-size: 0.9rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        border: 1px solid transparent;
        transition: var(--transition);
    }

    .dropdown-item:hover,
    .dropdown-item:active {
        background: rgba(0, 242, 254, 0.15);
        color: var(--primary-cyan);
        border-color: var(--border-glow);
        padding-left: 1.25rem;
    }

    .dropdown:hover .drop-arrow {
        transform: none;
    }

    .dropdown.open .drop-arrow {
        transform: rotate(180deg);
    }

    .hero-grid,
    .catalog-layout,
    .modal-body-grid,
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 2.5rem;
    }

    .hero-text h1 {
        font-size: 2.1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.25rem;
    }

    .catalog-layout {
        padding: 2rem 1rem;
        gap: 1.25rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .filter-sidebar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: min(310px, 85vw);
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        overflow-y: auto;
        z-index: 9999;
        background: #0d1322;
        border-right: 1px solid var(--border-glow);
        padding: 1.25rem 1.25rem 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        visibility: hidden;
        pointer-events: none;
    }

    .filter-sidebar.filter-open {
        transform: translateX(0);
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.8);
        visibility: visible;
        pointer-events: auto;
    }

    .filter-overlay:not(.hidden) {
        display: block;
    }

    .filter-sidebar::-webkit-scrollbar {
        width: 4px;
    }

    .filter-sidebar::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 2px;
    }

    .catalog-toolbar {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .sort-selector {
        flex: 1;
        min-width: 0;
    }

    .sort-selector select {
        max-width: 100%;
    }

    .combo-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .modal-body-grid,
    .checkout-grid {
        padding: 2rem 1.25rem;
        gap: 1.5rem;
    }

    .modal-card {
        max-height: 92vh;
        max-height: 92dvh;
    }

    .checkout-modal-card {
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .top-links {
        display: flex;
        gap: 0.75rem;
    }

    .top-links a {
        font-size: 0.75rem;
    }

    .top-banner-content {
        gap: 0.75rem;
        flex-wrap: nowrap;
    }

    .top-banner-msg {
        animation: marqueeBanner 18s linear infinite !important;
    }
}

/* =============================================================================
   RESPONSIVE — MOBILE & TABLET OPTIMIZATIONS (STORE & HOMEPAGE)
   ============================================================================= */

/* Responsive — Mobile (<= 768px) */
@media (max-width: 768px) {
    html {
        font-size: 14.5px;
    }

    .container {
        padding: 0 0.85rem;
        max-width: 100%;
        width: 100%;
    }

    .main-header {
        padding: 0.5rem 0;
    }

    .brand-sub {
        display: none !important;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .logo-img-wrapper,
    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .hero-section {
        padding: 1.25rem 0;
    }

    .hero-text h1 {
        font-size: 1.45rem;
        line-height: 1.25;
        margin-bottom: 0.45rem;
    }

    .hero-text p {
        font-size: 0.82rem;
        line-height: 1.45;
        max-width: 100%;
        margin-bottom: 0;
    }

    .hero-text p+p {
        margin-top: 0.3rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 0.45rem;
        margin-top: 0.75rem;
    }

    .hero-btns .btn {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.45rem;
        margin-top: 0.85rem;
    }

    .stat-item {
        padding: 0.45rem 0.55rem;
        border-radius: 8px;
        min-width: 0;
    }

    .stat-num {
        font-size: 1.15rem;
    }

    .stat-label {
        font-size: 0.65rem;
        line-height: 1.3;
    }

    .hero-card-featured {
        margin-top: 0.85rem;
        padding: 0.75rem;
        border-radius: 12px;
    }

    .featured-img-wrap {
        height: 140px;
    }

    .featured-details h3 {
        font-size: 0.92rem;
    }

    .featured-price-row {
        flex-wrap: wrap;
        gap: 0.45rem;
        align-items: center;
    }

    .featured-price-row .btn {
        width: 100%;
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }

    .specs-mini {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.72rem;
    }

    /* 2-Column High-Density Product Grid on Mobile */
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.55rem !important;
    }

    .product-card {
        padding: 0;
        border-radius: 12px;
        overflow: hidden;
    }

    .card-img-wrap {
        height: 125px;
        min-height: 125px;
        padding: 0.35rem;
    }

    .card-main-img {
        max-height: 115px;
        object-fit: contain;
    }

    .card-badge-top {
        font-size: 0.58rem;
        padding: 0.12rem 0.35rem;
        top: 0.35rem;
        left: 0.35rem;
    }

    .card-body {
        padding: 0.55rem 0.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .card-specs-tags {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0.18rem !important;
        margin-bottom: 0.15rem;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

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

    .spec-tag {
        font-size: 0.58rem !important;
        padding: 0.08rem 0.25rem !important;
        border-radius: 4px;
        white-space: nowrap !important;
        flex-shrink: 0;
    }

    .card-title {
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1.3;
        min-height: 2.1em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-desc-short {
        display: none !important;
    }

    .card-footer-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.2rem;
        margin-top: auto;
        padding-top: 0.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .price-old {
        font-size: 0.62rem;
        display: block;
    }

    .price-text {
        font-size: 0.85rem;
        font-weight: 800;
        font-family: var(--font-mono);
    }

    .card-actions {
        display: flex;
        gap: 0.2rem;
    }

    .icon-btn-action {
        width: 26px;
        height: 26px;
        font-size: 0.72rem;
        border-radius: 6px;
    }

    /* Catalog Toolbar */
    .catalog-layout {
        padding: 1rem 0;
        gap: 0.75rem;
    }

    .catalog-toolbar {
        align-items: center;
        gap: 0.45rem;
        margin-bottom: 0.75rem;
    }

    .catalog-info h2 {
        font-size: 1.05rem;
        margin: 0;
    }

    .count-badge {
        font-size: 0.68rem;
        padding: 0.08rem 0.4rem;
    }

    .filter-toggle-btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.76rem;
        border-radius: 7px;
    }

    .sort-selector {
        flex: 1;
        min-width: 0;
    }

    .sort-selector label {
        display: none;
    }

    .sort-selector select {
        width: 100%;
        padding: 0.35rem 0.55rem;
        font-size: 0.76rem;
        border-radius: 7px;
    }

    /* Combo Section */
    .combo-kits-section {
        padding: 1.5rem 0;
    }

    .section-title {
        margin-bottom: 1.25rem;
    }

    .section-title h2 {
        font-size: 1.2rem;
    }

    .section-title p {
        font-size: 0.78rem;
    }

    .combo-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .combo-card {
        padding: 0.75rem;
        border-radius: 12px;
    }

    .combo-thumb-item {
        width: 44px;
        height: 44px;
    }

    /* Footer */
    .main-footer {
        padding: 1.5rem 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-col h4 {
        font-size: 0.92rem;
        margin-bottom: 0.5rem;
    }

    .footer-col ul li {
        margin-bottom: 0.3rem;
        font-size: 0.78rem;
    }

    .footer-col p {
        font-size: 0.78rem;
        line-height: 1.45;
        margin-bottom: 0.3rem;
    }

    .contact-col {
        justify-self: start;
    }

    .stk-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .footer-bottom {
        padding: 0.75rem 0;
    }

    .copyright-row {
        flex-direction: column;
        gap: 0.35rem;
        text-align: center;
    }

    .copyright-row p {
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .view-counter-badge {
        font-size: 0.7rem;
    }

    /* Shopping Cart Drawer */
    .cart-drawer {
        width: 100vw;
        max-width: 100vw;
    }

    .cart-header h3 {
        font-size: 0.95rem;
    }

    .cart-footer {
        padding: 0.75rem;
    }

    /* Modals on Mobile */
    .modal-overlay {
        padding: 0.4rem;
        align-items: center;
        justify-content: center;
    }

    .modal-card {
        border-radius: 14px;
        max-height: 92vh;
        max-height: 92dvh;
        width: 95% !important;
        max-width: 100% !important;
        padding: 1rem 0.8rem;
    }

    .modal-body-grid {
        padding: 0.5rem 0;
        gap: 0.85rem;
        grid-template-columns: 1fr !important;
    }

    .modal-main-img-box {
        min-height: 180px;
        max-height: 220px;
        padding: 0.5rem;
        border-radius: 10px;
    }

    .modal-main-img-box img {
        max-height: 200px;
    }

    .modal-thumb {
        width: 38px;
        height: 38px;
        border-radius: 6px;
    }

    .spec-table {
        font-size: 0.76rem;
    }

    .spec-table th,
    .spec-table td {
        padding: 0.35rem 0.45rem;
    }

    .modal-close-btn {
        top: 0.6rem;
        right: 0.6rem;
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }

    .modal-action-btns {
        flex-direction: column;
        gap: 0.45rem;
        margin-top: 0.85rem;
    }

    .modal-action-btns .btn {
        width: 100%;
        padding: 0.55rem 0.85rem;
        font-size: 0.82rem;
        border-radius: 8px;
    }

    /* Checkout Modal */
    .checkout-modal-card {
        padding: 1rem 0.8rem;
    }

    .checkout-grid {
        padding: 0.35rem 0;
        gap: 0.85rem;
        grid-template-columns: 1fr !important;
    }

    .checkout-form-side h2 {
        font-size: 1.05rem;
        margin-bottom: 0.65rem;
    }

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

    .form-group label {
        font-size: 0.74rem;
        margin-bottom: 0.18rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.42rem 0.6rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0.45rem;
    }

    .payment-option {
        padding: 0.45rem 0.6rem;
        font-size: 0.78rem;
        gap: 0.35rem;
    }

    .payment-option span {
        font-size: 0.78rem;
    }

    #vietqr-img {
        width: 155px;
        max-width: 100%;
    }

    .qr-payment-box {
        padding: 0.75rem;
        border-radius: 10px;
    }

    .qr-details {
        font-size: 0.78rem;
    }

    .btn-checkout {
        padding: 0.65rem;
        font-size: 0.9rem;
        border-radius: 9px;
    }

    /* Toast */
    #toast-container {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .toast {
        font-size: 0.78rem;
        padding: 0.55rem 0.85rem;
        border-radius: 8px;
    }

    .card-hover-gallery {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .hover-preview-thumb {
        width: 24px;
        height: 24px;
    }
}

/* Responsive — Small phones (<= 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    /* Keep cart total visible on mobile */
    .cart-total-preview {
        display: block;
        font-size: 0.75rem;
    }

    .action-btn {
        padding: 0.35rem 0.65rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.45rem !important;
    }

    .hero-text h1 {
        font-size: 1.35rem;
    }

    .top-banner {
        font-size: 0.7rem;
        padding: 0.3rem 0;
    }

    .promo-box {
        flex-direction: row;
        gap: 0.35rem;
    }

    .promo-box input {
        font-size: 0.78rem;
        padding: 0.35rem 0.5rem;
    }

    .promo-box .btn {
        width: auto;
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
    }
}

/* Gallery Thumbnails Style in Product Specs Modal */
.modal-gallery-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-main-img-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-main-img-box img {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
    cursor: zoom-in;
}

.modal-thumb-row {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0.25rem 0.1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-cyan) transparent;
}

.modal-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.6;
}

.modal-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.modal-thumb.active {
    border-color: var(--primary-cyan);
    opacity: 1;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

.modal-apps-box {
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.18);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
}

.modal-apps-title {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modal-apps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.modal-apps-item {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #e2e8f0;
}

.modal-apps-check {
    margin-top: 0.15rem;
    flex-shrink: 0;
    font-size: 0.72rem;
    color: var(--primary-cyan);
}

.modal-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 2rem;
}

.modal-lightbox.active {
    display: flex;
}

.modal-lightbox img {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
}

.modal-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-lightbox-close:hover {
    background: rgba(255, 0, 80, 0.3);
    transform: rotate(90deg);
}
}

.modal-main-img-box img {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.modal-thumb-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.modal-thumb-strip::-webkit-scrollbar {
    height: 4px;
}

.modal-thumb-strip::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 4px;
}

.thumb-img {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    object-fit: contain;
    padding: 0.25rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.7;
}

.thumb-img:hover,
.thumb-img.active {
    border-color: var(--primary-cyan);
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.modal-apps-list {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-left: 0;
    margin-top: 0.5rem;
}

.modal-apps-list li {
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-apps-list li i {
    color: var(--primary-cyan);
}

/* EasyEDA & JLCPCB Multi-Layer PCB Stacking Preview */
.pcb-preview-stack {
    position: relative;
    width: 100%;
    height: 290px;
    background: #090d16;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.pcb-stack-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcb-stack-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcb-stack-layer svg,
.pcb-stack-layer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Layer stack z-indices */
.pcb-layer-base {
    z-index: 1;
}

.pcb-layer-copper {
    z-index: 2;
    opacity: 0.9;
}

.pcb-layer-soldermask {
    z-index: 3;
    opacity: 0.92;
}

.pcb-layer-silkscreen {
    z-index: 4;
    opacity: 0.95;
}

.pcb-layer-drills {
    z-index: 5;
}

/* User Profile Header Badge & Customer ID */
.user-profile-btn {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(0, 242, 254, 0.12)) !important;
    border: 1px solid var(--primary-cyan) !important;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.user-profile-btn:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(0, 242, 254, 0.25)) !important;
    box-shadow: 0 0 18px rgba(0, 242, 254, 0.4) !important;
    transform: translateY(-1px);
}

.customer-code-badge {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--primary-cyan);
    background: rgba(0, 242, 254, 0.15);
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* USER DASHBOARD MODAL STYLES */
.user-dashboard-modal-card {
    max-width: 980px !important;
    width: 95% !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #0b1329 0%, #1e293b 100%) !important;
    border: 1px solid rgba(0, 242, 254, 0.3) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 242, 254, 0.15) !important;
}

.ud-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.1rem 1.75rem 0.95rem;
    background: linear-gradient(90deg, rgba(0, 242, 254, 0.1), rgba(124, 58, 237, 0.1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ud-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #00f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

/* Avatar Upload Circular Component */
.ud-avatar-upload-wrapper {
    margin-bottom: 1.1rem;
}

.ud-avatar-circle-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #00f2fe);
    padding: 2.5px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.ud-avatar-circle-container:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
}

.ud-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #00f2fe;
}

.ud-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #00f2fe;
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ud-avatar-circle-container:hover .ud-avatar-overlay {
    opacity: 1;
}

/* Inline save feedback message in the info tab */
.ud-save-feedback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 0.5rem;
    animation: udFeedbackIn 0.3s ease;
}

@keyframes udFeedbackIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ud-user-info {
    flex: 1;
}

.ud-user-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.ud-user-name-row h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.ud-code-badge {
    background: rgba(0, 242, 254, 0.15);
    border: 1.5px dashed #00f2fe;
    color: #00f2fe;
    padding: 0.15rem 0.55rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.ud-user-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.84rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

.ud-user-meta span i {
    color: #00f2fe;
    margin-right: 0.35rem;
}

.ud-tabs-nav {
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    padding: 0 1rem;
    align-items: center;
    scrollbar-width: none;
}

.ud-tabs-nav::-webkit-scrollbar {
    display: none;
}

.ud-tab-btn {
    padding: 0.8rem 1.15rem;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    color: #94a3b8;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.ud-tab-btn:hover {
    color: #fff;
}

.ud-tab-btn.active {
    color: #00f2fe;
    border-bottom-color: #00f2fe;
    background: rgba(0, 242, 254, 0.05);
}

.ud-tab-btn.ud-logout-btn {
    margin-left: auto;
    color: #ef4444 !important;
    font-weight: 800;
}

.ud-tab-btn.ud-logout-btn:hover {
    color: #dc2626 !important;
    background: rgba(239, 68, 68, 0.1);
}

.ud-badge-count {
    background: rgba(0, 242, 254, 0.2);
    color: #00f2fe;
    padding: 0.12rem 0.45rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
}

.ud-tab-content {
    padding: 1.4rem 1.75rem;
    max-height: 65vh;
    overflow-y: auto;
}

#ud-content-info {
    overflow-y: visible !important;
}

/* User Info 2-Column Side-by-Side Clean Layout (Fits perfectly without scrolling) */
.ud-info-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 1.5rem;
    align-items: center;
}

.ud-info-left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.1rem 0.75rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ud-change-avatar-btn {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: #00f2fe;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ud-change-avatar-btn:hover {
    background: rgba(0, 242, 254, 0.2);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
    transform: translateY(-1px);
}

.ud-account-status-pill {
    font-size: 0.72rem;
    color: #10b981;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.ud-info-right-col {
    flex: 1;
}

.ud-profile-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ud-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.ud-form-group {
    margin-bottom: 0;
}

.ud-form-group label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 0.22rem;
    font-weight: 600;
}

.ud-form-group input,
.ud-form-group textarea {
    width: 100%;
    padding: 0.55rem 0.8rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1.5px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.ud-form-group input:focus,
.ud-form-group textarea:focus {
    outline: none;
    border-color: #00f2fe;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.ud-static-id {
    padding: 0.55rem 0.8rem;
    background: rgba(0, 242, 254, 0.12);
    border: 1.5px dashed #00f2fe;
    border-radius: 8px;
    color: #00f2fe;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-align: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
}

.ud-form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.2rem;
}

.ud-save-btn {
    margin-top: 0;
    padding: 0.65rem 1.4rem;
    background: linear-gradient(135deg, #7c3aed, #00f2fe);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.ud-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.45);
}

/* Order Cards */
.ud-order-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.85rem;
    transition: all 0.2s ease;
}

.ud-order-card:hover {
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.ud-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ud-order-code {
    font-weight: 700;
    color: #00f2fe;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.ud-order-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

.ud-order-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.ud-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ud-order-total {
    font-size: 1.05rem;
    font-weight: 700;
    color: #00f2fe;
    font-family: var(--font-mono);
}

/* Status Badges */
.ud-status-badge {
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ud-status-confirmed {
    background: rgba(0, 242, 254, 0.15);
    color: #00f2fe;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.ud-status-preparing {
    background: rgba(255, 183, 3, 0.15);
    color: #ffb703;
    border: 1px solid rgba(255, 183, 3, 0.3);
}

.ud-status-processing {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.ud-status-producing {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.ud-status-shipping {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.ud-status-completed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* =============================================
   Product Order Card - 3 Row Layout
   ============================================= */
.ud-order-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s;
}

.ud-order-card:hover {
    border-color: rgba(0, 242, 254, 0.25);
}

.ud-order-card-clickable {
    cursor: pointer;
}

.ud-order-card-clickable:hover {
    border-color: rgba(0, 242, 254, 0.4);
    background: rgba(0, 242, 254, 0.03);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.08);
}

.ud-order-card-clickable:active {
    transform: translateY(0);
}

/* Row 1: ID + Date + Total */
.ud-order-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ud-order-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.ud-order-code {
    font-size: 0.95rem;
    font-weight: 700;
    color: #00f2fe;
    font-family: var(--font-mono, 'Outfit', sans-serif);
    font-variant-numeric: tabular-nums;
}

.ud-order-date {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ud-order-total-inline {
    font-size: 0.85rem;
    color: #94a3b8;
    white-space: nowrap;
}

.ud-order-total-inline strong {
    color: #00f2fe;
    font-size: 1rem;
    font-family: var(--font-mono, 'Outfit', sans-serif);
    font-variant-numeric: tabular-nums;
}

/* Row 2: Product list */
.ud-order-row2 {
    padding: 0.65rem 0.9rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid rgba(0, 242, 254, 0.35);
}

.ud-order-row2-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.ud-order-items {
    font-size: 0.87rem;
    color: #e2e8f0;
    line-height: 1.7;
}

/* Row 3: Stepper */
.ud-order-row3 {
    padding-top: 0.25rem;
}

.ud-stepper {
    display: flex;
    align-items: center;
    width: 100%;
}

.ud-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    gap: 0.35rem;
}

.ud-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.ud-step-dot.done {
    background: rgba(0, 212, 120, 0.2);
    border-color: #00d478;
    color: #00d478;
}

.ud-step-dot.done.active {
    background: rgba(0, 212, 120, 0.25);
    border-color: #00d478;
    color: #00d478;
    box-shadow: 0 0 12px rgba(0, 212, 120, 0.45);
}

.ud-step-dot.active {
    background: rgba(0, 242, 254, 0.2);
    border-color: #00f2fe;
    color: #00f2fe;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.35);
}

.ud-step-label {
    font-size: 0.67rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    text-align: center;
}

.ud-step-label.done {
    color: #00d478;
}

.ud-step-label.done.active {
    color: #00d478;
    font-weight: 700;
}

.ud-step-label.active {
    color: #00f2fe;
    font-weight: 700;
}

.ud-step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
    margin-bottom: 20px;
    border-radius: 2px;
    transition: background 0.3s;
}

.ud-step-line.done {
    background: #00d478;
}

@media (max-width: 480px) {
    .ud-step-label {
        font-size: 0.58rem;
    }

    .ud-step-dot {
        width: 22px;
        height: 22px;
        font-size: 0.55rem;
    }
}

/* User Account Notification & Order Status Update Badges */
.user-profile-btn {
    position: relative !important;
}

.user-notif-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    background: #ff4757;
    border: 2px solid #0f172a;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 8px #ff4757;
    animation: none !important;
    z-index: 10;
    line-height: 1;
}

html[data-theme="light"] .user-notif-dot,
body.light-mode .user-notif-dot {
    border-color: #ffffff;
}

.ud-tab-unread-dot {
    background: #ff4757;
    color: #ffffff;
    padding: 0.12rem 0.45rem;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 800;
    margin-left: 0.35rem;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.4);
    animation: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.ud-tab-unread-dot i {
    font-size: 0.45rem;
    color: #ffffff;
}

.ud-order-card.has-update,
.mfg-order-card.has-update {
    border-color: rgba(255, 71, 87, 0.6) !important;
    background: linear-gradient(145deg, rgba(255, 71, 87, 0.08), rgba(15, 23, 42, 0.95)) !important;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.2), 0 0 15px rgba(255, 71, 87, 0.1) !important;
    position: relative;
    transform: none !important;
}

.ud-order-card.has-update:hover,
.mfg-order-card.has-update:hover {
    transform: none !important;
}

html[data-theme="light"] .mfg-order-card.has-update,
body.light-mode .mfg-order-card.has-update {
    border-color: #ff4757 !important;
    background: #fff5f5 !important;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.2) !important;
    transform: none !important;
}

.order-bell-icon {
    font-size: 1.7rem !important;
    margin-right: 0.45rem;
    cursor: pointer;
    transition: all 0.25s ease;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.order-bell-icon.unread {
    color: #ff4757;
    filter: drop-shadow(0 0 8px rgba(255, 71, 87, 0.75));
    animation: bellPulse 3.2s ease-in-out infinite;
}

.order-bell-icon.unread:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 12px rgba(255, 71, 87, 0.95));
}

.order-bell-icon.read {
    color: #94a3b8;
    filter: none;
    animation: none;
    cursor: default;
}

html[data-theme="light"] .order-bell-icon.unread,
body.light-mode .order-bell-icon.unread {
    color: #ef4444;
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.65));
}

html[data-theme="light"] .order-bell-icon.read,
body.light-mode .order-bell-icon.read {
    color: #cbd5e1;
}

@keyframes bellPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 4px rgba(255, 71, 87, 0.5));
    }
    50% {
        transform: scale(1.12);
        filter: drop-shadow(0 0 10px rgba(255, 71, 87, 0.9));
    }
}

.order-mark-read-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.order-mark-read-btn:hover {
    background: rgba(0, 242, 254, 0.15);
    color: #00f2fe;
    border-color: #00f2fe;
}

@keyframes pulseNotifDot {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.8);
    }

    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 7px rgba(255, 71, 87, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

/* ==========================================
   ELECTROCIRCUIT STORE - HEADER LIGHT & DARK THEME SYSTEM
   ========================================== */

/* 1. Light Theme Variable Overrides - Nền Trắng Đỏ Nhẹ */
html[data-theme="light"] {
    --bg-dark: #fff8f8;
    --bg-card: #ffffff;
    --bg-card-hover: #fff0f2;
    --bg-glass: rgba(255, 248, 248, 0.92);

    --primary-cyan: #0284c7;
    --primary-blue: #0284c7;
    --accent-neon: #e11d48;
    --accent-magenta: #db2777;
    --accent-gold: #d97706;
    --accent-green: #16a34a;
    --accent-red: #e11d48;

    --text-main: #1e1b1b;
    --text-muted: #64748b;
    --text-dark: #ffffff;

    --border-color: rgba(254, 205, 211, 0.85);
    --border-glow: rgba(225, 29, 72, 0.25);

    --shadow-glow: 0 4px 15px rgba(225, 29, 72, 0.12);
    --shadow-card: 0 10px 30px rgba(225, 29, 72, 0.05);
}

/* 2. Light Mode Header Refinements - Đồng bộ 2 Header */
html[data-theme="light"] .main-header,
html[data-theme="light"] .pcb-page-header {
    background: rgba(255, 248, 248, 0.95) !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"] .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"] .code-badge,
body.light-mode .code-badge {
    background: rgba(225, 29, 72, 0.12) !important;
    color: #e11d48 !important;
    border-color: #fda4af !important;
    font-weight: 700 !important;
}

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

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

html[data-theme="light"] .top-links a i,
body.light-mode .top-links a i {
    color: #e11d48 !important;
    filter: none !important;
}

html[data-theme="light"] .logo-img-wrapper,
body.light-mode .logo-img-wrapper {
    background: rgba(225, 29, 72, 0.08);
    border-color: rgba(225, 29, 72, 0.25);
    box-shadow: 0 2px 10px rgba(225, 29, 72, 0.12);
}

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

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

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

html[data-theme="light"] .nav-link {
    color: #334155;
}

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

html[data-theme="light"] .dropdown-menu {
    background: #ffffff;
    border: 1px solid #fecdd3;
    box-shadow: 0 12px 30px rgba(225, 29, 72, 0.12);
}

html[data-theme="light"] .dropdown-item {
    color: #1e1b1b;
    border-bottom: 1px solid #fff0f2;
}

html[data-theme="light"] .dropdown-item:hover {
    background: rgba(225, 29, 72, 0.08);
    color: #e11d48;
}

html[data-theme="light"] .dropdown-sub-label {
    color: #e11d48;
    border-bottom-color: #fecdd3;
}

html[data-theme="light"] .dropdown-divider {
    background: #fecdd3;
}

/* Light Mode Search Input - Đồng bộ 2 Header */
html[data-theme="light"] .search-container {
    background: transparent !important;
    border: none !important;
}

html[data-theme="light"] .search-container input {
    background: #fff0f2 !important;
    border: 1px solid #fecdd3 !important;
    color: #1e1b1b !important;
}

html[data-theme="light"] .search-container input::placeholder {
    color: #9f1239 !important;
    opacity: 0.6;
}

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

html[data-theme="light"] .search-icon,
html[data-theme="light"] #search-clear-btn {
    color: #881337 !important;
}

/* Light Mode Action Buttons, Theme Button & Mobile Menu */
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"] .cart-btn,
body.light-mode .cart-btn,
html[data-theme="light"] .user-profile-btn,
body.light-mode .user-profile-btn,
html[data-theme="light"] #mobile-menu-btn,
body.light-mode #mobile-menu-btn,
html[data-theme="light"] .mobile-menu-btn,
body.light-mode .mobile-menu-btn {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.08), rgba(2, 132, 199, 0.12)) !important;
    border: 1.5px solid #0284c7 !important;
    color: #0284c7 !important;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.15) !important;
    font-weight: 700 !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"] .cart-btn:hover,
body.light-mode .cart-btn:hover,
html[data-theme="light"] .user-profile-btn:hover,
body.light-mode .user-profile-btn:hover,
html[data-theme="light"] #mobile-menu-btn:hover,
body.light-mode #mobile-menu-btn:hover,
html[data-theme="light"] .mobile-menu-btn:hover,
body.light-mode .mobile-menu-btn:hover {
    background: #e0f2fe !important;
    border-color: #0369a1 !important;
    color: #0369a1 !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"] .action-btn svg,
body.light-mode .action-btn svg,
html[data-theme="light"] #open-order-history-btn svg,
body.light-mode #open-order-history-btn svg,
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,
html[data-theme="light"] #mobile-menu-btn i,
body.light-mode #mobile-menu-btn i,
html[data-theme="light"] .mobile-menu-btn i,
body.light-mode .mobile-menu-btn i {
    color: #0284c7 !important;
    fill: #0284c7 !important;
    filter: none !important;
}

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

html[data-theme="light"] .theme-toggle-btn,
body.light-mode .theme-toggle-btn {
    background: #fff0f2 !important;
    border: 1.5px solid #fecdd3 !important;
    color: #d97706 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .theme-toggle-btn:hover,
body.light-mode .theme-toggle-btn:hover {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
    color: #b45309 !important;
}

html[data-theme="light"] .theme-toggle-btn i,
body.light-mode .theme-toggle-btn i {
    color: #d97706 !important;
    filter: none !important;
}

html[data-theme="light"] .mobile-menu-btn i,
body.light-mode .mobile-menu-btn i {
    color: inherit !important;
}

html[data-theme="light"] .user-profile-btn {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.08), rgba(2, 132, 199, 0.12)) !important;
    border: 1px solid #0284c7 !important;
    color: #1e1b1b !important;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.15) !important;
}

html[data-theme="light"] .customer-code-badge {
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.15) !important;
}

/* Light Mode Mobile Navigation Drawer */
@media (max-width: 992px) {
    html[data-theme="light"] .header-nav,
    body.light-mode .header-nav {
        background: #ffffff;
        border-left: 1px solid #fecdd3;
    }

    html[data-theme="light"] .header-nav.open,
    body.light-mode .header-nav.open {
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
    }

    html[data-theme="light"] .filter-sidebar,
    body.light-mode .filter-sidebar {
        background: #ffffff;
        border-right: 1px solid #fecdd3;
    }

    html[data-theme="light"] .filter-sidebar.filter-open,
    body.light-mode .filter-sidebar.filter-open {
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.15);
    }

    html[data-theme="light"] .mobile-nav-header {
        background: #fff0f2;
        border-bottom: 1px solid #fecdd3;
        color: #1e1b1b;
    }

    html[data-theme="light"] .mobile-nav-title {
        color: #1e1b1b;
    }

    html[data-theme="light"] .mobile-nav-close-btn {
        color: #881337;
    }

    html[data-theme="light"] .mobile-nav-close-btn:hover {
        color: #e11d48;
    }
}

/* Light Mode Admin Header */
html[data-theme="light"] .admin-header {
    background: rgba(255, 248, 248, 0.95) !important;
    border-bottom: 1px solid rgba(254, 205, 211, 0.9) !important;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.05);
}

html[data-theme="light"] .admin-brand-text {
    color: #1e1b1b !important;
}

/* Light Mode Footer - Đồng bộ màu nền với Header khi thay đổi màu */
html[data-theme="light"] .main-footer,
html[data-theme="light"] .footer-bottom {
    background: rgba(255, 248, 248, 0.95) !important;
    border-top: 1px solid rgba(254, 205, 211, 0.9) !important;
}

html[data-theme="light"] .footer-col h4 {
    color: #0284c7;
}

html[data-theme="light"] .footer-col p,
html[data-theme="light"] .footer-col ul a,
html[data-theme="light"] .footer-bottom,
html[data-theme="light"] .footer-bottom p {
    color: #334155;
}

html[data-theme="light"] .footer-col ul a:hover {
    color: #e11d48;
}

html[data-theme="light"] .social-links a {
    background: rgba(225, 29, 72, 0.08);
    color: #334155;
}

html[data-theme="light"] .social-links a:hover {
    background: #e11d48;
    color: #ffffff;
}

html[data-theme="light"] .view-counter-badge {
    background: rgba(2, 132, 199, 0.08);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

/* 3. Theme Toggle Button Component & Animations */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50% !important;
}

.theme-toggle-btn:hover {
    transform: translateY(-2px) scale(1.05);
}

.theme-spin i {
    animation: themeSpin 0.5s ease-in-out;
}

@keyframes themeSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.25);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* ==========================================================================
   LIGHT THEME ENHANCEMENTS - TỐI ƯU ĐỘ ĐẬM & ĐỘ TƯƠNG PHẢN CHỮ TRÊN NỀN SÁNG
   ========================================================================== */
html[data-theme="light"],
body.light-mode {
    --text-main: #0f172a !important;
    /* Đen xanh siêu đậm, cực kỳ sắc nét */
    --text-muted: #334155 !important;
    /* Xám đậm dễ đọc, không bị mờ nhạt */
    --text-dark: #0f172a !important;
}

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

/* Modal Popup Ứng dụng thực tế */
html[data-theme="light"] .modal-apps-box,
body.light-mode .modal-apps-box {
    background: #f0f9ff !important;
    border: 1.5px solid #7dd3fc !important;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.08) !important;
}

html[data-theme="light"] .modal-apps-title,
body.light-mode .modal-apps-title {
    color: #0369a1 !important;
    font-weight: 800 !important;
}

html[data-theme="light"] .modal-apps-item,
body.light-mode .modal-apps-item,
html[data-theme="light"] .modal-apps-item span,
body.light-mode .modal-apps-item span {
    color: #0f172a !important;
    /* Màu đen đậm rõ nét thay vì mờ nhạt */
    font-weight: 600 !important;
    font-size: 0.82rem !important;
}

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

/* Thẻ ứng dụng thực tế trên danh sách sản phẩm */
html[data-theme="light"] .apps-label,
body.light-mode .apps-label {
    color: #0369a1 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .app-tag,
body.light-mode .app-tag {
    background: #f0fdf4 !important;
    border: 1px solid #86efac !important;
    color: #15803d !important;
    font-weight: 600 !important;
}

/* Modal Chi tiết sản phẩm */
html[data-theme="light"] .modal-card,
body.light-mode .modal-card {
    background: #ffffff !important;
    border: 1px solid #fecdd3 !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
}

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

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

html[data-theme="light"] .modal-card h4,
body.light-mode .modal-card h4 {
    color: #0f172a !important;
    font-weight: 800 !important;
    border-bottom-color: #fecdd3 !important;
}

html[data-theme="light"] .spec-table td,
body.light-mode .spec-table td {
    border-bottom-color: #f1f5f9 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .spec-table td:first-child,
body.light-mode .spec-table td:first-child {
    color: #475569 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .spec-table td strong,
body.light-mode .spec-table td strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .modal-main-img-box,
body.light-mode .modal-main-img-box {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] .modal-thumb,
body.light-mode .modal-thumb {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

/* Thẻ sản phẩm trên trang chủ */
html[data-theme="light"] .product-card,
body.light-mode .product-card {
    background: #ffffff !important;
    border: 1px solid #fecdd3 !important;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.05) !important;
}

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

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

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

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

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

/* Sidebar bộ lọc */
html[data-theme="light"] .filter-sidebar,
body.light-mode .filter-sidebar {
    background: #ffffff !important;
    border: 1px solid #fecdd3 !important;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.05) !important;
}

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

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

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

html[data-theme="light"] .category-btn.active,
body.light-mode .category-btn.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Section Titles */
html[data-theme="light"] .section-title,
body.light-mode .section-title {
    color: #0f172a !important;
    font-weight: 900 !important;
}

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

/* ==========================================================================
   LIGHT MODE USER DASHBOARD MODAL ENHANCEMENTS - ĐẬM RÕ NÉT TRÊN NỀN SÁNG
   ========================================================================== */
html[data-theme="light"] .user-dashboard-modal-card,
body.light-mode .user-dashboard-modal-card {
    background: #ffffff !important;
    border: 1.5px solid #fecdd3 !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="light"] .ud-header,
body.light-mode .ud-header {
    background: linear-gradient(90deg, #ffe4e6 0%, #e0f2fe 100%) !important;
    border-bottom: 1.5px solid #fecdd3 !important;
}

html[data-theme="light"] .ud-avatar,
body.light-mode .ud-avatar {
    background: linear-gradient(135deg, #e11d48, #0284c7) !important;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25) !important;
}

html[data-theme="light"] .ud-user-name-row h3,
body.light-mode .ud-user-name-row h3 {
    color: #0f172a !important;
    /* Đen đậm rõ nét, không bị chìm */
    font-weight: 900 !important;
}

html[data-theme="light"] .ud-code-badge,
body.light-mode .ud-code-badge {
    background: rgba(2, 132, 199, 0.12) !important;
    border: 1.5px dashed #0284c7 !important;
    color: #0284c7 !important;
    font-weight: 800 !important;
}

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

html[data-theme="light"] .ud-user-meta span i,
body.light-mode .ud-user-meta span i {
    color: #0284c7 !important;
}

/* Tabs Navigation */
html[data-theme="light"] .ud-tabs-nav,
body.light-mode .ud-tabs-nav {
    background: #f8fafc !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
}

html[data-theme="light"] .ud-tab-btn,
body.light-mode .ud-tab-btn {
    color: #334155 !important;
    font-weight: 700 !important;
}

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

html[data-theme="light"] .ud-tab-btn.active,
body.light-mode .ud-tab-btn.active {
    color: #0284c7 !important;
    border-bottom-color: #0284c7 !important;
    background: #ffffff !important;
    font-weight: 800 !important;
}

html[data-theme="light"] .ud-badge-count,
body.light-mode .ud-badge-count {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    font-weight: 800 !important;
}

/* Tab Content & Form */
html[data-theme="light"] .ud-tab-content,
body.light-mode .ud-tab-content {
    background: #ffffff !important;
}

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

html[data-theme="light"] .ud-form-group input,
body.light-mode .ud-form-group input,
html[data-theme="light"] .ud-form-group textarea,
body.light-mode .ud-form-group textarea {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .ud-form-group input:focus,
body.light-mode .ud-form-group input:focus,
html[data-theme="light"] .ud-form-group textarea:focus,
body.light-mode .ud-form-group textarea:focus {
    background: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.2) !important;
}

html[data-theme="light"] .ud-static-id,
body.light-mode .ud-static-id {
    background: #f0f9ff !important;
    border: 1.5px dashed #0284c7 !important;
    color: #0284c7 !important;
    font-weight: 800 !important;
}

html[data-theme="light"] .ud-info-left-col,
body.light-mode .ud-info-left-col {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
}

html[data-theme="light"] .ud-change-avatar-btn,
body.light-mode .ud-change-avatar-btn {
    background: #e0f2fe !important;
    border: 1px solid #0284c7 !important;
    color: #0284c7 !important;
    font-weight: 800 !important;
}

html[data-theme="light"] .ud-change-avatar-btn:hover,
body.light-mode .ud-change-avatar-btn:hover {
    background: #bae6fd !important;
}

html[data-theme="light"] .ud-account-status-pill,
body.light-mode .ud-account-status-pill {
    color: #15803d !important;
}

html[data-theme="light"] .ud-avatar-circle-container,
body.light-mode .ud-avatar-circle-container {
    background: linear-gradient(135deg, #e11d48, #0284c7) !important;
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.25) !important;
}

html[data-theme="light"] .ud-avatar-placeholder,
body.light-mode .ud-avatar-placeholder {
    background: #f1f5f9 !important;
    color: #0284c7 !important;
}

html[data-theme="light"] .ud-save-btn,
body.light-mode .ud-save-btn {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3) !important;
}

html[data-theme="light"] .ud-save-btn:hover,
body.light-mode .ud-save-btn:hover {
    background: linear-gradient(135deg, #0369a1, #075985) !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4) !important;
}

/* Order Cards in User Dashboard */
html[data-theme="light"] .ud-order-card,
body.light-mode .ud-order-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .ud-order-card:hover,
body.light-mode .ud-order-card:hover {
    border-color: #0284c7 !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.12) !important;
}

html[data-theme="light"] .ud-order-card.has-update,
body.light-mode .ud-order-card.has-update {
    border-color: #fda4af !important;
    background: linear-gradient(145deg, #fff1f2 0%, #ffffff 100%) !important;
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.12) !important;
}

html[data-theme="light"] .ud-order-code,
body.light-mode .ud-order-code {
    color: #0284c7 !important;
    font-weight: 900 !important;
}

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

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

html[data-theme="light"] .ud-order-total-inline strong,
body.light-mode .ud-order-total-inline strong {
    color: #0284c7 !important;
    font-weight: 900 !important;
}

html[data-theme="light"] .ud-order-row2,
body.light-mode .ud-order-row2 {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 3.5px solid #0284c7 !important;
}

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

html[data-theme="light"] .ud-order-items,
body.light-mode .ud-order-items {
    color: #0f172a !important;
    font-weight: 600 !important;
}

/* Stepper inside Dashboard */
html[data-theme="light"] .ud-step-dot,
body.light-mode .ud-step-dot {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #94a3b8 !important;
}

html[data-theme="light"] .ud-step-dot.done,
body.light-mode .ud-step-dot.done {
    background: #dcfce7 !important;
    border-color: #16a34a !important;
    color: #16a34a !important;
}

html[data-theme="light"] .ud-step-dot.active,
body.light-mode .ud-step-dot.active {
    background: #e0f2fe !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.3) !important;
}

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

html[data-theme="light"] .ud-step-label.done,
body.light-mode .ud-step-label.done {
    color: #15803d !important;
    font-weight: 700 !important;
}

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

html[data-theme="light"] .ud-step-line,
body.light-mode .ud-step-line {
    background: #e2e8f0 !important;
}

html[data-theme="light"] .ud-step-line.done,
body.light-mode .ud-step-line.done {
    background: #16a34a !important;
}

/* Empty order placeholder in dashboard */
html[data-theme="light"] .ud-order-empty,
body.light-mode .ud-order-empty {
    color: #475569 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .ud-order-empty i,
body.light-mode .ud-order-empty i {
    color: #0284c7 !important;
}

/* User Profile Initial Form Modal in Light Mode */
html[data-theme="light"] .user-profile-modal-card,
body.light-mode .user-profile-modal-card {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #fecdd3 !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="light"] .user-profile-modal-card h3,
body.light-mode .user-profile-modal-card h3 {
    color: #0284c7 !important;
    font-weight: 800 !important;
}

html[data-theme="light"] .user-profile-modal-card p,
body.light-mode .user-profile-modal-card p {
    color: #334155 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .user-profile-modal-card label,
body.light-mode .user-profile-modal-card label {
    color: #0f172a !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .user-profile-modal-card input,
body.light-mode .user-profile-modal-card input,
html[data-theme="light"] .user-profile-modal-card textarea,
body.light-mode .user-profile-modal-card textarea {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .user-profile-modal-card input:focus,
body.light-mode .user-profile-modal-card input:focus,
html[data-theme="light"] .user-profile-modal-card textarea:focus,
body.light-mode .user-profile-modal-card textarea:focus {
    background: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.2) !important;
}

html[data-theme="light"] #up-customer-id,
body.light-mode #up-customer-id {
    background: #f0f9ff !important;
    border: 1.5px dashed #0284c7 !important;
    color: #0284c7 !important;
    font-weight: 800 !important;
}

html[data-theme="light"] #close-user-profile-modal,
body.light-mode #close-user-profile-modal {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

html[data-theme="light"] #close-user-profile-modal:hover,
body.light-mode #close-user-profile-modal:hover {
    background: #fee2e2 !important;
    color: #e11d48 !important;
}

/* ============================================================
   SERVICE REQUEST MODAL (Hardware, Firmware, 3D Print / Vỏ hộp)
   Synchronized Layout & Theming for Dark Mode & Light Mode
   ============================================================ */

.service-modal-card {
    max-width: 620px !important;
    width: 92% !important;
    max-height: 90vh !important;
    padding: 2.25rem 2.25rem 2rem 2.25rem !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow-y: auto !important;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%) !important;
    border: 1px solid rgba(0, 242, 254, 0.25) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(0, 242, 254, 0.08) !important;
    color: #f1f5f9 !important;
    font-family: var(--font-primary, 'Outfit', 'Inter', sans-serif) !important;
}

/* Close Button */
.service-close-btn {
    position: absolute !important;
    top: 1.25rem !important;
    right: 1.25rem !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
}

.service-close-btn:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
    transform: rotate(90deg) !important;
}

/* Header & Titles */
.service-modal-header {
    margin-bottom: 0.35rem !important;
    padding-right: 2.5rem !important;
}

.service-modal-title {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    margin: 0 0 0.4rem 0 !important;
    line-height: 1.3 !important;
}

.service-modal-title.title-hardware {
    color: #fbbf24 !important;
    /* Gold/Amber */
}

.service-modal-title.title-firmware {
    color: #34d399 !important;
    /* Emerald */
}

.service-modal-title.title-3dprint {
    color: #38bdf8 !important;
    /* Sky Blue */
}

.service-modal-subtitle {
    font-size: 0.875rem !important;
    color: #94a3b8 !important;
    margin: 0 0 1.35rem 0 !important;
    line-height: 1.5 !important;
}

/* Form Groups & Alignment */
.service-modal-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
}

.service-form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
    width: 100% !important;
    margin: 0 !important;
}

.service-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.85rem !important;
    width: 100% !important;
}

@media (max-width: 600px) {
    .service-modal-card {
        padding: 1.5rem 1.15rem 1.25rem 1.15rem !important;
        max-width: 96% !important;
    }

    .service-form-row {
        grid-template-columns: 1fr !important;
    }
}

.service-form-label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
    margin: 0 !important;
}

.service-form-label .required-star {
    color: #f87171 !important;
    font-weight: 700 !important;
}

.service-label-hint {
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    color: #94a3b8 !important;
}

/* Controls: Inputs, Selects, Textareas */
.service-form-control {
    width: 100% !important;
    padding: 0.65rem 0.85rem !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
}

.service-form-control::placeholder {
    color: #64748b !important;
}

.service-form-control:focus {
    outline: none !important;
    border-color: #00f2fe !important;
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.2) !important;
    background: rgba(15, 23, 42, 0.95) !important;
}

select.service-form-control {
    cursor: pointer !important;
}

select.service-form-control option {
    background: #1e293b !important;
    color: #ffffff !important;
}

textarea.service-form-control {
    resize: vertical !important;
    min-height: 65px !important;
}

.service-file-input {
    cursor: pointer !important;
    padding: 0.5rem 0.75rem !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px dashed rgba(148, 163, 184, 0.35) !important;
    color: #cbd5e1 !important;
    font-size: 0.82rem !important;
}

.service-file-input::file-selector-button {
    padding: 0.35rem 0.75rem !important;
    margin-right: 0.75rem !important;
    border-radius: 6px !important;
    border: 1px solid rgba(0, 242, 254, 0.4) !important;
    background: rgba(0, 242, 254, 0.12) !important;
    color: #00f2fe !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.service-file-input::file-selector-button:hover {
    background: rgba(0, 242, 254, 0.25) !important;
}

/* Submit Action Button */
.service-submit-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    padding: 0.85rem 1.5rem !important;
    margin-top: 0.6rem !important;
    background: linear-gradient(135deg, #0284c7 0%, #0072ff 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.4) !important;
    transition: all 0.25s ease !important;
}

.service-submit-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0052cc 100%) !important;
    box-shadow: 0 6px 24px rgba(2, 132, 199, 0.55) !important;
    transform: translateY(-1px) !important;
}

.service-submit-btn:active {
    transform: translateY(1px) !important;
}

/* ============================================================
   LIGHT MODE OVERRIDES FOR SERVICE MODAL
   ============================================================ */
html[data-theme="light"] .service-modal-card,
body.light-mode .service-modal-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.14) !important;
    color: #0f172a !important;
}

html[data-theme="light"] .service-close-btn,
body.light-mode .service-close-btn {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

html[data-theme="light"] .service-close-btn:hover,
body.light-mode .service-close-btn:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
}

html[data-theme="light"] .service-modal-title.title-hardware,
body.light-mode .service-modal-title.title-hardware {
    color: #d97706 !important;
    /* Rich warm amber */
}

html[data-theme="light"] .service-modal-title.title-firmware,
body.light-mode .service-modal-title.title-firmware {
    color: #16a34a !important;
    /* Rich forest green */
}

html[data-theme="light"] .service-modal-title.title-3dprint,
body.light-mode .service-modal-title.title-3dprint {
    color: #0284c7 !important;
    /* Rich sky blue */
}

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

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

html[data-theme="light"] .service-form-label .required-star,
body.light-mode .service-form-label .required-star {
    color: #dc2626 !important;
}

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

html[data-theme="light"] .service-form-control,
body.light-mode .service-form-control {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .service-form-control::placeholder,
body.light-mode .service-form-control::placeholder {
    color: #94a3b8 !important;
}

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

html[data-theme="light"] select.service-form-control option,
body.light-mode select.service-form-control option {
    background: #ffffff !important;
    color: #0f172a !important;
}

html[data-theme="light"] .service-file-input,
body.light-mode .service-file-input {
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    color: #334155 !important;
}

html[data-theme="light"] .service-file-input::file-selector-button,
body.light-mode .service-file-input::file-selector-button {
    border: 1px solid #0284c7 !important;
    background: rgba(2, 132, 199, 0.08) !important;
    color: #0284c7 !important;
}

html[data-theme="light"] .service-file-input::file-selector-button:hover,
body.light-mode .service-file-input::file-selector-button:hover {
    background: rgba(2, 132, 199, 0.16) !important;
}

html[data-theme="light"] .service-submit-btn,
body.light-mode .service-submit-btn {
    background: linear-gradient(135deg, #0284c7 0%, #0072ff 100%) !important;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35) !important;
}

html[data-theme="light"] .service-submit-btn:hover,
body.light-mode .service-submit-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0052cc 100%) !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45) !important;
}

/* =============================================================================
   DUAL-THEME HARMONIZATION: CART DRAWER, CART FOOTER & CHECKOUT MODAL
   (ĐẢM BẢO CHỮ VÀ SỐ RÕ NÉT 100% Ở CẢ 2 GIAO DIỆN LIGHT & DARK)
   ============================================================================= */

/* --- Light Mode Cart Drawer (Sáng sạch & Rõ chữ) --- */
html[data-theme="light"] .cart-drawer,
body.light-mode .cart-drawer {
    background: #ffffff !important;
    border-left: 1px solid #fecdd3 !important;
    box-shadow: -10px 0 35px rgba(225, 29, 72, 0.12) !important;
}

html[data-theme="light"] .cart-header,
body.light-mode .cart-header {
    background: #fff8f8 !important;
    border-bottom: 1px solid #fecdd3 !important;
}

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

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

html[data-theme="light"] .cart-close-btn,
body.light-mode .cart-close-btn {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

html[data-theme="light"] .cart-close-btn:hover,
body.light-mode .cart-close-btn:hover {
    background: #fee2e2 !important;
    border-color: #f87171 !important;
    color: #ef4444 !important;
}

html[data-theme="light"] .cart-items-list,
body.light-mode .cart-items-list {
    background: #ffffff !important;
}

html[data-theme="light"] .cart-item,
body.light-mode .cart-item {
    background: #fffafa !important;
    border: 1.5px solid #fecdd3 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

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

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

html[data-theme="light"] .cart-qty-ctrl,
body.light-mode .cart-qty-ctrl {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
}

html[data-theme="light"] .cart-qty-ctrl .qty-btn,
body.light-mode .cart-qty-ctrl .qty-btn {
    color: #334155 !important;
    font-weight: 800 !important;
}

html[data-theme="light"] .cart-qty-ctrl .qty-btn:hover,
body.light-mode .cart-qty-ctrl .qty-btn:hover {
    color: #e11d48 !important;
}

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

/* Light Mode Cart Footer — Khắc phục triệt để lỗi nền đen chữ chìm */
html[data-theme="light"] .cart-footer,
body.light-mode .cart-footer {
    background: #ffffff !important;
    border-top: 1.5px solid #fecdd3 !important;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06) !important;
}

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

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

html[data-theme="light"] .summary-row span:last-child,
html[data-theme="light"] #cart-subtotal,
body.light-mode .summary-row span:last-child,
body.light-mode #cart-subtotal {
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
}

html[data-theme="light"] #discount-summary-row span:first-child,
html[data-theme="light"] #discount-summary-row #cart-discount,
body.light-mode #discount-summary-row span:first-child,
body.light-mode #discount-summary-row #cart-discount {
    color: #b45309 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .summary-row.total-row,
body.light-mode .summary-row.total-row {
    border-top: 1.5px solid #fecdd3 !important;
    margin-top: 0.75rem !important;
    padding-top: 0.75rem !important;
}

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

html[data-theme="light"] .summary-row.total-row #cart-grand-total,
body.light-mode .summary-row.total-row #cart-grand-total {
    color: #0284c7 !important;
    font-weight: 800 !important;
    font-size: 1.35rem !important;
    text-shadow: none !important;
}

html[data-theme="light"] .promo-box input,
body.light-mode .promo-box input {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

html[data-theme="light"] .promo-box input::placeholder,
body.light-mode .promo-box input::placeholder {
    color: #94a3b8 !important;
}

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

html[data-theme="light"] .promo-box .btn,
body.light-mode .promo-box .btn {
    background: #f0f9ff !important;
    border: 1.5px solid #0284c7 !important;
    color: #0284c7 !important;
    font-weight: 700 !important;
}

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

html[data-theme="light"] .btn-checkout,
body.light-mode .btn-checkout {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35) !important;
}

html[data-theme="light"] .btn-checkout:hover,
body.light-mode .btn-checkout:hover {
    background: linear-gradient(135deg, #0369a1, #0284c7) !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45) !important;
}

/* Light Mode Checkout Modal */
html[data-theme="light"] .checkout-modal-card,
body.light-mode .checkout-modal-card {
    background: #ffffff !important;
    border: 1.5px solid #fecdd3 !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
}

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

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

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

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

html[data-theme="light"] .payment-option,
body.light-mode .payment-option {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #0f172a !important;
}

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

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

html[data-theme="light"] .qr-payment-box,
body.light-mode .qr-payment-box {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

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

html[data-theme="light"] .qr-details,
body.light-mode .qr-details {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .qr-details p,
body.light-mode .qr-details p {
    color: #0f172a !important;
    border-bottom: 1px dashed #cbd5e1 !important;
}

html[data-theme="light"] .qr-details .qr-label,
html[data-theme="light"] .qr-details p strong,
body.light-mode .qr-details .qr-label,
body.light-mode .qr-details p strong {
    color: #64748b !important;
}

/* Light Mode Product Quick View Modal */
html[data-theme="light"] #product-modal .modal-card,
body.light-mode #product-modal .modal-card {
    background: #ffffff !important;
    border: 1.5px solid #fecdd3 !important;
    color: #0f172a !important;
}

html[data-theme="light"] #product-modal h2,
body.light-mode #product-modal h2 {
    color: #0f172a !important;
    font-weight: 800 !important;
}

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

html[data-theme="light"] .spec-table td,
body.light-mode .spec-table td {
    color: #0f172a !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

html[data-theme="light"] .spec-table td:first-child,
body.light-mode .spec-table td:first-child {
    color: #64748b !important;
    font-weight: 600 !important;
}

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

html[data-theme="light"] .modal-apps-box,
body.light-mode .modal-apps-box {
    background: #fff8f8 !important;
    border: 1px solid #fecdd3 !important;
}

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

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

html[data-theme="light"] .btn-glass,
body.light-mode .btn-glass {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

html[data-theme="light"] .btn-glass:hover,
body.light-mode .btn-glass:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Product Order Items List & Scrollable Container */
.prod-items-scroll-box {
    max-height: 185px;
    overflow-y: scroll;
    overflow-x: hidden;
    padding-right: 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: #db2777 rgba(15, 23, 42, 0.4);
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.prod-items-scroll-box::-webkit-scrollbar {
    width: 10px !important;
    display: block !important;
}

.prod-items-scroll-box::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.4) !important;
    border-radius: 6px !important;
}

.prod-items-scroll-box::-webkit-scrollbar-thumb {
    background: #db2777 !important;
    border-radius: 6px !important;
    border: 2px solid rgba(15, 23, 42, 0.4) !important;
    min-height: 35px !important;
}

.prod-items-scroll-box::-webkit-scrollbar-thumb:hover {
    background: #f472b6 !important;
}

.prod-items-scroll-box::-webkit-scrollbar-thumb:active {
    background: #fb7185 !important;
}

html[data-theme="light"] .prod-items-scroll-box,
body.light-mode .prod-items-scroll-box {
    scrollbar-color: #db2777 #f1f5f9;
}

html[data-theme="light"] .prod-items-scroll-box::-webkit-scrollbar-track,
body.light-mode .prod-items-scroll-box::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
}

html[data-theme="light"] .prod-items-scroll-box::-webkit-scrollbar-thumb,
body.light-mode .prod-items-scroll-box::-webkit-scrollbar-thumb {
    border: 2px solid #f1f5f9 !important;
}

/* Product Spec Row & Text Styling (Light / Dark Mode Synchronized) */
.prod-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.65rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
    transition: background 0.15s ease;
}

.prod-item-left {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    overflow: hidden;
    padding-right: 0.5rem;
}

.prod-item-idx {
    color: #db2777;
    font-weight: 800;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.prod-item-name {
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
}

.prod-item-qty {
    color: #64748b;
    font-size: 0.72rem;
    background: #e2e8f0;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.prod-item-price {
    color: #db2777;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 700;
}

.prod-specs-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 1.25rem;
    font-size: 0.8rem;
    color: #475569;
    margin-top: 0.65rem;
    padding-top: 0.6rem;
    border-top: 1px dashed #e2e8f0;
}

.prod-specs-meta strong {
    color: #0f172a;
}

/* Dark Mode Overrides for Product Orders */
html[data-theme="dark"] .prod-spec-row,
body:not(.light-mode) .prod-spec-row {
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .prod-spec-row:hover,
body:not(.light-mode) .prod-spec-row:hover {
    background: rgba(15, 23, 42, 0.85) !important;
}

html[data-theme="dark"] .prod-item-idx,
body:not(.light-mode) .prod-item-idx {
    color: #f472b6 !important;
}

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

html[data-theme="dark"] .prod-item-qty,
body:not(.light-mode) .prod-item-qty {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .prod-item-price,
body:not(.light-mode) .prod-item-price {
    color: #f472b6 !important;
}

html[data-theme="dark"] .prod-specs-meta,
body:not(.light-mode) .prod-specs-meta {
    color: #94a3b8 !important;
    border-top: 1px dashed rgba(255, 255, 255, 0.12) !important;
}

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

/* ==========================================================================
   Payment Action Buttons & Modal - Zero-Jitter & High-Reliability Rules
   ========================================================================== */
.btn-pay {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    cursor: pointer !important;
    user-select: none !important;
    transform: none !important;
    transition: filter 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-pay:hover {
    transform: none !important;
    filter: brightness(1.12) !important;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.55) !important;
}

.btn-pay:active {
    transform: scale(0.97) !important;
}

.btn-pay i {
    pointer-events: none !important;
}

.cancel-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    cursor: pointer !important;
    user-select: none !important;
    transform: none !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

.cancel-btn:hover {
    transform: none !important;
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    border-color: #ef4444 !important;
}

.cancel-btn:active {
    transform: scale(0.97) !important;
}

.cancel-btn i {
    pointer-events: none !important;
}

#payment-modal.modal-overlay {
    z-index: 99999 !important;
}

#payment-modal.modal-overlay.hidden {
    display: none !important;
}