/* GLOBAL STYLES — EXEAcquisitions Typography & Design Tokens */

:root {
    --font-main: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-brand: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
img, svg, button, .nav-menu, .hamburger, .mobile-menu { -webkit-user-select: none; -ms-user-select: none; user-select: none; -webkit-user-drag: none; }
p, h1, h2, h3, h4, li, td, th, address, .info-value, .info-value a, .product-title, .product-material, .product-price, .policy-body-text, .policy-section-copy { -webkit-user-select: text; user-select: text; }
html { overflow-y: scroll; scrollbar-gutter: stable; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-family: var(--font-main); background-color: #000000; }
html.light-mode { background-color: #f8f8f8; }
html:not(.theme-ready) *:not(.nav-gold-slider),
html:not(.theme-ready) *::before,
html:not(.theme-ready) *::after {
    transition: none !important;
}
body, button, input, select, textarea { font-family: var(--font-main) !important; }
body { background-color: #000000 !important; color: #ffffff; font-size: 16px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transition: background-color 0.4s ease, color 0.4s ease; position: relative; }
html.light-mode body { background-color: #f8f8f8 !important; color: #111111; }

/* EXEAcquisitions Primary & Secondary Typography Scale & Weights */
.hero-heading {
    font-family: var(--font-heading) !important;
    font-size: clamp(2.35rem, 4.2vw, 3.85rem) !important;
    font-weight: 350 !important;
    letter-spacing: 0.11em !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
}
.shop-title,
.page-title,
.studio-title,
.sell-title,
.contact-heading,
.tracker-title,
.modal-title,
.modal-content h2,
.tool-card h2,
.step-heading-small,
.card-title,
.success-page-container h1,
.empty-cart-msg h2,
.cart-header h1,
.product-info h1,
.intro-text,
.vision-section .card-title {
    font-family: var(--font-heading) !important;
    font-weight: 300 !important;
    letter-spacing: 0.06em !important;
    font-style: normal !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
}
.hero-eyebrow,
.shop-subtitle,
.page-eyebrow,
.studio-subtitle,
.contact-eyebrow,
.karat-label,
.card-label,
.sidebar-title {
    font-family: var(--font-main) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
}
.hero-description,
.contact-description,
.tool-card p,
.step-description-small,
.success-page-container p.main-msg {
    font-family: var(--font-main) !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em;
    line-height: 1.7 !important;
}

/* EXACT MASTER HEADER STYLING — 1:1 EXEAcquisitions 56px Crisp Header */
.main-header { height: 56px; padding: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); width: 100%; position: sticky !important; top: 0; z-index: 1000; background-color: #ffffff !important; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03); transition: background-color 0.3s ease, border-color 0.3s ease; }
.header-container { width: 100%; height: 100%; max-width: none; margin: 0; padding-left: clamp(1.5rem, 3.5vw, 3.5rem); padding-right: clamp(1rem, 2vw, 2rem); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; position: relative; z-index: 1001; justify-self: start; transition: opacity 0.2s ease, transform 0.1s ease; }
.logo:hover { opacity: 0.72; }
.logo:active { transform: scale(0.98); }
.logo-image { height: 34px; width: auto; margin-top: 0; object-fit: contain; display: block; transition: opacity 0.3s ease;}
#main-logo-dark { opacity: 0 !important; mix-blend-mode: screen; }
#main-logo-light { opacity: 1 !important; mix-blend-mode: multiply; }
body.light-mode #main-logo-dark { opacity: 1 !important; }
body.light-mode #main-logo-light { opacity: 0 !important; }
.logo-text-group { display: flex; flex-direction: column; line-height: 1.12; transform: translateY(-1px) !important; font-family: var(--font-brand) !important; }
.logo-text-top { font-size: 11.5px; font-weight: 800; letter-spacing: 0.34em; color: #000000; text-transform: uppercase; transition: color 0.4s ease;}
.logo-text-bottom { font-size: 13px; font-weight: 800; letter-spacing: 0.32em; color: #000000; text-transform: uppercase; transition: color 0.4s ease;}
.nav-wrapper { display: contents; }
.nav-menu { position: relative; display: flex; align-items: center; justify-self: center; gap: 1.5rem; transform: none; margin: 0 auto; }
.nav-menu a {
    position: relative;
    font-family: var(--font-main) !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #171a20;
    background: none;
    border: none !important;
    border-bottom: 1.5px solid transparent;
    text-decoration: none;
    cursor: pointer;
    padding: 6px 12px 7px 12px;
    border-radius: 4px 4px 0 0;
    pointer-events: auto;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
.nav-menu a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000000;
}
.nav-menu a:active {
    transform: scale(0.97);
}
.nav-menu a.active {
    font-weight: 700 !important;
    color: #000000 !important;
    background: transparent;
}
.nav-menu:not(.slider-ready) a.active {
    border-bottom: 1.5px solid #dcb360 !important;
}
.nav-gold-slider {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: #dcb360;
    border-radius: 2px;
    pointer-events: none;
    will-change: transform, width;
}

.nav-icons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    justify-self: end !important;
    gap: 0.35rem !important; /* Exact 1:1 EXEAcquisitions .header-utility-icons gap */
    margin-right: 0 !important;
    transform: none !important;
    position: relative;
    overflow: visible;
    color: #171a20;
}

/* 1:1 EXEAcquisitions 36x36 Circular .icon-btn Containers & 23px SVGs (strokeWidth 1.65) */
.nav-icons .theme-toggle-wrapper {
    position: relative;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.nav-icons .theme-toggle,
.nav-icons .icon-btn-globe,
.nav-icons #desktop-bag-link {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: #171a20 !important;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, color 0.3s ease !important;
}
.nav-icons .theme-toggle {
    color: #dcb360 !important;
}
.nav-icons .theme-toggle svg,
.nav-icons .icon-btn-globe svg.globe-icon,
.nav-icons #desktop-bag-link svg.shopping-bag-icon {
    width: 23px !important;
    height: 23px !important;
    stroke-width: 1.65 !important;
    flex-shrink: 0;
}
.login-trigger-container svg.login-icon,
.nav-icons > svg.login-icon,
.nav-icons #desktop-admin-trigger {
    stroke: #171a20;
    width: 36px !important;
    height: 36px !important;
    padding: 6.5px !important; /* 36px - (2 * 6.5px) = exact 23px SVG icon inside 36px circle */
    box-sizing: border-box !important;
    border-radius: 50% !important;
    stroke-width: 1.65 !important;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease, transform 0.1s ease, stroke 0.3s ease !important;
}
.nav-icons .theme-toggle:hover,
.nav-icons .icon-btn-globe:hover,
.nav-icons #desktop-bag-link:hover,
.nav-icons #desktop-admin-trigger:hover {
    background-color: rgba(0, 0, 0, 0.06) !important;
}
.nav-icons .theme-toggle:active,
.nav-icons .icon-btn-globe:active,
.nav-icons #desktop-bag-link:active,
.nav-icons #desktop-admin-trigger:active {
    transform: scale(0.93) !important;
}
body.light-mode .nav-icons .icon-btn-globe {
    color: #ffffff !important;
}
body.light-mode .nav-icons .icon-btn-globe svg.globe-icon {
    stroke: #ffffff !important;
}
body.light-mode .nav-icons .theme-toggle:hover,
body.light-mode .nav-icons .icon-btn-globe:hover,
body.light-mode .nav-icons #desktop-bag-link:hover,
body.light-mode .nav-icons #desktop-admin-trigger:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Mobile Drawer Globe Icon */
.mobile-globe-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    cursor: pointer;
}
.mobile-globe-btn svg.globe-icon {
    width: 30px !important;
    height: 30px !important;
    stroke: #ffffff !important;
    stroke-width: 1.8 !important;
}
body.light-mode .mobile-globe-btn,
body.light-mode .mobile-globe-btn svg.globe-icon {
    color: #171a20 !important;
    stroke: #171a20 !important;
}

/* Compact header admin buttons (Analytics / Sales History) when God Mode is active */
.nav-icons .btn-admin-action,
.nav-icons .btn-sales-trigger {
    height: 32px !important;
    min-width: auto !important;
    padding: 0 14px !important;
    font-size: 11.5px !important;
    margin-right: 6px !important;
}

@media (min-width: 1101px) {
    #mobile-bag-wrapper { display: none !important; }
}
.main-header,
.header-container,
#mobile-bag-wrapper { overflow: visible !important; }

/* Purple God Mode Controls */
.btn-sales-trigger { display: none; background: #9d4edd; color: #fff; border: none; padding: 6px 14px; font-size: 0.6em; font-weight: 800; cursor: pointer; border-radius: 3px; text-transform: uppercase; letter-spacing: 1.5px; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(157, 78, 221, 0.2); }
.btn-sales-trigger:hover { opacity: 0.8; transform: translateY(-1px); }

.login-icon { width: 22px; height: 22px; stroke: #171a20; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; cursor: pointer; transition: stroke 0.2s ease, opacity 0.2s ease; }
body.light-mode .login-icon { stroke: #ffffff; }

.login-icon:hover { stroke: #dcb360; }
.god-mode-badge,
#god-mode-indicator,
#mobile-god-mode-indicator {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Competition button: hidden by default; only shown when Firebase says visible */
#enter-comp-btn-main,
html.comp-hidden #enter-comp-btn-main { display: none !important; }
html.comp-visible #enter-comp-btn-main:not([hidden]) { display: inline-flex !important; }

/* Admin-only UI: hidden until auth state resolves (prevents flash) */
html:not(.auth-ready) .admin-analytics-btn,
html:not(.auth-ready) .admin-comp-btn,
html:not(.auth-ready) .btn-sales-trigger,
html:not(.auth-ready) #btn-open-upload,
html:not(.auth-ready) .card-admin-controls,
html:not(.auth-ready) .product-page-admin-controls,
html:not(.auth-ready) #god-mode-indicator,
html:not(.auth-ready) #mobile-god-mode-indicator { display: none !important; }

/* Theme Toggle & Tooltip Styling */
.theme-toggle-wrapper { position: relative; display: flex; align-items: center; justify-content: center; }
.theme-toggle { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: #dcb360; cursor: pointer; }
.theme-toggle svg { width: 100%; height: 100%; transition: fill 0.3s ease, stroke 0.3s ease; }
.theme-tooltip { position: absolute; top: 35px; right: -8px; background-color: #dcb360; color: #000000; font-size: 0.55em; font-weight: 800; padding: 8px 12px; border-radius: 3px; letter-spacing: 1.5px; text-transform: uppercase; box-shadow: 0 4px 15px rgba(0,0,0,0.5); opacity: 0; transform: translateY(-10px); transition: opacity 0.5s ease, transform 0.5s ease; pointer-events: none; white-space: nowrap; }
.theme-tooltip::after { content: ''; position: absolute; top: -4px; right: 14px; width: 8px; height: 8px; background-color: #dcb360; transform: rotate(45deg); }
.theme-tooltip.show { opacity: 1; transform: translateY(0); }

.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4.5px !important; width: 36px !important; height: 36px !important; padding: 0 !important; border-radius: 50%; cursor: pointer; z-index: 1001; transform: none !important; }
.hamburger span { display: block; height: 1.8px !important; width: 20px !important; background-color: #000000 !important; border-radius: 2px; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(6.3px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.3px) rotate(-45deg); }

/* Day Mode: Hamburger is Crisp White on Black Header */
body.light-mode .main-header .hamburger span {
    background-color: #ffffff !important;
}

/* Mobile Drawer Overlay Open States */
.hamburger.active span { background-color: #000000 !important; }
body.light-mode .hamburger.active span { background-color: #ffffff !important; }

.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: rgba(0, 0, 0, 0.98); display: flex; flex-direction: column; justify-content: flex-start; padding-top: 160px; padding-bottom: 40px; overflow-y: auto; align-items: center; gap: 35px; z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.4s ease, background-color 0.4s ease; }
.mobile-menu.active { opacity: 1; pointer-events: auto; }
.mobile-menu > a { position: relative; padding-bottom: 6px; color: #ffffff; text-decoration: none; font-family: var(--font-heading) !important; font-size: 1.5rem !important; font-weight: 300 !important; letter-spacing: 0.08em !important; text-transform: uppercase !important; transition: color 0.3s ease; }
.mobile-menu > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background-color: #dcb360; border-radius: 2px; box-shadow: 0 0 8px rgba(220, 179, 96, 0.45); transform: scaleX(0); transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.mobile-menu > a:hover,
.mobile-menu > a.active,
.mobile-menu > a[style*="dcb360"] { color: #ffffff !important; font-weight: 300 !important; }
.mobile-menu > a:hover::after,
.mobile-menu > a.active::after,
.mobile-menu > a[style*="dcb360"]::after { transform: scaleX(1); }
.mobile-icons { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; color: #dcb360; font-size: 2em; margin-top: 25px; position: relative; }
.mobile-actions-row { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 30px; }

.mobile-theme-tooltip { position: absolute; top: -40px; left: 50%; transform: translateX(-50%) translateY(10px); background-color: #dcb360; color: #000000; font-size: 0.35em; font-weight: 800; padding: 6px 10px; border-radius: 3px; letter-spacing: 1.5px; text-transform: uppercase; box-shadow: 0 4px 15px rgba(0,0,0,0.5); opacity: 0; pointer-events: none; white-space: nowrap; transition: opacity 0.5s ease, transform 0.5s ease; }
.mobile-theme-tooltip::after { content: ''; position: absolute; bottom: -4px; left: 50%; width: 8px; height: 8px; background-color: #dcb360; transform: translateX(-50%) rotate(45deg); }
.mobile-theme-tooltip.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* SHOP SECTION & EXE-STYLE LUXURY BUTTONS (1:1 EXEAcquisitions Button System) */
.admin-top-bar { display: none; justify-content: center; align-items: center; margin: 40px auto 0; max-width: 1800px; width: 95%; transition: opacity 0.4s ease;}

/* 1. EXE Buttons — Crisp White in Dark Mode, Sleek Dark (#171a20) in Day Mode */
.btn-get-started,
#utility-btn,
.btn-admin-action:where(:not([hidden]):not([style*="display: none"]):not([style*="display:none"])),
.tool-card .btn-admin-action,
.gold-btn,
.btn-submit,
.submit-studio,
.submit-btn,
.comp-submit-btn,
.btn-checkout,
.checkout-btn:where(:not([style*="display: none"]):not([style*="display:none"])),
.btn-return,
.add-to-cart-btn,
.btn-view-product,
.btn-continue-shopping,
.nudge-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    text-align: center !important;
    height: 44px !important;
    min-width: 180px;
    padding: 0 28px !important;
    background-color: #ffffff !important;
    color: #171a20 !important;
    font-family: var(--font-main) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    border: 1px solid #ffffff !important;
    outline: none !important;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease !important;
}
.btn-get-started:hover,
.btn-admin-action:hover,
.tool-card .btn-admin-action:hover,
.gold-btn:hover,
.btn-submit:hover,
.submit-studio:hover,
.submit-btn:hover,
.comp-submit-btn:hover,
.btn-checkout:hover,
.checkout-btn:hover,
.btn-return:hover,
.add-to-cart-btn:hover,
.btn-view-product:hover,
.btn-continue-shopping:hover,
.nudge-btn:hover {
    background-color: #e5e7eb !important;
    border-color: #e5e7eb !important;
    color: #171a20 !important;
    opacity: 1 !important;
    transform: none !important;
}
.btn-get-started:active,
.btn-admin-action:active,
.tool-card .btn-admin-action:active,
.gold-btn:active,
.btn-submit:active,
.submit-studio:active,
.submit-btn:active,
.comp-submit-btn:active,
.btn-checkout:active,
.checkout-btn:active,
.btn-return:active,
.add-to-cart-btn:active,
.btn-view-product:active,
.btn-continue-shopping:active,
.nudge-btn:active {
    transform: scale(0.98) !important;
}

/* Hide legacy gold ticks next to .btn-get-started */
.hero-action .gold-tick {
    display: none !important;
}

/* 2. Inactive Tab Button (for Public Tools / Pro Tools toggle on utility.html) */
.tab-inactive,
.btn-admin-action.tab-inactive {
    background-color: #212631 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}
.tab-inactive:hover,
.btn-admin-action.tab-inactive:hover {
    background-color: #2e3545 !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    transform: none !important;
    opacity: 1 !important;
}
.nudge-btn {
    height: 36px !important;
    min-width: 44px !important;
    padding: 0 14px !important;
    border-radius: 4px !important;
    font-family: var(--font-main) !important;
    font-weight: 600 !important;
}

/* 3. EXE Category Filter Buttons (.filter-btn on shop.html) */
.category-nav {
    gap: 0.75rem !important;
}
.cat-link {
    font-family: var(--font-main) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 9px 20px !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease !important;
}
.cat-link:hover {
    background-color: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
.cat-link:active {
    transform: scale(0.96) !important;
}
.cat-link.active {
    background: #ffffff !important;
    color: #171a20 !important;
    border-color: #ffffff !important;
    font-weight: 700 !important;
}

/* 4. Admin / God Mode & Danger Button Overrides (1:1 EXE Button Style in Purple #9d4edd) */
#god-mode-modal .btn-admin-action,
#logout-modal .btn-admin-action,
button.admin-comp-btn,
button.admin-analytics-btn,
.desktop-analytics,
.mobile-analytics,
#btn-open-upload,
.btn-sales-trigger,
.desktop-sales-btn,
.btn-edit-item {
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    min-width: 180px;
    padding: 0 28px !important;
    background-color: #9d4edd !important;
    border: 1px solid #9d4edd !important;
    color: #ffffff !important;
    font-family: var(--font-main) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    outline: none !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease !important;
}
#god-mode-modal .btn-admin-action:hover,
#logout-modal .btn-admin-action:hover,
button.admin-comp-btn:hover,
button.admin-analytics-btn:hover,
.desktop-analytics:hover,
.mobile-analytics:hover,
#btn-open-upload:hover,
.btn-sales-trigger:hover,
.desktop-sales-btn:hover,
.btn-edit-item:hover {
    background-color: #8332c4 !important;
    border-color: #8332c4 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    transform: none !important;
}
#god-mode-modal .btn-admin-action:active,
#logout-modal .btn-admin-action:active,
button.admin-comp-btn:active,
button.admin-analytics-btn:active,
.desktop-analytics:active,
.mobile-analytics:active,
#btn-open-upload:active,
.btn-sales-trigger:active,
.desktop-sales-btn:active,
.btn-edit-item:active,
.btn-delete-item:active,
#btn-reset-comp:active {
    transform: scale(0.98) !important;
}

/* EXE Button Style for Red Admin Delete / Reset Actions */
#btn-reset-comp,
.btn-delete-item {
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    padding: 0 28px !important;
    background-color: #ef4444 !important;
    border: 1px solid #ef4444 !important;
    color: #ffffff !important;
    font-family: var(--font-main) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease !important;
}
#btn-reset-comp:hover,
.btn-delete-item:hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Compact EXE sizing for header bar & product card admin buttons */
.desktop-analytics,
.desktop-sales-btn {
    height: 34px !important;
    min-width: auto !important;
    padding: 0 16px !important;
    font-size: 12px !important;
}
.btn-edit-item,
.btn-delete-item {
    height: 38px !important;
    min-width: 0 !important;
    width: 100%;
    padding: 0 16px !important;
    font-size: 12px !important;
}
#btn-logout-yes,
#btn-logout-no {
    min-width: 0 !important;
}

.card-admin-controls { margin-bottom: 15px; display: flex; flex-direction: column; gap: 8px; }

/* CUSTOM CURRENCY SELECTOR - TOP LEFT POSITIONING */
.currency-container { position: absolute; top: 82px; left: 40px; z-index: 50; }
.currency-dropdown { background: #080808; color: #a0a0a0; border: 1px solid rgba(220, 179, 96, 0.3); padding: 8px 15px; border-radius: 4px; font-family: var(--font-main) !important; font-size: 0.8em; font-weight: 600; text-transform: uppercase; cursor: pointer; transition: border-color 0.3s ease, color 0.3s ease; display: flex; align-items: center; gap: 8px; position: relative; user-select: none; }
.currency-dropdown:hover { border-color: #dcb360; color: #dcb360; }
.flag-img { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 2px rgba(0,0,0,0.5); }
.currency-menu { display: none; position: absolute; top: 100%; left: 0; background: #080808; border: 1px solid rgba(220, 179, 96, 0.3); border-radius: 4px; margin-top: 5px; width: max-content; flex-direction: column; box-shadow: 0 4px 15px rgba(0,0,0,0.5); overflow: hidden; z-index: 100; }
.currency-dropdown.active .currency-menu { display: flex; }
.currency-option { padding: 10px 15px; display: flex; align-items: center; gap: 10px; color: #a0a0a0; transition: background 0.2s ease, color 0.2s ease; cursor: pointer; }
.currency-option:hover { background: rgba(220, 179, 96, 0.1); color: #dcb360; }

/* MODALS & POLICIES */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); z-index: 2000; justify-content: center; align-items: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px 10px; box-sizing: border-box; }
.modal-content { background-color: #0a0a0a; border: 1px solid rgba(220, 179, 96, 0.42); border-radius: 8px; width: 95%; max-width: 580px; padding: 35px 25px; position: relative; transition: background-color 0.4s ease; max-height: 90vh !important; overflow-y: auto !important; overflow-x: hidden !important; -webkit-overflow-scrolling: touch; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75); margin: auto; box-sizing: border-box; }
.close-modal { background: transparent; border: none; padding: 0; font-family: inherit; position: absolute; top: 15px; right: 25px; color: #dcb360; font-size: 2em; cursor: pointer; transition: opacity 0.3s ease;}
.close-modal:hover { opacity: 0.7; }
.modal-title { font-family: var(--font-heading) !important; color: #dcb360; font-size: 1.8em; font-weight: 300 !important; letter-spacing: 0.06em !important; font-style: normal !important; text-transform: uppercase !important; margin-bottom: 25px; text-align: center; }

.admin-form { display: flex; flex-direction: column; gap: 15px; }
.admin-form input { width: 100%; padding: 15px; background-color: #111111; border: 1px solid rgba(220, 179, 96, 0.4); color: #ffffff; border-radius: 4px; outline: none; user-select: text; -webkit-user-select: text; transition: background-color 0.4s ease, border-color 0.3s ease, color 0.4s ease; font-family: var(--font-main) !important;}
.admin-form input:focus { border-color: #dcb360; }

/* FOOTER STYLING — EXACT EXEAcquisitions #05070a IN DARK MODE, CRISP OFF-WHITE IN DAY MODE */
#shared-footer-mount { min-height: 49px; display: block; width: 100%; margin-top: auto; }
.main-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 12px 40px; margin-top: auto; display: flex; justify-content: space-between; align-items: center; background-color: #05070a; flex-wrap: wrap; gap: 15px; transition: background-color 0.4s ease, border-color 0.4s ease; }
.footer-left { flex: 1; display: flex; justify-content: flex-start; color: #8e98a8; font-size: 0.8em; font-weight: 500; letter-spacing: 1px; transition: color 0.4s ease; }
.footer-center { display: flex; justify-content: center; gap: 40px; }
.footer-link { background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; margin: 0; appearance: none; -webkit-appearance: none; font-family: var(--font-main) !important; color: #94a3b8; font-size: 0.65em; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: color 0.3s ease; }
.footer-link:hover { color: #ffffff; }
.footer-link:focus-visible { outline: 1px solid #dcb360; outline-offset: 4px; border-radius: 2px; }
.footer-right { flex: 1; display: flex; justify-content: flex-end; gap: 20px; align-items: center; }
.payment-brand { display: flex; align-items: center; color: #8e98a8; fill: #8e98a8; cursor: pointer; transition: all 0.3s ease; }
.payment-brand:hover { color: #ffffff; fill: #ffffff; }
.payment-brand svg { transition: fill 0.3s ease; vertical-align: middle; }

/* Shopping Bag Colors:
   - Desktop header (.main-header) is inverted: White in Dark Mode (#171a20 icon), Black in Day Mode (#ffffff icon)
   - Mobile drawer (.mobile-menu / #mobile-nav-overlay) matches page theme: Dark (#111111) in Dark Mode (#ffffff icon), Light (#f9f9f9) in Day Mode (#171a20 icon) */
.main-header .shopping-bag-icon { color: #171a20 !important; stroke: #171a20 !important; }
.main-header .cart-badge { background: #171a20 !important; color: #ffffff !important; }
.mobile-menu .shopping-bag-icon,
#mobile-nav-overlay .shopping-bag-icon { color: #ffffff !important; stroke: #ffffff !important; }
.mobile-menu .cart-badge,
#mobile-nav-overlay .cart-badge { background: #ffffff !important; color: #000000 !important; }

.policy-body-text { color: #cccccc; line-height: 1.8; font-size: 0.95em; transition: color 0.4s ease; }
.policy-body-text b { color: #ffffff; display: block; margin-top: 25px; margin-bottom: 5px; font-size: 1.1em; letter-spacing: 1px; text-transform: uppercase; transition: color 0.4s ease;}
.policy-body-text strong { transition: color 0.4s ease; }

/* LIGHT MODE OVERRIDES — BLACK HEADER & OFF-WHITE FOOTER ON LIGHT PAGE */
body.light-mode { background-color: #f8f8f8 !important; color: #111111; }
body.light-mode .modal-content { background-color: #ffffff; }
body.light-mode .main-header { background-color: #000000 !important; border-bottom-color: rgba(220, 179, 96, 0.28); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25); }
body.light-mode .logo-text-top, body.light-mode .logo-text-bottom { color: #ffffff; }
body.light-mode .nav-menu a { color: rgba(255, 255, 255, 0.92); }
body.light-mode .nav-menu a:hover { background-color: rgba(255, 255, 255, 0.08); color: #ffffff; }
body.light-mode .nav-menu a.active { color: #ffffff !important; font-weight: 700 !important; background: transparent; }
body.light-mode .nav-menu:not(.slider-ready) a.active { border-bottom: 1.5px solid #dcb360 !important; }
body.light-mode .nav-gold-slider { background-color: #dcb360; box-shadow: 0 0 8px rgba(220, 179, 96, 0.45); }
body.light-mode .main-header .shopping-bag-icon { color: #ffffff !important; stroke: #ffffff !important; }
body.light-mode .main-header .cart-badge { background: #ffffff !important; color: #000000 !important; }
body.light-mode .mobile-menu .shopping-bag-icon,
body.light-mode #mobile-nav-overlay .shopping-bag-icon { color: #171a20 !important; stroke: #171a20 !important; }
body.light-mode .mobile-menu .cart-badge,
body.light-mode #mobile-nav-overlay .cart-badge { background: #171a20 !important; color: #ffffff !important; }

body.light-mode .main-footer { background-color: #f1f2f4 !important; border-top-color: rgba(0, 0, 0, 0.08); }
body.light-mode .footer-left { color: #64748b; }
body.light-mode .footer-link { color: #475569; }
body.light-mode .footer-link:hover { color: #171a20; }
body.light-mode .payment-brand { color: #64748b; fill: #64748b; }
body.light-mode .payment-brand:hover { color: #171a20; fill: #171a20; }
body.light-mode .mobile-menu { background-color: rgba(255, 255, 255, 0.98) !important; }
body.light-mode .mobile-menu > a { color: #111111 !important; }
body.light-mode .mobile-menu > a:hover,
body.light-mode .mobile-menu > a.active,
body.light-mode .mobile-menu > a[style*="dcb360"] { color: #dcb360 !important; }

/* Light mode EXE Buttons: Dark (#171a20) in Day Mode */
body.light-mode .btn-get-started,
body.light-mode #utility-btn,
body.light-mode #enter-comp-btn-main,
body.light-mode .btn-admin-action:where(:not(.admin-comp-btn):not(.admin-analytics-btn):not(#btn-open-upload):not(#btn-reset-comp)),
body.light-mode .tool-card .btn-admin-action,
body.light-mode .gold-btn,
body.light-mode .btn-submit,
body.light-mode .submit-studio,
body.light-mode .submit-btn,
body.light-mode .comp-submit-btn,
body.light-mode .btn-checkout,
body.light-mode .checkout-btn,
body.light-mode .btn-return,
body.light-mode .btn-view-product,
body.light-mode .add-to-cart-btn,
body.light-mode .btn-continue-shopping,
body.light-mode .nudge-btn {
    background-color: #171a20 !important;
    border-color: #171a20 !important;
    color: #ffffff !important;
}
body.light-mode .btn-get-started:hover,
body.light-mode #utility-btn:hover,
body.light-mode #enter-comp-btn-main:hover,
body.light-mode .btn-admin-action:where(:not(.admin-comp-btn):not(.admin-analytics-btn):not(#btn-open-upload):not(#btn-reset-comp)):hover,
body.light-mode .tool-card .btn-admin-action:hover,
body.light-mode .gold-btn:hover,
body.light-mode .btn-submit:hover,
body.light-mode .submit-studio:hover,
body.light-mode .submit-btn:hover,
body.light-mode .comp-submit-btn:hover,
body.light-mode .btn-checkout:hover,
body.light-mode .checkout-btn:hover,
body.light-mode .btn-return:hover,
body.light-mode .btn-view-product:hover,
body.light-mode .add-to-cart-btn:hover,
body.light-mode .btn-continue-shopping:hover,
body.light-mode .nudge-btn:hover {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}
body.light-mode .tab-inactive,
body.light-mode .btn-admin-action.tab-inactive {
    background-color: #ffffff !important;
    color: #171a20 !important;
    border: 1px solid #171a20 !important;
}
body.light-mode .tab-inactive:hover,
body.light-mode .btn-admin-action.tab-inactive:hover {
    background-color: #f0f2f5 !important;
    border-color: #171a20 !important;
    color: #171a20 !important;
}
body.light-mode .cat-link {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #555555 !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}
body.light-mode .cat-link:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #171a20 !important;
}
body.light-mode .cat-link.active {
    background: #171a20 !important;
    color: #ffffff !important;
    border-color: #171a20 !important;
}

body.light-mode .policy-body-text b, body.light-mode .policy-body-text strong { color: #111111 !important; }
body.light-mode .admin-form input { background-color: #f0f0f0; color: #111; border-color: #ccc; }
body.light-mode #god-email, body.light-mode #god-password { background-color: #f0f0f0 !important; color: #111 !important; border-color: #ccc !important; }
body.light-mode .policy-body-text { color: #444444; }

body.light-mode .currency-dropdown { background-color: #ffffff; color: #555555; border-color: #ccc; }
body.light-mode .currency-dropdown:hover, body.light-mode .currency-dropdown:focus { border-color: #dcb360; color: #111111; }
body.light-mode .currency-menu { background-color: #ffffff; border-color: #ccc; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
body.light-mode .currency-option { color: #555555; }
body.light-mode .currency-option:hover { background: #f0f0f0; color: #111111; }

@media (max-width: 1300px) {
    .main-footer { flex-direction: column; text-align: center; gap: 30px; }
    .footer-left, .footer-right { justify-content: center; width: 100%; flex: auto; }
    .footer-center { flex-wrap: wrap; justify-content: center; gap: 20px; }
}
/* Disabled Mobile Hamburger Drawer - Keep 3 utility SVGs on header across all screens */
.hamburger,
#mobile-bag-wrapper,
.mobile-menu,
#mobile-nav-overlay {
    display: none !important;
}

.nav-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

.nav-icons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.35rem !important;
}

@media (max-width: 1100px) {
    .header-container { display: flex !important; justify-content: space-between !important; align-items: center !important; }
    .nav-wrapper { display: flex !important; align-items: center !important; justify-content: flex-end !important; }
    .nav-icons { display: flex !important; align-items: center !important; justify-content: flex-end !important; gap: 0.35rem !important; }
    #mobile-bag-wrapper { display: none !important; }
    .hamburger { display: none !important; }
    .mobile-menu, #mobile-nav-overlay { display: none !important; }
}

@media (hover: none) {
    .icon-tooltip-bubble {
        display: none !important;
    }
}
@media (max-width: 900px) {
    .currency-container { position: relative; top: 0; left: 0; display: flex; justify-content: center; margin-bottom: 25px; margin-top: 20px; z-index: 50; }
    .currency-menu { left: 50%; transform: translateX(-50%); }
}
/* Cart count badge on bag icon */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dcb360 !important;
    color: #000 !important;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    display: none !important;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 20;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

#desktop-bag-link .cart-badge {
    top: -1px !important;
    right: -2px !important;
    font-family: var(--font-main) !important;
}
.cart-badge.is-active {
    display: flex !important;
}

/* Mobile header: hide the outer mobile bag wrapper so the bag only lives inside the drawer next to Login */
#mobile-bag-wrapper > a { display: none !important; }

body.light-mode .cart-badge {
    background: #ffffff !important;
    color: #000000 !important;
}

.gbp-checkout-notice { font-size: 0.72em; color: #888; margin-top: 12px; line-height: 1.5; text-align: center; font-style: italic; }
body.light-mode .gbp-checkout-notice { color: #666; }

@media (max-width: 600px) { 
    .header-container { padding: 0 16px; } 
    .logo-image { height: 34px; margin-top: 0; } 
    .logo-text-group { transform: translateY(-1px) !important; } 
    .logo-text-top { font-size: 0.70em; letter-spacing: 2.2px; } 
    .logo-text-bottom { font-size: 0.80em; letter-spacing: 2.2px; } 
    .hamburger { transform: none !important; } 
    .modal-content { padding: 30px 20px; } 
    .modal-title { font-size: 1.5em; } 
    .main-footer { padding: 12px 15px; } 
    .footer-right { flex-wrap: wrap; gap: 15px; } 
}

/* Skeleton loaders — pure CSS, no JS overhead */
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-shimmer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(220, 179, 96, 0.1) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-line {
    height: 14px;
    border-radius: 4px;
    margin: 0 auto;
}

.skeleton-line--sm { width: 45%; height: 12px; margin-bottom: 15px; }
.skeleton-line--md { width: 65%; height: 16px; margin-bottom: 8px; }
.skeleton-line--price { width: 35%; height: 18px; margin-bottom: 25px; }

.skeleton-block {
    border-radius: 4px;
}

.skeleton-card .skeleton-img {
    width: 100%;
    height: 320px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.skeleton-card .skeleton-btn {
    width: 100%;
    height: 48px;
}

.skeleton-card { pointer-events: none; }

.product-grid.is-loading .skeleton-card { display: block; }
.product-grid:not(.is-loading) .skeleton-card { display: none; }

.product-container.is-loading .product-loaded-ui { display: none !important; }
.product-container.is-loading .product-skeleton-ui { display: flex; }
.product-container:not(.is-loading) .product-skeleton-ui { display: none; }

.product-skeleton-ui {
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.product-skeleton-ui .skeleton-line--title { width: 85%; height: 36px; margin: 0 0 6px 0; }
.product-skeleton-ui .skeleton-line--sub { width: 55%; height: 18px; margin: 0 0 10px 0; }
.product-skeleton-ui .skeleton-line--size { width: 40%; height: 14px; margin: 0 0 0 0; }
.product-skeleton-ui .skeleton-line--price-lg { width: 42%; height: 32px; margin: 80px 0 25px 0; }
.product-skeleton-ui .skeleton-btn-lg { width: 100%; max-width: 400px; height: 54px; border-radius: 4px; }

.product-gallery-skeleton {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    border: 1px solid rgba(220, 179, 96, 0.15);
}

.product-container.is-loading .slider-viewport,
.product-container.is-loading .slider-controls-desktop { display: none; }
.product-container.is-loading .product-gallery-skeleton { display: block; }
.product-container:not(.is-loading) .product-gallery-skeleton { display: none; }

.shop-empty-msg {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    padding: 60px 20px;
    font-size: 0.95em;
    letter-spacing: 1px;
}

body.light-mode .skeleton-shimmer {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.04) 25%, rgba(220, 179, 96, 0.12) 50%, rgba(0, 0, 0, 0.04) 75%);
    background-size: 200% 100%;
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-shimmer {
        animation: none;
        background: rgba(255, 255, 255, 0.06);
    }
    body.light-mode .skeleton-shimmer { background: rgba(0, 0, 0, 0.06); }
}

/* ==========================================================================
   EXEAcquisitions 1:1 Regional Market & Currency Selector Modal (.tesla-modal-*)
   ========================================================================== */
.tesla-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.tesla-modal-window {
    width: 100%;
    max-width: 960px;
    max-height: 88vh;
    background-color: #ffffff;
    color: #171a20;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    font-family: var(--font-main);
}
.tesla-modal-header {
    padding: 2rem 2.5rem 1.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #ffffff;
}
.tesla-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.tesla-header-title {
    font-family: var(--font-heading) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #171a20 !important;
    margin: 0 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
}
.tesla-tab-pills {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}
.tesla-tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 20px;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid #171a20;
    background: #171a20;
    color: #ffffff;
}
.tesla-tab-pill .flag-img {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
}
.tesla-close-btn {
    background: none !important;
    border: none !important;
    color: #171a20 !important;
    cursor: pointer;
    padding: 8px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease !important;
}
.tesla-close-btn:hover {
    background-color: #f4f4f4 !important;
}
.tesla-modal-search-row {
    padding: 0 2.5rem 1.25rem 2.5rem;
    background: #ffffff;
}
.tesla-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.tesla-search-icon {
    position: absolute;
    left: 1rem;
    color: #8e8e93;
    pointer-events: none;
}
.tesla-search-input {
    width: 100%;
    height: 42px;
    background: #f4f4f4 !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    padding: 0 2.5rem 0 2.6rem !important;
    color: #171a20 !important;
    font-family: var(--font-main) !important;
    font-size: 14px !important;
    transition: all 0.2s ease;
    user-select: text;
    -webkit-user-select: text;
}
.tesla-search-input:focus {
    outline: none;
    background: #ffffff !important;
    border-color: #171a20 !important;
    box-shadow: 0 0 0 1px #171a20;
}
.tesla-search-clear {
    position: absolute;
    right: 0.75rem;
    background: none !important;
    border: none !important;
    color: #8e8e93 !important;
    cursor: pointer;
    padding: 4px !important;
}
.tesla-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 2.5rem 2rem 2.5rem;
}
.tesla-currencies-runway {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.tesla-currency-banner {
    padding: 0.85rem 1.25rem;
    background: #f8f8f8;
    border-radius: 8px;
    border-left: 3px solid #171a20;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
}
.tesla-currency-base-tag {
    font-size: 0.88rem;
    color: #171a20;
}
.tesla-currency-sub-tag {
    font-size: 0.76rem;
    color: #64748b;
}
.tesla-currencies-grid.currency-menu {
    position: static !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    width: 100% !important;
    max-height: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    transform: none !important;
}
.tesla-currency-row.currency-option {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.75rem 0.85rem !important;
    border-radius: 8px !important;
    border: 1px solid #eeeeee !important;
    background: #fafafa !important;
    color: #171a20 !important;
    cursor: pointer;
    text-align: left !important;
    transition: all 0.2s ease !important;
}
.tesla-currency-row.currency-option:hover {
    background-color: #f4f4f4 !important;
    border-color: #d1d5db !important;
    color: #171a20 !important;
}
.tesla-currency-row.currency-option.selected {
    background-color: #eeeeee !important;
    border-color: #171a20 !important;
    box-shadow: 0 0 0 1px #171a20 !important;
}
.tesla-currency-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.tesla-currency-symbol {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #171a20;
    min-width: 28px;
    text-align: center;
}
.tesla-currency-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.tesla-currency-title-wrap .flag-img {
    width: 18px;
    height: 13px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.tesla-currency-code {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: #171a20;
}
.tesla-currency-name {
    font-size: 0.76rem;
    color: #5c5e62;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}
.tesla-currency-rate {
    font-size: 0.72rem;
    color: #8e8e93;
    font-weight: 500;
    display: block;
    margin-top: 2px;
}
.tesla-check-icon {
    color: #171a20;
    flex-shrink: 0;
}
.tesla-modal-footer {
    padding: 1.25rem 2.5rem;
    border-top: 1px solid #eeeeee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}
.tesla-footer-status {
    font-size: 0.85rem;
    color: #5c5e62;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tesla-footer-status strong {
    color: #171a20;
}
.tesla-done-btn {
    height: 40px !important;
    min-width: 110px !important;
    padding: 0 24px !important;
    border-radius: 4px !important;
    background: #171a20 !important;
    border: 1px solid #171a20 !important;
    color: #ffffff !important;
    font-family: var(--font-main) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
}
.tesla-done-btn:hover {
    background: #000000 !important;
}
.tesla-done-btn:active {
    transform: scale(0.97) !important;
}
@media (max-width: 900px) {
    .tesla-currencies-grid.currency-menu {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .tesla-modal-header,
    .tesla-modal-search-row,
    .tesla-modal-body,
    .tesla-modal-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .tesla-currencies-grid.currency-menu {
        grid-template-columns: 1fr;
    }
    .tesla-modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }
    .tesla-done-btn {
        width: 100% !important;
    }
}

/* ==========================================================================
   Inverted Feature Boxes / Card Containers (Opposite of Page Theme)
   - 1:1 EXEAcquisitions Smooth 12px Rounded Corners, Proportions & High-Contrast Text
   - Dark Mode (Black Page): Crisp White (#ffffff) Cards with Dark Text & Dark Buttons
   - Day Mode (Light Page): Sleek Black (#0a0a0a) Cards with White Text & White Buttons
   ========================================================================== */
.shop-sidebar,
.product-card,
.design-card,
.vision-box,
.steps-horizontal-box,
.price-card,
.contact-right,
.tool-card,
.cart-summary {
    border-radius: 12px !important;
}

/* Tighter, purposeful layout for Custom Studio step cards (eliminates wasted space) */
.design-card {
    padding: 24px 28px !important;
}
.design-card .card-label {
    margin-bottom: 6px !important;
}
.design-card .card-content-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
}
.design-card .custom-select,
.design-card .exe-select-wrap {
    max-width: 100% !important;
    width: 100% !important;
}

/* Remove native textarea resize corner ticks (//) */
textarea.form-input,
.vision-box {
    resize: none !important;
}

/* Higher-contrast page-level secondary text */
body:not(.light-mode) .hero-description,
body:not(.light-mode) .contact-description,
body:not(.light-mode) .vision-disclaimer,
body:not(.light-mode) .social-text,
body:not(.light-mode) .return-to-shop,
body:not(.light-mode) .tracker-title span {
    color: #d1d5db !important;
}
body.light-mode .hero-description,
body.light-mode .contact-description,
body.light-mode .vision-disclaimer,
body.light-mode .social-text,
body.light-mode .return-to-shop,
body.light-mode .tracker-title span {
    color: #1f2937 !important;
}

body:not(.light-mode) .shop-sidebar,
body:not(.light-mode) .mobile-filter-dropdown,
body:not(.light-mode) .product-card,
body:not(.light-mode) .design-card,
body:not(.light-mode) .vision-box,
body:not(.light-mode) .steps-horizontal-box,
body:not(.light-mode) .price-card,
body:not(.light-mode) .contact-right,
body:not(.light-mode) .tool-card,
body:not(.light-mode) .cart-summary {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: rgba(220, 179, 96, 0.35) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
}

body:not(.light-mode) .shop-sidebar .filter-group h4,
body:not(.light-mode) .mobile-filter-dropdown,
body:not(.light-mode) .product-card .product-title,
body:not(.light-mode) .design-card .card-title,
body:not(.light-mode) .vision-box,
body:not(.light-mode) .price-card .price-value,
body:not(.light-mode) .tool-card h2,
body:not(.light-mode) .tool-card .live-val,
body:not(.light-mode) .cart-summary .summary-total {
    color: #111111 !important;
}

body:not(.light-mode) .shop-sidebar .filter-label,
body:not(.light-mode) .product-card .product-material,
body:not(.light-mode) .steps-horizontal-box .step-description-small,
body:not(.light-mode) .tool-card p,
body:not(.light-mode) .cart-summary .summary-row,
body:not(.light-mode) .cart-summary .trust-signal-item.secondary {
    color: #1f2937 !important;
    font-weight: 500 !important;
}

body:not(.light-mode) .shop-sidebar .filter-label:hover {
    color: #dcb360 !important;
}

body:not(.light-mode) .product-card .product-image-container {
    background: rgba(0, 0, 0, 0.04) !important;
    border-radius: 8px !important;
}

body:not(.light-mode) .product-card .skeleton-shimmer {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 25%, rgba(220, 179, 96, 0.14) 50%, rgba(0, 0, 0, 0.05) 75%) !important;
    background-size: 200% 100% !important;
}

body:not(.light-mode) .design-card .custom-select {
    color: #171a20 !important;
    background-color: #f4f4f6 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
}

body:not(.light-mode) .vision-box::placeholder {
    color: #334155 !important;
    font-weight: 500 !important;
    opacity: 0.9 !important;
}

body:not(.light-mode) .contact-right .form-input {
    color: #111111 !important;
    border-bottom: 1.5px solid rgba(23, 26, 32, 0.45) !important;
    font-weight: 500 !important;
}

body:not(.light-mode) .contact-right .form-input:focus {
    border-bottom-color: #dcb360 !important;
}

body:not(.light-mode) .contact-right .form-input::placeholder {
    color: #171a20 !important;
    font-weight: 600 !important;
    opacity: 0.85 !important;
}

body:not(.light-mode) .steps-horizontal-box .step-item:not(:last-child)::after {
    top: 10% !important;
    height: 80% !important;
    background: rgba(17, 17, 17, 0.25) !important;
}

/* Nested Price Cards inside White .tool-card & Popout Modals in Dark Mode -> Sleek Black */
body:not(.light-mode) .tool-card .price-card,
body:not(.light-mode) .modal-content .price-card,
body:not(.light-mode) #spot-modal .price-card {
    background: #14161b !important;
    background-color: #14161b !important;
    border: 1px solid rgba(220, 179, 96, 0.35) !important;
    border-color: rgba(220, 179, 96, 0.35) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16) !important;
}

body:not(.light-mode) .tool-card .price-card .price-value,
body:not(.light-mode) .modal-content .price-card .price-value,
body:not(.light-mode) #spot-modal .price-card .price-value {
    color: #ffffff !important;
}

body:not(.light-mode) .tool-card .price-card .karat-label,
body:not(.light-mode) .modal-content .price-card .karat-label,
body:not(.light-mode) #spot-modal .price-card .karat-label {
    color: #dcb360 !important;
}

body:not(.light-mode) .tracker-title span {
    color: #e5e7eb !important;
    font-weight: 500 !important;
}

body:not(.light-mode) .tool-card .tracker-title span {
    color: #1f2937 !important;
    font-weight: 500 !important;
}

/* Buttons INSIDE White Boxes in Dark Mode -> Dark (#171a20) */
body:not(.light-mode) .product-card .btn-view-product,
body:not(.light-mode) .contact-right .btn-submit,
body:not(.light-mode) .tool-card .btn-admin-action,
body:not(.light-mode) .cart-summary .btn-checkout {
    background-color: #171a20 !important;
    border-color: #171a20 !important;
    color: #ffffff !important;
}

body:not(.light-mode) .product-card .btn-view-product:hover,
body:not(.light-mode) .contact-right .btn-submit:hover,
body:not(.light-mode) .tool-card .btn-admin-action:hover,
body:not(.light-mode) .cart-summary .btn-checkout:hover {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

/* Day Mode (body.light-mode — Light Page): Sleek Black (#0a0a0a) Cards */
body.light-mode .shop-sidebar,
body.light-mode .mobile-filter-dropdown,
body.light-mode .product-card,
body.light-mode .design-card,
body.light-mode .vision-box,
body.light-mode .steps-horizontal-box,
body.light-mode .price-card,
body.light-mode .contact-right,
body.light-mode .tool-card,
body.light-mode .cart-summary {
    background: #0a0a0a !important;
    background-color: #0a0a0a !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18) !important;
}

body.light-mode .shop-sidebar .filter-group h4,
body.light-mode .mobile-filter-dropdown,
body.light-mode .product-card .product-title,
body.light-mode .design-card .card-title,
body.light-mode .vision-box,
body.light-mode .price-card .price-value,
body.light-mode .tool-card h2,
body.light-mode .tool-card .live-val,
body.light-mode .cart-summary .summary-total {
    color: #ffffff !important;
}

body.light-mode .shop-sidebar .filter-label,
body.light-mode .product-card .product-material,
body.light-mode .steps-horizontal-box .step-description-small,
body.light-mode .tool-card p,
body.light-mode .cart-summary .summary-row,
body.light-mode .cart-summary .trust-signal-item.secondary {
    color: #e5e7eb !important;
    font-weight: 500 !important;
}

body.light-mode .shop-sidebar .filter-label:hover {
    color: #dcb360 !important;
}

body.light-mode .product-card .product-image-container {
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 8px !important;
}

body.light-mode .product-card .skeleton-shimmer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(220, 179, 96, 0.14) 50%, rgba(255, 255, 255, 0.06) 75%) !important;
    background-size: 200% 100% !important;
}

body.light-mode .design-card .custom-select {
    color: #ffffff !important;
    background-color: #16181d !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 8px !important;
}

body.light-mode .vision-box::placeholder {
    color: #e2e8f0 !important;
    font-weight: 500 !important;
    opacity: 0.88 !important;
}

body.light-mode .contact-right .form-input {
    color: #ffffff !important;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    font-weight: 500 !important;
}

body.light-mode .contact-right .form-input:focus {
    border-bottom-color: #dcb360 !important;
}

body.light-mode .contact-right .form-input::placeholder {
    color: #f1f5f9 !important;
    font-weight: 600 !important;
    opacity: 0.88 !important;
}

/* Nested Price Cards inside Black .tool-card & Popout Modals in Day Mode -> Crisp White */
body.light-mode .tool-card .price-card,
body.light-mode .modal-content .price-card,
body.light-mode #spot-modal .price-card {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

body.light-mode .tool-card .price-card .price-value,
body.light-mode .modal-content .price-card .price-value,
body.light-mode #spot-modal .price-card .price-value {
    color: #111111 !important;
}

body.light-mode .tool-card .price-card .karat-label,
body.light-mode .modal-content .price-card .karat-label,
body.light-mode #spot-modal .price-card .karat-label {
    color: #8a6d2b !important;
}

body.light-mode .tracker-title span {
    color: #1f2937 !important;
    font-weight: 500 !important;
}

body.light-mode .tool-card .tracker-title span {
    color: #e5e7eb !important;
    font-weight: 500 !important;
}

/* ==========================================================================
   EXEAcquisitions Custom Luxury Select Dropdown (.exe-select-*)
   ========================================================================== */
.exe-select-wrap {
    position: relative;
    width: 100%;
    font-family: var(--font-main);
    user-select: none;
}

.exe-select-trigger {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    background: #f4f4f6;
    border: 1px solid #cbd5e1;
    color: #171a20;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    text-align: left;
}

.exe-select-trigger:hover {
    background: #ebedf0;
    border-color: #94a3b8;
}

.exe-select-wrap.is-open .exe-select-trigger {
    background: #ffffff;
    border-color: #171a20;
    box-shadow: 0 0 0 1px #171a20;
}

.exe-select-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #475569;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease;
}

.exe-select-wrap.is-open .exe-select-chevron {
    transform: rotate(180deg);
    color: #171a20;
}

.exe-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 6px;
    z-index: 1500;
    display: none;
    flex-direction: column;
    gap: 2px;
    max-height: 260px;
    overflow-y: auto;
    animation: portalBubbleIn 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.exe-select-wrap.is-open .exe-select-menu {
    display: flex;
}

.exe-select-option {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #171a20;
    font-family: var(--font-main);
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.14s ease, color 0.14s ease;
}

.exe-select-option:hover {
    background: #f1f5f9;
    color: #000000;
}

.exe-select-option.is-selected {
    background: #171a20;
    color: #ffffff;
    font-weight: 600;
}

/* Day Mode (Inside Black Cards -> Sleek Dark Dropdown Surface) */
body.light-mode .design-card .exe-select-trigger,
body.light-mode .exe-select-wrap.in-dark-surface .exe-select-trigger {
    background: #181a20;
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

body.light-mode .design-card .exe-select-trigger:hover {
    background: #22252d;
    border-color: rgba(255, 255, 255, 0.4);
}

body.light-mode .design-card .exe-select-wrap.is-open .exe-select-trigger {
    background: #181a20;
    border-color: #dcb360;
    box-shadow: 0 0 0 1px #dcb360;
}

body.light-mode .design-card .exe-select-chevron {
    color: #cbd5e1;
}

body.light-mode .design-card .exe-select-wrap.is-open .exe-select-chevron {
    color: #dcb360;
}

body.light-mode .design-card .exe-select-menu {
    background: #14161b;
    border-color: rgba(220, 179, 96, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

body.light-mode .design-card .exe-select-option {
    color: #f1f5f9;
}

body.light-mode .design-card .exe-select-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

body.light-mode .design-card .exe-select-option.is-selected {
    background: #ffffff;
    color: #171a20;
}

/* Modal selects (White modal in Dark Mode -> Light surface; Black modal in Day Mode -> Dark surface) */
body.light-mode .modal-content .exe-select-trigger {
    background: #181a20 !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}
body.light-mode .modal-content .exe-select-trigger:hover {
    background: #22252d !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}
body.light-mode .modal-content .exe-select-wrap.is-open .exe-select-trigger {
    background: #181a20 !important;
    border-color: #dcb360 !important;
    box-shadow: 0 0 0 1px #dcb360 !important;
}
body.light-mode .modal-content .exe-select-chevron {
    color: #cbd5e1 !important;
}
body.light-mode .modal-content .exe-select-wrap.is-open .exe-select-chevron {
    color: #dcb360 !important;
}
body.light-mode .modal-content .exe-select-menu {
    background: #14161b !important;
    border-color: rgba(220, 179, 96, 0.35) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55) !important;
}
body.light-mode .modal-content .exe-select-option {
    color: #f1f5f9 !important;
}
body.light-mode .modal-content .exe-select-option:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}
body.light-mode .modal-content .exe-select-option.is-selected {
    background: #ffffff !important;
    color: #171a20 !important;
}

/* ==========================================================================
   All Modals (Utility Tools, Policy, Admin, Forms) — Inverted Day/Night Specs
   ========================================================================== */
#ring-circle {
    box-sizing: content-box !important;
}

.check-line {
    max-width: 100% !important;
}

.modal-content {
    border-radius: 14px !important;
    padding: 36px 32px !important;
    overflow: visible !important;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.modal-content .close-modal {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    top: 16px !important;
    right: 16px !important;
    font-size: 22px !important;
    line-height: 1 !important;
    transition: background-color 0.18s ease, color 0.18s ease !important;
}

/* 1. DARK MODE (Black Page -> Crisp White Modals) */
body:not(.light-mode) .modal-content {
    background: #ffffff !important;
    border: 1px solid rgba(220, 179, 96, 0.35) !important;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
    color: #111111 !important;
}

body:not(.light-mode) .modal-content h2,
body:not(.light-mode) .modal-content .modal-title {
    color: #111111 !important;
}

body:not(.light-mode) .modal-content p,
body:not(.light-mode) .modal-content label,
body:not(.light-mode) #policy-body p,
body:not(.light-mode) .modal-content .checkbox-label,
body:not(.light-mode) .modal-content .hallmark-result,
body:not(.light-mode) .modal-content .tolerance-table,
body:not(.light-mode) .modal-content .tolerance-table td,
body:not(.light-mode) .modal-content .sale-record {
    color: #1f2937 !important;
    font-weight: 500 !important;
}

body:not(.light-mode) .modal-content .hallmark-result strong,
body:not(.light-mode) .modal-content .sale-record b,
body:not(.light-mode) #alloy-total-result,
body:not(.light-mode) #ring-scale-details,
body:not(.light-mode) #stone-primary,
body:not(.light-mode) #stone-alt,
body:not(.light-mode) #size-display,
body:not(.light-mode) .modal-content .stat-val {
    color: #111111 !important;
}

body:not(.light-mode) #sizer-modal input[type="range"],
body:not(.light-mode) #size-slider {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    height: 24px !important;
    background: transparent !important;
    accent-color: #111111 !important;
    margin: 15px 0 !important;
    padding: 0 !important;
    border: none !important;
}
body:not(.light-mode) #size-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: #111111 !important;
    cursor: pointer !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
    margin-top: -8px !important;
}
body:not(.light-mode) #size-slider::-moz-range-thumb {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: #111111 !important;
    cursor: pointer !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
}
body:not(.light-mode) #size-slider::-webkit-slider-runnable-track {
    background: #e2e8f0 !important;
    height: 6px !important;
    border-radius: 999px !important;
}
body:not(.light-mode) #size-slider::-moz-range-track {
    background: #e2e8f0 !important;
    height: 6px !important;
    border-radius: 999px !important;
}

body:not(.light-mode) .modal-content .data-panel,
body:not(.light-mode) .modal-content .analytics-box,
body:not(.light-mode) .modal-content .draw-box,
body:not(.light-mode) .modal-content .image-slot {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    border-radius: 10px !important;
}

body:not(.light-mode) .modal-content .tolerance-table th {
    background: #f8fafc !important;
    color: #b78a28 !important;
    border-bottom-color: #e2e8f0 !important;
}

body:not(.light-mode) .modal-content .tolerance-table td,
body:not(.light-mode) .modal-content .hallmark-result,
body:not(.light-mode) .modal-content .sale-record {
    border-bottom-color: #e2e8f0 !important;
}

body:not(.light-mode) .modal-content .input-field,
body:not(.light-mode) .modal-content .admin-form input:not([type="checkbox"]):not([type="file"]),
body:not(.light-mode) .modal-content .admin-form select,
body:not(.light-mode) .modal-content .comp-form input,
body:not(.light-mode) .modal-content .contact-form input,
body:not(.light-mode) .modal-content .pack-form input {
    background: #f4f4f6 !important;
    border: 1px solid #cbd5e1 !important;
    color: #171a20 !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
}

body:not(.light-mode) .modal-content .input-field:focus,
body:not(.light-mode) .modal-content .admin-form input:not([type="checkbox"]):not([type="file"]):focus,
body:not(.light-mode) .modal-content .comp-form input:focus,
body:not(.light-mode) .modal-content .contact-form input:focus,
body:not(.light-mode) .modal-content .pack-form input:focus {
    background: #ffffff !important;
    border-color: #171a20 !important;
    box-shadow: 0 0 0 1px #171a20 !important;
}

body:not(.light-mode) .modal-content .input-field::placeholder,
body:not(.light-mode) .modal-content .admin-form input::placeholder,
body:not(.light-mode) .modal-content .comp-form input::placeholder,
body:not(.light-mode) .modal-content .contact-form input::placeholder,
body:not(.light-mode) .modal-content .pack-form input::placeholder {
    color: #475569 !important;
    font-weight: 500 !important;
    opacity: 1 !important;
}

body:not(.light-mode) #scrap-spot-display {
    background: #171a20 !important;
    color: #dcb360 !important;
    border-color: #171a20 !important;
}

body:not(.light-mode) .modal-content .btn-admin-action:not(#btn-reset-comp),
body:not(.light-mode) .modal-content .submit-btn,
body:not(.light-mode) .modal-content .comp-submit-btn,
body:not(.light-mode) .modal-content .nudge-btn {
    background: #171a20 !important;
    color: #ffffff !important;
    border: 1px solid #171a20 !important;
    border-radius: 8px !important;
}

body:not(.light-mode) .modal-content .btn-admin-action:not(#btn-reset-comp):hover,
body:not(.light-mode) .modal-content .submit-btn:hover,
body:not(.light-mode) .modal-content .comp-submit-btn:hover,
body:not(.light-mode) .modal-content .nudge-btn:hover {
    background: #2b303c !important;
    color: #ffffff !important;
}

body:not(.light-mode) .modal-content .close-modal {
    color: #475569 !important;
}

body:not(.light-mode) .modal-content .close-modal:hover {
    color: #111111 !important;
    background: rgba(0, 0, 0, 0.06) !important;
}

/* 2. DAY MODE (Light Page -> Sleek Black Modals) */
body.light-mode .modal-content {
    background: #0a0a0a !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.38) !important;
    color: #ffffff !important;
}

body.light-mode .modal-content h2,
body.light-mode .modal-content .modal-title {
    color: #ffffff !important;
}

body.light-mode .modal-content p,
body.light-mode .modal-content label,
body.light-mode #policy-body p,
body.light-mode .modal-content .checkbox-label,
body.light-mode .modal-content .hallmark-result,
body.light-mode .modal-content .tolerance-table,
body.light-mode .modal-content .tolerance-table td,
body.light-mode .modal-content .sale-record {
    color: #e5e7eb !important;
    font-weight: 500 !important;
}

body.light-mode .modal-content .hallmark-result strong,
body.light-mode .modal-content .sale-record b,
body.light-mode #alloy-total-result,
body.light-mode #ring-scale-details,
body.light-mode #stone-primary,
body.light-mode #stone-alt,
body.light-mode #size-display,
body.light-mode .modal-content .stat-val {
    color: #ffffff !important;
}

body.light-mode #sizer-modal input[type="range"],
body.light-mode #size-slider {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    height: 24px !important;
    background: transparent !important;
    accent-color: #ffffff !important;
    margin: 15px 0 !important;
    padding: 0 !important;
    border: none !important;
}
body.light-mode #size-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    cursor: pointer !important;
    border: 2px solid #111111 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important;
    margin-top: -8px !important;
}
body.light-mode #size-slider::-moz-range-thumb {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    cursor: pointer !important;
    border: 2px solid #111111 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important;
}
body.light-mode #size-slider::-webkit-slider-runnable-track {
    background: #334155 !important;
    height: 6px !important;
    border-radius: 999px !important;
}
body.light-mode #size-slider::-moz-range-track {
    background: #334155 !important;
    height: 6px !important;
    border-radius: 999px !important;
}

body.light-mode .modal-content .data-panel,
body.light-mode .modal-content .analytics-box,
body.light-mode .modal-content .draw-box,
body.light-mode .modal-content .image-slot {
    background: #14161b !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    border-radius: 10px !important;
}

body.light-mode .modal-content .tolerance-table th {
    background: #14161b !important;
    color: #dcb360 !important;
    border-bottom-color: rgba(255, 255, 255, 0.14) !important;
}

body.light-mode .modal-content .tolerance-table td,
body.light-mode .modal-content .hallmark-result,
body.light-mode .modal-content .sale-record {
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

body.light-mode .modal-content .input-field,
body.light-mode .modal-content .admin-form input:not([type="checkbox"]):not([type="file"]),
body.light-mode .modal-content .admin-form select,
body.light-mode .modal-content .comp-form input,
body.light-mode .modal-content .contact-form input,
body.light-mode .modal-content .pack-form input {
    background: #181a20 !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
}

body.light-mode .modal-content .input-field:focus,
body.light-mode .modal-content .admin-form input:not([type="checkbox"]):not([type="file"]):focus,
body.light-mode .modal-content .comp-form input:focus,
body.light-mode .modal-content .contact-form input:focus,
body.light-mode .modal-content .pack-form input:focus {
    background: #181a20 !important;
    border-color: #dcb360 !important;
    box-shadow: 0 0 0 1px #dcb360 !important;
}

body.light-mode .modal-content .input-field::placeholder,
body.light-mode .modal-content .admin-form input::placeholder,
body.light-mode .modal-content .comp-form input::placeholder,
body.light-mode .modal-content .contact-form input::placeholder,
body.light-mode .modal-content .pack-form input::placeholder {
    color: #cbd5e1 !important;
    font-weight: 500 !important;
    opacity: 1 !important;
}

body.light-mode .modal-content .btn-admin-action:not(#btn-reset-comp),
body.light-mode .modal-content .submit-btn,
body.light-mode .modal-content .comp-submit-btn,
body.light-mode .modal-content .nudge-btn {
    background: #ffffff !important;
    color: #171a20 !important;
    border: 1px solid #ffffff !important;
    border-radius: 8px !important;
}

body.light-mode .modal-content .btn-admin-action:not(#btn-reset-comp):hover,
body.light-mode .modal-content .submit-btn:hover,
body.light-mode .modal-content .comp-submit-btn:hover,
body.light-mode .modal-content .nudge-btn:hover {
    background: #f1f5f9 !important;
    color: #000000 !important;
}

body.light-mode .modal-content .close-modal {
    color: #9ca3af !important;
}

body.light-mode .modal-content .close-modal:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

body.light-mode .steps-horizontal-box .step-item:not(:last-child)::after {
    top: 10% !important;
    height: 80% !important;
    background: rgba(255, 255, 255, 0.3) !important;
}

/* Buttons INSIDE Black Boxes in Day Mode -> Crisp White (#ffffff) */
body.light-mode .product-card .btn-view-product,
body.light-mode .contact-right .btn-submit,
body.light-mode .tool-card .btn-admin-action,
body.light-mode .cart-summary .btn-checkout {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #171a20 !important;
}

body.light-mode .product-card .btn-view-product:hover,
body.light-mode .contact-right .btn-submit:hover,
body.light-mode .tool-card .btn-admin-action:hover,
body.light-mode .cart-summary .btn-checkout:hover {
    background-color: #e5e7eb !important;
    border-color: #e5e7eb !important;
    color: #171a20 !important;
}

/* ==========================================================================
   EXEAcquisitions 1:1 Client Portal Dropdown Bubble & Top-Right Admin Shield
   ========================================================================== */
.nav-icons #desktop-admin-trigger {
    stroke: #171a20 !important;
}
body.light-mode .nav-icons #desktop-admin-trigger {
    stroke: #ffffff !important;
}
.mobile-menu #mobile-admin-trigger {
    stroke: #ffffff !important;
}
body.light-mode .mobile-menu #mobile-admin-trigger {
    stroke: #171a20 !important;
}

.client-portal-bubble {
    position: absolute;
    top: calc(100% + 14px);
    right: -8px;
    width: 360px;
    background-color: #ffffff !important;
    color: #171a20 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    padding: 1.75rem !important;
    z-index: 2500 !important;
    text-align: left !important;
    animation: portalBubbleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-sizing: border-box !important;
}

@keyframes portalBubbleIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portal-bubble-caret {
    position: absolute;
    bottom: 100%;
    right: 18px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}

.portal-login-header {
    margin-bottom: 1.25rem;
}

.portal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-main);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #8e8e93 !important;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.portal-login-title {
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 700;
    color: #171a20 !important;
    margin: 0 0 0.35rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.portal-login-desc {
    font-family: var(--font-main);
    font-size: 0.82rem;
    color: #5c5e62 !important;
    line-height: 1.45;
    margin: 0;
}

.portal-auth-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.btn-google-auth,
.btn-google-sso {
    width: 100% !important;
    height: 44px !important;
    background: #171a20 !important;
    color: #ffffff !important;
    border: 1px solid #171a20 !important;
    border-radius: 6px !important;
    font-family: var(--font-main) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    text-transform: none !important;
}

.btn-google-auth:hover,
.btn-google-sso:hover {
    background: #000000 !important;
    border-color: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.btn-google-auth:active,
.btn-google-sso:active {
    transform: translateY(0);
}

.btn-apple-sso {
    background: #171a20 !important;
    color: #ffffff !important;
    border: 1px solid #171a20 !important;
    margin-bottom: 0;
}

.btn-apple-sso:hover {
    background: #000000 !important;
}

.portal-creds-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.portal-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.portal-input-label {
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5c5e62 !important;
}

.portal-text-input {
    width: 100%;
    height: 40px;
    background: #f4f4f4 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 0 2.2rem 0 0.75rem !important;
    color: #171a20 !important;
    font-family: var(--font-main);
    font-size: 13px;
    transition: all 0.18s ease;
    box-sizing: border-box !important;
    user-select: text !important;
    -webkit-user-select: text !important;
}

.portal-text-input::placeholder {
    color: #9ca3af !important;
}

.portal-text-input:focus {
    outline: none;
    background: #ffffff !important;
    border-color: #171a20 !important;
    box-shadow: 0 0 0 1px #171a20 !important;
}

.portal-key-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.portal-key-icon {
    position: absolute;
    right: 0.75rem;
    color: #8e8e93;
    pointer-events: none;
}

.portal-submit-btn {
    width: 100% !important;
    height: 42px !important;
    margin-top: 0.35rem;
    border-radius: 6px !important;
    background: #171a20 !important;
    border: 1px solid #171a20 !important;
    color: #ffffff !important;
    font-family: var(--font-main) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
}

.portal-submit-btn:hover {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

/* Top-Right Admin Access Shield Button */
.portal-admin-shield-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20;
    padding: 0;
}

.portal-admin-shield-btn:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    color: #171a20 !important;
    border-color: #d1d5db !important;
    transform: scale(1.05);
}

.portal-admin-shield-btn.is-active {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: #10b981 !important;
    color: #10b981 !important;
}

.portal-admin-shield-btn.is-active:hover {
    background: #10b981 !important;
    color: #ffffff !important;
}

.portal-admin-view {
    animation: portalFadeIn 0.18s ease-in-out forwards;
}

@keyframes portalFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portal-admin-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.portal-admin-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.18s ease;
}

.portal-admin-back-btn:hover {
    background-color: #171a20;
    border-color: #171a20;
    color: #ffffff;
}

.portal-admin-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6b7280;
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 4px;
}

.portal-admin-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 6px;
    color: #ef4444;
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.portal-admin-active-box {
    padding-top: 0.35rem;
}

.admin-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 4px 10px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.admin-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.portal-signout-btn {
    width: 100%;
    height: 38px;
    background: none;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.portal-signout-btn:hover {
    background: #fef2f2;
    border-color: #f87171;
}

/* Authenticated Client View */
.portal-auth-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.portal-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f4f4f4;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #171a20;
}

.portal-badge-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.25rem;
}

.portal-tier-badge {
    font-family: var(--font-main);
    font-size: 0.68rem;
    font-weight: 700;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.portal-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #10b981;
}

.portal-client-name {
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 700;
    color: #171a20;
    line-height: 1.2;
    margin: 0;
}

.portal-client-org {
    font-size: 0.75rem;
    color: #5c5e62;
    margin: 2px 0 0 0;
}

.portal-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 1rem 0;
}

.portal-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.portal-tier-badge.pro-badge {
    color: #b45309 !important;
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
}

.portal-pro-status-box {
    margin: 0.85rem 0 0.5rem 0;
    padding: 0.75rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.portal-pro-status-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.portal-pro-status-desc {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

.portal-subscribe-btn {
    width: 100%;
    height: 38px;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    margin: 0.85rem 0 0.5rem 0;
    transition: all 0.18s ease;
}

.portal-subscribe-btn:hover {
    background: #000000;
    border-color: #000000;
}

/* User Header Trigger Avatar & Indicators */
.login-trigger-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.user-header-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.user-header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #10b981;
    display: block;
    background: #171a20;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.user-header-avatar:hover {
    transform: scale(1.08);
}

.user-header-avatar.is-pro {
    border-color: #f59e0b !important;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.user-header-initial {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #171a20;
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #10b981;
}

.user-header-initial.is-pro {
    border-color: #f59e0b !important;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.user-header-crown {
    position: absolute;
    top: -8px;
    right: -6px;
    font-size: 13px;
    line-height: 1;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
    pointer-events: none;
    animation: proCrownFloat 2.2s ease-in-out infinite alternate;
}

@keyframes proCrownFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-2px); }
}

.user-header-online-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    border: 1.5px solid #ffffff;
    pointer-events: none;
}

/* ==========================================================================
   EXEAcquisitions 1:1 Header Action Hover Tooltip Bubbles (.icon-tooltip-bubble)
   ========================================================================== */
.nav-icon-wrapper {
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hide legacy gold theme-tooltip on desktop since .icon-tooltip-bubble replaces it */
.nav-icons #theme-tooltip {
    display: none !important;
}

.icon-tooltip-bubble {
    position: absolute;
    top: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background-color: #171a20 !important;
    color: #ffffff !important;
    font-family: var(--font-main) !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    line-height: 1.2 !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
    pointer-events: none !important;
    opacity: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    transition: opacity 0.18s ease, transform 0.18s ease !important;
    z-index: 2600 !important;
    text-transform: none !important;
}

.icon-tooltip-bubble::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: transparent transparent #171a20 transparent;
}

.nav-icon-wrapper:hover .icon-tooltip-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nav-icon-wrapper.is-open .icon-tooltip-bubble,
.nav-icon-wrapper:hover.is-open .icon-tooltip-bubble {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

.user-active-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10b981;
    border: 1.5px solid #ffffff;
    pointer-events: none;
}

#exe-portal-mobile-backdrop .client-portal-bubble {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 380px !important;
    margin: auto !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45) !important;
}

#exe-portal-mobile-backdrop .portal-bubble-caret {
    display: none !important;
}

/* ==========================================================================
   Production Polish: Scrollable Modals, Structured UK Policies, Add-to-Bag,
   Luxury Toast Notifications & Confirmation Dialogs
   ========================================================================== */
#policy-modal .modal-content,
#sales-modal .modal-content,
#upload-modal .modal-content,
#edit-modal .modal-content {
    overflow-y: auto !important;
    max-height: 85vh !important;
}

#policy-modal .modal-content {
    max-width: 620px !important;
}

.policy-section-block {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
}

.policy-section-block:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.policy-section-heading {
    font-family: var(--font-main) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #b78a28 !important;
    margin: 0 0 6px 0 !important;
}

.policy-section-copy {
    font-family: var(--font-main) !important;
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}

body.light-mode .policy-section-block {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

body.light-mode .policy-section-heading {
    color: #dcb360 !important;
}

/* Crisp Add-to-Bag Confirmation State */
.add-to-cart-btn.is-added,
body.light-mode .add-to-cart-btn.is-added {
    background-color: #dcb360 !important;
    border-color: #dcb360 !important;
    color: #111111 !important;
}

/* Luxury Confirmation Modal Cancel Button */
.exe-confirm-cancel-btn {
    flex: 1;
    height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    background: transparent !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    font-family: var(--font-main) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

.exe-confirm-cancel-btn:hover {
    background: #f1f5f9 !important;
    color: #111111 !important;
    border-color: #94a3b8 !important;
}

body.light-mode .exe-confirm-cancel-btn {
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #cbd5e1 !important;
}

body.light-mode .exe-confirm-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Luxury Non-Blocking Toast Notifications */
.exe-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: calc(100vw - 32px);
}

.exe-toast {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 8px;
    background: #ffffff;
    color: #171a20;
    border: 1px solid rgba(220, 179, 96, 0.45);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
    font-family: var(--font-main);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

body.light-mode .exe-toast {
    background: #111111;
    color: #ffffff;
    border-color: rgba(220, 179, 96, 0.45);
}

.exe-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.exe-toast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #dcb360;
}

.exe-toast--success .exe-toast-dot {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.55);
}

.exe-toast--error .exe-toast-dot {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.55);
}

@media (max-width: 640px) {
    .exe-toast-container {
        left: 16px;
        right: 16px;
        bottom: 18px;
        align-items: center;
    }
    .exe-toast {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}


/* ==========================================================================
   EXE ACQUISITIONS: ADMIN DASHBOARD MODAL (1:1 TOOL CONTAINER ARCHITECTURE)
   ========================================================================== */
#admin-dashboard-modal .exe-admin-dash-modal {
    max-width: 860px !important;
    width: 95% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    text-align: left !important;
}

.exe-admin-dash-title {
    font-family: var(--font-main) !important;
    letter-spacing: 2px !important;
    margin: 0 0 6px 0 !important;
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    text-align: center !important;
}

.exe-admin-dash-subtitle {
    font-size: 0.86rem !important;
    margin: 0 0 18px 0 !important;
    text-align: center !important;
    opacity: 0.8;
}

/* 3-Column Summary Stat Cards (matches .price-card / .data-panel aesthetic) */
.exe-admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.exe-admin-stat-card {
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

body:not(.light-mode) .exe-admin-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

body.light-mode .exe-admin-stat-card {
    background: #14161b;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.exe-admin-stat-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-main);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body:not(.light-mode) .exe-admin-stat-label {
    color: #64748b;
}

body.light-mode .exe-admin-stat-label {
    color: #94a3b8;
}

.exe-stat-crown {
    display: inline-flex;
    align-items: center;
    color: #d4af37;
}

.exe-admin-stat-value {
    font-family: var(--font-main);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.1;
}

body:not(.light-mode) .exe-admin-stat-value {
    color: #111111;
}

body.light-mode .exe-admin-stat-value {
    color: #ffffff;
}

/* Search Input + Segmented Filter Bar */
.exe-admin-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.exe-admin-search-wrap {
    position: relative;
    flex: 1 1 260px;
    display: flex;
    align-items: center;
}

.exe-admin-search-icon {
    position: absolute;
    left: 12px;
    pointer-events: none;
    opacity: 0.55;
}

body:not(.light-mode) .exe-admin-search-icon {
    color: #334155;
}

body.light-mode .exe-admin-search-icon {
    color: #cbd5e1;
}

#admin-dashboard-modal .exe-admin-search-input {
    margin: 0 !important;
    height: 38px !important;
    padding: 0 34px 0 36px !important;
    font-size: 0.84rem !important;
    width: 100% !important;
}

.exe-admin-search-clear {
    position: absolute;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(128, 128, 128, 0.16);
    color: inherit;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.exe-admin-filter-group {
    margin: 0 !important;
    padding: 3px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    gap: 3px !important;
    flex: 0 0 auto;
}

body:not(.light-mode) .exe-admin-filter-group {
    background: #f1f5f9 !important;
    border: 1px solid #d8dde6 !important;
}

body:not(.light-mode) .exe-admin-filter-group .sub-toggle-btn {
    height: 30px !important;
    padding: 0 11px !important;
    font-size: 0.72rem !important;
    color: #334155 !important;
    background: transparent !important;
    border-radius: 6px !important;
}

body:not(.light-mode) .exe-admin-filter-group .sub-toggle-btn.active {
    background: #171a20 !important;
    color: #ffffff !important;
    border-color: #171a20 !important;
}

body.light-mode .exe-admin-filter-group {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body.light-mode .exe-admin-filter-group .sub-toggle-btn {
    height: 30px !important;
    padding: 0 11px !important;
    font-size: 0.72rem !important;
    color: #cbd5e1 !important;
    background: transparent !important;
    border-radius: 6px !important;
}

body.light-mode .exe-admin-filter-group .sub-toggle-btn.active {
    background: #ffffff !important;
    color: #171a20 !important;
    border-color: #ffffff !important;
}

/* Scrollable User Cards Panel */
#admin-dashboard-modal .exe-admin-users-panel {
    margin-top: 0 !important;
    padding: 10px !important;
    max-height: 440px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exe-admin-empty-state {
    padding: 36px 20px;
    text-align: center;
    font-size: 0.88rem;
    opacity: 0.75;
}

.exe-admin-user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body:not(.light-mode) .exe-admin-user-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

body:not(.light-mode) .exe-admin-user-card:hover {
    border-color: #cbd5e1;
}

body.light-mode .exe-admin-user-card {
    background: #0d0f14;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

body.light-mode .exe-admin-user-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
}

.exe-admin-user-main {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    flex: 1;
    min-width: 0;
}

.exe-admin-avatar-wrap {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.exe-admin-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(128, 128, 128, 0.25);
}

.exe-admin-user-initial {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #171a20;
    color: #ffffff;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Simple Green / Red Online Presence Dot */
.exe-presence-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.exe-presence-dot.is-online {
    background-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.exe-presence-dot.is-offline {
    background-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18);
}

.exe-avatar-presence {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    border: 2px solid #ffffff;
}

body.light-mode .exe-avatar-presence {
    border-color: #0d0f14;
}

.exe-admin-user-info {
    flex: 1;
    min-width: 0;
}

.exe-admin-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 2px;
}

.exe-admin-user-name {
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

body:not(.light-mode) .exe-admin-user-name {
    color: #111111;
}

body.light-mode .exe-admin-user-name {
    color: #ffffff;
}

.exe-user-crown-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.18));
}

.exe-presence-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.exe-presence-pill.is-online {
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
}

body.light-mode .exe-presence-pill.is-online {
    background: rgba(22, 163, 74, 0.18);
    color: #4ade80;
}

.exe-presence-pill.is-offline {
    background: rgba(239, 68, 68, 0.09);
    color: #dc2626;
}

body.light-mode .exe-presence-pill.is-offline {
    background: rgba(239, 68, 68, 0.16);
    color: #f87171;
}

.exe-admin-user-email {
    font-size: 0.8rem;
    margin-bottom: 4px;
    word-break: break-all;
}

body:not(.light-mode) .exe-admin-user-email {
    color: #475569;
}

body.light-mode .exe-admin-user-email {
    color: #94a3b8;
}

.exe-admin-login-line {
    font-size: 0.75rem;
    margin-bottom: 7px;
}

body:not(.light-mode) .exe-admin-login-line {
    color: #334155;
}

body.light-mode .exe-admin-login-line {
    color: #cbd5e1;
}

.exe-admin-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.exe-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.69rem;
    line-height: 1.35;
    font-family: var(--font-main);
}

body:not(.light-mode) .exe-meta-chip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
}

body:not(.light-mode) .exe-meta-chip strong {
    color: #0f172a;
}

body.light-mode .exe-meta-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}

body.light-mode .exe-meta-chip strong {
    color: #f8fafc;
}

.exe-uid-copy-chip {
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.exe-uid-copy-chip:hover {
    border-color: #dcb360 !important;
}

/* Right Column: Subscription Countdown & Give/Take Crown Action */
.exe-admin-user-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 152px;
    text-align: right;
}

.exe-sub-status-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.exe-sub-status-top {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.exe-sub-status-box.is-active .exe-sub-status-top {
    color: #b45309;
}

body.light-mode .exe-sub-status-box.is-active .exe-sub-status-top {
    color: #fbbf24;
}

.exe-sub-crown-inline {
    display: inline-flex;
    color: #d4af37;
}

.exe-sub-countdown {
    font-family: var(--font-main);
    font-size: 0.84rem;
    font-weight: 800;
}

body:not(.light-mode) .exe-sub-countdown {
    color: #111111;
}

body.light-mode .exe-sub-countdown {
    color: #ffffff;
}

.exe-sub-status-box.is-expired .exe-sub-status-top {
    color: #dc2626;
}

.exe-sub-status-box.is-none .exe-sub-status-top {
    color: #64748b;
}

.exe-sub-expiry-date {
    font-size: 0.69rem;
    opacity: 0.72;
}

/* Give Crown / Take Crown Buttons */
.exe-btn-crown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.exe-btn-crown-svg {
    display: inline-flex;
    align-items: center;
    color: #dcb360;
}

body:not(.light-mode) .exe-btn-crown-toggle.is-grant {
    background: #171a20;
    color: #ffffff;
    border: 1px solid #171a20;
}

body:not(.light-mode) .exe-btn-crown-toggle.is-grant:hover {
    background: #000000;
    border-color: #000000;
    transform: translateY(-1px);
}

body.light-mode .exe-btn-crown-toggle.is-grant {
    background: #ffffff;
    color: #171a20;
    border: 1px solid #ffffff;
}

body.light-mode .exe-btn-crown-toggle.is-grant .exe-btn-crown-svg {
    color: #b78a28;
}

body.light-mode .exe-btn-crown-toggle.is-grant:hover {
    background: #f1f5f9;
    border-color: #f1f5f9;
    transform: translateY(-1px);
}

.exe-btn-crown-toggle.is-revoke {
    background: transparent;
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.4);
}

.exe-btn-crown-toggle.is-revoke:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

@media (max-width: 680px) {
    .exe-admin-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .exe-admin-stat-card {
        padding: 10px 6px;
    }
    .exe-admin-stat-label {
        font-size: 0.6rem;
    }
    .exe-admin-stat-value {
        font-size: 1.15rem;
    }
    .exe-admin-filter-group {
        width: 100%;
    }
    .exe-admin-user-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .exe-admin-user-side {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-width: 0;
        padding-top: 10px;
        border-top: 1px solid rgba(128, 128, 128, 0.16);
        text-align: left;
    }
    .exe-sub-status-box {
        align-items: flex-start;
    }
}

.portal-admin-actions-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
}

.btn-admin-panel-action {
    width: 100%;
    height: 42px;
    background: #171a20;
    color: #ffffff;
    border: 1px solid #171a20;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.light-mode .btn-admin-panel-action {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.btn-admin-panel-action:hover {
    background: #000000;
    border-color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Mobile Drawer Human / Shield / Login Icon Size & Color Matching Globe */
.mobile-menu .login-trigger-container,
#mobile-login-trigger-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mobile-menu svg.login-icon,
.mobile-menu #mobile-admin-trigger,
#mobile-login-trigger-wrap svg.login-icon,
.mobile-actions-row svg.login-icon {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
    stroke-width: 1.8 !important;
    box-sizing: border-box !important;
}

body:not(.light-mode) .mobile-menu .login-icon,
body:not(.light-mode) .mobile-menu #mobile-admin-trigger,
body:not(.light-mode) #mobile-login-trigger-wrap .login-icon,
body:not(.light-mode) .mobile-actions-row svg.login-icon {
    stroke: #ffffff !important;
}

body.light-mode .mobile-menu .login-icon,
body.light-mode .mobile-menu #mobile-admin-trigger,
body.light-mode #mobile-login-trigger-wrap .login-icon,
body.light-mode .mobile-actions-row svg.login-icon {
    stroke: #171a20 !important;
}


/* In-chat interactive tool launcher buttons */
.exe-chat-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 6px 6px 4px 0 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    width: auto !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    cursor: pointer !important;
    font-family: var(--font-main, sans-serif) !important;
    transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
    user-select: none !important;
    box-sizing: border-box !important;
}

.exe-chat-action-btn svg {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    max-width: 10px !important;
    fill: currentColor !important;
    stroke: none !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.exe-chat-action-btn span {
    display: inline-block !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.exe-chat-action-btn:hover {
    transform: translateY(-1.5px) !important;
}

.exe-chat-action-btn:active {
    transform: scale(0.97) !important;
}

body:not(.light-mode) .exe-chat-action-btn {
    background-color: #171a20 !important;
    color: #ffffff !important;
    border: 1px solid #171a20 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

body:not(.light-mode) .exe-chat-action-btn:hover {
    background-color: #000000 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

body.light-mode .exe-chat-action-btn {
    background-color: #ffffff !important;
    color: #0a0a0a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .exe-chat-action-btn:hover {
    background-color: #f1f5f9 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}


/* ==========================================================================
   EXE ACQUISITIONS: LOGGED-IN USER PORTAL MENU & USER PROFILE MODAL
   (Matches 1:1 Monochrome Inverted Container Theme Used Everywhere Else)
   ========================================================================== */
.portal-user-logged-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 2px 0;
    animation: portalFadeIn 0.18s ease-in-out forwards;
}

.portal-user-email-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef0f4;
}

.portal-user-email-wrap {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1;
}

.portal-user-email-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.55);
    flex-shrink: 0;
}

.portal-user-email-text {
    font-family: var(--font-main);
    font-size: 0.84rem;
    font-weight: 600;
    color: #171a20;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-user-email-crown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    flex-shrink: 0;
}

.portal-user-email-bar .portal-admin-shield-btn {
    position: static !important;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.portal-user-actions-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portal-user-actions-menu .portal-signout-btn {
    margin-top: 8px;
}

.exe-avatar-presence {
    z-index: 10 !important;
}

/* User Profile Popout Container (1:1 Tool & Admin Dashboard Modal Architecture) */
#user-profile-modal .exe-user-profile-modal {
    max-width: 580px !important;
    width: 95% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    text-align: left !important;
}

.exe-profile-hero-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.exe-profile-avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(128, 128, 128, 0.25);
    flex-shrink: 0;
}

.exe-profile-initial-lg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 800;
    background: #171a20;
    color: #ffffff;
    border: 1px solid rgba(128, 128, 128, 0.25);
    flex-shrink: 0;
}

body.light-mode .exe-profile-initial-lg {
    background: #ffffff;
    color: #171a20;
}

.exe-profile-hero-details {
    min-width: 0;
    flex: 1;
}

.exe-profile-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.exe-profile-display-name {
    font-family: var(--font-main);
    font-size: 1.15rem;
    font-weight: 800;
}

body:not(.light-mode) .exe-profile-display-name {
    color: #111111;
}

body.light-mode .exe-profile-display-name {
    color: #ffffff;
}

.exe-profile-edit-btn {
    border-radius: 6px;
    padding: 4px 10px;
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.18s ease;
}

body:not(.light-mode) .exe-profile-edit-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
}

body:not(.light-mode) .exe-profile-edit-btn:hover {
    background: #171a20;
    border-color: #171a20;
    color: #ffffff;
}

body.light-mode .exe-profile-edit-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #e2e8f0;
}

body.light-mode .exe-profile-edit-btn:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #171a20;
}

.exe-profile-email-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.86rem;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

body:not(.light-mode) .exe-profile-email-row {
    color: #1f2937;
    font-weight: 500;
}

body.light-mode .exe-profile-email-row {
    color: #e5e7eb;
    font-weight: 500;
}

.exe-profile-section-label {
    font-family: var(--font-main);
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 10px;
}

body:not(.light-mode) .exe-profile-section-label {
    color: #334155;
}

body.light-mode .exe-profile-section-label {
    color: #e2e8f0;
}

.exe-profile-sub-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.exe-profile-sub-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.98rem;
    margin-bottom: 4px;
}

body:not(.light-mode) .exe-profile-sub-heading {
    color: #111111;
}

body.light-mode .exe-profile-sub-heading {
    color: #ffffff;
}

.exe-profile-sub-desc {
    font-size: 0.84rem;
    line-height: 1.45;
    font-weight: 500;
}

body:not(.light-mode) .exe-profile-sub-desc {
    color: #1f2937;
}

body.light-mode .exe-profile-sub-desc {
    color: #e5e7eb;
}

#user-profile-modal .exe-profile-sub-btn {
    height: 40px !important;
    padding: 0 18px !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.05em !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    width: auto !important;
}

.exe-profile-name-edit-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.exe-profile-name-input {
    flex: 1;
    min-width: 170px;
    margin: 0 !important;
    padding: 7px 11px !important;
    font-size: 0.88rem !important;
}

@media (max-width: 560px) {
    .exe-profile-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .exe-profile-sub-panel {
        flex-direction: column;
        align-items: stretch;
    }
    #user-profile-modal .exe-profile-sub-btn {
        width: 100% !important;
    }
}

body.light-mode #user-profile-modal .portal-signout-btn {
    border-color: rgba(248, 113, 113, 0.35);
    color: #f87171;
}

body.light-mode #user-profile-modal .portal-signout-btn:hover {
    background: rgba(239, 68, 68, 0.14);
    border-color: #f87171;
}

body:not(.light-mode) #subscribe-modal .data-panel > span {
    color: #334155 !important;
}

body.light-mode #subscribe-modal .data-panel > span {
    color: #e2e8f0 !important;
}

body:not(.light-mode) #subscribe-modal ul,
body:not(.light-mode) #subscribe-modal li {
    color: #1f2937 !important;
    font-weight: 500;
}

body.light-mode #subscribe-modal ul,
body.light-mode #subscribe-modal li {
    color: #e5e7eb !important;
    font-weight: 500;
}

body:not(.light-mode) #subscribe-modal li strong {
    color: #111111 !important;
    font-weight: 700;
}

body.light-mode #subscribe-modal li strong {
    color: #ffffff !important;
    font-weight: 700;
}

body:not(.light-mode) .exe-admin-dash-subtitle {
    color: #1f2937 !important;
    opacity: 1 !important;
}

body.light-mode .exe-admin-dash-subtitle {
    color: #e5e7eb !important;
    opacity: 1 !important;
}

body.light-mode .exe-presence-pill.is-online {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
}

.exe-sub-modal-tier-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: var(--font-heading) !important;
    font-weight: 300 !important;
    font-size: 0.98rem !important;
    letter-spacing: 1.6px !important;
    line-height: 1.2 !important;
    margin: 0 0 12px 0 !important;
}

body:not(.light-mode) .exe-sub-modal-tier-line {
    color: #111111 !important;
}

body.light-mode .exe-sub-modal-tier-line {
    color: #ffffff !important;
}

body:not(.light-mode) .exe-meta-chip {
    background: #eef2f7;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

body:not(.light-mode) .exe-meta-chip strong {
    color: #000000;
}

body.light-mode .exe-meta-chip {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #e2e8f0;
}

body.light-mode .exe-meta-chip strong {
    color: #ffffff;
}

.exe-sub-price-tag {
    font-family: var(--font-main);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: center;
    margin: 10px 0 6px 0;
}

body:not(.light-mode) .exe-sub-price-tag {
    color: #111111 !important;
}

body.light-mode .exe-sub-price-tag {
    color: #ffffff !important;
}

.portal-user-email-crown svg,
.exe-user-crown-badge svg {
    width: 20px !important;
    height: 17px !important;
}

#portal-subscribe-pro-btn.is-pro-active-btn,
body.light-mode #portal-subscribe-pro-btn.is-pro-active-btn {
    background: transparent !important;
    border: 1.5px solid #171a20 !important;
    color: #171a20 !important;
    opacity: 1 !important;
    pointer-events: none !important;
    cursor: default !important;
    transform: none !important;
    box-shadow: none !important;
}

.exe-toast-container { z-index: 999999 !important; }

/* ==========================================================================
   EXE Pro Tools Lock UI & Subscription Modal Login Gate Styling
   ========================================================================== */
.tool-card .btn-admin-action.is-locked-pro-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px;
}

.tool-card .btn-admin-action .exe-tool-lock-icon {
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-card .btn-admin-action:hover .exe-tool-lock-icon {
    transform: scale(1.12);
}

/* Subscription Modal Linked Account Readonly Field */
#sub-email-input[readonly] {
    cursor: default !important;
    user-select: all !important;
}

body:not(.light-mode) #sub-email-input[readonly] {
    background: #f1f5f9 !important;
    color: #171a20 !important;
    border-color: #cbd5e1 !important;
}

body.light-mode #sub-email-input[readonly] {
    background: #111317 !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

#sub-google-sso-btn {
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#sub-google-sso-btn:hover {
    transform: translateY(-1px);
}


@keyframes exeSubFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.exe-sub-fade-in {
    animation: exeSubFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
