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

:root {
    /* Color Palette - Nền Tối Nhẹ (Soft Dark Cyberpunk / Glassmorphism) */
    --bg-dark: #141824;
    --bg-card: #1c2230;
    --bg-card-hover: #242c3d;
    --bg-glass: rgba(20, 24, 36, 0.85);

    --primary-cyan: #00f2fe;
    --primary-blue: #4facfe;
    --accent-neon: #00e5ff;
    --accent-magenta: #ff007f;
    --accent-gold: #ffb703;
    --accent-green: #00e676;
    --accent-red: #f43f5e;

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 254, 0.3);

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.15);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 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: 90%;
    width: 90%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* 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 {
    background: linear-gradient(90deg, #111827, #1e1b4b, #111827);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.top-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    flex: 1;
}

.top-banner-msg {
    white-space: nowrap;
    animation: marquee 15s linear infinite;
}

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

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

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

.top-links {
    display: flex;
    gap: 1.5rem;
    color: var(--text-main);
}

.top-links a {
    color: #00f2fe !important;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
    transition: var(--transition);
}

.top-links a i {
    color: #ffb703 !important;
}

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

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #f3f4f6;
}

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

.brand-sub {
    font-size: 0.7rem;
    color: #d1d5db;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

/* 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: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    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);
}

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

.cart-btn {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(79, 172, 254, 0.1));
    border-color: var(--border-glow);
}

.cart-badge {
    background: var(--accent-magenta);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.cart-total-preview {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--primary-cyan);
}

/* 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;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

.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: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-specs-tags {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.spec-tag {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.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: 92%;
    width: 92%;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.35fr 0.95fr 1.05fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
}

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

.footer-col h4 {
    font-size: 1.05rem;
    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.6rem;
    white-space: nowrap;
}

.footer-col ul a {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
    transition: var(--transition);
}

.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 var(--border-color);
    background: rgba(9, 13, 22, 0.9);
}

.promo-code-wrap {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.promo-code-wrap 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;
}

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

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.total-row {
    font-size: 1.15rem;
    color: var(--text-main);
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

/* 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 */
.qr-payment-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed var(--border-glow);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.qr-img-wrapper {
    width: 220px;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    background: white;
    padding: 0.5rem;
    border-radius: var(--radius-md);
}

.qr-img-wrapper img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-sm);
}

.qr-details {
    font-size: 0.85rem;
    text-align: left;
}

.qr-details p {
    margin-bottom: 0.35rem;
}

/* 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);
        overflow-y: auto;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8);
        display: flex;
        flex-direction: column;
    }

    .header-nav.open {
        transform: translateX(0);
    }

    .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,
    .footer-grid,
    .modal-body-grid,
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .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: 10px 0 35px rgba(0, 0, 0, 0.8);
    }

    .filter-sidebar.filter-open {
        transform: translateX(0);
    }

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

    .top-banner-content {
        justify-content: space-between;
    }

    .top-banner-content span {
        font-size: 0.8rem;
    }

    .top-banner-msg {
        animation: none;
    }
}

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

    .container {
        padding: 0 1rem;
    }

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

    .brand-sub {
        display: none;
    }

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

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

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

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

    .hero-text p {
        font-size: 0.95rem;
        max-width: 100%;
        margin-bottom: 0;
    }

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

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-item {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 120px;
    }

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

    .featured-price-row {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .featured-price-row .btn {
        width: 100%;
    }

    .specs-mini {
        flex-direction: column;
        gap: 0.35rem;
    }

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

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

    .card-body {
        padding: 0.85rem;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .card-desc-short {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }

    .price-text {
        font-size: 1rem;
    }

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

    .catalog-toolbar {
        align-items: flex-start;
    }

    .combo-kits-section {
        padding: 2.5rem 0;
    }

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

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

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

    .main-footer {
        padding: 2.5rem 0 0;
    }

    .cart-drawer {
        width: 100%;
        max-width: 100vw;
    }

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

    .modal-overlay {
        padding: 0.75rem;
        align-items: flex-end;
    }

    .modal-card {
        border-radius: var(--radius-md);
        max-height: 95vh;
        max-height: 95dvh;
    }

    .modal-body-grid {
        padding: 1.75rem 1rem 1.25rem;
    }

    .modal-close-btn {
        top: 0.75rem;
        right: 0.75rem;
    }

    .modal-action-btns {
        flex-direction: column;
    }

    .modal-action-btns .btn {
        width: 100%;
    }

    .checkout-grid {
        padding: 1.75rem 1rem;
    }

    #toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .toast {
        font-size: 0.85rem;
    }

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

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

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

/* Responsive — Small phones */
@media (max-width: 480px) {

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

    .action-btn {
        padding: 0.5rem 0.85rem;
    }

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

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

    .stat-item {
        flex: 1 1 100%;
    }

    .top-banner {
        font-size: 0.75rem;
        padding: 0.4rem 0;
    }

    .promo-box {
        flex-direction: column;
    }

    .promo-box .btn {
        width: 100%;
    }

    .copyright-row p {
        font-size: 0.75rem;
        line-height: 1.5;
    }
}

/* 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-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: 880px !important;
    width: 94% !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 20px !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.75rem 2rem 1.25rem;
    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: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #00f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

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

.ud-avatar-circle-container {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #00f2fe);
    padding: 3px;
    cursor: pointer;
    box-shadow: 0 0 25px 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 35px 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: 2.2rem;
    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: 3px;
    color: #00f2fe;
    font-size: 0.75rem;
    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.6rem 1rem;
    border-radius: 8px;
    font-size: 0.87rem;
    font-weight: 600;
    margin-top: 0.6rem;
    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.35rem;
}

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

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

.ud-user-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.85rem;
    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;
}

.ud-tab-btn {
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.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: #f87171;
}

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

.ud-badge-count {
    background: rgba(0, 242, 254, 0.2);
    color: #00f2fe;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

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

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

.ud-form-group label {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.ud-form-group input,
.ud-form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    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.9rem;
    transition: border-color 0.2s;
}

.ud-form-group input:focus,
.ud-form-group textarea:focus {
    outline: none;
    border-color: #00f2fe;
}

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

.ud-static-id {
    padding: 0.7rem 0.9rem;
    background: rgba(0, 242, 254, 0.15);
    border: 1.5px dashed #00f2fe;
    border-radius: 8px;
    color: #00f2fe;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-align: center;
}

.ud-save-btn {
    margin-top: 1rem;
    padding: 0.85rem;
    background: linear-gradient(135deg, #7c3aed, #00f2fe);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
    transition: all 0.2s ease;
}

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

/* 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: 1.25rem;
    margin-bottom: 1rem;
    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, monospace);
}

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

/* 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 Red Dot Badge */
.user-profile-btn {
    position: relative !important;
}

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

    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 8px 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 {
    background: linear-gradient(90deg, #ffe4e6, #fff1f2, #ffe4e6);
    border-bottom: 1px solid #fecdd3;
    color: #9f1239;
}

html[data-theme="light"] .top-banner-msg {
    color: #9f1239;
}

html[data-theme="light"] .code-badge {
    background: rgba(225, 29, 72, 0.12);
    color: #e11d48;
    border-color: #fda4af;
}

html[data-theme="light"] .top-links {
    color: #881337;
}

html[data-theme="light"] .top-links a {
    color: #881337;
}

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

html[data-theme="light"] .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 {
    color: #1e1b1b;
}

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

html[data-theme="light"] .brand-sub {
    color: #64748b;
}

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 & User Profile Badge */
html[data-theme="light"] .action-btn {
    background: #fff0f2;
    border-color: #fecdd3;
    color: #1e1b1b;
}

html[data-theme="light"] .action-btn:hover {
    background: #ffe4e6;
    border-color: #0284c7;
    color: #0284c7;
}

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 {
        background: #ffffff;
    }

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