/* ==========================================================================
   Gear Up Gadgets - Custom Styling (Gear Up Gadget Theme)
   ========================================================================== */

:root {
    --bg-main: transparent;
    --bg-card: rgba(10, 10, 15, 0.45);
    --bg-header: rgba(10, 10, 15, 0.55);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --accent-red: #E50303;
    --accent-red-hover: #ff3333;
    --accent-green: #2ea44f;
    --accent-green-hover: #2c974b;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.5);
    --transition-fast: all 0.2s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* iOS 26 Glassmorphism System Tokens */
    --ios-glass-bg: rgba(10, 10, 15, 0.45);
    --ios-glass-bg-header: rgba(10, 10, 15, 0.55);
    --ios-glass-bg-footer: rgba(10, 10, 15, 0.65);
    --ios-glass-bg-sidebar: rgba(10, 10, 15, 0.6);
    --ios-glass-bg-modal: rgba(10, 10, 15, 0.75);
    --ios-glass-bg-dropdown: rgba(10, 10, 15, 0.8);
    --ios-glass-bg-input: rgba(255, 255, 255, 0.06);
    --ios-glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --ios-glass-border-hover: 1px solid rgba(229, 3, 3, 0.55);
    --ios-glass-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    --ios-glass-blur: blur(24px) saturate(200%);
    --ios-glass-blur-heavy: blur(32px) saturate(210%);
    --accent-glow: rgba(229, 3, 3, 0.25);
    --accent-hover-border: rgba(229, 3, 3, 0.55);

    /* Dynamic Wallpaper & Background Engine Tokens */
    --gug-bg-color: #07090d;
    --gug-bg-image: 
        radial-gradient(ellipse at 50% 0%, rgba(229, 3, 3, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 85% 100%, rgba(229, 3, 3, 0.12) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hex-mesh' fill='%23e50303' fill-opacity='0.12' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v13.2l11 6.35 11-6.35V17.9L14 11.55 3 17.9zm11 1.73l9 5.2v10.38l-9 5.2-9-5.2V24.83l9-5.2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --gug-bg-attachment: fixed;
    --gug-bg-size: cover, cover, 28px 49px;
    --gug-bg-position: center top;
    --gug-bg-repeat: no-repeat, no-repeat, repeat;
}

html {
    min-height: 100%;
    background-color: var(--gug-bg-color, #07090d);
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-red, #e50303) rgba(10, 10, 15, 0.8);
}

/* ==========================================================================
   GLOBAL ZERO-DELAY EMBEDDED IFRAME SUPPRESSION (STAFF PORTAL & EMBEDDED VIEWS)
   Strictly hides internal duplicate sidebars across all desktop, tablet & mobile screens
   ========================================================================== */
html.is-embedded .admin-sidebar,
body.is-embedded .admin-sidebar,
.is-embedded .admin-sidebar,
html.is-embedded aside.admin-sidebar,
body.is-embedded aside.admin-sidebar,
.is-embedded aside.admin-sidebar,
.is-embedded .staff-mobile-topbar,
.is-embedded .admin-mobile-topbar,
.is-embedded .admin-sidebar-backdrop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    -webkit-animation: none !important;
}

html.is-embedded,
body.is-embedded,
.is-embedded {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    min-height: 100vh !important;
    height: auto !important;
}

html.is-embedded .admin-main,
body.is-embedded .admin-main,
.is-embedded .admin-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    height: auto !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    padding: 15px 20px !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

body {
    min-height: 100vh;
    background-color: var(--gug-bg-color, #07090d) !important;
    color: #ffffff !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-red, #e50303) rgba(10, 10, 15, 0.8);
    position: relative;
}

/* GPU-Accelerated Fixed Canvas Background (Zero Repaint Lag during Scroll) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -999;
    background-color: var(--gug-bg-color, #07090d);
    background-image: var(--gug-bg-image);
    background-size: var(--gug-bg-size, cover, cover, 28px 49px);
    background-position: var(--gug-bg-position, center top);
    background-repeat: var(--gug-bg-repeat, no-repeat, no-repeat, repeat);
    pointer-events: none;
    transform: translateZ(0);
    will-change: transform;
}
body.search-open {
    overflow: hidden;
}

::selection {
    background-color: rgba(255, 77, 77, 0.35);
    color: #fff;
}

.page-loader {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.page-loader.is-hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.page-loader-ring {
    display: none !important;
}

.reveal, .reveal-up, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}
.reveal-up {
    transform: none !important;
}
.reveal-left {
    transform: none !important;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right {
    transform: translateX(42px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible, .reveal-up.is-visible, .reveal-left.is-visible, .reveal-right.is-visible {
    opacity: 1;
    transform: none;
}

.tf-header {
    transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.tf-header.scrolled {
    background-color: rgba(7, 10, 13, 0.96) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
}
.tf-header.scrolled .header-inner {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.nav-menu-main > li > a,
.item-link,
.cart-trigger,
.header-search-btn,
.product-card-action-btn,
.tf-btn,
.btn,
.tech-video-card,
.product-card,
.video-thumbnail-container,
.icon {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.nav-menu-main > li > a:hover,
.cart-trigger:hover,
.header-search-btn:hover,
.item-link:hover,
a:hover .icon,
.cart-trigger:hover .icon,
.header-search-btn:hover .icon {
    transform: translateY(-2px) scale(1.03);
}

.tf-btn {
    transition: all 0.3s ease !important;
}

.tf-btn:hover,
.btn:hover,
.product-card-action-btn:hover,
.tech-video-card:hover,
.video-thumbnail-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(219, 39, 36, 0.4) !important;
}

.tf-btn:active,
.btn:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 5px rgba(219, 39, 36, 0.4) !important;
}

.card-product-wrapper {
    cursor: zoom-in;
}

.card-product-wrapper img {
    transition: transform 0.4s ease;
}

.tf-card-product:hover .card-product-wrapper img {
    transform: scale(1.08);
}

.product-card:hover,
.tech-video-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 77, 77, 0.35);
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

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

.hero-slider-container {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.hero-slider-container::before {
    content: '';
    position: absolute;
    inset: -20% -10% auto;
    height: 140%;
    background: radial-gradient(circle at top right, rgba(255, 77, 77, 0.2), transparent 34%);
    transform: translate3d(0, var(--hero-parallax, 0px), 0);
    transition: transform 0.15s ease-out;
    z-index: -1;
}
.hero-image-wrap {
    position: relative;
    overflow: visible;
}
.hero-image-wrap img {
    animation: hero-float 4.2s ease-in-out infinite;
    will-change: transform;
}

.latest-arrivals-carousel-wrap {
    position: relative;
    overflow: hidden;
    padding-bottom: 12px;
}

.latest-arrivals-carousel {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 12px;
    margin: 0 -8px;
}

.latest-arrivals-carousel::-webkit-scrollbar {
    display: none;
}

.latest-arrivals-slide {
    flex: 0 0 auto;
    width: 305px;
}

.latest-arrivals-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.latest-arrivals-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 77, 77, 0.35);
}

.latest-arrivals-card-link {
    display: block;
    color: inherit;
}

.latest-arrivals-card-media {
    position: relative;
    overflow: hidden;
    min-height: 210px;
}

.latest-arrivals-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 77, 77, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    z-index: 1;
}

.latest-arrivals-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.latest-arrivals-card:hover .latest-arrivals-card-img {
    transform: scale(1.08);
}

.latest-arrivals-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 230px;
}

.latest-arrivals-card-meta {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}

.latest-arrivals-card-title {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 16px;
    color: var(--text-primary);
    min-height: 60px;
}

.latest-arrivals-card-price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
}

.latest-arrivals-card-old {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.latest-arrivals-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
}

.latest-arrivals-card-link-text {
    font-size: 0.95rem;
    color: var(--accent-red);
    font-weight: 700;
}

.latest-arrivals-prev,
.latest-arrivals-next {
    min-width: 112px;
    border-color: rgba(255, 255, 255, 0.12);
}

.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.featured-product-card {
    background: linear-gradient(180deg, rgba(18, 23, 30, 0.95), rgba(15, 18, 23, 1));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.featured-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 77, 77, 0.35);
}

.featured-product-link {
    color: inherit;
    text-decoration: none;
    display: block;
    flex: 1;
}

.featured-product-media {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    background: radial-gradient(circle at top left, rgba(255, 77, 77, 0.12), transparent 35%);
}

.featured-product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 77, 77, 0.95);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    z-index: 2;
}

.featured-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
    display: block;
}

.featured-product-card:hover .featured-product-img {
    transform: scale(1.1);
    filter: saturate(1.08);
}

.featured-product-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.featured-product-meta {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.12em;
}

.featured-product-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    min-height: 72px;
    color: var(--text-primary);
}

.featured-product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.featured-product-old {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.featured-product-add {
    margin: 0 22px 22px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-product-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(255, 77, 77, 0.18);
}

.hardware-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.hardware-tab-button {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    cursor: pointer;
}

.hardware-tab-button.active,
.hardware-tab-button:hover {
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.95), rgba(255, 99, 99, 0.75));
    border-color: transparent;
    color: #fff;
    transform: translateY(-1px);
}

.hardware-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.hardware-card {
    background: rgba(20, 25, 33, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 26px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
}

.hardware-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 77, 77, 0.3);
}

.hardware-card-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hardware-card-media {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 77, 77, 0.08), rgba(20, 25, 33, 0.98));
}

.hardware-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
    display: block;
}

.hardware-card:hover .hardware-card-img {
    transform: scale(1.08);
    filter: saturate(1.08);
}

.hardware-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.95), rgba(255, 135, 135, 0.8));
}

.hardware-card-preview {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hardware-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.hardware-card-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    min-height: 54px;
    color: var(--text-primary);
}

.hardware-card-specs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.hardware-card-specs li {
    line-height: 1.5;
}

.hardware-card-footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hardware-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.hardware-card-add {
    width: 100%;
    justify-self: flex-start;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .hardware-showcase-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .hardware-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hardware-tabs {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hardware-showcase-grid {
        grid-template-columns: 1fr;
    }
    .hardware-tab-button {
        flex: 1 1 48%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hardware-tabs {
        gap: 8px;
    }
    .hardware-tab-button {
        flex: 1 1 100%;
    }
}

@media (max-width: 576px) {
    .featured-product-card:hover {
        transform: none;
        box-shadow: none;
    }
}

@media (max-width: 991px) {
    .latest-arrivals-slide {
        width: 260px;
    }
}

@media (max-width: 767px) {
    .latest-arrivals-carousel {
        margin: 0 -12px;
        gap: 16px;
    }
    .latest-arrivals-slide {
        width: 235px;
    }
    .latest-arrivals-prev,
    .latest-arrivals-next {
        width: 100%;
        margin-bottom: 10px;
    }
}

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

@keyframes hero-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Scrollbar Customization */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
::-webkit-scrollbar-track {
    background: var(--bg-main, #0b0f13);
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb {
    background: #3b4554;
    border-radius: 5px;
    border: 2px solid var(--bg-main, #0b0f13);
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:hover {
    background: #566375;
}
html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:active,
::-webkit-scrollbar-thumb:active {
    background: var(--accent-red, #E50303);
}

/* Common Text Overrides */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
}
a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover {
    color: var(--accent-red);
}

/* Header Adjustments */
.tf-header {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    position: sticky;
    top: 0;
    background-color: var(--bg-header) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.topbar-inner {
    padding: 0 clamp(1rem, 2.5vw, 2.5rem);
    box-sizing: border-box;
}

.tf-header .header-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: clamp(1rem, 2.5vw, 2.5rem) !important;
    padding-right: clamp(1rem, 2.5vw, 2.5rem) !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    border-radius: 0 !important;
    background: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

@media (max-width: 991px) {
    .tf-header .header-inner {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
}

.header-logo-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

.logo-site {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.logo-site img {
    max-height: 65px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 991px) {
    .logo-site img {
        max-height: 48px;
    }
}

/* Navigation Menu - Grouped Completely on the Right */
.header-right-group {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: clamp(14px, 1.5vw, 24px) !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
}

.box-navigation {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-menu-main {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: clamp(10px, 1.2vw, 18px) !important;
}

.nav-menu-main > li {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-menu-main > li > a {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: clamp(12.5px, 0.95vw, 14px);
    text-transform: uppercase;
    padding: 8px 0 !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.nav-menu-main > li > a.active, 
.nav-menu-main > li > a:hover {
    color: var(--accent-red) !important;
}

.sub-menu {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-md) !important;
}
.sub-menu-item > a {
    color: var(--text-secondary) !important;
}
.sub-menu-item > a:hover {
    color: var(--accent-red) !important;
    background-color: rgba(255, 77, 77, 0.05) !important;
}

/* Header Actions (Search & Cart) */
.header-actions {
    position: relative;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}
.header-search-widget {
    position: relative;
}
.header-search-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}
.header-search-toggle:hover {
    color: var(--accent-red);
    border-color: rgba(255, 77, 77, 0.25);
    background: rgba(255, 77, 77, 0.08);
}
.search-inline-panel {
    width: 100%;
    background: var(--bg-header);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}
.search-inline-panel.is-open {
    max-height: var(--search-panel-height, 70vh);
    opacity: 1;
}
.search-inline-panel-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}
.search-inline-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.search-inline-close:hover {
    background: rgba(255, 77, 77, 0.12);
    color: var(--accent-red);
}
.search-inline-body {
    width: min(860px, 100%);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 12px 72px 12px 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}
.search-inline-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 22px;
    padding: 8px 0;
}
.search-inline-input::placeholder {
    color: var(--text-secondary);
}
.search-inline-submit {
    position: absolute;
    right: 12px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--accent-red);
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.search-inline-submit:hover {
    filter: brightness(1.06);
}
.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
}
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item:hover {
    background-color: rgba(255, 77, 77, 0.05);
}
.suggestion-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 4px;
    background-color: #fff;
    padding: 2px;
}
.suggestion-info {
    flex: 1;
}
.suggestion-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.suggestion-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-red);
}

/* Cart Trigger and Counter */
.cart-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-fast);
}
.cart-trigger:hover {
    color: var(--accent-red);
    border-color: rgba(255, 77, 77, 0.25);
    background: rgba(255, 77, 77, 0.08);
}
.cart-count-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--accent-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    border: 1.5px solid var(--bg-header, #070a0d);
    pointer-events: none;
    z-index: 2;
}

/* Product Cards Grid & Design */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 77, 77, 0.4);
    box-shadow: 0 8px 24px rgba(255, 77, 77, 0.08);
}
.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--accent-red);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
}
.product-card-img-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}
.product-card-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}
.product-card:hover .product-card-img {
    transform: scale(1.05);
}
.product-card-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-card-cat {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 5px;
}
.product-card-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    height: 3.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.product-card-title a {
    color: var(--text-primary);
}
.product-card-title a:hover {
    color: var(--accent-red);
}
.product-card-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 15px;
}
.product-price-current {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-red);
}
.product-price-old {
    font-size: 13px;
    text-decoration: line-through;
    color: var(--text-secondary);
}
.product-card-action-btn {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 18px;
    background-color: #1a1b23;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 20px rgba(0,0,0,0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}
.product-card-action-btn:active {
    transform: scale(0.96);
}
.product-card-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.28);
}
.product-card-action-btn .btn-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 18px;
    text-align: center;
    transition: opacity 0.3s ease;
    z-index: 10;
}
.product-card-action-btn .animation-wrapper {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
}
.product-card-action-btn .conveyor-belt {
    position: absolute;
    bottom: 18px;
    left: 30px;
    width: 150px;
    border-bottom: 3px dashed #4a4b59;
}
.product-card-action-btn .cart {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
}
.product-card-action-btn .package {
    position: absolute;
    top: -30px;
    left: 50px;
    font-size: 20px;
    opacity: 0;
}
.product-card-action-btn.is-running .btn-text {
    opacity: 0;
}
.product-card-action-btn.is-running .animation-wrapper {
    opacity: 1;
}
.product-card-action-btn.is-running .package {
    animation: cargo-drop-and-slide 1.6s forwards ease-in-out;
}
.product-card-action-btn.is-done .btn-text {
    opacity: 1;
    color: #a8b3cf;
}
.product-card-action-btn.is-done .animation-wrapper {
    opacity: 0;
}
.product-card-action-btn.out-of-stock {
    background-color: #30363d;
    color: var(--text-secondary);
    cursor: not-allowed;
    box-shadow: none;
}
@keyframes cargo-drop-and-slide {
    0% {
        top: -30px;
        left: 50px;
        opacity: 1;
    }
    30% {
        top: 22px;
        left: 50px;
        opacity: 1;
    }
    80% {
        top: 22px;
        left: 190px;
        opacity: 1;
        transform: scale(1);
    }
    100% {
        top: 22px;
        left: 190px;
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Category Sidebar filters */
.filter-sidebar {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}
.filter-widget {
    margin-bottom: 25px;
}
.filter-widget:last-child {
    margin-bottom: 0;
}
.filter-title {
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.filter-list-item {
    margin-bottom: 8px;
}
.filter-link {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0;
}
.filter-link:hover, .filter-link.active {
    color: var(--accent-red);
}
.filter-link-count {
    background-color: var(--border-color);
    color: var(--text-secondary);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Custom PC Builder Grid Styles */
.pc-builder-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}
.pc-builder-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.pc-builder-summary {
    text-align: right;
}
.pc-builder-total-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-red);
}
.pc-builder-parts-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.builder-row {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: var(--bg-main);
    transition: var(--transition-fast);
}
.builder-row:hover {
    border-color: rgba(255, 77, 77, 0.2);
}
.builder-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-card);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-red);
    margin-right: 15px;
    flex-shrink: 0;
}
.builder-comp-details {
    flex-grow: 1;
}
.builder-comp-name {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 4px;
}
.builder-selected-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}
.builder-selected-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-red);
    margin-right: 20px;
    min-width: 100px;
    text-align: right;
}
.builder-actions {
    display: flex;
    gap: 10px;
}
.btn-builder {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}
.btn-builder-add {
    background-color: var(--accent-red);
    color: #fff;
    border: none;
}
.btn-builder-add:hover {
    background-color: var(--accent-red-hover);
}
.btn-builder-remove {
    background-color: #21262d;
    color: var(--accent-red);
    border: 1px solid var(--border-color);
}
.btn-builder-remove:hover {
    background-color: #30363d;
}

/* Component selection modal overlay for PC Builder */
.builder-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.builder-modal.open {
    opacity: 1;
    pointer-events: auto;
}
.builder-modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.builder-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.builder-modal-title {
    font-size: 18px;
    font-weight: 700;
}
.builder-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}
.builder-modal-close:hover {
    color: var(--accent-red);
}
.builder-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}
.builder-modal-search {
    width: 100%;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Modal selection item row */
.selection-item-row {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    background-color: var(--bg-main);
    transition: var(--transition-fast);
}
.selection-item-row:hover {
    border-color: rgba(255, 77, 77, 0.3);
}
.selection-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background-color: #fff;
    padding: 5px;
    border-radius: 6px;
    margin-right: 15px;
}
.selection-item-details {
    flex-grow: 1;
}
.selection-item-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.selection-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-red);
}

/* Cart and Checkout details */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}
.cart-table th, .cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}
.cart-table th {
    background-color: var(--bg-card);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.cart-item-title {
    font-size: 14px;
    font-weight: 500;
}
.qty-input {
    width: 60px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 5px;
    text-align: center;
    border-radius: 4px;
}
.btn-checkout {
    background-color: var(--accent-red);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    display: inline-block;
    transition: var(--transition-fast);
}
.btn-checkout:hover {
    background-color: var(--accent-red-hover);
    color: #fff;
}

/* Hero Section */
.hero-slider-container {
    position: relative;
    background: linear-gradient(135deg, #070a0d 0%, #151b22 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0;
}
.hero-slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
.hero-text-wrap {
    max-width: 550px;
}
.hero-subtitle {
    color: var(--accent-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-size: 14px;
}
.hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
}
.hero-image-wrap {
    flex-grow: 1;
    max-width: 480px;
    display: flex;
    justify-content: center;
}
.hero-image-wrap img {
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.cat-card {
    background: rgba(13, 17, 23, 0.5) !important;
    background-color: rgba(13, 17, 23, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 136px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, background-color 0.35s ease !important;
}
.cat-card:hover {
    background: rgba(229, 3, 3, 0.22) !important;
    background-color: rgba(229, 3, 3, 0.22) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-color: rgba(229, 3, 3, 0.6) !important;
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(229, 3, 3, 0.3) !important;
}
.cat-card-icon {
    font-size: 30px;
    color: var(--accent-red);
    filter: drop-shadow(0 2px 8px rgba(229, 3, 3, 0.4)) !important;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    line-height: 1;
}
.cat-card-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cat-card-icon img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(22%) sepia(80%) saturate(600%) hue-rotate(340deg) brightness(95%) contrast(97%) drop-shadow(0 2px 8px rgba(229, 3, 3, 0.4));
}
.cat-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85) !important;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Increase gap between EXPLORE CATEGORIES heading and the category cards */
.py-5.reveal-up > .container > .row.text-center.mb-4 {
    margin-bottom: 3rem !important;
}

/* Adjust spacing for the Explore Categories section specifically */
/* (Explore Categories spacing restored to theme defaults) */

/* Partner YouTube Videos Section */
.tech-video-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}
.video-thumbnail-container {
    position: relative;
    aspect-ratio: 16/9;
    cursor: pointer;
    background-color: #000;
}
.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: var(--transition-fast);
}
.video-thumbnail-container:hover .video-thumbnail {
    opacity: 1;
    transform: scale(1.02);
}
.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: var(--accent-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: var(--transition-fast);
}
.video-thumbnail-container:hover .play-btn-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #fff;
    color: var(--accent-red);
}
.tech-video-info {
    padding: 15px;
}
.tech-video-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}
.tech-video-author {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Floating Notification Bar (add to cart success, compatibility warnings) */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--bg-card);
    border-left: 4px solid var(--accent-red);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 6px;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}
.toast-notification.success {
    border-left-color: var(--accent-green);
}

/* Coupon Overlay */
.coupon-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

/* Responsive styles */
@media (max-width: 991px) {
    .builder-row {
        flex-wrap: wrap;
    }
    .builder-selected-price {
        margin-right: 0;
        margin-bottom: 10px;
        text-align: left;
        width: 100%;
    }
    .builder-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ==========================================================================
   Global Animations & Interactive Effects
   ========================================================================== */

/* Preloader styles neutralized for zero-delay loading */
#global-preloader {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
#global-preloader.is-hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.spinner-logo {
    display: none !important;
}

/* Hero Parallax & Floating */
.hero-slider-container {
    background-attachment: fixed !important;
    background-position: center !important;
    background-size: cover !important;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.hero-image-wrap img {
    animation: float 4s ease-in-out infinite;
}

/* Navbar Transition */
.tf-header {
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.tf-header.scrolled {
    background-color: rgba(5, 7, 9, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

/* Micro-interactions */
.btn, .tf-btn, .product-card, .hardware-card, .latest-arrivals-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.btn:hover, .tf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(219, 39, 36, 0.3);
}

.product-card:hover, .hardware-card:hover, .latest-arrivals-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-menu-main > li > a {
    transition: color 0.3s ease, transform 0.3s ease;
}
.nav-menu-main > li > a:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   Brand Logo Marquee (Footer)
   ========================================================================== */

.brand-marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background-color: var(--bg-main);
    box-shadow: inset 0px 5px 15px rgba(0,0,0,0.2);
}

.brand-marquee {
    display: inline-flex;
    gap: 4rem;
    animation: marquee-scroll 35s linear infinite;
    align-items: center;
}

.brand-marquee:hover {
    animation-play-state: paused;
}

.brand-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-logo-img:hover {
    transform: scale(1.05);
}

.brand-logo-text {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--accent-red);
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: default;
    text-transform: uppercase;
    display: inline-block;
}

.brand-logo-text:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

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

/* Floating Animation for Hero Image */
@keyframes hero-float-img {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.floating-hero-img {
    animation: hero-float-img 4s ease-in-out infinite;
    will-change: transform;
}

/* Header Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: -200px; /* shift slightly to center mega menu */
    min-width: 600px; /* wider for 3 columns */
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

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

.dropdown-heading {
    padding: 8px 20px;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent-red);
    font-weight: 800;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 5px;
    text-align: center;
    transform: translateY(-2px);
}

.dropdown-menu-custom li a {
    display: block;
    padding: 8px 20px;
    color: var(--text-primary);
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu-custom li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-red);
}

.brand-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin: 0 40px;
    opacity: 0.9;
    filter: none;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.brand-logo-img:hover {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.custom-text-brand {
    color: var(--accent-red);
    margin: 0 40px;
    font-size: 24px;
    opacity: 0.9;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.custom-text-brand:hover {
    color: #FFFFFF;
    opacity: 1;
}

/* -------------------------------------------------------------
 * HERO SLIDER FIXES & RESPONSIVE DESIGN
 * ------------------------------------------------------------- */
.hero-swiper .swiper-slide {
    height: 550px !important;
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-swiper .hero-text-wrap {
    padding-left: 2.5rem;
}
.hero-swiper .swiper-slide:not(.swiper-slide-active) {
    opacity: 0 !important;
    pointer-events: none;
    visibility: hidden;
}
.hero-swiper .swiper-slide.swiper-slide-active {
    opacity: 1 !important;
    visibility: visible;
}

.hero-swiper .floating-hero-img {
    height: 420px !important;
    max-height: 100% !important;
    object-fit: contain !important;
    width: auto !important;
    margin: 0 auto;
}

/* Tablet & Mobile Hero Slider Scaling & Alignment */
@media (max-width: 991.98px) {
    .hero-swiper .swiper-slide {
        height: auto !important;
        min-height: 480px !important;
        padding: 35px 12px 25px 12px !important;
    }
    .hero-swiper .hero-slide-content {
        justify-content: center !important;
        text-align: center !important;
        gap: 15px !important;
        margin: 0 auto !important;
        width: 100% !important;
    }
    .hero-swiper .hero-text-wrap {
        padding-left: 0 !important;
        max-width: 100% !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    .hero-swiper .hero-subtitle {
        text-align: center !important;
        display: block !important;
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }
    .hero-swiper .hero-title {
        font-size: clamp(22px, 5.5vw, 36px) !important;
        line-height: 1.25 !important;
        text-align: center !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        margin-bottom: 15px !important;
    }
    .hero-swiper .hero-desc {
        font-size: 14px !important;
        line-height: 1.6 !important;
        text-align: center !important;
        margin: 0 auto 20px auto !important;
        max-width: 580px !important;
        color: var(--text-secondary) !important;
    }
    .hero-swiper .hero-text-wrap .d-flex {
        justify-content: center !important;
        margin-top: 15px !important;
    }
    .hero-swiper .floating-hero-img {
        height: auto !important;
        max-height: 250px !important;
        max-width: 85% !important;
        object-fit: contain !important;
        margin: 20px auto 0 auto !important;
        display: block !important;
    }
}

/* Mobile Specific Hero Slider Refinements */
@media (max-width: 575.98px) {
    .hero-swiper .swiper-slide {
        min-height: 420px !important;
        padding: 25px 8px 20px 8px !important;
    }
    .hero-swiper .hero-subtitle {
        font-size: 11px !important;
        letter-spacing: 1px !important;
    }
    .hero-swiper .hero-title {
        font-size: clamp(19px, 5.8vw, 26px) !important;
    }
    .hero-swiper .hero-desc {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
    }
    .hero-swiper .floating-hero-img {
        max-height: 190px !important;
        max-width: 80% !important;
        margin-top: 15px !important;
    }
    .gug-container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Mobile 2-Column Product Card Grid Styling */
    .card,
    .product-card {
        border-radius: 10px !important;
    }
    .card .rounded-t-lg,
    .product-card-img-wrap {
        height: 135px !important;
        padding: 6px !important;
    }
    .card .rounded-t-lg img,
    .product-card-img {
        max-height: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }
    .card .card-body,
    .product-card-info {
        padding: 8px 6px !important;
    }
    .card .card-title,
    .product-card-title,
    .product-card-title a {
        font-size: 11px !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
        -webkit-line-clamp: 2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        height: 28px !important;
    }
    .card-body span.tracking-wide,
    .product-card-cat {
        font-size: 9px !important;
    }
    .stock-badge {
        font-size: 8.5px !important;
        padding: 1px 4px !important;
        letter-spacing: -0.2px;
    }
    .card-body .fw-bold,
    .product-price-current {
        font-size: 13px !important;
    }
    .card-body .text-decoration-line-through,
    .product-price-old {
        font-size: 10px !important;
    }
    .card .card-footer {
        padding: 0 6px 8px 6px !important;
    }
    .btn-cargo-expert,
    .add-to-cart-btn {
        padding: 6px 6px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
    }
    .btn-cargo-expert .btn-text-default,
    .btn-cargo-expert .cart-text {
        font-size: 11px !important;
    }
    /* Compact Badges on Mobile */
    .card > div[style*="top: 10px; left: 10px;"],
    .card > div[style*="top: 10px; right: 10px;"] {
        top: 6px !important;
    }
    .card > div[style*="left: 10px;"] {
        left: 6px !important;
    }
    .card > div[style*="right: 10px;"] {
        right: 6px !important;
    }
    .card div[style*="font-size: 10px;"] {
        font-size: 8.5px !important;
        padding: 1px 5px !important;
    }
}

/* Global Container */
.gug-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}


/* ==========================================================================
   Premium Card Interactions & Entry Animations
   ========================================================================== */

/* 1. Smooth Entry Animation for all Cards */
@keyframes premiumFadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .product-card, .hardware-card, .tech-video-card {
    opacity: 0; /* Starts hidden */
    animation: premiumFadeSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Add a slight stagger for immediate children in a row */
.row > div:nth-child(1) .card { animation-delay: 0.1s; }
.row > div:nth-child(2) .card { animation-delay: 0.2s; }
.row > div:nth-child(3) .card { animation-delay: 0.3s; }
.row > div:nth-child(4) .card { animation-delay: 0.4s; }
.row > div:nth-child(5) .card { animation-delay: 0.5s; }
.row > div:nth-child(6) .card { animation-delay: 0.6s; }
.row > div:nth-child(7) .card { animation-delay: 0.7s; }
.row > div:nth-child(8) .card { animation-delay: 0.8s; }

/* 2. Premium 3D Hover & Shadow Lift */
.card, .product-card, .hardware-card, .tech-video-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
    will-change: transform, box-shadow;
}

.card:hover, .product-card:hover, .hardware-card:hover, .tech-video-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(219, 39, 36, 0.15) !important;
    z-index: 10;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

/* Immediate visibility for all products and cards */
.slide-hidden {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Base animation class */
.slide-in-animated {
    opacity: 1 !important;
    transform: none !important;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left-anim {
    animation-name: slideInLeft;
}

.slide-in-right-anim {
    animation-name: slideInRight;
}

/* Force Tailwind classes for category labels */
.\!text-gray-300 {
    color: #d1d5db !important;
}
.\!font-semibold {
    font-weight: 600 !important;
}
.tracking-wide {
    letter-spacing: 0.025em !important;
}

/* Tailwind Image Rounding utilities */
.rounded-t-lg {
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
}
.rounded-t-xl {
    border-top-left-radius: 0.75rem !important;
    border-top-right-radius: 0.75rem !important;
}
.overflow-hidden {
    overflow: hidden !important;
}

/* Cargo Drop Animation Classes */
.btn-cargo.is-dropping {
    background-color: #222 !important;
}
.btn-cargo.is-dropping .cargo-box {
    animation: cargoDrop 1.2s forwards cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-cargo.is-dropping .cart-icon {
    animation: cartBounce 0.4s 0.6s forwards;
}
@keyframes cargoDrop {
    0% { top: -30px; opacity: 1; transform: scale(1); }
    40% { top: 6px; opacity: 1; transform: scale(1); }
    50% { top: 6px; opacity: 0; transform: scale(0.5); }
    100% { top: 6px; opacity: 0; transform: scale(0); }
}
@keyframes cartBounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(3px); }
    100% { transform: translateY(0); }
}

/* Conveyor Belt Button Styles */
.conveyor-btn {
    position: relative;
    background-color: #111 !important;
    color: #fff !important;
    border-radius: 50rem !important;
    border: none !important;
    overflow: hidden;
    height: 48px;
    outline: none;
    cursor: pointer;
}
.conveyor-btn:hover { background-color: #1a1a1a !important; }

.conveyor-btn .btn-text-default,
.conveyor-btn .btn-text-added {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s, opacity 0.4s;
    font-size: 14px;
}
.conveyor-btn .btn-text-added {
    transform: translateY(20px);
    opacity: 0;
    color: #4ade80;
}

.conveyor-btn .conveyor-belt {
    position: absolute;
    bottom: 12px;
    left: 20px;
    right: 48px;
    height: 2px;
    background: repeating-linear-gradient(90deg, #777, #777 4px, transparent 4px, transparent 8px);
    opacity: 0;
    transition: opacity 0.3s;
}

.conveyor-btn .dispenser {
    position: absolute;
    top: 0;
    left: 40%;
    transform: translateX(-50%);
    width: 24px;
    height: 4px;
    background: #444;
    border-radius: 0 0 4px 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.conveyor-btn .cart-container {
    position: absolute;
    right: 16px;
    bottom: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.conveyor-btn .cart-box {
    position: absolute;
    top: -24px;
    left: 40%;
    transform: translateX(-50%);
    opacity: 0;
    z-index: 10;
}

/* Animations */
.conveyor-btn.is-active {
    pointer-events: none;
}
.conveyor-btn.is-active .btn-text-default {
    transform: translateY(-20px);
    opacity: 0;
}
.conveyor-btn.is-active .btn-text-added {
    animation: showAddedText 0.4s 2.4s forwards;
}

.conveyor-btn.is-active .conveyor-belt,
.conveyor-btn.is-active .cart-container,
.conveyor-btn.is-active .dispenser {
    opacity: 1;
}

.conveyor-btn.is-active .conveyor-belt {
    animation: convey 1.2s 0.8s linear;
}

.conveyor-btn.is-active .cart-box {
    animation: boxDropConveyor 2.4s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.conveyor-btn.is-active .cart-container {
    animation: cartDriveOff 0.8s 1.8s forwards ease-in-out;
}

@keyframes convey {
    0% { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

@keyframes boxDropConveyor {
    0% { top: -20px; opacity: 1; left: 40%; transform: translateX(-50%) scale(1); }
    20% { top: 22px; opacity: 1; left: 40%; transform: translateX(-50%) scale(1); }
    30% { top: 22px; opacity: 1; left: 40%; transform: translateX(-50%) scale(1); }
    65% { top: 22px; opacity: 1; left: calc(100% - 36px); transform: translateX(-50%) scale(1); }
    75% { top: 28px; opacity: 1; left: calc(100% - 28px); transform: translateX(-50%) rotate(45deg) scale(0.5); }
    80% { top: 32px; opacity: 0; left: calc(100% - 28px); transform: translateX(-50%) scale(0); }
    100% { top: 32px; opacity: 0; }
}

@keyframes cartDriveOff {
    0% { transform: translateX(0); }
    20% { transform: translateX(-4px); } /* wind up */
    100% { transform: translateX(60px); opacity: 0; } /* drive away */
}

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

/* Expert Cargo Drop Button Styles */
.btn-cargo-expert {
    position: relative;
    background-color: #0d6efd !important;
    color: #fff !important;
    border-radius: 8px !important;
    border: none !important;
    overflow: hidden;
    height: 42px;
    outline: none;
    cursor: pointer;
}
.btn-cargo-expert:hover { background-color: #0b5ed7 !important; }

.btn-cargo-expert .btn-text-default,
.btn-cargo-expert .btn-text-added {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}
.btn-cargo-expert .btn-text-added {
    opacity: 0;
    font-size: 13px;
    color: #fff;
    font-weight: 700;
}

.btn-cargo-expert .cart-wrapper {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-cargo-expert .box-icon {
    position: absolute;
    top: -30px;
    left: 3px;
    opacity: 0;
    z-index: 10;
}
.btn-cargo-expert .cart-icon {
    position: relative;
    z-index: 5;
}

/* Animations */
.btn-cargo-expert.is-added {
    pointer-events: none;
}
.btn-cargo-expert.is-added .btn-text-default {
    opacity: 0;
}
.btn-cargo-expert.is-added .cart-wrapper {
    opacity: 1;
    animation: cartDriveExpert 1s 1.2s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cargo-expert.is-added .box-icon {
    animation: boxDropExpert 0.6s forwards cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-cargo-expert.is-added .cart-icon {
    animation: cartBounceExpert 0.6s 0.5s forwards cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-cargo-expert.is-added .btn-text-added {
    animation: textFadeInExpert 0.5s 1.6s forwards;
}

@keyframes boxDropExpert {
    0% { top: -30px; opacity: 0; transform: scale(0.5); }
    20% { opacity: 1; transform: scale(1); }
    100% { top: -2px; opacity: 1; transform: scale(0.8); }
}

@keyframes cartBounceExpert {
    0% { transform: translateY(0); }
    40% { transform: translateY(5px); } 
    100% { transform: translateY(0); }
}

@keyframes cartDriveExpert {
    0% { opacity: 1; transform: translateX(-50%); }
    20% { opacity: 1; transform: translateX(-55%); } 
    100% { opacity: 0; transform: translateX(80px); }
}

@keyframes textFadeInExpert {
    to { opacity: 1; }
}

/* ==========================================================================
   Homepage Premium Centered Layout
   ========================================================================== */
#home-product-grids .gug-container {
    width: 85% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* Reduce grid gap to exactly 12px */
#home-product-grids .row {
    --bs-gutter-x: 12px !important;
    --bs-gutter-y: 12px !important;
    justify-content: center;
}

/* Make individual cards smaller */
#home-product-grids .card {
    min-width: 180px !important;
    max-width: 240px !important;
    margin: 0 auto !important;
}

/* ==========================================================================
   Homepage Product Cards Alternating Slide-In Animation
   ========================================================================== */
/* Odd cards (1st, 3rd) slide in from the left (ulte haath ki taraf se) */
#home-product-grids .row > div:nth-child(odd) {
    animation: slideInLeft 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    opacity: 0; /* Starts hidden before animation kicks in */
}

/* Even cards (2nd, 4th) slide in from the right (seedhe haath ki taraf se) */
#home-product-grids .row > div:nth-child(even) {
    animation: slideInRight 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    opacity: 0; /* Starts hidden before animation kicks in */
}



/* --- Repair Services UI Styles --- */
.repair-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background-color: #111;
    z-index: 9999;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}
.repair-sidebar.active { right: 0; }

.repair-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.repair-sidebar-body { padding: 20px; }

.repair-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.repair-backdrop.active { opacity: 1; pointer-events: all; }

.btn-close-custom {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}
.btn-close-custom:hover { color: #fff; }

.repair-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 500px;
    background-color: #111;
    border-radius: 12px;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 15px 45px rgba(0,0,0,0.7);
    border: 1px solid #333;
}
.repair-modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}
.repair-modal-header {
    padding: 20px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.repair-modal-body { padding: 15px 20px; }

.repair-input {
    background-color: #050709 !important;
    border: 1px solid #222 !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 10px 15px;
}
.repair-input:focus {
    border-color: var(--accent-red) !important;
    box-shadow: 0 0 0 2px rgba(219, 39, 36, 0.2) !important;
}

/* Compact Form Fields */
.repair-modal .mb-3 { margin-bottom: 0.5rem !important; }
.repair-modal .mb-4 { margin-bottom: 0.75rem !important; }
.repair-modal .form-label { margin-bottom: 0.2rem !important; font-size: 13px; }
.repair-modal .repair-input { padding: 8px 12px; font-size: 14px; }
.repair-modal textarea.repair-input { height: 60px; min-height: 60px; }

/* Data Recovery Dedicated Modal */
.recovery-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 92%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #0b0f15;
    border-radius: 14px;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 20px 60px rgba(0,0,0,0.85);
    border: 1px solid #1e293b;
}
.recovery-modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}
.recovery-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0f172a;
    border-radius: 14px 14px 0 0;
    position: sticky;
    top: 0;
    z-index: 2;
}
.recovery-modal-body {
    padding: 20px 24px;
}
.recovery-input {
    background-color: #05070a !important;
    border: 1px solid #1e293b !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 9px 13px;
    font-size: 14px;
}
.recovery-input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
}

/* Custom Floating Banners */
.floating-banner {
    animation: float 4s ease-in-out infinite;
    will-change: transform;
    display: block; /* Ensure anchor tags can transform properly */
}

/* Pause float on hover for better UX */
.floating-banner:hover {
    animation-play-state: paused;
}

/* Admin Panel Sidebar Dropdown & Sub-nav Links */
.admin-nav-dropdown {
    margin-bottom: 5px;
}
.sub-nav-link {
    font-size: 13.5px !important;
    padding: 9px 14px !important;
    margin-bottom: 4px !important;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 0 8px 8px 0 !important;
    transition: all 0.25s ease;
}
.sub-nav-link:hover, .sub-nav-link.active {
    background-color: var(--accent-red) !important;
    color: #fff !important;
    border-left-color: #fff !important;
    padding-left: 18px !important;
}

/* ==========================================================================
   Admin Panel High-Contrast Readability & Dark Text Typography (ERP Suite)
   ========================================================================== */
/* ==========================================================================
   Admin, Dealer & Staff Panels - iOS 26 Glassmorphism Architecture
   ========================================================================== */
body.admin-body,
.admin-main,
.portal-container,
.portal-main {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Locked Sticky / Fixed Admin Sidebar Navigation - iOS 26 Frosted Glass */
.admin-sidebar {
    width: 260px !important;
    background: rgba(10, 10, 15, 0.6) !important;
    background-color: rgba(10, 10, 15, 0.6) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    height: 100vh !important;
    max-height: 100vh !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    padding: 20px 14px 40px 14px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 1000 !important;
    overscroll-behavior: contain !important;
    scroll-behavior: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(229, 3, 3, 0.4) rgba(10, 10, 15, 0.8) !important;
    box-sizing: border-box !important;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5), inset -1px 0 0 rgba(255, 255, 255, 0.05) !important;
}

.admin-sidebar::-webkit-scrollbar {
    width: 5px !important;
}
.admin-sidebar::-webkit-scrollbar-track {
    background: rgba(10, 10, 15, 0.6) !important;
}
.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
}
.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red) !important;
}

.admin-sidebar h4, .admin-sidebar h5, .admin-sidebar h6, .admin-sidebar .text-white {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.admin-sidebar .text-secondary {
    color: rgba(255, 255, 255, 0.65) !important;
}

.admin-nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 9.5px 13px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    margin-bottom: 3.5px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.admin-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.admin-nav-link.active {
    background-color: var(--accent-red, #db2724) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(229, 3, 3, 0.4) !important;
}

.sidebar-section-heading {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: rgba(255, 255, 255, 0.55) !important;
    margin-top: 16px !important;
    margin-bottom: 6px !important;
    padding-left: 10px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* Admin Main Area Headings & Text */
.admin-main h1, 
.admin-main h2, 
.admin-main h3, 
.admin-main h4, 
.admin-main h5, 
.admin-main h6,
.admin-main .page-title,
.admin-main .fw-bold.text-white,
.admin-main strong.text-white,
.admin-main div.text-white,
.admin-main span.text-white,
.admin-main .text-dark,
.portal-main .text-dark {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
}

.admin-main .text-secondary,
.admin-main .text-muted,
.admin-main small.text-secondary,
.admin-main p.text-secondary,
.portal-main .text-secondary {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* Card Styling - iOS 26 Glass */
.admin-card,
.erp-card,
.portal-card,
.kpi-card,
.card-erp {
    background: rgba(10, 10, 15, 0.45) !important;
    background-color: rgba(10, 10, 15, 0.45) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    color: #ffffff !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.admin-card:hover,
.erp-card:hover,
.portal-card:hover {
    border-color: rgba(229, 3, 3, 0.55) !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 20px rgba(229, 3, 3, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.kpi-value {
    color: #ffffff !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
}

.kpi-title {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 700 !important;
    font-size: 11.5px !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* Table Readability & Contrast */
.admin-main .table,
.table-erp,
.portal-main .table {
    color: #ffffff !important;
    background: transparent !important;
    background-color: transparent !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.admin-main .table th,
.table-erp th,
.portal-main .table th {
    background: rgba(255, 255, 255, 0.06) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-top: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 14px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.admin-main .table td,
.table-erp td,
.portal-main .table td {
    background: transparent !important;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    padding: 12px 14px !important;
    vertical-align: middle !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.admin-main .table-hover tbody tr:hover td,
.portal-main .table-hover tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

.admin-main .table code {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* Form Controls, Inputs, Selects & Placeholders */
.admin-main .form-control,
.admin-main .form-select,
.portal-main .form-control,
.portal-main .form-select,
.modal .form-control,
.modal .form-select,
.search-input-group .form-control {
    background: rgba(255, 255, 255, 0.06) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
    transition: all 0.25s ease !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.admin-main .form-control:focus,
.admin-main .form-select:focus,
.portal-main .form-control:focus,
.portal-main .form-select:focus,
.modal .form-control:focus,
.modal .form-select:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--accent-red) !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(229, 3, 3, 0.35) !important;
    outline: none !important;
}

.admin-main .form-control::placeholder,
.portal-main .form-control::placeholder,
.modal .form-control::placeholder,
.admin-main textarea::placeholder {
    color: rgba(255, 255, 255, 0.55) !important;
    opacity: 1 !important;
}

.admin-main .form-label,
.portal-main .form-label,
.modal .form-label {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    margin-bottom: 4px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* Modals High Contrast - iOS 26 Glass */
.modal-content {
    background: rgba(10, 10, 15, 0.78) !important;
    background-color: rgba(10, 10, 15, 0.78) !important;
    backdrop-filter: blur(32px) saturate(210%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(210%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.modal-header {
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 16px 22px !important;
}

.modal-header .modal-title,
.modal-header .modal-title.text-white {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
}

.modal-body {
    background: transparent !important;
    color: #ffffff !important;
    padding: 22px !important;
}

.modal-footer {
    background: rgba(255, 255, 255, 0.04) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 14px 22px !important;
}

.modal .btn-close-white,
.modal .btn-close {
    filter: invert(1) !important;
    opacity: 0.85;
}

/* Navigation Tabs */
.nav-tabs-erp {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.nav-tabs-erp .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
}

.nav-tabs-erp .nav-link:hover {
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.3) !important;
}

.nav-tabs-erp .nav-link.active {
    color: #ffffff !important;
    border-bottom-color: var(--accent-red) !important;
    background: transparent !important;
    text-shadow: 0 0 10px rgba(229, 3, 3, 0.5) !important;
}

/* Kanban Columns & Cards */
.kanban-col {
    background: rgba(10, 10, 15, 0.45) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
}

.kanban-card {
    background: rgba(20, 20, 30, 0.5) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

.kanban-card:hover {
    border-color: var(--accent-red) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5) !important;
}

/* Diff Box in Audit Logs */
.diff-box {
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-family: monospace !important;
}

/* Employee & Dealer Portal Components */
.portal-header {
    background: rgba(10, 10, 15, 0.55) !important;
    background-color: rgba(10, 10, 15, 0.55) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.portal-header h5, .portal-header h6, .portal-header .text-white {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.task-item {
    background: rgba(10, 10, 15, 0.45) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
}

.task-item:hover {
    border-color: var(--accent-red) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
}

/* Prominent Call-to-Actions (CTAs) */
.btn-erp-primary,
.btn-danger.btn-primary-cta {
    background-color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    padding: 9px 18px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(229, 3, 3, 0.35) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.btn-erp-primary:hover,
.btn-danger.btn-primary-cta:hover {
    background-color: #c90000 !important;
    border-color: #c90000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(229, 3, 3, 0.45) !important;
    color: #ffffff !important;
}

.btn-erp-primary:active,
.btn-danger.btn-primary-cta:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(229, 3, 3, 0.2) !important;
}

.btn-erp-success {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 9px 18px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25) !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.btn-erp-success:hover {
    background-color: #15803d !important;
    border-color: #15803d !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35) !important;
    color: #ffffff !important;
}

.btn-erp-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
}

.btn-erp-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Contextual Guidance, Field Tooltips & Helper Text */
.form-helper-text {
    font-size: 11.5px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-top: 4px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    line-height: 1.4 !important;
}

.form-label-required::after {
    content: " *";
    color: #ef4444;
    font-weight: 700;
}

.tooltip-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    margin-left: 5px;
    cursor: help;
    transition: all 0.2s ease;
}

.tooltip-hint:hover {
    background-color: var(--accent-red);
    color: #ffffff;
}

/* Form Validation & Error Prevention */
.is-invalid-modern {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.form-feedback-error {
    color: #ff6b6b !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    animation: fadeInSlide 0.2s ease-in-out;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Standardized Table & Filter Toolbars */
.erp-toolbar {
    background: rgba(10, 10, 15, 0.45) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important;
}

.erp-search-group {
    position: relative;
}

.erp-search-group .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    font-size: 14px;
}

.erp-search-group input {
    padding-left: 40px !important;
}

/* Beginner Guide Banner Enhancement - iOS 26 Glass */
.beginner-help-card {
    background: rgba(16, 185, 129, 0.12) !important;
    backdrop-filter: blur(20px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(200%) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    border-left: 5px solid #22c55e !important;
    border-radius: 14px !important;
    padding: 16px 20px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
    color: #ffffff !important;
}

.beginner-help-card .help-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* Universal Floating Toast Notifications - iOS 26 Glass */
.gug-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.gug-toast {
    pointer-events: auto;
    min-width: 320px;
    max-width: 440px;
    background: rgba(10, 10, 15, 0.85) !important;
    backdrop-filter: blur(28px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    transform: translateY(-15px) scale(0.96);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gug-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gug-toast.toast-success {
    border-left: 5px solid #16a34a;
}
.gug-toast.toast-success .toast-icon {
    color: #16a34a;
    background: #dcfce7;
}

.gug-toast.toast-error {
    border-left: 5px solid #dc2626;
}
.gug-toast.toast-error .toast-icon {
    color: #dc2626;
    background: #fee2e2;
}

.gug-toast.toast-warning {
    border-left: 5px solid #d97706;
}
.gug-toast.toast-warning .toast-icon {
    color: #d97706;
    background: #fef3c7;
}

.gug-toast.toast-info {
    border-left: 5px solid #2563eb;
}
.gug-toast.toast-info .toast-icon {
    color: #2563eb;
    background: #dbeafe;
}

.gug-toast .toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.gug-toast .toast-content {
    flex: 1;
}

.gug-toast .toast-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.gug-toast .toast-message {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.4;
}

.gug-toast .toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    transition: color 0.2s;
}

.gug-toast .toast-close:hover {
    color: #0f172a;
}

/* Empty State Cards */
.workspace-empty-state {
    text-align: center;
    padding: 48px 24px;
    background-color: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    margin: 20px 0;
}

.workspace-empty-state .empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.workspace-empty-state h5 {
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 6px;
}

.workspace-empty-state p {
    color: #64748b;
    font-size: 13.5px;
    max-width: 420px;
    margin: 0 auto 18px auto;
}

/* ==========================================================================
   GLOBAL HIGH-CONTRAST TYPOGRAPHY & READABILITY ENFORCEMENT (DARK GLASS)
   ========================================================================== */
.erp-card, .portal-card, .stat-card, .modal-content, .card {
    color: #ffffff !important;
}

.erp-card h1, .erp-card h2, .erp-card h3, .erp-card h4, .erp-card h5, .erp-card h6,
.portal-card h1, .portal-card h2, .portal-card h3, .portal-card h4, .portal-card h5, .portal-card h6,
.modal-content h1, .modal-content h2, .modal-content h3, .modal-content h4, .modal-content h5, .modal-content h6 {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.table th {
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15) !important;
}

.table td {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-size: 13.5px !important;
}

.form-label, label.form-label {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.form-control,
.form-select,
.form-control:not(.bg-dark):not(.text-white),
.form-select:not(.bg-dark):not(.text-white),
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
}

/* Repairing, Data Recovery, Product Modal & Catalog Form Inputs - Solid White Typed Text */
.repair-form-input,
.recovery-form-input,
#panel-repair .form-control,
#panel-recovery .form-control,
#hardware-repair-form .form-control,
#data-recovery-form .form-control,
#productModal .form-control,
#productModal .form-select,
#productModal textarea,
#quickProductModal .form-control,
#quickProductModal .form-select,
#quickProductModal textarea,
#saleModal .form-control,
#saleModal .form-select,
#prod-title {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    caret-color: #FFFFFF !important;
}

.form-control::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.5) !important;
}

/* ==========================================================================
   SIDEBAR COLLAPSIBLE ACCORDION DROPDOWNS
   ========================================================================== */
.admin-sidebar {
    width: 270px;
    background-color: #0f172a;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 18px 14px;
    border-right: 1px solid #1e293b;
    overflow-y: auto;
    z-index: 1000;
    scrollbar-width: thin;
    scrollbar-color: #334155 #0f172a;
}

.admin-sidebar::-webkit-scrollbar {
    width: 5px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.admin-main {
    margin-left: 270px;
    padding: 24px 30px;
    min-height: 100vh;
    background-color: #f8fafc;
    color: #1e293b;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    padding: 8.5px 12px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-nav-link:hover {
    background-color: rgba(219, 39, 36, 0.15);
    color: #ffffff;
}

.admin-nav-link.active {
    background-color: var(--accent-red) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(219, 39, 36, 0.3);
}

.sidebar-accordion-group {
    margin-top: 8px;
    margin-bottom: 6px;
}

.sidebar-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8.5px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    user-select: none;
}

.sidebar-accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.sidebar-accordion-header.active-category,
.sidebar-accordion-header.open {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.04);
}

.sidebar-accordion-header .accordion-arrow {
    font-size: 11px;
    color: #64748b;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.sidebar-accordion-header:hover .accordion-arrow,
.sidebar-accordion-header.open .accordion-arrow {
    color: #ffffff;
}

.sidebar-accordion-header.open .accordion-arrow {
    transform: rotate(-180deg);
}

.sidebar-accordion-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin 0.25s ease;
    padding-left: 10px;
    margin-top: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    margin-left: 14px;
}

.sidebar-accordion-body.open {
    max-height: 500px;
    opacity: 1;
    margin-top: 4px;
    margin-bottom: 6px;
}

.sidebar-accordion-body .admin-nav-link {
    font-size: 12.5px;
    padding: 7px 11px;
    margin-bottom: 2px;
}

/* Real-time Dynamic Stock Badges */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    user-select: none;
}
.stock-badge.in-stock {
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.stock-badge.low-stock {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.stock-badge.out-of-stock {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   Restored Header & Mobile Navigation Styles
   ========================================================================== */
.tf-header {
    display: block !important;
    visibility: visible !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background-color: var(--bg-header, #080b0f) !important;
    border-bottom: 1px solid var(--border-color, #1a222d);
}

.gug-hamburger-btn {
    background: transparent;
    border: 1px solid var(--border-color, #2a2f35);
    color: var(--text-primary, #fff);
    font-size: 18px;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.gug-hamburger-btn:hover,
.gug-hamburger-btn:focus {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--accent-red, #db2724);
    border-color: var(--accent-red, #db2724);
}

/* Portals Single Column Dropdown */
.dropdown-menu-portals {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background-color: var(--bg-card, #0f141c);
    border: 1px solid var(--border-color, #232b36);
    border-radius: 8px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    padding: 10px 0;
    z-index: 1100;
    display: block;
}
.nav-dropdown:hover .dropdown-menu-portals {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu-portals li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-primary, #e2e8f0);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.dropdown-menu-portals li a:hover {
    background-color: rgba(219, 39, 36, 0.12);
    color: var(--accent-red, #db2724);
    padding-left: 24px;
}

/* Mobile Offcanvas Drawer */
.gug-mobile-drawer {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    max-width: 88vw;
    height: 100vh;
    background-color: var(--bg-card, #0c1015);
    z-index: 10005;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color, #1a222d);
}
.gug-mobile-drawer.active {
    right: 0 !important;
}
.gug-mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10004;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.gug-mobile-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color, #1a222d);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.mobile-drawer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mobile-drawer-nav .mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: var(--text-primary, #fff);
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.mobile-drawer-nav .mobile-nav-link:hover,
.mobile-drawer-nav .mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-red, #db2724);
}
.mobile-category-pill {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color, #1a222d);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    transition: all 0.2s ease;
}
.mobile-category-pill:hover {
    color: var(--accent-red, #db2724);
    border-color: var(--accent-red, #db2724);
    background: rgba(219, 39, 36, 0.1);
}
.mobile-portal-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color, #1a222d);
    border-radius: 8px;
    color: var(--text-primary, #fff);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.mobile-portal-card:hover {
    background: rgba(219, 39, 36, 0.1);
    border-color: var(--accent-red, #db2724);
    color: #fff;
}

/* ==========================================================================
   Storefront Product Page Pagination Styling
   ========================================================================== */
nav[aria-label="Shop Pagination"],
.shop-pagination-nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 50px !important;
    margin-bottom: 30px !important;
    clear: both !important;
}

ul.pagination#pagination-controls,
.pagination {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
    background: transparent !important;
}

.pagination .page-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
    background: transparent !important;
}

.pagination .page-item .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--text-primary, #ffffff) !important;
    background-color: var(--bg-card, #121820) !important;
    border: 1px solid var(--border-color, #232b36) !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    user-select: none !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

.pagination .page-item .page-link:hover {
    background-color: rgba(219, 39, 36, 0.15) !important;
    border-color: var(--accent-red, #db2724) !important;
    color: var(--accent-red, #db2724) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(219, 39, 36, 0.3) !important;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--accent-red, #db2724), #ff3b38) !important;
    border-color: var(--accent-red, #db2724) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(219, 39, 36, 0.5) !important;
    pointer-events: none !important;
    transform: translateY(-1px);
}

.pagination .page-item.disabled .page-link {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
    color: rgba(255, 255, 255, 0.25) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.pagination .page-item.dots .page-link {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--text-secondary, #94a3b8) !important;
    min-width: 28px !important;
    padding: 0 !important;
    cursor: default !important;
    pointer-events: none !important;
    font-size: 16px !important;
    letter-spacing: 2px !important;
}

/* ==========================================================================
   Custom PC Build Cards & Dynamic Request Modal
   ========================================================================== */
.custom-pc-card {
    background: rgba(13, 17, 23, 0.5) !important;
    background-color: rgba(13, 17, 23, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
    cursor: pointer;
    height: 100%;
}
.custom-pc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(229, 3, 3, 0.25) !important;
    border-color: rgba(229, 3, 3, 0.6) !important;
}
.custom-pc-card:hover .pc-card-img {
    transform: scale(1.06);
}
.pc-card-img-wrap {
    height: 230px;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}
.pc-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.pc-card-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,17,23,0.1) 0%, rgba(13,17,23,0.3) 50%, rgba(13,17,23,0.7) 100%);
}
.pc-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.pc-card-body h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
    font-weight: 700 !important;
}
.pc-card-body p {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85) !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
}
.pc-spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
    font-weight: 500;
    margin-bottom: 8px;
}
.pc-spec-item span {
    color: #ffffff !important;
}
.pc-spec-item i {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.pc-build-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 94%;
    max-width: 840px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #0b0f17;
    border-radius: 16px;
    z-index: 10002;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(229, 3, 3, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.pc-build-modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}
.pc-build-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0f172a;
    border-radius: 16px 16px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}
.pc-build-modal-body {
    padding: 24px 28px;
}
.pc-build-modal,
.pc-build-modal * {
    box-sizing: border-box;
}
.pc-build-modal label,
.pc-build-modal .form-label {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    margin-bottom: 6px !important;
    display: inline-block !important;
    letter-spacing: 0.3px;
}
.pc-build-input {
    width: 100% !important;
    background-color: #05070a !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-radius: 8px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.pc-build-input:not(textarea) {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    line-height: 46px !important;
}
textarea.pc-build-input {
    padding: 12px 14px !important;
    min-height: 96px !important;
    line-height: 1.5 !important;
    resize: vertical !important;
}
select.pc-build-input {
    background-color: #05070a !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 12px !important;
    padding-right: 38px !important;
    cursor: pointer !important;
}
select.pc-build-input option {
    background-color: #0b0f17 !important;
    color: #ffffff !important;
}
.pc-build-input:focus {
    border-color: var(--accent-red) !important;
    box-shadow: 0 0 0 3px rgba(229, 3, 3, 0.3) !important;
    outline: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
.pc-build-input::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.45) !important;
}
.pc-build-modal .highlight-text,
.pc-build-modal strong,
.pc-build-modal h5,
.pc-build-modal h6,
.pc-build-modal p,
.pc-build-modal span:not(.text-danger):not(.badge) {
    color: #ffffff !important;
}
.pc-build-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.pc-build-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

/* ==========================================================================
   GLOBAL iOS 26 ULTRA-LUXURY GLASSMORPHISM ARCHITECTURE
   (Frontend, Admin Panel, Dealer Panel, and Management Staff Panel)
   ========================================================================== */

/* 1. Global Seamless Background & Layout Transparency */
#wrapper,
main,
.main-wrapper,
.content-wrapper,
.flat-spacing-1,
.flat-spacing-2,
.flat-spacing-3,
section,
.container-fluid,
.admin-main,
main.admin-main,
.portal-main,
#home-product-grids,
.home-product-grids-section,
.promotional-banners-section,
.home-repairs-section,
#repair-services-section,
#custom-pc-builds-section,
.custom-pc-builds-section,
.hero-swiper {
    background: transparent !important;
    background-color: transparent !important;
}

/* 2. Global Universal iOS 26 Frosted Glass Foundation */
.card,
.product-card,
.shop-card,
.card-product,
.cat-card,
.custom-pc-card,
.home-repair-card,
.admin-card,
.erp-card,
.portal-card,
.dealer-card,
.kpi-card,
.stat-card,
.dashboard-card,
.widget-card,
.stunning-login-card,
.dealer-login-card,
.staff-login-card,
.theme-color-card,
.quick-action-btn,
.kanban-card,
.kanban-col,
.service-pill-card,
.form-section-card,
.task-item,
.coupon-section,
.order-summary-card,
.checkout-box,
.summary-card,
.report-card {
    background: var(--ios-glass-bg, rgba(10, 10, 15, 0.45)) !important;
    background-color: var(--ios-glass-bg, rgba(10, 10, 15, 0.45)) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border: var(--ios-glass-border, 1px solid rgba(255, 255, 255, 0.1)) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease !important;
}

.card:hover,
.product-card:hover,
.shop-card:hover,
.card-product:hover,
.cat-card:hover,
.custom-pc-card:hover,
.home-repair-card:hover,
.admin-card:hover,
.erp-card:hover,
.portal-card:hover,
.dealer-card:hover,
.task-item:hover,
.quick-action-btn:hover,
.widget-card:hover {
    border-color: var(--accent-hover-border, rgba(229, 3, 3, 0.55)) !important;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.7), 0 0 25px var(--accent-glow, rgba(229, 3, 3, 0.25)), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

/* 3. Frontend Header, Topbar, Sticky Nav & Dropdowns */
.tf-header,
.tf-header .header-inner,
.header-default,
.portal-header {
    background: var(--ios-glass-bg-header, rgba(10, 10, 15, 0.55)) !important;
    background-color: var(--ios-glass-bg-header, rgba(10, 10, 15, 0.55)) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.tf-header.scrolled {
    background: rgba(10, 10, 15, 0.75) !important;
    background-color: rgba(10, 10, 15, 0.75) !important;
    backdrop-filter: blur(28px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
}

.tf-header .topbar,
.tf-header > div:first-child,
.topbar {
    background: rgba(8, 8, 12, 0.6) !important;
    background-color: rgba(8, 8, 12, 0.6) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.topbar span, .topbar a, .topbar i {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.tf-header .item-link,
.tf-header a,
.nav-menu-main .item-link {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85) !important;
}

/* High-End Dropdowns & Menus */
.dropdown-menu,
.sub-menu,
.menu-dropdown,
.cart-box-dropdown,
.search-results-dropdown,
.user-dropdown-menu,
.search-inline-panel {
    background: rgba(10, 10, 15, 0.8) !important;
    background-color: rgba(10, 10, 15, 0.8) !important;
    backdrop-filter: blur(28px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.dropdown-item,
.sub-menu li a {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.2s ease !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
}

.dropdown-item:hover,
.dropdown-item:focus,
.sub-menu li a:hover {
    background: rgba(229, 3, 3, 0.3) !important;
    color: #ffffff !important;
}

/* 4. Specific Component Glassmorphism Treatments */
.cat-card-title {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
    font-weight: 600 !important;
}

.cat-card-icon {
    filter: drop-shadow(0 2px 8px rgba(229, 3, 3, 0.5)) !important;
}

.cat-card.cat-card-view-all {
    background: rgba(229, 3, 3, 0.35) !important;
    background-color: rgba(229, 3, 3, 0.35) !important;
    border-color: rgba(229, 3, 3, 0.6) !important;
}

.custom-pc-card .pc-card-body h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
}

.custom-pc-card .pc-card-body p {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85) !important;
}

.custom-pc-card .pc-spec-item,
.custom-pc-card .pc-spec-item span {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85) !important;
}

.pc-card-img-wrap {
    background: rgba(0, 0, 0, 0.2) !important;
}

/* Luxury Frosted Showcase Plate for Product Cards */
.card .rounded-t-lg,
.product-card .rounded-t-lg {
    background-color: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* 5. Admin & Portal Sidebars */
.admin-sidebar,
aside.admin-sidebar,
.portal-sidebar,
.shop-sidebar,
.filter-sidebar,
.canvas-sidebar {
    background: rgba(10, 10, 15, 0.6) !important;
    background-color: rgba(10, 10, 15, 0.6) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5), inset -1px 0 0 rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

.admin-nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.2s ease !important;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.admin-nav-link.active {
    background: var(--accent-red) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(229, 3, 3, 0.4) !important;
}

.sidebar-section-heading {
    color: rgba(255, 255, 255, 0.55) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9) !important;
}

.sidebar-accordion-header {
    color: #ffffff !important;
    background: transparent !important;
}

/* 6. Modals & Overlay Windows */
.modal-content,
.modal-dialog .modal-content,
.pc-build-modal,
.quick-view-modal,
.offcanvas {
    background: rgba(10, 10, 15, 0.78) !important;
    background-color: rgba(10, 10, 15, 0.78) !important;
    backdrop-filter: blur(32px) saturate(210%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(210%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.modal-header,
.modal-footer {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* 7. Forms, Inputs, Selects & Labels */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="search"],
textarea,
select {
    background: rgba(255, 255, 255, 0.06) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    transition: all 0.25s ease !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.form-control:focus,
.form-select:focus,
input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--accent-red) !important;
    box-shadow: 0 0 16px rgba(229, 3, 3, 0.35) !important;
    color: #ffffff !important;
    outline: none !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.55) !important;
}

select option {
    background-color: #0c1017 !important;
    color: #ffffff !important;
}

label,
.form-label {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
    font-weight: 500 !important;
}

/* 8. Data Tables (Admin, Dealer, Staff, Orders) */
.table,
table.table,
.table-responsive table {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
}

.table > :not(caption) > * > * {
    background-color: transparent !important;
    color: #ffffff !important;
}

.table th,
table th {
    background: rgba(255, 255, 255, 0.06) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.table td,
table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    vertical-align: middle;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.table tbody tr:hover td,
table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

/* 9. Nav Tabs & Pills (ERP, Staff, Dealer) */
.nav-tabs,
.nav-tabs-erp,
.nav-pills,
.nav-pills-dealer,
.nav-pills-staff {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.nav-tabs .nav-link,
.nav-tabs-erp .nav-link,
.nav-pills-staff .nav-link,
.nav-pills-dealer .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.nav-tabs .nav-link:hover,
.nav-tabs-erp .nav-link:hover,
.nav-pills-staff .nav-link:hover,
.nav-pills-dealer .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.nav-tabs .nav-link.active,
.nav-tabs-erp .nav-link.active,
.nav-pills-staff .nav-link.active,
.nav-pills-dealer .nav-link.active {
    color: #ffffff !important;
    background: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    box-shadow: 0 4px 14px rgba(229, 3, 3, 0.4) !important;
}

/* 10. Footer Overhaul */
footer,
.site-footer,
.footer-inner,
.tf-footer {
    background: var(--ios-glass-bg-footer, rgba(10, 10, 15, 0.65)) !important;
    background-color: var(--ios-glass-bg-footer, rgba(10, 10, 15, 0.65)) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

footer a,
.site-footer a {
    color: rgba(255, 255, 255, 0.85) !important;
}

footer a:hover,
.site-footer a:hover {
    color: var(--accent-red) !important;
}

/* 11. Typography, Metric Labels & Global Contrast */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
}

.kpi-title, .kpi-subtitle, .stat-label, .card-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.kpi-value, .stat-value, .metric-number {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
}

/* 12. iOS 26 Glassmorphic Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(10, 10, 15, 0.6);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    backdrop-filter: blur(10px);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* ==========================================================================
   13. Global Backend Panels Glassmorphism & Background Engine
   (Admin Panel, Dealer Panel, Management Staff Panel)
   ========================================================================== */
html,
body,
body.admin-body,
body.portal-body,
body.dealer-body,
body.staff-body {
    min-height: 100vh !important;
    background-color: var(--gug-bg-color, #07090d) !important;
    background-image: var(--gug-bg-image) !important;
    background-attachment: var(--gug-bg-attachment, fixed) !important;
    background-size: var(--gug-bg-size, cover, cover, 28px 49px) !important;
    background-position: var(--gug-bg-position, center top) !important;
    background-repeat: var(--gug-bg-repeat, no-repeat, no-repeat, repeat) !important;
    color: #ffffff !important;
}

.admin-main,
.portal-main,
.dealer-main,
.staff-main,
#login-container,
.login-container,
.dealer-login-container,
.staff-login-container,
.admin-wrapper,
.portal-wrapper,
.erp-wrapper,
.main-content,
#main-content-wrapper {
    background: transparent !important;
    background-color: transparent !important;
    color: #ffffff !important;
}

/* Sidebars - iOS 26 High-Gloss Glass */
.admin-sidebar,
aside.admin-sidebar,
.portal-sidebar {
    background: var(--ios-glass-bg-sidebar, rgba(10, 10, 15, 0.6)) !important;
    background-color: var(--ios-glass-bg-sidebar, rgba(10, 10, 15, 0.6)) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5), inset -1px 0 0 rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

/* Portal Headers */
.portal-header {
    background: var(--ios-glass-bg-header, rgba(10, 10, 15, 0.55)) !important;
    background-color: var(--ios-glass-bg-header, rgba(10, 10, 15, 0.55)) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

/* Panel & Portal Cards */
.erp-card,
.admin-card,
.portal-card,
.dealer-card,
.kpi-card,
.widget-card,
.task-item,
.report-card,
.summary-card {
    background: var(--ios-glass-bg, rgba(10, 10, 15, 0.45)) !important;
    background-color: var(--ios-glass-bg, rgba(10, 10, 15, 0.45)) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.erp-card:hover,
.admin-card:hover,
.portal-card:hover,
.dealer-card:hover,
.task-item:hover,
.widget-card:hover {
    border-color: var(--accent-hover-border, rgba(229, 3, 3, 0.55)) !important;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.7), 0 0 25px var(--accent-glow, rgba(229, 3, 3, 0.25)), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    transform: translateY(-2px);
}

/* High-End Login Cards across all Panels */
.stunning-login-card,
.dealer-login-card,
.staff-login-card {
    background: var(--ios-glass-bg-modal, rgba(10, 10, 15, 0.65)) !important;
    background-color: var(--ios-glass-bg-modal, rgba(10, 10, 15, 0.65)) !important;
    backdrop-filter: blur(28px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-top: 3px solid var(--accent-red) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 20px rgba(229, 3, 3, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

/* Bootstrap light/white container overrides within glass cards */
.card-header.bg-white,
.card-header.bg-light,
.bg-light.border,
.p-3.bg-light,
.bg-light.rounded,
.bg-light.rounded-3,
.bg-light.rounded-pill {
    background: rgba(255, 255, 255, 0.04) !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

/* Text & Contrast Enforcement */
.text-dark,
.admin-main .text-dark,
.portal-main .text-dark,
.portal-card .text-dark,
.erp-card .text-dark,
.admin-card .text-dark,
.dealer-card .text-dark {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

/* ==========================================================================
   GLOWING WHITE EDIT BUTTON & ADMIN CATALOG PRODUCT INPUT ENFORCEMENT
   ========================================================================== */
.btn-edit-glowing {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.25rem 0.55rem !important;
}

.btn-edit-glowing i {
    color: #ffffff !important;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8)) !important;
}

.btn-edit-glowing:hover,
.btn-edit-glowing:focus,
.btn-edit-glowing:active {
    color: #07090d !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.95), 0 0 28px rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-1px) scale(1.06) !important;
}

.btn-edit-glowing:hover i,
.btn-edit-glowing:focus i,
.btn-edit-glowing:active i {
    color: #07090d !important;
    filter: none !important;
}

/* Fallback visibility for admin table outline-dark buttons */
.admin-main .btn-outline-dark,
.table .btn-outline-dark {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.admin-main .btn-outline-dark:hover,
.table .btn-outline-dark:hover {
    color: #000000 !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
}

/* Explicit Modal Input Styling Across All Modals */
.modal .form-control,
.modal .form-select,
.modal textarea,
.modal input[type="text"],
.modal input[type="number"],
.modal input[type="file"],
#productModal .form-control,
#productModal .form-select,
#productModal textarea,
#quickProductModal .form-control,
#quickProductModal .form-select,
#saleModal .form-control {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    background: rgba(20, 24, 33, 0.85) !important;
    background-color: rgba(20, 24, 33, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
}

.modal .form-control:focus,
.modal .form-select:focus,
.modal textarea:focus,
#productModal .form-control:focus,
#productModal .form-select:focus,
#productModal textarea:focus,
#quickProductModal .form-control:focus,
#quickProductModal .form-select:focus,
#saleModal .form-control:focus {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: rgba(26, 32, 44, 0.95) !important;
    background-color: rgba(26, 32, 44, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.35) !important;
    outline: none !important;
}

.modal .form-control::placeholder,
.modal textarea::placeholder,
#productModal .form-control::placeholder,
#productModal textarea::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.45) !important;
}

.modal select option,
#productModal select option,
#quickProductModal select option,
#saleModal select option {
    background-color: #11141d !important;
    color: #ffffff !important;
}

.modal .form-label,
.modal label,
#productModal .form-label,
#quickProductModal .form-label,
#saleModal .form-label {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* ==========================================================================
   FILE UPLOAD 'CHOOSE FILE' BUTTON - WHITE BUTTON & BOLD BLACK TEXT
   ========================================================================== */
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button,
.form-control::file-selector-button,
.form-control::-webkit-file-upload-button,
#productModal input[type="file"]::file-selector-button,
#productModal input[type="file"]::-webkit-file-upload-button,
#quickProductModal input[type="file"]::file-selector-button,
#quickProductModal input[type="file"]::-webkit-file-upload-button {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border: none !important;
    border-right: 1px solid rgba(0, 0, 0, 0.25) !important;
    padding: 0.375rem 0.85rem !important;
    margin-right: 0.75rem !important;
    border-radius: 6px 0 0 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

input[type="file"]:hover::file-selector-button,
input[type="file"]:hover::-webkit-file-upload-button,
.form-control:hover::file-selector-button,
.form-control:hover::-webkit-file-upload-button,
#productModal input[type="file"]:hover::file-selector-button,
#quickProductModal input[type="file"]:hover::file-selector-button {
    background: #e2e8f0 !important;
    background-color: #e2e8f0 !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

/* File Name Display Text (Next to Button) - Solid White */
input[type="file"],
.form-control[type="file"],
#productModal input[type="file"],
#quickProductModal input[type="file"] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: rgba(20, 24, 33, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

/* Hardware Compositing & Smooth Scrolling Performance */
.card,
.product-card,
.admin-card,
.category-sidebar-card,
.glass-panel {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ==========================================================================
   Product Variant / Storage Selector - iOS 26 Glassmorphic Style
   ========================================================================== */
.storage-option-pill {
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #FFFFFF !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    user-select: none !important;
    outline: none !important;
}

.storage-option-pill:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.38) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

.storage-option-pill.active {
    background: linear-gradient(135deg, rgba(229, 3, 3, 0.25), rgba(229, 3, 3, 0.45)) !important;
    border-color: var(--accent-red, #E50303) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 16px rgba(229, 3, 3, 0.45), inset 0 0 8px rgba(229, 3, 3, 0.2) !important;
    font-weight: 700 !important;
}

.storage-option-pill .pill-price-sub {
    font-size: 11px;
    opacity: 0.82;
    font-weight: 500;
}

/* ==========================================================================
   GLOBAL TEXT VISIBILITY & ZERO TEXT-SHADOW ON WHITE/LIGHT BACKGROUNDS
   Ensures complete legibility (#222222 / #333333 Dark Grey / Charcoal)
   and eliminates blurry/spreading text-shadows on all light surfaces.
   ========================================================================== */
.modal,
.modal-content,
.modal-header,
.modal-body,
.modal-footer,
.modal-dialog,
.bg-white,
.bg-white *,
.bg-light,
.bg-light *,
.table-light,
.table-light *,
.card.bg-white,
.card.bg-white *,
.card.bg-light,
.card.bg-light *,
.table.bg-white,
.table.bg-white *,
.table.bg-light,
.table.bg-light *,
.table-responsive.bg-white,
.table-responsive.bg-white *,
.table-responsive.bg-light,
.table-responsive.bg-light *,
.crm-order-expand-row,
.crm-order-expand-row *,
.order-detail-card,
.order-detail-card *,
.order-history-table,
.order-history-table *,
.product-specs-table,
.product-specs-table *,
.spec-label,
.spec-value,
#customerDetailModal,
#customerDetailModal *,
.modal-content.bg-white,
.modal-content.bg-white * {
    text-shadow: none !important;
}

/* ==========================================================================
   GLOBAL CONTRAST & ACCESSIBILITY ENFORCEMENT
   Strict Rule:
   1. If background is dark -> Font color MUST be SOLID WHITE (#ffffff)
   2. If background is white/light -> Font color MUST be SOLID BLACK (#000000)
   ========================================================================== */

/* 1. DARK BACKGROUND SURFACES: MODALS, CARDS & ADMIN SECTIONS */
.modal-content:not(.bg-white),
.modal-dialog:not(.modal-dialog-white) .modal-content,
.modal-content:not(.bg-white) .modal-body,
.modal-content:not(.bg-white) .modal-header,
.modal-content:not(.bg-white) .modal-footer,
.admin-main .card:not(.bg-white),
.admin-main .erp-card:not(.bg-white),
.admin-main .portal-card:not(.bg-white),
.admin-main .bg-dark,
.admin-main .bg-dark-glass {
    color: #ffffff !important;
}

/* Headings on Dark Backgrounds -> Solid White */
.modal-content:not(.bg-white) h1, .modal-content:not(.bg-white) h2, .modal-content:not(.bg-white) h3,
.modal-content:not(.bg-white) h4, .modal-content:not(.bg-white) h5, .modal-content:not(.bg-white) h6,
.modal-content:not(.bg-white) .modal-title,
.modal-content:not(.bg-white) strong:not(.badge *),
.modal-content:not(.bg-white) b:not(.badge *),
.admin-main .card:not(.bg-white) h1, .admin-main .card:not(.bg-white) h2, .admin-main .card:not(.bg-white) h3,
.admin-main .card:not(.bg-white) h4, .admin-main .card:not(.bg-white) h5, .admin-main .card:not(.bg-white) h6,
.admin-main .erp-card:not(.bg-white) h1, .admin-main .erp-card:not(.bg-white) h2, .admin-main .erp-card:not(.bg-white) h3,
.admin-main .erp-card:not(.bg-white) h4, .admin-main .erp-card:not(.bg-white) h5, .admin-main .erp-card:not(.bg-white) h6 {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

/* Labels on Dark Backgrounds -> Solid White */
.modal-content:not(.bg-white) label,
.modal-content:not(.bg-white) .form-label,
.modal-content:not(.bg-white) .form-check-label,
.admin-main label,
.admin-main .form-label {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9) !important;
    font-weight: 600 !important;
}

/* Override .text-dark on Dark Surfaces -> Force Solid White */
.modal-content:not(.bg-white) .text-dark,
.modal-dialog .modal-content:not(.bg-white) .text-dark,
.admin-main .card:not(.bg-white) .text-dark,
.admin-main .erp-card:not(.bg-white) .text-dark,
.admin-main .portal-card:not(.bg-white) .text-dark,
.admin-main .modal .text-dark:not(.badge):not(.badge *):not(.btn-warning):not(.alert-warning *) {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9) !important;
}

/* Secondary / Subtitle text on Dark Surfaces -> High Contrast Soft White */
.modal-content:not(.bg-white) .text-secondary,
.modal-content:not(.bg-white) .text-muted,
.modal-content:not(.bg-white) small:not(.badge *):not(.text-danger):not(.text-success),
.admin-main .card:not(.bg-white) .text-secondary,
.admin-main .card:not(.bg-white) .text-muted,
.admin-main .erp-card:not(.bg-white) .text-secondary,
.admin-main .erp-card:not(.bg-white) .text-muted {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* Modals: override .bg-light / .bg-light.bg-opacity-50 inside dark modals so they don't look muddy or trigger dark text */
.modal-content:not(.bg-white) .bg-light,
.modal-content:not(.bg-white) .bg-light.bg-opacity-50,
.modal-content:not(.bg-white) .bg-light.bg-opacity-25,
.modal-content:not(.bg-white) .bg-light.bg-opacity-10,
.modal-content:not(.bg-white) .modal-header.bg-light,
.modal-content:not(.bg-white) .modal-footer.bg-light {
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.modal-content:not(.bg-white) .bg-light *,
.modal-content:not(.bg-white) .bg-light.bg-opacity-50 *,
.modal-content:not(.bg-white) .bg-light.bg-opacity-25 * {
    color: #ffffff !important;
}

.modal-content:not(.bg-white) .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%) !important;
}

/* Code & Input groups on Dark Modals */
.modal-content:not(.bg-white) code {
    color: #ff6b6b !important;
    background: rgba(255, 255, 255, 0.08) !important;
    padding: 2px 6px;
    border-radius: 4px;
}

.modal-content:not(.bg-white) .input-group-text {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.modal-content:not(.bg-white) .form-control,
.modal-content:not(.bg-white) .form-select {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

/* Modal full-screen wrapper MUST remain completely transparent so website & backdrop are visible */
.modal,
#customerDetailModal,
#customerModal,
#pcBuildDetailModal {
    background: transparent !important;
    background-color: transparent !important;
}

/* Semi-transparent dark overlay backdrop so website remains visible behind popup */
.modal-backdrop {
    background-color: #000000 !important;
}
.modal-backdrop.show {
    opacity: 0.65 !important;
}

/* 2. WHITE / LIGHT BACKGROUND SURFACES: FORCE SOLID BLACK (#000000) FONT COLOR */
.bg-white,
.bg-white p,
.bg-white span:not(.badge):not(.badge *):not(.text-danger):not(.text-success):not(.text-primary):not(.text-warning),
.bg-white div:not(.badge):not(.badge *):not(.alert *):not(.btn):not(.btn *),
.bg-white small:not(.badge *):not(.text-danger):not(.text-success),
.bg-white li,
.bg-white label,
.bg-white .form-label,
.bg-white td,
.bg-white th,
.bg-white strong:not(.text-danger):not(.text-success):not(.text-primary),
.bg-white b,
.bg-white .text-dark,
.modal-content.bg-white,
.modal-content.bg-white p,
.modal-content.bg-white span:not(.badge):not(.badge *):not(.text-danger):not(.text-success):not(.text-primary):not(.text-warning),
.modal-content.bg-white div:not(.badge):not(.badge *):not(.alert *):not(.btn):not(.btn *),
.modal-content.bg-white label,
.modal-content.bg-white .form-label,
.modal-content.bg-white td,
.modal-content.bg-white th,
.modal-content.bg-white h1, .modal-content.bg-white h2, .modal-content.bg-white h3,
.modal-content.bg-white h4, .modal-content.bg-white h5, .modal-content.bg-white h6,
.modal-content.bg-white .modal-title,
.modal-content.bg-white .text-dark,
.card.bg-white p,
.card.bg-white span:not(.badge):not(.badge *):not(.text-danger):not(.text-success):not(.text-primary):not(.text-warning),
.card.bg-white div:not(.badge):not(.badge *):not(.alert *):not(.btn):not(.btn *),
.card.bg-white td,
.card.bg-white h1, .card.bg-white h2, .card.bg-white h3, .card.bg-white h4, .card.bg-white h5, .card.bg-white h6,
.card.bg-white label,
.card.bg-white .form-label,
.card.bg-white strong:not(.text-danger):not(.text-success):not(.text-primary),
.card.bg-white b,
.table-light,
.table-light td,
.table-light th,
thead.table-light th,
#customerDetailModal,
#customerDetailModal p,
#customerDetailModal span:not(.badge):not(.badge *):not(.text-danger):not(.text-success):not(.text-primary):not(.text-warning),
#customerDetailModal div:not(.badge):not(.badge *):not(.alert *):not(.btn):not(.btn *),
#customerDetailModal small:not(.badge *):not(.text-danger):not(.text-success),
#customerDetailModal label,
#customerDetailModal .form-label,
#customerDetailModal li,
#customerDetailModal td,
#customerDetailModal th,
#customerDetailModal h1, #customerDetailModal h2, #customerDetailModal h3,
#customerDetailModal h4, #customerDetailModal h5, #customerDetailModal h6,
#customerDetailModal .modal-title,
#customerDetailModal strong:not(.text-danger):not(.text-success):not(.text-primary),
#customerDetailModal b,
#customerDetailModal .text-dark {
    color: #000000 !important;
    text-shadow: none !important;
}

/* Secondary muted text on white/light backgrounds -> solid dark slate #374151 for high contrast readability */
.bg-white .text-secondary,
.bg-white .text-muted,
.card.bg-white .text-secondary,
.card.bg-white .text-muted,
.modal-content.bg-white .text-secondary,
.modal-content.bg-white .text-muted,
#customerDetailModal .text-secondary,
#customerDetailModal .text-muted {
    color: #374151 !important;
    text-shadow: none !important;
}

/* Solid white background ONLY applies to the Customer 360 popup card itself */
#customerDetailModal .modal-content,
#customerDetailModal .modal-body,
#customerDetailModal .modal-header,
#customerDetailModal .modal-footer,
.modal-content.bg-white {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #000000 !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6) !important;
}

/* Prevent Bootstrap .table > :not(caption) > * > * from imposing white text on light tables */
.table.bg-white > :not(caption) > * > *,
.table.bg-light > :not(caption) > * > *,
.bg-white .table > :not(caption) > * > *,
.bg-light .table > :not(caption) > * > *,
#customerDetailModal .table > :not(caption) > * > *,
.order-history-table > :not(caption) > * > *,
.product-specs-table > :not(caption) > * > * {
    color: #000000 !important;
    text-shadow: none !important;
}

/* Purchase Order History Table & Headers */
.order-history-table,
#customerDetailModal .table,
.admin-main #customerDetailModal .table {
    color: #000000 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    text-shadow: none !important;
    border-color: #cbd5e1 !important;
}

.table.bg-white th,
.table.bg-light th,
.bg-white .table th,
.bg-light .table th,
#customerDetailModal .table th,
.order-history-table th,
.order-history-th {
    background-color: #f1f5f9 !important;
    background: #f1f5f9 !important;
    color: #000000 !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid #cbd5e1 !important;
    border-top: none !important;
    padding: 12px 14px !important;
    text-shadow: none !important;
}

.table.bg-white td,
.table.bg-light td,
.bg-white .table td,
.bg-light .table td,
#customerDetailModal .table td,
.admin-main #customerDetailModal .table td,
.order-history-table td {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #222222 !important;
    font-size: 13.5px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    text-shadow: none !important;
}

/* Product Specifications Table */
.product-specs-table {
    border-collapse: collapse !important;
    width: 100% !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    text-shadow: none !important;
}

.product-specs-table td.spec-label,
.product-specs-table th.spec-label,
#customerDetailModal .product-specs-table td.spec-label,
.spec-label {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    color: #111827 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 7px 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-right: 2px solid #cbd5e1 !important;
    white-space: nowrap !important;
    text-shadow: none !important;
    width: 32% !important;
}

.product-specs-table td.spec-value,
#customerDetailModal .product-specs-table td.spec-value,
.spec-value {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    padding: 7px 12px !important;
    border: 1px solid #e2e8f0 !important;
    text-shadow: none !important;
}

/* ==========================================================================
   ADMIN PANEL: GLOBAL THEME & EDITABLE FOOTER CUSTOMIZER DARK STYLING
   Enforces consistent dark grey background (#10151e / #141b27) across all
   cards, subsection boxes, headers, input groups, and forms.
   Completely eliminates all text-shadow effects (text-shadow: none !important;)
   and forces crisp solid white typography (#ffffff) for maximum readability.
   ========================================================================== */
#tab-theme-customizer,
#tab-theme-customizer .card,
#tab-theme-customizer .card-header,
#tab-theme-customizer .card-body,
#tab-theme-customizer .card-footer,
.admin-dark-card,
.admin-dark-card .card-header,
.admin-dark-card .card-body,
.admin-dark-card .card-footer,
.theme-section-box,
.theme-color-card {
    text-shadow: none !important;
}

#tab-theme-customizer *,
.admin-dark-card *,
.theme-section-box *,
.theme-color-card * {
    text-shadow: none !important;
}

/* Dark Card Backgrounds */
#tab-theme-customizer .card,
.admin-dark-card {
    background: rgba(16, 21, 30, 0.95) !important;
    background-color: #10151e !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5) !important;
}

#tab-theme-customizer .card-header,
.admin-dark-card .card-header {
    background: rgba(22, 29, 41, 0.95) !important;
    background-color: #161d29 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-top-left-radius: 14px !important;
    border-top-right-radius: 14px !important;
}

#tab-theme-customizer .card-body,
.admin-dark-card .card-body {
    background: transparent !important;
    color: #ffffff !important;
}

#tab-theme-customizer .card-footer,
.admin-dark-card .card-footer {
    background: rgba(22, 29, 41, 0.95) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-bottom-left-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
}

/* Dark Subsection Boxes */
.theme-section-box {
    background: rgba(20, 27, 39, 0.9) !important;
    background-color: #141b27 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
}

/* Dark Theme Color Pickers */
.theme-color-card {
    background: rgba(20, 27, 39, 0.95) !important;
    background-color: #141b27 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
}

/* Typography in Dark Sections */
#tab-theme-customizer h1,
#tab-theme-customizer h2,
#tab-theme-customizer h3,
#tab-theme-customizer h4,
#tab-theme-customizer h5,
#tab-theme-customizer h6,
#tab-theme-customizer label,
#tab-theme-customizer .form-label,
#tab-theme-customizer .form-check-label,
.admin-dark-card h1,
.admin-dark-card h2,
.admin-dark-card h3,
.admin-dark-card h4,
.admin-dark-card h5,
.admin-dark-card h6,
.admin-dark-card label,
.theme-section-box h1,
.theme-section-box h2,
.theme-section-box h3,
.theme-section-box h4,
.theme-section-box h5,
.theme-section-box h6,
.theme-section-box label {
    color: #ffffff !important;
    text-shadow: none !important;
    font-weight: 600;
}

#tab-theme-customizer .text-secondary,
#tab-theme-customizer .text-muted,
.admin-dark-card .text-secondary,
.admin-dark-card .text-muted,
.theme-section-box .text-secondary,
.theme-section-box .text-muted {
    color: #94a3b8 !important;
    text-shadow: none !important;
}

/* Dark Form Controls */
#tab-theme-customizer .form-control,
#tab-theme-customizer .form-select,
#tab-theme-customizer textarea,
.admin-dark-card .form-control,
.admin-dark-card .form-select,
.admin-dark-card textarea,
.theme-section-box .form-control,
.theme-section-box .form-select,
.theme-section-box textarea {
    background-color: #0a0e16 !important;
    background: rgba(10, 14, 22, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-radius: 8px !important;
    text-shadow: none !important;
}

#tab-theme-customizer .form-control:focus,
#tab-theme-customizer .form-select:focus,
#tab-theme-customizer textarea:focus,
.admin-dark-card .form-control:focus,
.admin-dark-card .form-select:focus,
.admin-dark-card textarea:focus,
.theme-section-box .form-control:focus,
.theme-section-box .form-select:focus,
.theme-section-box textarea:focus {
    background-color: #0e1420 !important;
    border-color: var(--accent-red, #E50303) !important;
    box-shadow: 0 0 12px rgba(229, 3, 3, 0.35) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
}

#tab-theme-customizer .form-control::placeholder,
#tab-theme-customizer textarea::placeholder,
.admin-dark-card .form-control::placeholder,
.theme-section-box .form-control::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.45) !important;
    text-shadow: none !important;
}

/* Dark Input Group Prepend / Icons */
#tab-theme-customizer .input-group-text,
.admin-dark-card .input-group-text,
.theme-section-box .input-group-text {
    background: rgba(26, 34, 48, 0.95) !important;
    background-color: #1a2230 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

/* ==========================================================================
   UNIVERSAL RESILIENT TOGGLE SWITCHES & CHECKBOXES SYSTEM
   Ensures ALL toggle switches and checkboxes across the entire Admin Panel,
   Theme Editor, Storefront, Portals, and Modals remain crystal clear,
   high-contrast, and permanently visible in BOTH ON and OFF states.
   Completely protects the toggle knob SVG and track background from being
   erased on hover, click, active, or focus states.
   ========================================================================== */

/* 1. Universal Form Switch Layout Wrapper */
.form-switch,
.form-check.form-switch {
    display: inline-flex !important;
    align-items: center !important;
    padding-left: 3.3em !important;
    min-height: 1.6rem !important;
    position: relative !important;
    vertical-align: middle !important;
}

/* 2. Form Switch Input Track & Knob - Default OFF (Unchecked) State */
.form-switch .form-check-input,
.form-check.form-switch .form-check-input {
    width: 2.85em !important;
    height: 1.5em !important;
    min-width: 2.85em !important;
    min-height: 1.5em !important;
    margin-left: -3.3em !important;
    margin-top: 0 !important;
    margin-right: 0.5em !important;
    vertical-align: middle !important;
    border-radius: 2em !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    box-sizing: border-box !important;

    /* High-contrast solid dark slate track with crisp border */
    background-color: #1e293b !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;

    /* Crisp solid white circle knob that NEVER disappears */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e") !important;
    background-position: left center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;

    transition: background-position 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.2s ease,
                box-shadow 0.2s ease !important;
}

/* 3. Hover State */
.form-switch .form-check-input:hover,
.form-check.form-switch .form-check-input:hover {
    border-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 8px rgba(255, 255, 255, 0.25) !important;
}

/* 4. Focus State when OFF (When clicked or keyboard focused) */
.form-switch .form-check-input:focus,
.form-check.form-switch .form-check-input:focus,
.form-switch .form-check-input:focus:not(:checked),
.form-check.form-switch .form-check-input:focus:not(:checked) {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(229, 3, 3, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e") !important;
    background-position: left center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    outline: none !important;
}

/* 5. Active State (While pressing switch) */
.form-switch .form-check-input:active,
.form-check.form-switch .form-check-input:active {
    filter: brightness(1.15) !important;
}

/* 6. Form Switch ON (Checked) State */
.form-switch .form-check-input:checked,
.form-check.form-switch .form-check-input:checked {
    background-color: var(--accent-red, #db2724) !important;
    border-color: var(--accent-red, #db2724) !important;
    box-shadow: 0 0 14px rgba(219, 39, 36, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e") !important;
    background-position: right center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

/* 7. Focus State when ON (Checked & Focused / Clicked) */
.form-switch .form-check-input:focus:checked,
.form-switch .form-check-input:checked:focus,
.form-check.form-switch .form-check-input:focus:checked,
.form-check.form-switch .form-check-input:checked:focus {
    background-color: var(--accent-red, #db2724) !important;
    border-color: var(--accent-red, #db2724) !important;
    box-shadow: 0 0 0 3px rgba(229, 3, 3, 0.4), 0 0 16px rgba(219, 39, 36, 0.65) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e") !important;
    background-position: right center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    outline: none !important;
}

/* 8. Reverse Switches */
.form-switch.form-check-reverse,
.form-check.form-switch.form-check-reverse {
    padding-right: 3.3em !important;
    padding-left: 0 !important;
}
.form-switch.form-check-reverse .form-check-input,
.form-check.form-switch.form-check-reverse .form-check-input {
    margin-right: -3.3em !important;
    margin-left: 0 !important;
}

/* 9. Switch Label Readability & Cursor */
.form-switch .form-check-label,
.form-check.form-switch .form-check-label {
    cursor: pointer !important;
    user-select: none !important;
    vertical-align: middle !important;
}

/* 10. Standard Non-Switch Checkboxes */
.form-check-input:not(.form-switch .form-check-input):not([type="radio"]) {
    width: 1.25em !important;
    height: 1.25em !important;
    min-width: 1.25em !important;
    min-height: 1.25em !important;
    border-radius: 4px !important;
    background-color: #1e293b !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
}

.form-check-input:not(.form-switch .form-check-input):not([type="radio"]):hover {
    border-color: rgba(255, 255, 255, 0.7) !important;
}

.form-check-input:not(.form-switch .form-check-input):not([type="radio"]):focus {
    box-shadow: 0 0 0 3px rgba(229, 3, 3, 0.25) !important;
    border-color: var(--accent-red, #db2724) !important;
    outline: none !important;
}

.form-check-input:not(.form-switch .form-check-input):not([type="radio"]):checked {
    background-color: var(--accent-red, #db2724) !important;
    border-color: var(--accent-red, #db2724) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

/* ==========================================================================
   GLOBAL SECURITY & PASSWORD INPUT SHOW/HIDE EYE TOGGLE STYLING
   Provides sleek, modern eye toggle buttons for all password & API key inputs
   across dark mode admin panels, login screens, modals, and light mode forms.
   ========================================================================== */
.btn-security-toggle,
.btn-pw-toggle {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-left: none !important;
    color: #94a3b8 !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 5 !important;
}

.btn-security-toggle:hover,
.btn-pw-toggle:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.btn-security-toggle:focus,
.btn-pw-toggle:focus {
    box-shadow: 0 0 0 2px rgba(229, 3, 3, 0.3) !important;
    outline: none !important;
    color: #ffffff !important;
}

.btn-security-toggle i,
.btn-pw-toggle i {
    font-size: 14px !important;
    transition: transform 0.15s ease, color 0.15s ease !important;
    pointer-events: none !important;
}

/* Light background container adaptation */
.bg-light .btn-security-toggle,
.bg-white .btn-security-toggle,
.card:not(.admin-card):not(.theme-color-card) .bg-light .btn-security-toggle {
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
    border-left: none !important;
    color: #475569 !important;
}

.bg-light .btn-security-toggle:hover,
.bg-white .btn-security-toggle:hover {
    background: #cbd5e1 !important;
    color: #0f172a !important;
}

/* ==========================================================================
   STABLE ACTION BUTTONS & ANTI-JITTER CONTROLS (ADMIN TABLES & FORMS)
   Prevents hover shaking, vertical displacement, and missed clicks on table buttons
   ========================================================================== */
.table .btn,
.table .btn:hover,
.table .btn:focus,
.table .btn:active,
.btn-icon-stable,
.btn-icon-stable:hover,
.btn-icon-stable:focus,
.btn-icon-stable:active,
.btn-security-toggle,
.btn-security-toggle:hover,
.btn-security-toggle:focus,
.btn-security-toggle:active,
.btn-pw-toggle,
.btn-pw-toggle:hover,
.btn-pw-toggle:focus,
.btn-pw-toggle:active,
.btn-table-action,
.btn-table-action:hover,
.btn-table-action:focus,
.btn-table-action:active {
    transform: none !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

.btn-icon-stable {
    width: 32px !important;
    height: 28px !important;
    min-width: 32px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    vertical-align: middle !important;
}

.btn-icon-stable i {
    pointer-events: none !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

/* ==========================================================================
   GEAR UP GADGETS - COMPREHENSIVE RESPONSIVE & MOBILE ENGINE (STRICT ZERO OVERFLOW)
   Strictly covers max-width: 100vw, fluid containers, Kanban boards, stat widgets, and tables
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL VIEWPORT & HORIZONTAL OVERFLOW LOCK
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box !important;
}

body, html, .main-container {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    min-height: 100vh !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

#wrapper,
.main-content,
.gug-container,
.container,
.container-fluid,
.portal-wrapper,
.dashboard-wrapper,
.content-area,
.admin-wrapper,
.erp-wrapper,
#main-content-wrapper {
    max-width: 100vw !important;
    width: 100% !important;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    box-sizing: border-box !important;
}

/* Clean Word Flow: Text flows naturally without breaking letters vertically */
td, th, .table td, .table th,
.card, .admin-card, .erp-card, .portal-card,
.kanban-card, .kanban-col, .stat-card, .stat-box, .stat-widget, .metric-card, .kpi-card,
p, span, h1, h2, h3, h4, h5, h6,
small, div {
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.text-break-anywhere {
    overflow-wrap: anywhere !important;
}

/* Fluid Containers & Cards: Force ALL cards, panel wrappers, and stat boxes to 100% fluid */
.admin-card,
.erp-card,
.portal-card,
.kanban-card,
.kanban-col,
.stat-card,
.stat-box,
.stat-widget,
.metric-card,
.kpi-card,
.card,
.widget-card,
.panel-wrapper,
.panel-container,
.statement-paper,
.content-card,
.overview-card,
.box-card,
.summary-box,
.tab-content,
.tab-pane,
.card-body,
.table-responsive,
.erp-table-responsive {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Row resets: Prevent Bootstrap negative horizontal margins (-0.75rem) from causing overflow */
.admin-main .row,
.admin-card .row,
.erp-card .row,
.portal-card .row,
.main-container .row,
.container-fluid .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Internal tables, grids, and canvases strictly constrained to container width */
table, .table, .table-responsive, .erp-table-responsive {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Ensure images, media, canvas, and svg never exceed their container */
img, video, canvas, svg,
.chart-container canvas,
.erp-card canvas {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

div:has(> canvas) {
    max-width: 100% !important;
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Flex-Wrap for Layouts: Multi-column layouts like Kanban board and top stat widgets */
.kanban-board,
.kanban-row,
.kanban-columns,
.row:has(.kanban-col),
.row:has(.admin-card),
.row:has(.stat-card),
.row:has(.kpi-card),
#kpi-cards-grid,
.stat-row,
.metric-row {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Kanban Cards and Columns Fluid */
.kanban-col {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.kanban-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.kanban-card .d-flex {
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
}

.kanban-card .btn-group {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}

/* Navigation Tabs: Wrap cleanly instead of pushing viewport horizontally */
.nav-tabs,
.nav-tabs-erp,
.nav-pills,
.nav-pills-dealer {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 6px !important;
    box-sizing: border-box !important;
}

.nav-tabs .nav-item,
.nav-tabs-erp .nav-item,
.nav-pills .nav-item,
.nav-pills-dealer .nav-item {
    flex: 0 1 auto !important;
    max-width: 100% !important;
}

.nav-tabs .nav-link,
.nav-tabs-erp .nav-link,
.nav-pills .nav-link,
.nav-pills-dealer .nav-link {
    font-size: 12.5px !important;
    padding: 6px 12px !important;
    white-space: normal !important;
    text-align: center !important;
}

/* Desktop Table Protection: Enable clean horizontal scrolling inside table-responsive */
@media (min-width: 992px) {
    .table-responsive,
    .erp-table-responsive {
        overflow-x: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

/* --------------------------------------------------------------------------
   2. MEDIA QUERY: MAX-WIDTH 991PX (MOBILE & TABLET SCREENS)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    /* --- Layout & Typography Adjustments --- */
    body {
        font-size: 14px !important;
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    h1, .h1, .hero-title {
        font-size: 24px !important;
        line-height: 1.25 !important;
    }
    h2, .h2 {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }
    h3, .h3 {
        font-size: 17px !important;
    }
    h4, .h4 {
        font-size: 15px !important;
    }
    h5, .h5 {
        font-size: 14px !important;
    }

    /* Padding & Margin adjustments */
    .container,
    .gug-container,
    .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    section,
    .section-padding,
    .flat-spacing {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }

    /* --- Multi-Column Flexbox and Grid Stacking (Rules strictly stack to 1 column) --- */
    .row:not(.g-1):not(.g-2):not(.btn-group-responsive):not(.table-action-row) > [class*="col-"]:not(.col-auto):not(.keep-col) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .product-grid,
    .hardware-showcase-grid,
    .builder-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .category-grid,
    .cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .cat-card {
        padding: 14px 10px !important;
        min-height: auto !important;
    }

    .custom-pc-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .custom-pc-card {
        width: 100% !important;
        margin-bottom: 16px !important;
    }

    /* --- Storefront Header & Topbar (Strict Fit, No Cutting Off) --- */
    .tf-header {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .topbar {
        padding: 4px 6px !important;
        font-size: 10.5px !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    .topbar-inner {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        gap: 4px 10px !important;
        width: 100% !important;
    }
    .topbar-inner > div {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        text-align: center !important;
        gap: 6px !important;
    }
    .topbar-inner span,
    .topbar-inner a {
        font-size: 10.5px !important;
    }

    .header-inner {
        padding: 6px 10px !important;
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .header-logo-wrapper {
        flex: 0 1 auto !important;
        max-width: 45% !important;
    }

    .logo-site img {
        max-height: 38px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    /* Hide desktop horizontal navbar on mobile; convert to hamburger */
    .box-navigation,
    .header-right-group,
    .nav-menu-main {
        display: none !important;
    }

    /* Header action buttons scale down to fit within 100% screen */
    .gug-hamburger-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 15px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 6px !important;
    }

    .cart-trigger {
        width: 36px !important;
        height: 36px !important;
        font-size: 15px !important;
    }

    .cart-count-badge {
        font-size: 9px !important;
        padding: 2px 5px !important;
        top: -4px !important;
        right: -4px !important;
    }

    .sales-campaign-topbar {
        padding: 5px 8px !important;
        font-size: 11px !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    .sales-campaign-topbar a {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 11px !important;
        gap: 4px !important;
    }

    /* --- Hero Interactive Swiper Slider --- */
    .hero-swiper {
        padding-bottom: 25px !important;
        min-height: auto !important;
    }
    .hero-swiper .swiper-slide {
        padding: 20px 10px !important;
        min-height: auto !important;
    }
    .hero-slide-content {
        text-align: center !important;
        margin-bottom: 16px !important;
    }
    .hero-slide-content .hero-desc {
        font-size: 13px !important;
        margin-bottom: 16px !important;
    }
    .hero-slide-content .d-flex {
        justify-content: center !important;
    }
    .floating-hero-img {
        max-width: 80% !important;
        max-height: 220px !important;
        margin: 0 auto !important;
        display: block !important;
    }

    /* --- Product Detail Page (product.html) --- */
    .product-detail-info-panel {
        margin-top: 20px !important;
    }

    /* --- Cart & Checkout Pages --- */
    #cart-summary-container,
    .checkout-summary-box {
        margin-top: 24px !important;
        width: 100% !important;
    }

    /* --- PC Builder Configurator --- */
    .pc-builder-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .pc-builder-summary {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .pc-builder-summary .d-flex {
        width: 100% !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
    .pc-builder-summary .btn {
        width: 100% !important;
    }
    .builder-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 14px 12px !important;
    }
    .builder-row-action {
        width: 100% !important;
    }
    .builder-row-action .btn {
        width: 100% !important;
    }

    /* --- DASHBOARDS: ADMIN PANEL, MANAGEMENT STAFF PANEL, DEALER PANEL (MOBILE <= 768px) --- */
    @media (max-width: 768px) {
        .admin-sidebar {
            position: fixed !important;
            top: 0 !important;
            left: -310px !important;
            width: 280px !important;
            max-width: 85vw !important;
            height: 100vh !important;
            z-index: 10500 !important;
            transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
            box-shadow: 10px 0 40px rgba(0, 0, 0, 0.85) !important;
            display: flex !important;
            flex-direction: column !important;
            overflow-y: auto !important;
            -webkit-overflow-scrolling: touch !important;
        }

        .admin-sidebar.show,
        .admin-sidebar.mobile-open,
        .admin-sidebar.active {
            left: 0 !important;
        }

        /* Admin & Staff Backdrop Overlay */
        .admin-sidebar-backdrop {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            background: rgba(0, 0, 0, 0.75) !important;
            backdrop-filter: blur(4px) !important;
            -webkit-backdrop-filter: blur(4px) !important;
            z-index: 10450 !important;
            display: none;
            opacity: 0;
            transition: opacity 0.25s ease !important;
        }
        .admin-sidebar-backdrop.show,
        .admin-sidebar-backdrop.active {
            display: block !important;
            opacity: 1 !important;
        }

        /* Main Viewport resets margin from fixed 260px desktop offset to 0 on mobile */
        .admin-main {
            margin-left: 0 !important;
            width: 100% !important;
            max-width: 100vw !important;
            padding: 12px 10px !important;
            box-sizing: border-box !important;
            min-height: 100vh !important;
            height: auto !important;
            overflow-y: visible !important;
            overflow-x: hidden !important;
        }
    }

    /* Mobile Header in Admin / Staff Panels */
    .admin-mobile-topbar,
    .staff-mobile-topbar {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 6px 10px !important;
        background: rgba(10, 10, 15, 0.85) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 10px !important;
        margin-bottom: 12px !important;
        z-index: 1020 !important;
        box-sizing: border-box !important;
        gap: 6px !important;
    }

    .admin-mobile-topbar .btn,
    .staff-mobile-topbar .btn {
        padding: 4px 8px !important;
        font-size: 11.5px !important;
        min-height: 32px !important;
    }

    .admin-mobile-topbar span,
    .staff-mobile-topbar span,
    .admin-mobile-topbar h6 {
        font-size: 12px !important;
        max-width: 140px !important;
    }

    /* Hide desktop wide admin topbar */
    #gug-global-header-container .d-none.d-md-flex {
        display: none !important;
    }

    /* Fluid Widths: Stack Dashboard Widget Cards to 100% Width */
    .erp-card,
    .stat-card,
    .portal-card,
    .admin-card,
    .card,
    .widget-card,
    .statement-paper,
    .tab-content,
    .tab-pane {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 14px !important;
        padding: 14px 12px !important;
        box-sizing: border-box !important;
    }

    .kpi-value {
        font-size: 20px !important;
    }

    .quick-action-btn {
        flex: 1 1 calc(50% - 8px) !important;
        min-width: 130px !important;
        max-width: 100% !important;
        font-size: 12px !important;
        padding: 8px 10px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* Dealer Portal Header & Tabs (Scaled & Wrapped) */
    .portal-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 8px 10px !important;
        gap: 8px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .portal-header > div:first-child {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    .portal-header > div:last-child {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
    }
    .portal-header .btn,
    .portal-header .badge {
        font-size: 11px !important;
        padding: 4px 8px !important;
        min-height: 30px !important;
        flex: 1 1 auto !important;
        text-align: center !important;
        justify-content: center !important;
    }
    .portal-header h6 {
        font-size: 13px !important;
    }

    .nav-pills-dealer {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding-bottom: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .nav-pills-dealer .nav-item {
        flex: 0 1 auto !important;
        max-width: 100% !important;
    }
    .nav-pills-dealer .nav-link {
        white-space: normal !important;
        font-size: 12px !important;
        padding: 6px 12px !important;
        text-align: center !important;
    }

    /* Dealer Portal Filters & Ledger Controls */
    #tab-ledger .d-flex.align-items-center.gap-2.flex-wrap {
        width: 100% !important;
        flex-direction: column !important;
    }
    #tab-ledger #ledger-search,
    #tab-ledger #ledger-type-filter {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Dealer Statement Responsive Paper */
    .statement-paper {
        padding: 14px 10px !important;
        overflow-x: hidden !important;
    }
    .statement-paper .row > .col-7,
    .statement-paper .row > .col-5,
    .statement-paper .row > .col-md-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: left !important;
        margin-bottom: 12px !important;
    }

    body:has(#staff-workspace-frame) .admin-main,
    .portal-staff-body .admin-main {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100vh !important;
        height: 100vh !important;
        padding: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }
    #staff-workspace-frame {
        flex: 1 1 0% !important;
        height: 100% !important;
        min-height: 100% !important;
        width: 100% !important;
        border-radius: 0;
    }

    /* ==========================================================================
       RESPONSIVE DATA TABLES: MOBILE CARD LAYOUT (ZERO HORIZONTAL SCROLL)
       Converts standard tables into beautiful mobile cards with pseudo-element labels
       ========================================================================== */
    .table-responsive,
    .erp-table-responsive,
    .portal-card .table-responsive,
    .admin-card .table-responsive,
    .erp-card .table-responsive {
        overflow-x: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        margin-bottom: 12px !important;
        border: none !important;
        padding: 0 !important;
    }

    /* 1. Force all table elements into block elements (excluding print slip native tables) */
    table:not(.order-products-table):not(.gug-slip-table),
    .table:not(.order-products-table):not(.gug-slip-table),
    table.table:not(.order-products-table):not(.gug-slip-table),
    thead:not(.order-products-table thead),
    tbody:not(.order-products-table tbody),
    tfoot:not(.order-products-table tfoot),
    th:not(.order-products-table th),
    td:not(.order-products-table td),
    tr:not(.order-products-table tr) {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* 2. Hide table headers (thead) visually while keeping accessibility (excluding print slip native tables) */
    thead:not(.order-products-table thead),
    thead:not(.order-products-table thead) tr,
    table:not(.order-products-table) thead th,
    .table:not(.order-products-table) thead th {
        position: absolute !important;
        top: -9999px !important;
        left: -9999px !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        opacity: 0 !important;
        visibility: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    /* 3. Ultra-Compact Grid Card (display: grid; grid-template-columns: 1fr 1fr; gap: 6px;) (excluding print slip native tables) */
    tbody:not(.order-products-table tbody) tr,
    .table:not(.order-products-table) tbody tr {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.16) !important;
        border-radius: 10px !important;
        background: rgba(14, 18, 25, 0.94) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        padding: 8px !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
        box-sizing: border-box !important;
        transition: border-color 0.2s, box-shadow 0.2s;
        overflow: visible !important;
    }

    tbody:not(.order-products-table tbody) tr:hover,
    .table:not(.order-products-table) tbody tr:hover {
        border-color: rgba(229, 3, 3, 0.5) !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65), 0 0 15px rgba(229, 3, 3, 0.2) !important;
    }

    /* 4. Compact Grid Cells (excluding print slip native tables) */
    tbody:not(.order-products-table tbody) td,
    .table:not(.order-products-table) tbody td {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 4px 6px !important;
        border: none !important;
        border-radius: 6px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        min-height: auto !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        overflow: visible !important;
        text-align: left !important;
    }

    /* 5. Injected Column Labels (excluding print slip native tables) */
    tbody:not(.order-products-table tbody) td::before,
    .table:not(.order-products-table) tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 9px;
        color: rgba(255, 255, 255, 0.55);
        letter-spacing: 0.5px;
        display: block !important;
        margin-bottom: 2px !important;
        width: 100% !important;
        text-align: left !important;
        flex: 0 0 auto !important;
    }

    /* 6. IMMUNITY & ENFORCEMENT: Customer CRM Print Slip & Order Products Tables ALWAYS remain Native Tables */
    .gug-individual-slip table,
    .order-products-table,
    table.order-products-table,
    #gug-individual-print-container table {
        display: table !important;
        border-collapse: collapse !important;
        width: 100% !important;
        border: 1px solid #000 !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        margin: 0 !important;
        table-layout: fixed !important;
    }

    .gug-individual-slip table thead,
    .order-products-table thead,
    table.order-products-table thead,
    #gug-individual-print-container table thead {
        display: table-header-group !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .gug-individual-slip table thead tr,
    .order-products-table thead tr,
    table.order-products-table thead tr,
    #gug-individual-print-container table thead tr {
        display: table-row !important;
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .gug-individual-slip table tbody,
    .order-products-table tbody,
    table.order-products-table tbody,
    #gug-individual-print-container table tbody {
        display: table-row-group !important;
    }

    .gug-individual-slip table tr,
    .order-products-table tr,
    table.order-products-table tr,
    #gug-individual-print-container table tr {
        display: table-row !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .gug-individual-slip table th,
    .gug-individual-slip table td,
    .order-products-table th,
    .order-products-table td,
    table.order-products-table th,
    table.order-products-table td,
    #gug-individual-print-container table th,
    #gug-individual-print-container table td {
        display: table-cell !important;
        border: 1px solid #000 !important;
        padding: 4px !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #000000 !important;
        font-size: 8.5pt !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        border-radius: 0 !important;
    }

    .gug-individual-slip table *::before,
    .gug-individual-slip table *::after,
    .order-products-table *::before,
    .order-products-table *::after,
    table.order-products-table *::before,
    table.order-products-table *::after,
    #gug-individual-print-container table *::before,
    #gug-individual-print-container table *::after {
        display: none !important;
        content: none !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Full-width cells: Headers, Credentials, Account State, Revenue, Module Access, and Actions */
    tbody td:first-child,
    .table tbody td:first-child,
    tbody td[colspan],
    .table tbody td[colspan],
    tbody td[data-label="Staff Member & ID"],
    tbody td[data-label="Employee & Role"],
    tbody td[data-label="Dealer Details"],
    tbody td[data-label="Dealer & Shop"],
    tbody td[data-label="User Credentials"],
    tbody td[data-label="Module Access"],
    tbody td[data-label="Description & Details"],
    tbody td[data-label="Description & Breakdown"],
    tbody td[data-label="Transaction Particulars & Details"],
    tbody td[data-label="Transaction Details"],
    tbody td[data-label="Product Description"],
    tbody td[data-label="Product Title / Specs"],
    tbody td[data-label="Product"],
    tbody td[data-label="Current Balance"],
    tbody td[data-label="Account State"],
    tbody td[data-label="Monthly Salary"],
    tbody td[data-label="Total Amount"],
    tbody td[data-label="Order Total (PKR)"],
    tbody td[data-label="Customer & Shipping"],
    tbody td[data-label="Customer Name / Channel"],
    tbody td[data-label="Actions"],
    tbody td[data-label="Action"],
    tbody td[data-label="Details"],
    tbody td:last-child,
    .table tbody td:last-child {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Complete Card Visibility: Clean flex-wrapping for User Credentials, Account State, and Balances */
    tbody td[data-label="User Credentials"] > div,
    tbody td[data-label="Account State"] > div,
    tbody td[data-label="Monthly Salary"] > div,
    tbody td[data-label="Current Balance"] > div {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        align-items: center !important;
    }

    tbody td:first-child,
    .table tbody td:first-child,
    tbody td[data-label="Staff Member & ID"],
    tbody td[data-label="Employee & Role"],
    tbody td[data-label="Dealer Details"],
    tbody td[data-label="Dealer & Shop"] {
        background: rgba(255, 255, 255, 0.06) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding: 6px 8px !important;
    }

    /* Single full-width row for no-data/empty states */
    tbody td[colspan],
    .table tbody td[colspan] {
        display: block !important;
        text-align: center !important;
        border: none !important;
        padding: 14px 6px !important;
        background: transparent !important;
        font-size: 12px !important;
    }
    tbody td[colspan]::before,
    .table tbody td[colspan]::before {
        display: none !important;
    }

    /* Action buttons cell (forced to bottom of card with clean horizontal flow) */
    tbody td:last-child,
    .table tbody td:last-child,
    tbody td[data-label="Actions"],
    tbody td[data-label="Action"],
    tbody td[data-label="Details"] {
        background: rgba(255, 255, 255, 0.02) !important;
        border-top: 1px dashed rgba(255, 255, 255, 0.16) !important;
        padding: 6px 2px 2px 2px !important;
        margin-top: 2px !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    tbody td:last-child .btn-group,
    tbody td[data-label="Actions"] .btn-group,
    tbody td[data-label="Action"] .btn-group,
    .staff-card-actions,
    .dealer-card-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 5px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 2px 0 6px 0 !important;
        scrollbar-width: thin !important;
    }

    tbody td:last-child .btn-group::-webkit-scrollbar,
    tbody td[data-label="Actions"] .btn-group::-webkit-scrollbar,
    tbody td[data-label="Action"] .btn-group::-webkit-scrollbar,
    .staff-card-actions::-webkit-scrollbar,
    .dealer-card-actions::-webkit-scrollbar {
        height: 3px !important;
    }

    tbody td:last-child .btn-group::-webkit-scrollbar-thumb,
    tbody td[data-label="Actions"] .btn-group::-webkit-scrollbar-thumb,
    tbody td[data-label="Action"] .btn-group::-webkit-scrollbar-thumb,
    .staff-card-actions::-webkit-scrollbar-thumb,
    .dealer-card-actions::-webkit-scrollbar-thumb {
        background: rgba(229, 3, 3, 0.4) !important;
        border-radius: 3px !important;
    }

    tbody td:last-child .btn-group .btn,
    tbody td[data-label="Actions"] .btn-group .btn,
    tbody td[data-label="Action"] .btn-group .btn,
    .staff-card-actions .btn,
    .dealer-card-actions .btn {
        flex: 0 0 auto !important;
        min-width: 34px !important;
        min-height: 32px !important;
        padding: 5px 8px !important;
        font-size: 11.5px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
        word-break: normal !important;
        word-wrap: normal !important;
        margin: 0 !important;
    }

    /* White Background / Light Theme Card Tables */
    .statement-paper tbody tr {
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    }
    .statement-paper tbody td {
        border-bottom: 1px solid #e2e8f0 !important;
        color: #1e293b !important;
    }
    .statement-paper tbody td::before {
        color: #64748b !important;
    }

    /* --- Form Fields & Buttons Full Width --- */
    .form-control,
    .form-select,
    input[type="text"]:not(.form-control-inline),
    input[type="number"]:not(.form-control-inline),
    input[type="email"],
    input[type="password"],
    input[type="search"],
    input[type="tel"],
    select,
    textarea {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 44px !important;
        font-size: 15px !important;
        box-sizing: border-box !important;
    }

    /* Buttons full width for touch targets */
    .btn-block-mobile,
    .tf-btn,
    .checkout-btn,
    .add-to-cart-btn-full,
    .modal-footer .btn {
        width: 100% !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 8px !important;
    }

    .modal-footer {
        flex-direction: column !important;
        gap: 6px !important;
    }

    .btn-group.btn-group-sm {
        display: inline-flex !important;
        width: auto !important;
    }

    /* Category Filters & ERP Tabs on Mobile */
    .mobile-cat-scroll,
    .category-filters-container,
    .nav-tabs-erp {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding-bottom: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .mobile-cat-scroll > *,
    .nav-tabs-erp > .nav-item {
        flex: 0 1 auto !important;
        max-width: 100% !important;
    }
    .nav-tabs-erp .nav-link {
        white-space: normal !important;
        font-size: 12px !important;
        padding: 6px 12px !important;
        text-align: center !important;
    }

    /* Modal adjustments */
    .modal-dialog {
        margin: 10px !important;
        max-width: calc(100vw - 20px) !important;
    }
    .modal-content {
        padding: 10px !important;
    }
}

/* --------------------------------------------------------------------------
   3. MEDIA QUERY: MAX-WIDTH 480PX (COMPACT MOBILE DEVICES)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    body {
        font-size: 13.5px !important;
    }

    h1, .h1, .hero-title {
        font-size: 20px !important;
    }
    h2, .h2 {
        font-size: 18px !important;
    }
    h3, .h3 {
        font-size: 16px !important;
    }

    .container,
    .gug-container,
    .admin-main,
    .portal-card,
    .erp-card {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .category-grid,
    .cat-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .floating-hero-img {
        max-width: 95% !important;
        max-height: 180px !important;
    }

    .kpi-value {
        font-size: 18px !important;
    }

    .quick-action-btn {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .admin-mobile-topbar,
    .staff-mobile-topbar {
        padding: 6px 8px !important;
    }

    .btn {
        font-size: 12.5px !important;
    }

    /* Card Table Compact Dimensions */
    tbody tr,
    .table tbody tr {
        padding: 10px 10px !important;
        margin-bottom: 12px !important;
        border-radius: 10px !important;
    }
    tbody td,
    .table tbody td {
        font-size: 12px !important;
        padding: 6px 0 !important;
        min-height: 32px !important;
    }
    tbody td::before,
    .table tbody td::before {
        font-size: 10px !important;
        max-width: 42% !important;
    }

    .badge {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }

    .stat-card {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
    }

    .portal-card {
        padding: 12px 10px !important;
    }
}

/* ==========================================================================
   DESKTOP PERSISTENT STATIC SIDEBAR (>= 769px) - ZERO ANIMATION / ZERO RE-RENDER
   Strictly ensures sidebar mounts statically without slide-in, flicker, or re-render
   ========================================================================== */
@media (min-width: 769px) {
    .admin-sidebar,
    aside.admin-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 260px !important;
        height: 100vh !important;
        z-index: 1000 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        box-shadow: none !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
        -webkit-animation: none !important;
    }

    .admin-sidebar,
    .admin-sidebar *,
    aside.admin-sidebar,
    aside.admin-sidebar * {
        animation: none !important;
        -webkit-animation: none !important;
    }

    .admin-sidebar .admin-nav-link,
    .admin-sidebar .btn {
        transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
    }

    .admin-main {
        margin-left: 260px !important;
        width: calc(100vw - 260px) !important;
        min-height: 100vh !important;
        height: auto !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
        transition: none !important;
        animation: none !important;
    }

    .admin-sidebar-backdrop {
        display: none !important;
    }
}

/* ==========================================================================
   GEAR UP GADGETS ERP - UNIVERSAL PRINT SLIP & ENTERPRISE INVOICE STYLES
   ========================================================================== */

/* Screen Mode: Strictly hide all print slip headers, footers & print-only containers */
.gug-print-only,
#gug-print-slip-header,
#gug-print-slip-footer,
#gug-individual-print-container,
#print-container {
    display: none !important;
}

@media print {
    /* Page Configuration: Zero margins force browsers to hide header URL and footer page numbers */
    @page {
        size: auto;
        margin: 0;
    }

    /* Global reset for crisp physical paper reproduction with 15mm edge padding */
    html, body {
        background-color: #ffffff !important;
        background: #ffffff !important;
        background-image: none !important;
        color: #111827 !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
        font-size: 10pt !important;
        line-height: 1.35 !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        padding: 15mm !important;
        box-sizing: border-box !important;
    }

    body.gug-individual-print-active {
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        background-image: none !important;
        color: #000000 !important;
        overflow: visible !important;
    }

    /* Isolated Individual Print Mode: When printing a single record, strictly isolate #gug-individual-print-container or #print-container */
    body.gug-individual-print-active > *:not(#gug-individual-print-container):not(#print-container) {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    body.gug-individual-print-active #gug-individual-print-container,
    body.gug-individual-print-active #print-container {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        color: #000000 !important;
    }

    .gug-dealer-slip-title {
        font-size: 18pt !important;
        font-weight: 900 !important;
        text-transform: uppercase !important;
        color: #000000 !important;
        letter-spacing: 1px !important;
        margin: 4px 0 2px 0 !important;
        display: block !important;
        text-align: center !important;
    }

    /* Container Full-Width Override */
    .admin-main,
    .dashboard-wrapper,
    .content-area,
    .main-container {
        margin: 0 !important;
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        box-shadow: none !important;
        border: none !important;
        overflow: visible !important;
    }

    /* Strictly hide all non-essential UI elements: sidebars, navbars, action buttons, overlays, pagination */
    .admin-sidebar,
    aside.admin-sidebar,
    .admin-sidebar-backdrop,
    .admin-mobile-topbar,
    .topbar,
    .tf-header,
    #header-placeholder,
    #footer-placeholder,
    .tf-footer,
    footer,
    #gug-beginner-help-container,
    #gug-global-bg-video-container,
    .btn,
    button,
    .btn-no-print,
    .no-print,
    .btn-close,
    .dropdown,
    .dropdown-menu,
    .nav-tabs,
    .pagination,
    .dataTables_filter,
    .dataTables_length,
    .dataTables_paginate,
    .modal,
    .modal-backdrop,
    .offcanvas,
    .input-group,
    input[type="text"],
    input[type="search"],
    select.form-select,
    .action-column,
    th.action-column,
    td.action-column,
    .search-input-group,
    .sidebar-accordion-group {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    /* Reveal print slip elements */
    .gug-print-only,
    #gug-print-slip-header,
    #gug-individual-print-container,
    #gug-individual-print-container *,
    #print-container,
    #print-container * {
        visibility: visible !important;
    }

    #gug-individual-print-container,
    #print-container {
        display: block !important;
        width: 100% !important;
    }

    /* Print Slip Header Layout */
    #gug-print-slip-header {
        margin-bottom: 20px !important;
        border-bottom: 2px solid #111827 !important;
        padding-bottom: 12px !important;
    }

    .gug-print-slip-box {
        width: 100% !important;
    }

    .gug-print-top-brand {
        text-align: center !important;
    }

    .gug-print-logo {
        max-height: 52px !important;
        height: 52px !important;
        display: block !important;
        margin: 0 auto 6px auto !important;
        object-fit: contain !important;
        filter: none !important;
        -webkit-filter: none !important;
        background: transparent !important;
        background-color: transparent !important;
    }

    .gug-print-company-heading {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .gug-print-company-sub {
        font-size: 9pt !important;
        font-weight: 600 !important;
        color: #374151 !important;
        margin: 0 0 2px 0 !important;
        text-align: center !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .gug-print-company-contact {
        font-size: 8.5pt !important;
        color: #6b7280 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .gug-print-meta-bar {
        margin-top: 10px !important;
        padding: 6px 12px !important;
        background-color: #f3f4f6 !important;
        border-top: 1px solid #111827 !important;
        border-bottom: 1px solid #111827 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        font-size: 8.5pt !important;
        color: #111827 !important;
    }

    /* Remove All Custom Footers & Signature Blocks */
    #gug-print-slip-footer,
    .gug-slip-footer-disclaimer,
    .gug-print-slip-signature-block,
    .print-signature-block {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    /* Professional Card & Container Styling */
    .admin-card,
    .erp-card,
    .card {
        background-color: #ffffff !important;
        background: #ffffff !important;
        color: #111827 !important;
        border: 1px solid #d1d5db !important;
        border-radius: 4px !important;
        box-shadow: none !important;
        margin-bottom: 14px !important;
        padding: 12px !important;
        page-break-inside: auto !important;
        break-inside: auto !important;
    }

    .admin-card-header {
        border-bottom: 1px solid #e5e7eb !important;
        padding-bottom: 8px !important;
        margin-bottom: 10px !important;
    }

    /* Professional Table Borders & Headers */
    .table-responsive {
        overflow: visible !important;
    }

    table,
    .table {
        width: 100% !important;
        border-collapse: collapse !important;
        background-color: transparent !important;
        color: #111827 !important;
        margin-bottom: 12px !important;
    }

    table th,
    .table th {
        background-color: #f1f5f9 !important;
        color: #0f172a !important;
        font-weight: 700 !important;
        font-size: 8.5pt !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        border: 1px solid #cbd5e1 !important;
        padding: 6px 8px !important;
    }

    table td,
    .table td {
        border: 1px solid #e2e8f0 !important;
        color: #1e293b !important;
        font-size: 8.5pt !important;
        padding: 5px 8px !important;
        vertical-align: middle !important;
        background: transparent !important;
    }

    tr {
        page-break-inside: avoid !important;
    }

    /* KPI Summary Cards in Print */
    .kpi-card {
        background-color: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        border-left-width: 4px !important;
        color: #0f172a !important;
        padding: 8px 12px !important;
        margin-bottom: 10px !important;
        page-break-inside: avoid !important;
        box-shadow: none !important;
    }

    .kpi-title {
        color: #475569 !important;
        font-size: 8pt !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
    }

    .kpi-value {
        color: #0f172a !important;
        font-size: 13pt !important;
        font-weight: 800 !important;
    }

    .kpi-subtitle {
        color: #64748b !important;
        font-size: 7.5pt !important;
    }

    /* Badges in Print */
    .badge {
        border: 1px solid #9ca3af !important;
        background-color: #f3f4f6 !important;
        color: #111827 !important;
        font-size: 7.5pt !important;
        font-weight: 600 !important;
        padding: 2px 5px !important;
        border-radius: 3px !important;
    }

    /* Typography Color Contrast Guarantees */
    h1, h2, h3, h4, h5, h6,
    .text-white,
    .text-dark {
        color: #0f172a !important;
    }

    /* ==========================================================================
       GLOBAL PRINT ENGINE & COLOR OVERRIDE ARCHITECTURE
       Strict Rules Enforced:
       1. Multi-Page A4 Batch vs Single Individual Print with CSS page-break-after: always
       2. Universal Pure White Backgrounds (#ffffff) on all containers, boxes & wrappers
       3. Pure Black Standard Fonts (#000000) for pristine paper contrast
       4. Strictly Bold Headings (h1-h6, th, strong, .fw-bold)
       5. Preserved Native Text Colors: Red, Green, and Blue preserved strictly
       6. Subtle Clean Borders (1px solid #ccc) & Zero Dark Drop Shadows
       7. Module Specific Cleanups for CRM, HR & B2B Dealer Panels
       ========================================================================== */

    /* Multi-Page A4 Batch Printing & Page Break Controls */
    .gug-page-break,
    .gug-slip-page-break,
    .page-break,
    .print-page-break {
        page-break-after: always !important;
        break-after: page !important;
    }

    .gug-individual-slip {
        page-break-inside: auto !important;
        break-inside: auto !important;
        page-break-before: auto !important;
        break-before: auto !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #000000 !important;
        margin: 0 auto 25px auto !important;
        padding: 15mm !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .gug-individual-slip.gug-slip-page-break {
        page-break-after: always !important;
        break-after: page !important;
    }

    /* Force Solid Black Logo Image for Print */
    .gug-print-logo-img,
    .gug-print-logo,
    .gug-slip-brand-header img,
    .gug-slip-brand-header svg,
    #gug-print-slip-header img,
    #gug-print-slip-header svg,
    img[src*="logo.png"],
    img[src*="logo.jpg"],
    svg.logo-site,
    .brand-logo-img {
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        max-height: 55px !important;
        height: 55px !important;
        object-fit: contain !important;
        filter: none !important;
        -webkit-filter: none !important;
        opacity: 1 !important;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* HTML Text Styling (If 'Gear Up Gadgets' rendered as text instead of image) */
    .gug-slip-brand-header h1,
    .gug-slip-brand-header h2,
    .gug-slip-brand-header h3,
    .gug-print-brand-title,
    .gug-print-company-heading,
    .brand-title,
    h2.gug-print-brand-title,
    h2.gug-print-company-heading,
    h2[style*="GEAR UP GADGETS"],
    #gug-print-slip-header h1,
    #gug-print-slip-header h2,
    .brand-text,
    .gug-print-brand-text {
        color: #000000 !important;
        font-weight: 900 !important;
        -webkit-text-stroke: 0 !important;
        -webkit-text-fill-color: #000000 !important;
        text-shadow: none !important;
    }

    /* Universal Removal of All Custom Footers & Signature Blocks */
    .gug-slip-footer-disclaimer,
    .gug-print-slip-signature-block,
    .print-signature-block,
    #gug-print-slip-footer,
    .gug-individual-slip .border-top[style*="dashed"],
    .gug-individual-slip > div[style*="dashed"],
    .gug-individual-slip .gug-slip-footer-disclaimer,
    .gug-individual-slip .print-signature-block {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    /* Natural Page Flow: Zero Premature Page Breaks across all sections and cards */
    .customer-order-history-section,
    .gug-print-section-orders,
    .order-history-section,
    .order-history-wrapper,
    .order-history-container,
    .order-box,
    .order-card,
    .order-data-box,
    .order-row-box,
    .order-header-box,
    .order-body-box,
    .order-footer-box,
    .order-detail-card,
    .order-item-card,
    .crm-order-expand-row,
    .dealer-ledger-section,
    .dealer-ledger-wrapper,
    .dealer-transaction-card,
    .hr-payroll-section,
    .hr-compensation-grid,
    .hr-compensation-box {
        page-break-before: auto !important;
        break-before: auto !important;
        page-break-inside: auto !important;
        break-inside: auto !important;
        page-break-after: auto !important;
        break-after: auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* Row-wise layout for Customer Order History */
    .order-meta-top-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
        padding-bottom: 6px !important;
        margin-bottom: 6px !important;
        border-bottom: 1px solid #e5e7eb !important;
    }

    .order-products-fullwidth {
        width: 100% !important;
        display: block !important;
        margin-top: 6px !important;
        page-break-inside: auto !important;
        break-inside: auto !important;
    }

    /* Professional Product Details Invoice Grid (Strict Excel-Style Print Table) */
    .order-table-wrapper {
        width: 100% !important;
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        page-break-inside: auto !important;
        break-inside: auto !important;
    }

    /* Force Standard Native Grid (Purged of All Hacks, Zero '+' Artifacts) */
    .order-products-table,
    table.order-products-table {
        border-collapse: collapse !important;
        width: 100% !important;
        border: 1px solid #000 !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        margin: 0 !important;
        table-layout: fixed !important;
    }

    .order-products-table th,
    .order-products-table td,
    table.order-products-table th,
    table.order-products-table td {
        border: 1px solid #000 !important;
        padding: 4px !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #000000 !important;
        font-size: 8.5pt !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    /* Destroy '+' Artifacts: Completely remove any pseudo-elements or background patterns */
    .order-products-table *::before,
    .order-products-table *::after,
    table.order-products-table *::before,
    table.order-products-table *::after {
        display: none !important;
        content: none !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Headers: Bold and Centered */
    .order-products-table th,
    table.order-products-table th {
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.2px !important;
        text-align: center !important;
    }

    /* Column Proportions and Alignments */
    .order-products-table th:nth-child(1),
    .order-products-table td:nth-child(1),
    table.order-products-table th:nth-child(1),
    table.order-products-table td:nth-child(1) {
        width: 5% !important;
        text-align: center !important;
    }

    .order-products-table th:nth-child(2),
    table.order-products-table th:nth-child(2) {
        width: 60% !important;
        text-align: center !important;
    }

    .order-products-table td:nth-child(2),
    table.order-products-table td:nth-child(2) {
        width: 60% !important;
        text-align: left !important;
    }

    .order-products-table th:nth-child(3),
    .order-products-table td:nth-child(3),
    table.order-products-table th:nth-child(3),
    table.order-products-table td:nth-child(3) {
        width: 15% !important;
        text-align: center !important;
    }

    .order-products-table th:nth-child(4),
    .order-products-table td:nth-child(4),
    table.order-products-table th:nth-child(4),
    table.order-products-table td:nth-child(4) {
        width: 5% !important;
        text-align: center !important;
    }

    .order-products-table th:nth-child(5),
    .order-products-table td:nth-child(5),
    table.order-products-table th:nth-child(5),
    table.order-products-table td:nth-child(5) {
        width: 15% !important;
        text-align: center !important;
    }

    .order-products-container {
        width: 100% !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 4px !important;
        padding: 4px 8px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        page-break-inside: auto !important;
        break-inside: auto !important;
    }

    .order-products-list,
    ol.order-products-list {
        margin: 0 !important;
        padding: 0 !important;
        padding-left: 20px !important;
        list-style-type: decimal !important;
        list-style-position: outside !important;
        color: #000000 !important;
        font-size: 8.5pt !important;
        line-height: 1.3 !important;
        page-break-inside: auto !important;
        break-inside: auto !important;
    }

    .order-product-item,
    .order-products-list li {
        margin: 0 !important;
        margin-bottom: 3px !important;
        padding: 0 !important;
        color: #000000 !important;
        font-size: 8.5pt !important;
        line-height: 1.3 !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .order-product-item:last-child,
    .order-products-list li:last-child {
        margin-bottom: 0 !important;
    }

    .order-products-paragraph {
        width: 100% !important;
        display: block !important;
        color: #000000 !important;
        font-size: 8.5pt !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        padding: 4px 8px !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 4px !important;
        word-break: normal !important;
        white-space: normal !important;
        text-align: justify !important;
        page-break-inside: auto !important;
        break-inside: auto !important;
    }

    /* Universal Pure White Background Override on ALL Containers & Highlights */
    *,
    *::before,
    *::after,
    .admin-card,
    .erp-card,
    .card,
    .card-body,
    .modal-content,
    .modal-body,
    .modal-header,
    .modal-footer,
    .table-responsive,
    .gug-print-box,
    .gug-print-section,
    .p-3,
    .p-4,
    .p-2,
    .rounded,
    .rounded-3,
    .bg-light,
    .bg-dark,
    .bg-white,
    .border,
    .shadow-sm,
    .shadow,
    .shadow-lg,
    .input-group-text,
    .kpi-card,
    .order-box,
    .order-card,
    .order-data-box,
    .order-row-box,
    .order-header-box,
    .order-body-box,
    .order-footer-box,
    .order-detail-card,
    .order-item-card,
    .order-summary-bar,
    .product-specs-table,
    .spec-label,
    .spec-value {
        background: #ffffff !important;
        background-color: #ffffff !important;
        background-image: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Universal Clean Subtle Borders (1px solid #ccc) */
    .admin-card,
    .erp-card,
    .card,
    .modal-content,
    .gug-print-box,
    .gug-print-section,
    .border,
    .order-box,
    .order-card,
    .order-data-box,
    .order-detail-card,
    .order-item-card,
    .order-summary-bar,
    .crm-order-expand-row .card,
    .kpi-card,
    .hr-payroll-section,
    .dealer-ledger-section,
    .customer-order-history-section,
    .table,
    .table th,
    .table td,
    table,
    table th,
    table td {
        border: 1px solid #cccccc !important;
        box-shadow: none !important;
    }

    /* Headings Strictly Bold & Solid Black */
    h1, h2, h3, h4, h5, h6,
    .h1, .h2, .h3, .h4, .h5, .h6,
    th,
    .table th,
    strong,
    b,
    .fw-bold,
    .fw-semibold,
    .modal-title,
    .card-title,
    .order-history-heading {
        color: #000000 !important;
        font-weight: bold !important;
        font-weight: 700 !important;
    }

    /* Standard Body Text: Solid Black for Maximum Legibility */
    p,
    div:not(.text-danger):not(.text-success):not(.text-primary):not(.text-info),
    span:not(.text-danger):not(.text-success):not(.text-primary):not(.text-info):not(.badge-danger):not(.badge-success):not(.badge-primary):not(.order-id):not(.order-amount-red),
    td:not(.text-danger):not(.text-success):not(.text-primary):not(.text-info),
    small,
    label,
    li {
        color: #000000 !important;
    }

    /* ==========================================================================
       PRESERVE SPECIFIC NATIVE TEXT COLORS: RED, GREEN, BLUE
       ========================================================================== */

    /* 1. PRESERVED RED TEXT (Order IDs, Amounts, Deductions, Warnings, Cancelled) */
    .text-danger,
    .text-danger *,
    [class*="text-danger"],
    .order-id,
    code.order-id,
    code,
    .order-amount-red,
    .status-cancelled,
    .badge-danger,
    .badge.bg-danger,
    .badge.border-danger,
    .badge.text-danger,
    span.text-danger,
    strong.text-danger,
    i.text-danger,
    .gug-print-red-text,
    [style*="color: red"],
    [style*="color: #dc2626"],
    [style*="color: #b91c1c"],
    [style*="color: #e50303"],
    [style*="color: rgb(220, 38, 38)"] {
        color: red !important;
        color: #dc2626 !important;
        font-weight: bold !important;
        text-shadow: none !important;
    }

    /* 2. PRESERVED GREEN TEXT (Salaries, Allowances, Total Spend, Credits, Active) */
    .text-success,
    .text-success *,
    [class*="text-success"],
    .badge-success,
    .badge.bg-success,
    .badge.border-success,
    .badge.text-success,
    .status-active,
    .amount-positive,
    span.text-success,
    strong.text-success,
    i.text-success,
    .gug-print-green-text,
    [style*="color: green"],
    [style*="color: #16a34a"],
    [style*="color: #15803d"],
    [style*="color: #047857"],
    [style*="color: rgb(22, 163, 74)"] {
        color: green !important;
        color: #16a34a !important;
        font-weight: bold !important;
        text-shadow: none !important;
    }

    /* 3. PRESERVED BLUE TEXT (Customer Segments, Roles, Usernames, Dispatched) */
    .text-primary,
    .text-primary *,
    [class*="text-primary"],
    .text-info,
    .text-info *,
    [class*="text-info"],
    .badge-primary,
    .badge.bg-primary,
    .badge.border-primary,
    .badge.text-primary,
    .badge-info,
    span.text-primary,
    strong.text-primary,
    i.text-primary,
    .gug-print-blue-text,
    [style*="color: blue"],
    [style*="color: #2563eb"],
    [style*="color: #1d4ed8"],
    [style*="color: #0284c7"],
    [style*="color: rgb(37, 99, 235)"] {
        color: blue !important;
        color: #2563eb !important;
        font-weight: bold !important;
        text-shadow: none !important;
    }

    /* Order # and ID code box: Pure White background with sharp Red font */
    code,
    code.order-id,
    .order-id {
        background-color: #ffffff !important;
        background: #ffffff !important;
        color: #dc2626 !important;
        border: 1px solid #cccccc !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
        font-size: 9pt !important;
        font-weight: bold !important;
        display: inline-block !important;
        box-shadow: none !important;
    }

    /* ==========================================================================
       MODULE-SPECIFIC FIXES
       ========================================================================== */

    /* ==========================================================================
       1. CUSTOMER CRM FIXES: SECTION 2 - SPECIFIC CUSTOMER PURCHASE ORDER HISTORY
       Strict Rules Enforced:
       - Force Black Text for ALL Nested Elements: span, label, p, small, and nested div inside order history data boxes
       - Make Labels Bold: descriptive labels/headings directly above data are bold (font-weight: bold !important; font-weight: 700 !important;)
       - Preserve Red Accent Colors: Order ID (GUG-ORD...) & Total Amount (Rs. 152,539) strictly remain red (color: red !important; color: #dc2626 !important;)
       ========================================================================== */

    /* Pure white background & clean subtle borders on all Section 2 boxes */
    .customer-order-history-section,
    .gug-print-section-orders,
    .order-history-section,
    .order-history-wrapper,
    .order-history-container,
    .order-box,
    .order-card,
    .order-data-box,
    .order-row-box,
    .order-header-box,
    .order-body-box,
    .order-footer-box,
    .order-detail-card,
    .order-item-card,
    .order-summary-bar,
    .product-specs-table,
    .crm-order-expand-row,
    .crm-order-expand-row td,
    .crm-order-expand-row .card,
    .order-history-box,
    .badge[style*="#eff6ff"],
    .badge[style*="#1e293b"],
    span[style*="#1e293b"] {
        background-color: #ffffff !important;
        background: #ffffff !important;
        background-image: none !important;
        color: #000000 !important;
        border: 1px solid #cccccc !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Force Black Text for ALL Nested Elements inside order history data boxes */
    .customer-order-history-section *,
    .gug-print-section-orders *,
    .order-history-section *,
    .order-history-wrapper *,
    .order-history-container *,
    .order-box *,
    .order-card *,
    .order-data-box *,
    .order-row-box *,
    .order-header-box *,
    .order-body-box *,
    .order-footer-box *,
    .order-detail-card *,
    .order-item-card *,
    .order-summary-bar *,
    .crm-order-expand-row *,
    .order-history-table *,
    .gug-print-orders-table * {
        color: #000000 !important;
        text-shadow: none !important;
    }

    /* Specifically target ALL span, label, p, small, and nested div elements inside the order history data boxes */
    .customer-order-history-section span,
    .customer-order-history-section label,
    .customer-order-history-section p,
    .customer-order-history-section small,
    .customer-order-history-section div,
    .gug-print-section-orders span,
    .gug-print-section-orders label,
    .gug-print-section-orders p,
    .gug-print-section-orders small,
    .gug-print-section-orders div,
    .order-history-section span,
    .order-history-section label,
    .order-history-section p,
    .order-history-section small,
    .order-history-section div,
    .order-box span,
    .order-box label,
    .order-box p,
    .order-box small,
    .order-box div,
    .order-card span,
    .order-card label,
    .order-card p,
    .order-card small,
    .order-card div,
    .order-data-box span,
    .order-data-box label,
    .order-data-box p,
    .order-data-box small,
    .order-data-box div,
    .order-row-box span,
    .order-row-box label,
    .order-row-box p,
    .order-row-box small,
    .order-row-box div,
    .order-detail-card span,
    .order-detail-card label,
    .order-detail-card p,
    .order-detail-card small,
    .order-detail-card div,
    .order-item-card span,
    .order-item-card label,
    .order-item-card p,
    .order-item-card small,
    .order-item-card div,
    .crm-order-expand-row span,
    .crm-order-expand-row label,
    .crm-order-expand-row p,
    .crm-order-expand-row small,
    .crm-order-expand-row div,
    .order-history-table td span,
    .order-history-table td label,
    .order-history-table td p,
    .order-history-table td small,
    .order-history-table td div {
        color: #000000 !important;
        text-shadow: none !important;
    }

    /* Make Labels Bold: Specifically target descriptive labels/headings located directly above the data */
    .customer-order-history-section label,
    .customer-order-history-section small,
    .customer-order-history-section .order-label,
    .customer-order-history-section .order-data-label,
    .gug-print-section-orders label,
    .gug-print-section-orders small,
    .gug-print-section-orders .order-label,
    .gug-print-section-orders .order-data-label,
    .order-history-section label,
    .order-history-section small,
    .order-history-section .order-label,
    .order-history-section .order-data-label,
    .order-box label,
    .order-box small,
    .order-box .order-label,
    .order-box .order-data-label,
    .order-card label,
    .order-card small,
    .order-card .order-label,
    .order-card .order-data-label,
    .order-data-box label,
    .order-data-box small,
    .order-data-box .order-label,
    .order-data-box .order-data-label,
    .order-data-box > span:first-child,
    .order-data-box > label:first-child,
    .order-data-box > small:first-child,
    .order-history-table th,
    .gug-print-orders-table th,
    .spec-label {
        color: #000000 !important;
        font-weight: bold !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-shadow: none !important;
    }

    .order-data-box .order-label,
    .order-data-box label,
    .order-data-box small,
    .order-data-box > span:first-child {
        display: block !important;
        margin-bottom: 2px !important;
        font-size: 8pt !important;
    }

    /* Preserve Red Accent Colors: Order ID (GUG-ORD...) & Total Amount (Rs. 152,539) */
    .customer-order-history-section .order-id,
    .customer-order-history-section code.order-id,
    .customer-order-history-section code,
    .customer-order-history-section .order-amount-red,
    .customer-order-history-section .text-danger,
    .gug-print-section-orders .order-id,
    .gug-print-section-orders code.order-id,
    .gug-print-section-orders code,
    .gug-print-section-orders .order-amount-red,
    .gug-print-section-orders .text-danger,
    .order-history-section .order-id,
    .order-history-section code.order-id,
    .order-history-section code,
    .order-history-section .order-amount-red,
    .order-history-section .text-danger,
    .order-box .order-id,
    .order-box code.order-id,
    .order-box code,
    .order-box .order-amount-red,
    .order-box .text-danger,
    .order-card .order-id,
    .order-card code.order-id,
    .order-card code,
    .order-card .order-amount-red,
    .order-card .text-danger,
    .order-data-box .order-id,
    .order-data-box code.order-id,
    .order-data-box code,
    .order-data-box .order-amount-red,
    .order-data-box .text-danger,
    .order-id,
    code.order-id,
    code,
    .order-amount-red,
    .text-danger,
    .text-danger *,
    [class*="text-danger"],
    [class*="order-id"],
    [class*="amount-red"],
    [style*="color: red"],
    [style*="color: #dc2626"],
    [style*="color: #b91c1c"],
    [style*="color: rgb(220, 38, 38)"] {
        color: red !important;
        color: #dc2626 !important;
        font-weight: bold !important;
        font-weight: 700 !important;
        text-shadow: none !important;
    }

    /* Order # Code Box: Clean White Background, Red Font, Subtle Border */
    .order-id,
    code.order-id,
    code {
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #dc2626 !important;
        border: 1px solid #cccccc !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
        font-size: 9pt !important;
        font-weight: 700 !important;
        box-shadow: none !important;
        display: inline-block !important;
    }

    /* Total Amount: Bold Red */
    .order-amount-red,
    .order-data-box .order-amount-red,
    .order-box .order-amount-red,
    .order-card .order-amount-red {
        color: red !important;
        color: #dc2626 !important;
        font-size: 11pt !important;
        font-weight: 800 !important;
    }

    /* ==========================================================================
       2. HR PANEL FIXES: SECTION 2 - MONTHLY COMPENSATION & PAYROLL BREAKDOWN
       Strict Rules Enforced:
       - White Backgrounds: Force all containers, boxes, grids, cards, tables to pure white (#ffffff !important;)
       - Force Black Text for ALL Nested Elements: span, label, p, small, and nested div inside Section 2 data boxes
       - Make Labels Bold: Descriptive labels/headings directly above data values are strictly bold & black
       - Preserve Accent Colors: Allowances & Net Salary strictly remain Green (#16a34a); Deductions / Penalties strictly remain Red (#dc2626)
       ========================================================================== */

    /* Pure white background & clean subtle borders on all HR Section 2 boxes */
    .hr-payroll-section,
    .gug-print-hr-compensation,
    .hr-compensation-grid,
    .hr-compensation-box,
    .hr-data-box,
    .hr-payroll-box,
    .payroll-card,
    .hr-payroll-table,
    #staff-net-preview,
    .bg-dark,
    .bg-opacity-25,
    .p-3.rounded-3,
    .input-group-text.bg-dark {
        background-color: #ffffff !important;
        background: #ffffff !important;
        background-image: none !important;
        color: #000000 !important;
        border: 1px solid #cccccc !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Force Black Text for ALL Nested Elements inside HR Section 2 */
    .hr-payroll-section *,
    .gug-print-hr-compensation *,
    .hr-compensation-grid *,
    .hr-compensation-box *,
    .hr-data-box *,
    .hr-payroll-box *,
    .payroll-card *,
    .hr-payroll-table * {
        color: #000000 !important;
        text-shadow: none !important;
    }

    /* Specifically target ALL span, label, p, small, and nested div elements inside HR Section 2 data boxes */
    .hr-payroll-section span,
    .hr-payroll-section label,
    .hr-payroll-section p,
    .hr-payroll-section small,
    .hr-payroll-section div,
    .gug-print-hr-compensation span,
    .gug-print-hr-compensation label,
    .gug-print-hr-compensation p,
    .gug-print-hr-compensation small,
    .gug-print-hr-compensation div,
    .hr-compensation-box span,
    .hr-compensation-box label,
    .hr-compensation-box p,
    .hr-compensation-box small,
    .hr-compensation-box div,
    .hr-data-box span,
    .hr-data-box label,
    .hr-data-box p,
    .hr-data-box small,
    .hr-data-box div,
    .hr-payroll-table td span,
    .hr-payroll-table td label,
    .hr-payroll-table td p,
    .hr-payroll-table td small,
    .hr-payroll-table td div {
        color: #000000 !important;
        text-shadow: none !important;
    }

    /* Make Labels Bold: Specifically target descriptive labels/headings located directly above data values */
    .hr-payroll-section label,
    .hr-payroll-section small,
    .hr-payroll-section .hr-label,
    .hr-payroll-section .hr-data-label,
    .gug-print-hr-compensation label,
    .gug-print-hr-compensation small,
    .gug-print-hr-compensation .hr-label,
    .gug-print-hr-compensation .hr-data-label,
    .hr-compensation-box label,
    .hr-compensation-box small,
    .hr-compensation-box .hr-label,
    .hr-compensation-box .hr-data-label,
    .hr-compensation-box > small:first-child,
    .hr-compensation-box > label:first-child,
    .hr-compensation-box > span:first-child,
    .hr-data-box label,
    .hr-data-box small,
    .hr-data-box .hr-label,
    .hr-data-box .hr-data-label,
    .hr-data-box > small:first-child,
    .hr-data-box > label:first-child,
    .hr-data-box > span:first-child,
    .hr-payroll-table th,
    td[data-label="Basic Salary"]::before,
    td[data-label="Allowances / Bonus"]::before,
    td[data-label="Deductions / Penalties"]::before,
    td[data-label="Net Payable Salary"]::before {
        color: #000000 !important;
        font-weight: bold !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-shadow: none !important;
        display: block !important;
        margin-bottom: 2px !important;
        font-size: 8pt !important;
    }

    /* Preserve HR Accent Colors: Deductions / Penalties (Red) */
    .hr-payroll-section .text-danger,
    .hr-payroll-section .text-danger *,
    .gug-print-hr-compensation .text-danger,
    .gug-print-hr-compensation .text-danger *,
    .hr-compensation-box .text-danger,
    .hr-data-box .text-danger,
    .hr-payroll-table .text-danger,
    .hr-deduction,
    .hr-deductions,
    [class*="deduction"],
    .hr-payroll-table td:nth-child(3) {
        color: red !important;
        color: #dc2626 !important;
        font-weight: bold !important;
        font-weight: 700 !important;
        text-shadow: none !important;
    }

    /* Preserve HR Accent Colors: Allowances / Bonus (Green) */
    .hr-payroll-section .text-success,
    .hr-payroll-section .text-success *,
    .gug-print-hr-compensation .text-success,
    .gug-print-hr-compensation .text-success *,
    .hr-compensation-box .text-success,
    .hr-data-box .text-success,
    .hr-payroll-table .text-success,
    .hr-allowance,
    .hr-allowances,
    [class*="allowance"],
    .hr-payroll-table td:nth-child(2) {
        color: green !important;
        color: #16a34a !important;
        font-weight: bold !important;
        font-weight: 700 !important;
        text-shadow: none !important;
    }

    /* Preserve HR Accent Colors: Net Monthly Remuneration (Green) */
    .hr-net-salary,
    .hr-data-box .hr-net-salary,
    .hr-compensation-box .hr-net-salary,
    .hr-payroll-table td:last-child,
    [class*="net-salary"] {
        color: green !important;
        color: #16a34a !important;
        font-size: 11pt !important;
        font-weight: 800 !important;
        text-shadow: none !important;
    }

    /* ==========================================================================
       3. B2B DEALER FIXES: SECTION 2 - DETAILED LEDGER TRANSACTIONS
       Strict Rules Enforced:
       - White Backgrounds: Force all containers, boxes, wrappers, cards, tables to pure white (#ffffff !important;)
       - Force Black Text for ALL Nested Elements: span, label, p, small, and nested div inside Section 2 data boxes
       - Make Labels Bold: Descriptive labels/headings directly above data values are strictly bold & black
       - Preserve Accent Colors: Debit amounts & Net Payable Dues strictly remain Red (#dc2626); Credit amounts & Surplus Advance strictly remain Green (#16a34a)
       ========================================================================== */

    /* Pure white background & clean subtle borders on all Dealer Section 2 boxes */
    .dealer-ledger-section,
    .gug-print-dealer-ledger,
    .dealer-ledger-wrapper,
    .dealer-ledger-box,
    .dealer-transaction-card,
    .dealer-data-box,
    .dealer-ledger-table,
    .dealer-ledger-table thead,
    .dealer-ledger-table tr,
    .dealer-ledger-table th,
    .dealer-ledger-table td,
    .print-statement-container,
    #printable-statement-canvas,
    div[style*="#fafafa"],
    div[style*="background: #fafafa"],
    div[style*="background-color: #fafafa"],
    tr[style*="#f1f5f9"],
    tr[style*="background: #f1f5f9"],
    th[style*="#f1f5f9"] {
        background-color: #ffffff !important;
        background: #ffffff !important;
        background-image: none !important;
        color: #000000 !important;
        border: 1px solid #cccccc !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Force Black Text for ALL Nested Elements inside Dealer Section 2 */
    .dealer-ledger-section *,
    .gug-print-dealer-ledger *,
    .dealer-ledger-wrapper *,
    .dealer-ledger-box *,
    .dealer-transaction-card *,
    .dealer-data-box *,
    .dealer-ledger-table * {
        color: #000000 !important;
        text-shadow: none !important;
    }

    /* Specifically target ALL span, label, p, small, and nested div elements inside Dealer Section 2 data boxes */
    .dealer-ledger-section span,
    .dealer-ledger-section label,
    .dealer-ledger-section p,
    .dealer-ledger-section small,
    .dealer-ledger-section div,
    .gug-print-dealer-ledger span,
    .gug-print-dealer-ledger label,
    .gug-print-dealer-ledger p,
    .gug-print-dealer-ledger small,
    .gug-print-dealer-ledger div,
    .dealer-ledger-box span,
    .dealer-ledger-box label,
    .dealer-ledger-box p,
    .dealer-ledger-box small,
    .dealer-ledger-box div,
    .dealer-transaction-card span,
    .dealer-transaction-card label,
    .dealer-transaction-card p,
    .dealer-transaction-card small,
    .dealer-transaction-card div,
    .dealer-data-box span,
    .dealer-data-box label,
    .dealer-data-box p,
    .dealer-data-box small,
    .dealer-data-box div,
    .dealer-ledger-table td span,
    .dealer-ledger-table td label,
    .dealer-ledger-table td p,
    .dealer-ledger-table td small,
    .dealer-ledger-table td div {
        color: #000000 !important;
        text-shadow: none !important;
    }

    /* Make Labels Bold: Specifically target descriptive labels/headings located directly above data values */
    .dealer-ledger-section label,
    .dealer-ledger-section small,
    .dealer-ledger-section .dealer-label,
    .dealer-ledger-section .dealer-data-label,
    .gug-print-dealer-ledger label,
    .gug-print-dealer-ledger small,
    .gug-print-dealer-ledger .dealer-label,
    .gug-print-dealer-ledger .dealer-data-label,
    .dealer-ledger-box label,
    .dealer-ledger-box small,
    .dealer-ledger-box .dealer-label,
    .dealer-ledger-box .dealer-data-label,
    .dealer-transaction-card label,
    .dealer-transaction-card small,
    .dealer-transaction-card .dealer-label,
    .dealer-transaction-card .dealer-data-label,
    .dealer-data-box label,
    .dealer-data-box small,
    .dealer-data-box .dealer-label,
    .dealer-data-box .dealer-data-label,
    .dealer-ledger-box > small:first-child,
    .dealer-ledger-box > label:first-child,
    .dealer-ledger-box > span:first-child,
    .dealer-data-box > small:first-child,
    .dealer-data-box > label:first-child,
    .dealer-data-box > span:first-child,
    .dealer-ledger-table th,
    td[data-label]::before,
    .dealer-ledger-table td::before {
        color: #000000 !important;
        font-weight: bold !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-shadow: none !important;
        display: block !important;
        margin-bottom: 2px !important;
        font-size: 8pt !important;
    }

    /* Preserve B2B Dealer Accent Colors: Debit (Dispatched) & Net Payable Dues (Red) */
    .dealer-ledger-section .dealer-debit-red,
    .dealer-ledger-section .text-danger,
    .dealer-ledger-section .text-danger *,
    .dealer-ledger-box .dealer-debit-red,
    .dealer-ledger-box .text-danger,
    .dealer-data-box .dealer-debit-red,
    .dealer-data-box .text-danger,
    .dealer-ledger-table .text-danger,
    .dealer-ledger-table .text-danger *,
    td[data-label="Debit"],
    td[data-label="Debit (Dispatched)"],
    .dealer-badge-due,
    [class*="debit"] {
        color: red !important;
        color: #dc2626 !important;
        font-weight: bold !important;
        font-weight: 700 !important;
        text-shadow: none !important;
    }

    /* Preserve B2B Dealer Accent Colors: Credit (Received) & Surplus Advance Credit (Green) */
    .dealer-ledger-section .dealer-credit-green,
    .dealer-ledger-section .text-success,
    .dealer-ledger-section .text-success *,
    .dealer-ledger-box .dealer-credit-green,
    .dealer-ledger-box .text-success,
    .dealer-data-box .dealer-credit-green,
    .dealer-data-box .text-success,
    .dealer-ledger-table .text-success,
    .dealer-ledger-table .text-success *,
    td[data-label="Credit"],
    td[data-label="Credit (Received)"],
    .dealer-badge-surplus,
    [class*="credit"] {
        color: green !important;
        color: #16a34a !important;
        font-weight: bold !important;
        font-weight: 700 !important;
        text-shadow: none !important;
    }

    /* Preserve Dealer Running Balance (Bold Black) */
    .dealer-balance-val,
    td[data-label="Balance"],
    td[data-label="Running Balance"],
    .dealer-ledger-table td:last-child {
        color: #000000 !important;
        font-weight: 800 !important;
        font-size: 10pt !important;
    }

    /* Fix for Injected Column Labels in responsive tables during printing */
    tbody td::before,
    .table tbody td::before,
    td[data-label]::before,
    .dealer-ledger-table td::before,
    .hr-payroll-table td::before {
        color: #000000 !important;
        font-weight: bold !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-shadow: none !important;
    }

    /* Universal Table Borders in Print */
    table,
    .table,
    .gug-print-orders-table,
    .order-history-table,
    .dealer-ledger-table,
    .hr-payroll-table,
    .table-dark {
        width: 100% !important;
        border-collapse: collapse !important;
        background-color: #ffffff !important;
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #cccccc !important;
        margin-bottom: 15px !important;
    }

    table thead,
    .table thead,
    .table-dark thead,
    table tr,
    .table tr,
    .table-dark tr {
        background-color: #ffffff !important;
        background: #ffffff !important;
        color: #000000 !important;
    }

    table th,
    .table th,
    .gug-print-orders-table th,
    .order-history-table th,
    .dealer-ledger-table th,
    .hr-payroll-table th,
    .table-dark th {
        background-color: #ffffff !important;
        background: #ffffff !important;
        color: #000000 !important;
        font-weight: bold !important;
        font-weight: 700 !important;
        border: 1px solid #cccccc !important;
        border-bottom: 2px solid #cccccc !important;
        padding: 8px 10px !important;
        text-transform: uppercase !important;
        font-size: 8.5pt !important;
    }

    table td,
    .table td,
    .gug-print-orders-table td,
    .order-history-table td,
    .dealer-ledger-table td,
    .hr-payroll-table td,
    .table-dark td {
        background-color: #ffffff !important;
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #cccccc !important;
        padding: 8px 10px !important;
        font-size: 8.5pt !important;
        vertical-align: middle !important;
    }

    /* B2B Dealer Multi-Installment Payment Timeline Table - Solid Black Borders & Single A4 Page Constraints */
    table.dealer-ledger-table,
    .dealer-ledger-table {
        width: 100% !important;
        border-collapse: collapse !important;
        background-color: #ffffff !important;
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
        margin-top: 2px !important;
        margin-bottom: 4px !important;
        font-size: 9.5px !important;
        line-height: 1.15 !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    table.dealer-ledger-table th,
    .dealer-ledger-table th,
    table.dealer-ledger-table td,
    .dealer-ledger-table td,
    table.dealer-ledger-table tfoot td,
    .dealer-ledger-table tfoot td {
        border: 1px solid #000000 !important;
        padding: 2px 4px !important;
        font-size: 9.5px !important;
        line-height: 1.15 !important;
        color: #000000 !important;
        background-color: #ffffff !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
        text-align: left !important;
    }

    table.dealer-ledger-table td::before,
    .dealer-ledger-table td::before {
        display: none !important;
        content: none !important;
    }

    table.dealer-ledger-table th,
    .dealer-ledger-table th {
        font-weight: 700 !important;
        text-transform: uppercase !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #000000 !important;
    }

    table.dealer-ledger-table tfoot,
    .dealer-ledger-table tfoot {
        font-weight: 700 !important;
        border-top: 1px solid #000000 !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* Customer CRM Order Products Table - Distinct Black Vertical Borders, Strict Header, and Proportions */
    table.order-products-table,
    .order-products-table {
        display: table !important;
        width: 100% !important;
        border-collapse: collapse !important;
        border-spacing: 0 !important;
        border: 1px solid #000 !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #000000 !important;
        margin: 0 !important;
        table-layout: fixed !important;
    }

    /* Force Standard Native Grid (Purged of All Hacks, Zero '+' Artifacts) */
    table.order-products-table,
    .order-products-table {
        border-collapse: collapse !important;
        width: 100% !important;
        border: 1px solid #000 !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        margin: 0 !important;
        table-layout: fixed !important;
    }

    table.order-products-table th,
    table.order-products-table td,
    .order-products-table th,
    .order-products-table td {
        border: 1px solid #000 !important;
        padding: 4px !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #000000 !important;
        font-size: 8.5pt !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
    }

    table.order-products-table *::before,
    table.order-products-table *::after,
    .order-products-table *::before,
    .order-products-table *::after {
        display: none !important;
        content: none !important;
        border: none !important;
        box-shadow: none !important;
    }

    table.order-products-table th,
    .order-products-table th {
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.2px !important;
        text-align: center !important;
    }

    table.order-products-table th:nth-child(1),
    table.order-products-table td:nth-child(1),
    .order-products-table th:nth-child(1),
    .order-products-table td:nth-child(1) {
        width: 5% !important;
        text-align: center !important;
    }

    table.order-products-table th:nth-child(2),
    .order-products-table th:nth-child(2) {
        width: 60% !important;
        text-align: center !important;
    }

    table.order-products-table td:nth-child(2),
    .order-products-table td:nth-child(2) {
        width: 60% !important;
        text-align: left !important;
    }

    table.order-products-table th:nth-child(3),
    table.order-products-table td:nth-child(3),
    .order-products-table th:nth-child(3),
    .order-products-table td:nth-child(3) {
        width: 15% !important;
        text-align: center !important;
    }

    table.order-products-table th:nth-child(4),
    table.order-products-table td:nth-child(4),
    .order-products-table th:nth-child(4),
    .order-products-table td:nth-child(4) {
        width: 5% !important;
        text-align: center !important;
    }

    table.order-products-table th:nth-child(5),
    table.order-products-table td:nth-child(5),
    .order-products-table th:nth-child(5),
    .order-products-table td:nth-child(5) {
        width: 15% !important;
        text-align: center !important;
    }

    /* B2B Dealer Multi-Payment Schedule Cards Print Layout */
    .payment-schedule-card,
    .dealer-transaction-card {
        border: 1px solid #000000 !important;
        border-radius: 3px !important;
        padding: 3px 5px !important;
        margin-bottom: 3px !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        color: #000000 !important;
    }

    .card-row-1 {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        border-bottom: 1px solid #000000 !important;
        padding-bottom: 2px !important;
        margin-bottom: 2px !important;
    }

    .payment-schedule-title {
        font-size: 8pt !important;
        font-weight: 800 !important;
        color: #000000 !important;
        text-transform: uppercase !important;
        text-align: left !important;
        display: block !important;
    }

    .card-row-2 {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 4px !important;
        border-bottom: 1px dotted #cccccc !important;
        padding-bottom: 2px !important;
        margin-bottom: 2px !important;
        font-size: 7.5pt !important;
        line-height: 1.2 !important;
    }

    .card-row-3 {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-bottom: 1px dotted #cccccc !important;
        padding-bottom: 2px !important;
        margin-bottom: 2px !important;
        font-size: 7.5pt !important;
    }

    .card-row-4 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
        font-size: 7.5pt !important;
        align-items: center !important;
    }

    .card-row-5 {
        display: none !important;
    }

    /* Hide action buttons column if last column */
    th:last-child:empty,
    td:last-child:empty {
        display: none !important;
    }
}





