.gradient-bg {
    background: linear-gradient(135deg, #0a0e1a 60%, #1a2238 100%);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 40px;
}

.enhanced-card {
    box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.18), 0 1.5px 8px 0 rgba(255, 255, 255, 0.10);
    border-radius: 22px;
    border: 1.5px solid var(--primary-light);
    background: linear-gradient(120deg, rgba(17, 24, 39, 0.98) 80%, rgba(255, 255, 255, 0.07) 100%);
    padding: 3.2rem 3.2rem 2.2rem 3.2rem;
    margin-top: 18px;
    margin-bottom: 18px;
    position: relative;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-surface-hover);
    color: var(--primary);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid var(--primary-light);
    box-shadow: 0 0 0 2px var(--primary-glow);
    transition: background 0.2s, color 0.2s;
}

.step.active {
    background: var(--primary);
    color: #111827;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.step-line {
    width: 38px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}

.required-star {
    color: var(--danger);
    font-size: 1em;
    margin-left: 2px;
    vertical-align: super;
}

.form-helper {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 2px;
    margin-left: 2.2rem;
    display: block;
    line-height: 1.3;
}

.input-error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 2px var(--danger-light) !important;
    background: rgba(255, 77, 109, 0.07) !important;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════════════
   GADGET TECH THEME — Futuristic Dark-First Design
   ═══════════════════════════════════════════════════════ */

:root {
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Orbitron', 'Inter', sans-serif;

    /* ── Core palette: Clean White-Accent Light Theme ── */
    --bg-app: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --bg-header: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --bg-header-text: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;

    /* ── Accent: Black/Dark Slate (White accent template) ── */
    --primary: #0f172a;
    --primary-hover: #1e293b;
    --primary-light: rgba(15, 23, 42, 0.06);
    --primary-glow: rgba(15, 23, 42, 0.12);
    --primary-text: #0f172a;

    --secondary: #e2e8f0;
    --secondary-hover: #cbd5e1;
    --secondary-glow: rgba(0, 0, 0, 0.02);

    --accent-warm: #f97316;
    --accent-pink: #ec4899;

    --success: #059669;
    --success-light: #ecfdf5;
    --success-text: #047857;

    --warning: #d97706;
    --warning-light: #fef3c7;
    --warning-text: #b45309;

    --danger: #dc2626;
    --danger-light: #fef2f2;
    --danger-text: #b91c1c;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);
    --shadow-glow: none;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

/* ═════════════════════════════════════
   RESET & BASE
   ═════════════════════════════════════ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::selection {
    background-color: var(--primary);
    color: #000;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-app);
    color: var(--text-primary);
    line-height: 1.65;
    transition: background-color 0.4s ease, color 0.4s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Subtle dot-grid pattern for tech feel */
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

body.light-mode {
    background-image: none;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

/* ═════════════════════════════════════
   HEADER & NAVIGATION
   ═════════════════════════════════════ */
header {
    background: var(--bg-header);
    color: var(--bg-header-text);
    padding: 0 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    min-height: 68px;
}

header h1 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

header h1 a {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
}

.brand-mark {
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.brand-text {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

nav a {
    color: var(--bg-header-text);
    opacity: 0.75;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    position: relative;
}

nav a:hover {
    opacity: 1;
    color: var(--primary);
    background-color: rgba(255, 255, 255, 0.08);
}

nav a.active {
    opacity: 1;
    color: #000000 !important;
    background-color: #ffffff !important;
    font-weight: 700;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 6px var(--primary);
}

nav a:hover::after,
nav a.active::after {
    width: 60%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
}

.theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    transform: rotate(15deg);
}

.cart-icon-container {
    color: white;
    position: relative;
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ff4d6d, #ff006e);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 77, 109, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.user-greeting {
    color: var(--text-secondary) !important;
}

/* ═════════════════════════════════════
   LAYOUT
   ═════════════════════════════════════ */
main {
    flex: 1;
    padding: 2.5rem 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Dashboard: single-screen layout (no page scroll) */
body.dashboard-page {
    height: 100vh;
    overflow: hidden;
}

body.dashboard-page main {
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    min-height: 0;
}

body.dashboard-page footer {
    padding: 0.9rem 1.4rem;
}

body.dashboard-page footer p {
    font-size: 0.78rem;
}

body.dashboard-page h2 {
    margin-bottom: 0.4rem;
}

.dashboard-header {
    margin-bottom: 0.2rem;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    margin-top: -0.2rem;
    font-size: 0.92rem;
}

body.dashboard-page .stats-grid {
    gap: 1rem;
    margin-bottom: 0;
}

body.dashboard-page .stat-card {
    padding: 1.15rem 1.25rem;
}

body.dashboard-page .stat-card-value {
    font-size: 1.55rem;
}

body.dashboard-page .details-block {
    padding: 1.15rem;
}

body.dashboard-page .details-block-title {
    margin-bottom: 0.7rem;
}

/* Dashboard grid: chart + tabs panel */
.dash-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 1rem;
}

@media (min-width: 1024px) {
    /* ---- Sidebar (fixed) ---- */
    body.admin-layout header {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px;
        height: 100vh;
        z-index: 1000;
        background: var(--bg-surface);
        border-right: 1px solid var(--border-color);
        padding: 0;
        box-shadow: 2px 0 10px rgba(0,0,0,0.03);
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: var(--border-color) transparent;
    }

    body.admin-layout header::-webkit-scrollbar { width: 4px; }
    body.admin-layout header::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }

    body.admin-layout header .header-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 100vh;
        gap: 0;
        padding: 0;
    }

    /* Brand header inside sidebar */
    body.admin-layout header h1 {
        font-size: 1.05rem;
        text-align: center;
        padding: 1.8rem 1.5rem 1.4rem;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 0;
        background: var(--bg-surface);
        letter-spacing: 1.5px;
    }

    body.admin-layout header h1 a {
        color: var(--text-primary);
        font-weight: 800;
        text-decoration: none;
    }

    /* Nav section label */
    body.admin-layout header nav {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        width: 100%;
        padding: 1.2rem 1rem;
        flex: 1;
    }

    body.admin-layout header nav::before {
        content: 'NAVIGATION';
        display: block;
        font-size: 0.63rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        color: var(--text-muted);
        padding: 0 0.8rem;
        margin-bottom: 0.5rem;
    }

    body.admin-layout header nav a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md);
        text-decoration: none;
        color: var(--text-secondary);
        font-weight: 500;
        font-size: 0.88rem;
        transition: all 0.22s ease;
        border-left: 3px solid transparent;
        position: relative;
        overflow: hidden;
    }

    body.admin-layout header nav a::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, var(--primary-light) 0%, transparent 100%);
        opacity: 0;
        transition: opacity 0.2s;
        border-radius: inherit;
    }

    body.admin-layout header nav a:hover { color: var(--text-primary); border-left-color: var(--text-muted); background: var(--bg-surface-hover); }
    body.admin-layout header nav a:hover::before { opacity: 1; }

    body.admin-layout header nav a.active {
        color: var(--text-primary);
        background: var(--bg-surface-hover);
        border-left-color: var(--text-primary);
        font-weight: 600;
        box-shadow: inset 0 0 0 1px var(--border-color);
    }

    body.admin-layout header nav a::after {
        display: none; /* remove bottom underline from sidebar links */
    }

    /* Nav Actions (user info + logout at bottom) */
    body.admin-layout header .nav-actions {
        margin-top: auto;
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
        width: 100%;
        border-top: 1px solid var(--border-color);
        padding: 1.2rem 1rem;
        align-items: stretch;
        background: var(--bg-surface);
    }

    body.admin-layout header .nav-actions .user-greeting {
        font-size: 0.82rem;
        color: var(--text-secondary) !important;
        font-weight: 500;
        padding: 0.5rem 0.75rem;
        background: var(--bg-surface-hover);
        border-radius: var(--radius-sm);
        border: 1px solid var(--border-color);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        display: block !important;
        vertical-align: unset;
        margin-left: 0 !important;
    }

    body.admin-layout header .theme-toggle-btn {
        align-self: center;
        background: var(--bg-surface-hover);
        border-color: var(--border-color);
    }

    body.admin-layout header .nav-actions .logout-link {
        width: 100%;
        text-align: center;
        background: rgba(239,68,68,0.1) !important;
        border-color: rgba(239,68,68,0.25) !important;
        color: #f87171 !important;
        border-radius: var(--radius-md);
        padding: 0.6rem;
        font-weight: 600;
        font-size: 0.85rem;
        transition: all 0.2s ease;
        display: block;
    }

    body.admin-layout header .nav-actions .logout-link:hover {
        background: rgba(239,68,68,0.2) !important;
        color: #fca5a5 !important;
        transform: none;
    }

    /* Main content offset */
    body.admin-layout main {
        margin-left: 260px;
        flex: 1;
        padding: 2.5rem;
        min-height: 100vh;
        max-width: none;
    }

    body.admin-layout footer {
        margin-left: 260px;
        border-left: 1px solid var(--border-color);
        padding: 1rem 2.5rem;
    }
}

@media (max-width: 700px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }

    body.dashboard-page main {
        padding: 0.9rem 1rem;
        gap: 0.75rem;
    }

    body.dashboard-page footer {
        padding: 0.75rem 1rem;
    }

    body.dashboard-page .stat-card {
        padding: 0.95rem 1rem;
    }
}

.dash-chart-block,
.dash-tabs-block {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.dash-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.dash-chart-toggle {
    display: inline-flex;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 210, 255, 0.12);
    padding: 0.3rem;
    border-radius: 14px;
}

.dash-toggle {
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.74rem;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.dash-toggle.active {
    color: #07121f;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.dash-toggle:focus-visible {
    outline: 3px solid var(--primary-glow);
    outline-offset: 2px;
}

.dash-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.dash-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.dash-dot.dot-orders {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.10);
}

.dash-dot.dot-sales {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.dash-chart {
    width: 100%;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(0, 210, 255, 0.10);
}

.dash-chart-foot {
    margin-top: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.dash-foot-link {
    color: var(--primary);
    font-weight: 700;
}

.dash-tabs-head {
    display: flex;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 210, 255, 0.10);
    padding: 0.35rem;
    border-radius: 14px;
    margin-bottom: 0.8rem;
}

.dash-tab {
    flex: 1;
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary);
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.dash-tab.active {
    color: #07121f;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.dash-tab-panel {
    display: none;
    min-height: 0;
}

.dash-tab-panel.active {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.dash-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(0, 210, 255, 0.10);
}

.dash-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 0;
    font-weight: 600;
}

/* ═════════════════════════════════════
   TYPOGRAPHY
   ═════════════════════════════════════ */
h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-transform: uppercase;
}

h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
}

/* ═════════════════════════════════════
   PRODUCT CARDS GRID
   ═════════════════════════════════════ */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 1.5rem;
}

.product {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.product:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.product:hover::before {
    opacity: 1;
}

.product-image-wrapper {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03));
    border-radius: var(--radius-md);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-mode .product-image-wrapper {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-color: #e2e8f0;
}

.product img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product:hover img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

.product h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-main);
    text-transform: none;
    letter-spacing: 0;
}

.product-meta {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
}

.product-price {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.2rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.product-actions {
    margin-top: auto;
    display: flex;
    gap: 0.8rem;
    width: 100%;
}

.product-actions a,
.product-actions button {
    flex: 1;
    text-align: center;
}

/* ═════════════════════════════════════
   FILTER BAR
   ═════════════════════════════════════ */
.filter-bar {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.filter-bar input[type="text"],
.filter-bar select {
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-app);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    min-width: 200px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ═════════════════════════════════════
   PRODUCT DETAIL VIEW
   ═════════════════════════════════════ */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 1.5rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
}

.detail-image-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

body.light-mode .detail-image-box {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.detail-image-box img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.detail-info-box {
    display: flex;
    flex-direction: column;
}

.detail-info-box h2 {
    font-family: var(--font-main);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: -0.3px;
}

.detail-category {
    color: var(--primary);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-family: var(--font-display);
}

.detail-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

.detail-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.detail-stock {
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.detail-actions {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

/* Product reviews */
.product-reviews {
    margin-top: 3.5rem;
    padding: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.reviews-heading,
.review-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.reviews-heading h3 { margin: 0; }
.reviews-eyebrow { margin: 0 0 .3rem; color: var(--primary); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.review-summary { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: .55rem; text-align: right; }
.review-summary strong { font-size: 1.7rem; line-height: 1; }
.review-summary > span:last-child { grid-column: 1 / -1; color: var(--text-secondary); font-size: .82rem; }
.review-stars { color: #cbd5e1; letter-spacing: .08em; white-space: nowrap; }
.review-stars .is-filled { color: #f59e0b; }

.review-form {
    max-width: none;
    margin: 1.75rem 0;
    padding: 1.5rem;
    box-shadow: none;
    background: var(--bg-light);
}
.review-form h4 { margin: 0 0 .25rem; }
.review-form p { margin-top: 0; color: var(--text-secondary); }
.rating-input { border: 0; padding: 0; margin: 1.25rem 0; }
.rating-input legend { margin-bottom: .5rem; font-weight: 600; }
.rating-options { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.rating-options input { position: absolute; opacity: 0; }
.rating-options label { margin: 0; color: #cbd5e1; cursor: pointer; font-size: 2rem; line-height: 1; transition: color .15s ease, transform .15s ease; }
.rating-options label:hover,
.rating-options label:hover ~ label,
.rating-options input:checked ~ label { color: #f59e0b; }
.rating-options input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 3px; }
.review-comment-group { margin-bottom: 1rem; }
.review-comment-group label span { color: var(--text-secondary); font-weight: 400; text-transform: none; letter-spacing: 0; }
.review-comment-group textarea { width: 100%; resize: vertical; }
.review-notice, .review-empty { color: var(--text-secondary); margin: 1.5rem 0; }
.review-list { display: grid; gap: 1rem; margin-top: 1.75rem; }
.review-card { padding: 1.25rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.review-card-header strong { display: block; }
.review-card-header time { color: var(--text-secondary); font-size: .82rem; white-space: nowrap; }
.verified-review { color: var(--success); font-size: .78rem; }
.review-card .review-stars { margin: .65rem 0 .35rem; font-size: .95rem; }
.review-card p { margin: 0; white-space: pre-line; color: var(--text-secondary); line-height: 1.6; }
.review-pagination { margin-top: 1.5rem; }

@media (max-width: 600px) {
    .product-reviews { padding: 1.25rem; }
    .reviews-heading { align-items: flex-start; flex-direction: column; }
    .review-summary { text-align: left; }
}

/* ═════════════════════════════════════
   FORMS
   ═════════════════════════════════════ */
form {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 550px;
    width: 100%;
    margin: 2rem auto;
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 1px;
    text-transform: uppercase;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* ── Auth Form Layout ── */
.auth-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
}

.auth-form .form-group {
    flex: 1 1 250px;
    /* allows shrinking and growing */
    min-width: 100px;
}

/* full-width groups (e.g., terms, submit button) occupy full row */
.auth-form .form-group.full-width {
    flex-basis: 100%;
    margin-bottom: 1.5rem;
}


form input[type="text"],
form input[type="number"],
form input[type="password"],
form input[type="email"],
form input[type="file"],
form textarea,
form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-main);
    background-color: var(--bg-app);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

form input:focus,
form textarea:focus,
form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow), 0 0 20px rgba(255, 255, 255, 0.08);
}

form button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
}

.form-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-footer-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.form-footer-text a:hover {
    text-decoration: underline;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* ═════════════════════════════════════
   BUTTONS
   ═════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    font-family: var(--font-main);
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.25s ease;
    gap: 0.5rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
    background: #ffffff;
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
    color: #000;
}

body.light-mode .btn-primary {
    background: var(--primary);
    color: #fff;
}

body.light-mode .btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
}

.btn-secondary {
    background-color: var(--bg-app);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4d6d 0%, #e63956 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff6680 0%, #ff4d6d 100%);
    box-shadow: 0 6px 25px rgba(255, 77, 109, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #00e68a 0%, #00cc7a 100%);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 230, 138, 0.2);
}

.btn-success:hover {
    background: linear-gradient(135deg, #33eca1 0%, #00e68a 100%);
    box-shadow: 0 6px 25px rgba(0, 230, 138, 0.3);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
    border-radius: 6px;
}

/* ═════════════════════════════════════
   BADGES
   ═════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background-color: var(--success-light);
    color: var(--success-text);
    border: 1px solid rgba(0, 230, 138, 0.2);
}

.badge-warning {
    background-color: var(--warning-light);
    color: var(--warning-text);
    border: 1px solid rgba(255, 190, 11, 0.2);
}

.badge-danger {
    background-color: var(--danger-light);
    color: var(--danger-text);
    border: 1px solid rgba(255, 77, 109, 0.2);
}

.badge-info {
    background-color: var(--primary-light);
    color: var(--primary-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ═════════════════════════════════════
   ORDER STATUS BADGES
   ═════════════════════════════════════ */
.status-badge {
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.status-pending {
    background: var(--warning-light);
    color: var(--warning-text);
    border: 1px solid rgba(255, 190, 11, 0.2);
}

.status-confirmed {
    background: var(--primary-light);
    color: var(--primary-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-ready {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.status-shipped {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.status-delivered {
    background: var(--success-light);
    color: var(--success-text);
    border: 1px solid rgba(0, 230, 138, 0.2);
}

.status-cancelled {
    background: var(--danger-light);
    color: var(--danger-text);
    border: 1px solid rgba(255, 77, 109, 0.2);
}

/* ═════════════════════════════════════
   TABLES
   ═════════════════════════════════════ */
.table-wrapper {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin: 1.5rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1.1rem 1.5rem;
    border-bottom: 2px solid var(--border-color);
    font-family: var(--font-display);
}

body.light-mode th {
    background-color: #ffffff;
    color: #0f172a;
}

td {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.93rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

body.light-mode tr:hover td {
    background-color: #ffffff;
}

/* ═════════════════════════════════════
   ALERTS
   ═════════════════════════════════════ */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.alert-success {
    background-color: var(--success-light);
    color: var(--success-text);
    border-left: 4px solid var(--success);
}

.alert-danger {
    background-color: var(--danger-light);
    color: var(--danger-text);
    border-left: 4px solid var(--danger);
}

/* ═════════════════════════════════════
   SHOPPING CART
   ═════════════════════════════════════ */
.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 992px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
}

.cart-list {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.02);
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: var(--radius-sm);
}

.cart-item-image {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

body.light-mode .cart-item-image {
    background: #ffffff;
}

.cart-item-image img {
    max-height: 85%;
    max-width: 85%;
    object-fit: contain;
}

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

.cart-item-name {
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 0.8rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-qty-input {
    width: 50px;
    padding: 0.3rem;
    text-align: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-app);
    color: var(--text-primary);
    font-family: var(--font-main);
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.cart-qty-input::-webkit-inner-spin-button,
.cart-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-stepper-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    user-select: none;
    -webkit-user-select: none;
}

.qty-stepper-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}


.cart-summary {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    font-weight: 800;
    font-size: 1.25rem;
    border-bottom: none;
    color: var(--primary);
    font-family: var(--font-display);
}

/* ═════════════════════════════════════
   CHATBOT
   ═════════════════════════════════════ */
.chatbot-box {
    display: flex;
    flex-direction: column;
    height: 550px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 1.5rem auto;
}

.chatbot-header {
    background: linear-gradient(135deg, #0d1224 0%, #1a2238 100%);
    color: var(--primary);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--bg-app);
    background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
}

.message {
    max-width: 75%;
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-lg);
    font-size: 0.93rem;
    line-height: 1.5;
    animation: slideIn 0.25s ease-out;
}

.message-bot {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.message-user {
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    color: #000;
    font-weight: 500;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

body.light-mode .message-user {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
}

.chatbot-input-area {
    padding: 1rem;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.8rem;
}

/* Chat page (customer/chatbot.php) refinements */
.chatbot-page-heading {
    max-width: 800px;
    margin: 1.8rem auto 0.4rem auto;
    padding: 0 1rem;
}

.chatbot-page-heading-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chatbot-page-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    font-size: 1.4rem;
}

.chatbot-page-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: 1.2px;
    color: var(--primary);
    text-transform: uppercase;
}

.chatbot-page-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.chatbot-page-messages {
    height: 380px;
}

.chatbot-page-first-bot-message {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.chatbot-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 60%, #e2e8f0 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.10);
}

.chatbot-avatar-user {
    background: linear-gradient(135deg, #e2e8f0 60%, #ffffff 100%);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.10);
}

.chatbot-page-input-area {
    background: transparent;
    border-top: none;
    padding: 0.9rem 1.2rem;
}

.chatbot-page-typing {
    color: var(--text-secondary);
    font-style: italic;
}

.chatbot-send-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.chatbot-page-faq-chips {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

.chatbot-page-message {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.chatbot-message-text {
    white-space: pre-wrap;
}

.chatbot-page-typing {
    display: flex;
    align-items: center;
}

.chatbot-avatar {
    /* Ensure avatars align even in JS-generated messages */
    flex-shrink: 0;
}

.chatbot-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.chatbot-input-icon {
    position: absolute;
    left: 1.2rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 2;
}

.chatbot-input-area input {
    flex: 1;
    padding: 0.75rem 1.2rem 0.75rem 2.8rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-app);
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-main);
    transition: border 0.2s, box-shadow 0.2s;
    width: 100%;
}

.chatbot-input-area input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.chatbot-input-area input:focus~.chatbot-input-icon {
    color: var(--primary);
}

.chatbot-input-area button {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
}

.faq-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
}

.faq-chip {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.82rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.25s;
    color: var(--text-secondary);
}

.faq-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-light);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

/* ═════════════════════════════════════
   FLOATING CHATBOT WIDGET
   ═════════════════════════════════════ */
.chat-widget-btn {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: auto;
    min-width: 196px;
    height: 66px;
    padding: 8px 18px 8px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.35), 0 4px 12px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    z-index: 1000;
    border: 2px solid rgba(255, 255, 255, 0.88);
    transition: transform 0.22s ease, box-shadow 0.22s ease, min-width 0.25s ease, padding 0.25s ease;
    isolation: isolate;
    animation: chat-launcher-arrive 0.6s cubic-bezier(0.16, 1, 0.3, 1), chat-launcher-attention 2.8s ease-in-out 0.8s 3;
}

.chat-widget-btn::before {
    content: '';
    position: absolute;
    inset: -7px;
    z-index: -1;
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: inherit;
    opacity: 0;
    animation: chat-launcher-ring 2.8s ease-out 1s 3;
}

.chat-widget-btn:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #1d4ed8 0%, #3730a3 100%);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.44), 0 6px 16px rgba(15, 23, 42, 0.2);
    animation: none;
}

.chat-widget-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.chat-widget-btn:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 4px;
}

.chat-launcher-icon {
    position: relative;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.chat-launcher-icon svg {
    position: absolute;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.chat-launcher-close-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
}

.chat-launcher-online {
    position: absolute;
    right: -1px;
    bottom: 1px;
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.chat-launcher-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    opacity: 1;
    transition: max-width 0.25s ease, opacity 0.15s ease;
    max-width: 145px;
}

.chat-launcher-copy strong {
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.chat-launcher-copy small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.69rem;
    font-weight: 600;
}

.chat-widget-btn[aria-expanded='true'] {
    min-width: 66px;
    width: 66px;
    padding: 8px;
}

.chat-widget-btn[aria-expanded='true'] .chat-launcher-copy {
    max-width: 0;
    opacity: 0;
}

.chat-widget-btn[aria-expanded='true'] .chat-launcher-chat-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
}

.chat-widget-btn[aria-expanded='true'] .chat-launcher-close-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.chat-widget-btn[aria-expanded='true'] .chat-launcher-online {
    opacity: 0;
}

@keyframes chat-launcher-arrive {
    from { opacity: 0; transform: translateY(18px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes chat-launcher-attention {
    0%, 100% { transform: translateY(0); }
    12% { transform: translateY(-5px); }
    24% { transform: translateY(0); }
}

@keyframes chat-launcher-ring {
    0% { opacity: 0; transform: scale(0.94); }
    18% { opacity: 1; }
    65%, 100% { opacity: 0; transform: scale(1.08); }
}

.chat-widget-container {
    position: fixed;
    bottom: 108px;
    right: 26px;
    width: 380px;
    height: 500px;
    border-radius: var(--radius-lg);
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-widget-container.hidden {
    display: none;
}

/* Widget header refinements (professional layout + close button) */
.chatbot-widget-header {
    justify-content: space-between;
}

.chatbot-widget-header .chatbot-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.chatbot-header-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chatbot-header-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--text-primary);
    text-transform: none;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chatbot-header-subtitle {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: none;
    line-height: 1.2;
}

.chatbot-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(0, 230, 138, 0.14);
}

.chatbot-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.18s ease;
}

.chatbot-close-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
}

.chatbot-send-btn {
    padding: 0.6rem 1.1rem;
    margin: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Typing indicator (widget) */
.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 16px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.75;
    animation: typingDot 1.15s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingDot {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.55;
    }

    40% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .chat-widget-btn {
        right: 16px;
        bottom: 18px;
        min-width: 62px;
        width: 62px;
        height: 62px;
        padding: 7px;
    }

    .chat-launcher-copy {
        display: none;
    }

    .chat-widget-container {
        width: calc(100% - 24px);
        right: 12px;
        bottom: 92px;
        height: min(520px, calc(100dvh - 116px));
    }
}

/* Keep admin content in its own scroll layer beneath the compact header. */
@media (max-width: 1023px) {
    body.admin-layout {
        height: 100dvh !important;
        overflow: hidden !important;
    }

    body.admin-layout header {
        position: relative !important;
        z-index: 1100;
        background: var(--bg-header);
        isolation: isolate;
    }

    body.admin-layout main,
    body.admin-layout.dashboard-page main {
        position: relative;
        z-index: 0;
        height: calc(100dvh - 68px) !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
        scrollbar-gutter: stable;
    }
}

/* Floating widget: keep typing area clearly visible and pinned */
#chat-widget-container.chat-widget-container:not(.hidden) {
    display: flex;
    flex-direction: column;
}

/* Ensure .hidden wins even against ID selectors */
#chat-widget-container.chat-widget-container.hidden {
    display: none;
}

#chat-widget-messages.chatbot-messages {
    flex: 1 1 auto;
    min-height: 0;
    /* prevents flex overflow issues */
}

#chat-widget-form.chatbot-input-area {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.8rem !important;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-surface) !important;
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
}

/* Widget input style: pill + round send button (like the reference) */
#chat-widget-form .chatbot-input-wrapper {
    align-items: center;
    border-radius: 999px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

#chat-widget-form .chatbot-input-icon {
    display: none;
}

#chat-widget-form #chat-widget-input {
    min-height: 44px;
    border: none;
    background: var(--bg-app);
    color: var(--text-primary);
    padding: 0.72rem 1.05rem;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(0, 210, 255, 0.12);
}

#chat-widget-form #chat-widget-input::placeholder {
    color: var(--text-muted);
}

#chat-widget-form #chat-widget-input:focus {
    box-shadow: inset 0 0 0 1px rgba(0, 210, 255, 0.2), 0 0 0 4px var(--primary-glow);
}

/* Round send button */
#chat-widget-form .chatbot-send-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: 1px solid rgba(0, 210, 255, 0.22);
    color: #07121f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(255, 255, 255, 0.06);
}

#chat-widget-form .chatbot-send-btn span {
    display: none;
}

#chat-widget-form .chatbot-send-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

#chat-widget-form .chatbot-send-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    border-color: rgba(0, 210, 255, 0.35);
}

#chat-widget-form .chatbot-send-btn:active {
    transform: translateY(0);
}

/* Light mode: keep input readable */
body.light-mode #chat-widget-form #chat-widget-input {
    background: #ffffff;
    color: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(2, 132, 199, 0.25);
}

body.light-mode #chat-widget-form #chat-widget-input::placeholder {
    color: rgba(15, 23, 42, 0.55);
}


/* ═════════════════════════════════════
   ADMIN DASHBOARD KPI CARDS
   ═════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md), var(--shadow-glow);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #e2e8f0);
}

.stat-card-title {
    font-family: var(--font-display);
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: 1.5px;
}

.stat-card-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.stat-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* ═════════════════════════════════════
   IMAGE PREVIEW
   ═════════════════════════════════════ */
.image-preview-box {
    width: 100%;
    height: 150px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    overflow: hidden;
    background-color: var(--bg-app);
    transition: border-color 0.3s;
}

.image-preview-box:hover {
    border-color: var(--primary);
}

.image-preview-box img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
}

/* ═════════════════════════════════════
   ORDER DETAILS
   ═════════════════════════════════════ */
.order-details-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .order-details-meta {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.details-block {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.details-block-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    color: var(--primary);
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.details-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.details-row-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ═════════════════════════════════════
   ANIMATIONS
   ═════════════════════════════════════ */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

@keyframes popUp {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

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

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }
}

/* ═════════════════════════════════════
   TABLE HIGHLIGHTING
   ═════════════════════════════════════ */
.row-highlight-warning {
    background-color: var(--warning-light) !important;
}

.row-highlight-danger {
    background-color: var(--danger-light) !important;
}

/* ═════════════════════════════════════
   FOOTER
   ═════════════════════════════════════ */
footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    margin-top: auto;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.4;
}

footer p {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* ═════════════════════════════════════
   SCROLLBAR (WebKit)
   ═════════════════════════════════════ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-app);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ═════════════════════════════════════
   RESPONSIVE TWEAKS & MOBILE SYSTEM
   ═════════════════════════════════════ */
.menu-toggle-btn {
    display: none;
}

@media (max-width: 992px) {
    .header-container {
        flex-wrap: nowrap;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0 1rem;
    }

    .header-container {
        min-height: 60px;
        position: relative;
        justify-content: space-between;
    }

    header h1 {
        font-size: 1.15rem;
        margin: 0;
    }

    /* Menu Toggle Hamburger styling */
    .menu-toggle-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 22px;
        height: 16px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 105;
        order: 1;
        /* Place on far right or left */
    }

    .menu-toggle-btn .hamburger-bar {
        width: 100%;
        height: 2px;
        background-color: var(--primary);
        transition: all 0.3s ease;
        border-radius: 1px;
        box-shadow: 0 0 6px var(--primary);
    }

    /* Animate Hamburger bars into X */
    .menu-toggle-btn.active .hamburger-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle-btn.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle-btn.active .hamburger-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Convert desktop nav to full-width mobile drop-down drawer */
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        border-bottom: 2px solid var(--primary);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        box-shadow: var(--shadow-xl);
        backdrop-filter: blur(12px);
        z-index: 101;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        box-sizing: border-box;
    }

    nav.active {
        display: flex !important;
    }

    nav a {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: var(--radius-sm);
        box-sizing: border-box;
    }

    nav a:last-child {
        border-bottom: none;
    }

    nav a::after {
        display: none;
        /* Hide standard slide-bar underline on mobile menu */
    }

    .nav-actions {
        order: 2;
        gap: 0.6rem;
    }

    .user-greeting {
        display: none !important;
        /* Hide full username greetings to save screen real estate */
    }

    main {
        padding: 1.5rem 1rem;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    /* Stack grid structures on mobile devices */
    .order-details-meta,
    .order-details-meta>div,
    .details-block[style*="display: grid"],
    div[style*="display: grid"],
    div[style*="display:grid"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Stack product catalog lists cleanly */
    .products {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
        gap: 1.2rem;
    }

    /* Stats summary KPI blocks in admin dashboards */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }

    /* Adjust checkout / details panels */
    form {
        padding: 1.5rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .products {
        grid-template-columns: 1fr !important;
    }

    /* Keep header compact on very small phones */
    .header-container {
        gap: 0.5rem;
    }

    header h1 {
        font-size: 1.05rem;
    }

    .nav-actions .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* ═════════════════════════════════════
   TABLE MOBILE RESPONSIVENESS OVERRIDES
   ═════════════════════════════════════ */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

table th {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0.9rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

table td {
    padding: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
    font-size: 0.88rem;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background-color: var(--bg-surface-hover);
}

/* ═════════════════════════════════════
   ADMIN FAQ TABLE (for admin/faq.php)
   ═════════════════════════════════════ */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-table th {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.93rem;
    color: var(--text-primary);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Container class for admin/faq.php */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* ═════════════════════════════════════
   HERO BANNER & BEST SELLERS SHOWCASE
   ═════════════════════════════════════ */
.hero-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(13, 18, 30, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3.5rem 4rem;
    margin-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow), var(--shadow-xl);
    gap: 3rem;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.15);
        opacity: 0.9;
    }
}

.hero-content {
    flex: 1.2;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.hero-banner h2 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 70%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-banner p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-visual {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.floating-tech-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 280px;
    text-align: center;
    box-shadow: var(--shadow-glow), var(--shadow-xl);
    animation: floatCard 4s infinite ease-in-out;
    position: relative;
}

@keyframes floatCard {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.tech-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px var(--primary));
    animation: spinSlow 20s infinite linear;
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Featured Best Sellers Section */
.featured-section {
    margin-bottom: 4rem;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, var(--primary) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.featured-card {
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(17, 24, 39, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    opacity: 0.8;
}

.featured-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.best-seller-tag {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 800;
    color: #000;
    background: var(--primary);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary-glow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

@media (max-width: 992px) {
    .hero-banner {
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 2rem;
        text-align: center;
    }

    .hero-banner p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-banner h2 {
        font-size: 2.2rem;
    }
}

/* ═════════════════════════════════════
   AUTH PAGES (Login & Register)
   ═════════════════════════════════════ */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.auth-card {
    background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(17, 24, 39, 0.85) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    backdrop-filter: blur(16px);
    position: relative;
    box-sizing: border-box;
    animation: slideIn 0.4s ease-out;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.8;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"],
.auth-form input[type="tel"],
.auth-form textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(10, 14, 26, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.auth-form textarea {
    resize: vertical;
    min-height: 80px;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="tel"]:focus,
.auth-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 12px var(--primary-glow);
    background: rgba(10, 14, 26, 0.8);
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    cursor: pointer;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.auth-error {
    background: var(--danger-light);
    border: 1px solid rgba(255, 77, 109, 0.2);
    color: var(--danger-text);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-success {
    background: var(--success-light);
    border: 1px solid rgba(0, 230, 138, 0.22);
    color: var(--success-text);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

/* Login-only alignment (match reference layout) */
body.auth-login-page .auth-wrapper {
    min-height: calc(100vh - 120px);
}

body.auth-login-page .gradient-bg {
    background: #f8fafc;
    padding-top: 24px;
    padding-bottom: 24px;
}

body.auth-login-page .auth-card.login-card {
    background: #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.15);
    box-shadow: 0 14px 45px rgba(2, 6, 23, 0.12);
    max-width: 520px;
    padding: 2.6rem 3rem 2.1rem;
}

body.auth-login-page .auth-card.login-card::before {
    display: none;
}

body.auth-login-page .auth-brand-icon {
    display: none;
}

body.auth-login-page .auth-header {
    margin-bottom: 1.6rem;
}

body.auth-login-page .auth-header h2 {
    font-family: var(--font-main);
    -webkit-text-fill-color: unset;
    color: #0f172a;
    letter-spacing: 2px;
    font-size: 1.55rem;
    text-transform: uppercase;
}

body.auth-login-page .auth-header p,
body.auth-login-page .auth-subtitle {
    display: none;
}

body.auth-login-page .auth-form label {
    color: #0f172a;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.92rem;
    font-weight: 700;
}

body.auth-login-page .auth-form.register-form .input-icon {
    display: none;
}

body.auth-login-page .register-form .input-wrapper input {
    padding: 0.9rem 1rem;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid rgba(2, 6, 23, 0.18);
    color: #0f172a;
}

body.auth-login-page .register-form .input-wrapper input:focus {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.65);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.18);
}

body.auth-login-page .toggle-password {
    right: 0.7rem;
    color: rgba(15, 23, 42, 0.55);
}

body.auth-login-page .toggle-password:hover {
    color: rgba(15, 23, 42, 0.8);
}

.login-meta-row {
    display: flex;
    align-items: center;
    margin-top: -0.2rem;
    margin-bottom: 0.6rem;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #0f172a;

}

.login-remember input {
    width: 16px;
    height: 16px;
}

body.auth-login-page .login-submit-btn {
    width: 140px;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    margin-top: 0.4rem;
    background: #0b0f19 !important;
    border: 1px solid rgba(2, 6, 23, 0.2) !important;
    color: #fbbf24 !important;
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18);
    letter-spacing: 1px;
}

body.auth-login-page .login-submit-btn svg {
    display: none;
}

body.auth-login-page .auth-footer {
    margin-top: 1.6rem;
    color: rgba(15, 23, 42, 0.8);
}

/* -------------------------------------
   REGISTER PAGE � EXTENDED STYLES
   ------------------------------------- */

/* Wider card for multi-column register form */
.register-card {
    max-width: 680px;
    padding: 2.8rem 3rem;
}

/* Brand icon in auth header */
.auth-brand-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* Section grouping within register form */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.form-section-label svg {
    flex-shrink: 0;
    opacity: 0.85;
}

/* Two-column row */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

@media (max-width: 780px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .register-card {
        padding: 2rem 1.5rem;
    }
}

.register-page-layout {
    display: grid;
    grid-template-columns: minmax(360px, 1.2fr) minmax(420px, 0.9fr);
    gap: 2rem;
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 2.25rem 1rem;
    align-items: center;
    justify-items: center;
    min-height: calc(100vh - 120px);
}

.register-page-layout .register-hero,
.register-page-layout .auth-card {
    width: 100%;
}

.register-page-layout .register-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    color: #ffffff;
    min-height: auto;
}

.register-page-layout .hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: grid;
    place-items: center;
    font-size: 1.85rem;
    font-weight: 900;
    color: #ffffff;
}

.register-page-layout .hero-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.register-page-layout .hero-copy p {
    margin: 0;
    max-width: 450px;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

.register-page-layout .hero-note {
    max-width: 420px;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.94rem;
}

.register-page-layout .auth-card {
    background: #ffffff;
    border: none;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.16);
    padding: 2rem;
    width: 100%;
    max-width: 620px;
}

.register-page-layout .auth-header {
    text-align: left;
    margin-bottom: 1.4rem;
}

.register-page-layout .auth-header h2 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    color: #0f172a;
    background: none;
    -webkit-text-fill-color: unset;
    text-transform: none;
    letter-spacing: -0.02em;
}

.register-page-layout .auth-header p {
    color: #475569;
    font-size: 0.95rem;
    margin-top: 0.65rem;
    margin-bottom: 0;
}

.register-page-layout .auth-form {
    display: grid;
    gap: 0.95rem;
}

.register-page-layout .auth-form .form-group label {
    text-transform: none;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
}

.register-page-layout .auth-form input,
.register-page-layout .auth-form textarea,
.register-page-layout .auth-form input[type="file"] {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    box-shadow: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.register-page-layout .auth-form textarea {
    min-height: 90px;
    resize: vertical;
}

.register-page-layout .auth-form input:focus,
.register-page-layout .auth-form textarea:focus,
.register-page-layout .auth-form input[type="file"]:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.14);
    outline: none;
}

.register-page-layout .form-helper {
    color: #64748b;
    display: block;
    margin-top: 0.35rem;
    font-size: 0.88rem;
}

.register-page-layout .terms-group {
    margin-top: 0.2rem;
}

.register-page-layout .checkbox-label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    font-size: 0.92rem;
    color: #475569;
}

.register-page-layout .auth-btn {
    background: #fb923c;
    border-color: #fb923c;
    color: #ffffff;
    border-radius: 12px;
    padding: 0.95rem 1rem;
    font-size: 0.98rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.register-page-layout .auth-footer {
    text-align: center;
    margin-top: 1.3rem;
    color: #64748b;
}

.register-page-layout .auth-footer a {
    color: #fb923c;
}

@media (max-width: 1024px) {
    .register-page-layout {
        grid-template-columns: 1fr;
        padding: 1.75rem 1rem;
    }

    .register-page-layout .register-hero {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .register-page-layout {
        padding: 1.4rem 0.9rem;
        gap: 1.2rem;
    }

    .register-page-layout .auth-card {
        padding: 1.75rem;
    }

    .register-page-layout .hero-copy h1 {
        font-size: 2.1rem;
    }
}
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
    z-index: 1;
    transition: color 0.25s;
}

.textarea-icon {
    top: 0.9rem;
    transform: none;
}

.register-form .input-wrapper input,
.register-form .input-wrapper textarea {
    width: 100%;
    padding: 0.82rem 2.8rem 0.82rem 2.6rem;
    background: rgba(10, 14, 26, 0.55);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    box-sizing: border-box;
    resize: none;
}

.register-form .input-wrapper textarea {
    padding-top: 0.82rem;
    padding-bottom: 0.82rem;
    line-height: 1.5;
}

.register-form .input-wrapper input:focus,
.register-form .input-wrapper textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(10, 14, 26, 0.8);
}

.register-form .input-wrapper:focus-within .input-icon {
    color: var(--primary);
}

/* Show/hide password button */
.toggle-password {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 1;
}

.toggle-password:hover {
    color: var(--primary);
}

/* Password strength meter */
.password-strength {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.45rem;
    min-height: 18px;
}

.strength-bars {
    display: flex;
    gap: 4px;
    flex: 1;
}

.strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: var(--border-color);
    transition: background 0.35s ease;
}

.strength-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    min-width: 44px;
    text-align: right;
    transition: color 0.3s;
}

/* Password match message */
.pw-match-msg {
    font-size: 0.76rem;
    font-weight: 600;
    margin-top: 0.4rem;
    min-height: 18px;
    letter-spacing: 0.3px;
}

.pw-match-msg.match-ok {
    color: var(--success);
}

.pw-match-msg.match-fail {
    color: var(--danger);
}

/* Custom checkbox */
.terms-group {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: normal !important;
    color: var(--text-secondary) !important;
    font-size: 0.87rem !important;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--border-color);
    border-radius: 5px;
    background: rgba(10, 14, 26, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 1px;
    color: transparent;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.checkbox-label:hover .checkbox-custom {
    border-color: var(--primary);
}

.checkbox-text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.checkbox-text a:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

.register-card .auth-btn {
    margin-top: 0.5rem;
    gap: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.8px;
}

/* Light mode overrides for register */
body.light-mode .register-form .input-wrapper input,
body.light-mode .register-form .input-wrapper textarea {
    background: #f8fafc;
    border-color: #cbd5e1;
}

body.light-mode .register-form .input-wrapper input:focus,
body.light-mode .register-form .input-wrapper textarea:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

body.light-mode .checkbox-custom {
    background: #f8fafc;
    border-color: #94a3b8;
}

body.light-mode .auth-brand-icon {
    background: linear-gradient(135deg, #e0f2fe, #f5f3ff);
    border-color: #bae6fd;
}

/* ═════════════════════════════════════
   REGISTRATION FORM & CHATBOT ENHANCEMENTS
   ═════════════════════════════════════ */

/* --- 1. Two-Column Registration Form --- */
.register-form-columns {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .register-form-columns {
        flex-direction: row;
        gap: 2.2rem;
        align-items: stretch;
    }

    .register-form-columns .form-section {
        flex: 1;
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
    }
}

.register-form-footer {
    width: 100%;
    margin-top: 1.8rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Align helper text nicely and formally */
.register-form .form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    display: inline-flex;
    align-items: center;
}

/* --- 2. Premium Professional Chatbot UI --- */
.chatbot-box.premium-chat {
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.96) 0%, rgba(10, 14, 26, 0.99) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Pulsing Status Dot */
.status-pulse-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    position: relative;
}

.status-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--success);
    animation: status-pulsing 1.8s infinite ease-in-out;
}

@keyframes status-pulsing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.6);
        opacity: 0;
    }
}

/* Avatars & Messages */
.premium-chat .message-bot {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.premium-chat .message-user {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    color: #ffffff;
    border-radius: 18px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.18);
    border: none;
    font-weight: 500;
}

/* Custom animated bouncing dots typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    display: inline-block;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing-bounce {

    0%,
    80%,
    100% {
        transform: scale(0.3);
        opacity: 0.4;
    }

    40% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Premium Quick Action Chips */
.premium-chat .faq-chips {
    background-color: rgba(255, 255, 255, 0.015);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.4rem;
    gap: 0.6rem;
}

.premium-chat .faq-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.premium-chat .faq-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.18);
}

/* Light mode support for Chatbot overrides */
body.light-mode .premium-chat {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border-color: #cbd5e1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

body.light-mode .premium-chat .message-bot {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-mode .premium-chat .message-user {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
}

body.light-mode .premium-chat .faq-chip {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #475569;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.light-mode .premium-chat .faq-chip:hover {
    background: #f0f9ff;
    border-color: var(--primary);
    color: var(--primary);
}

body.light-mode .typing-indicator span {
    background-color: #475569;
}

/* --- 3. Registration Overhaul Redesign --- */
.register-form .form-section {
    background: rgba(255, 255, 255, 0.015);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.2rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.register-form .form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 60%);
    pointer-events: none;
}

.register-form .form-section:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.06), 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
}

/* Stepper Stepping Indicators */
.stepper-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.01);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    display: inline-flex;
}

.stepper-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.stepper-step.active {
    color: var(--primary);
}

.stepper-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.78rem;
    transition: all 0.3s;
}

.stepper-step.active .stepper-num {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.stepper-connector {
    height: 2px;
    width: 35px;
    background: var(--border-color);
}

.stepper-connector.active {
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary-glow);
}

/* Sleek Tech Bulletins */
.tech-bulletin {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    margin-bottom: 2.2rem;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.02);
}

.tech-bulletin-title {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.tech-bulletin-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-bulletin-item {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-bulletin-item svg {
    color: var(--success);
    flex-shrink: 0;
}

/* Glowing active inputs inside registration form */
.register-form .input-wrapper input:focus,
.register-form .input-wrapper textarea:focus {
    background: rgba(10, 14, 26, 0.75);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow), 0 0 25px rgba(255, 255, 255, 0.12);
}

/* Light mode overrides for redesigned elements */
body.light-mode .register-form .form-section {
    background: rgba(255, 255, 255, 0.85);
    border-color: #cbd5e1;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

body.light-mode .register-form .form-section:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

body.light-mode .stepper-container {
    background: #ffffff;
    border-color: #cbd5e1;
}

body.light-mode .tech-bulletin {
    background: linear-gradient(90deg, #f0f9ff 0%, #f5f3ff 100%);
    border-color: #cbd5e1;
}

/* ==========================================================================
   AUTHENTICATION & PROFILE CONFIRMATION MODALS (STYLISH CYBERPUNK THEME)
   ========================================================================== */

/* --- Login Success Overlay --- */
.login-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: successFadeIn 0.35s ease forwards;
}

.login-success-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.96) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.15), inset 0 0 20px rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    text-align: center;
    max-width: 440px;
    width: 90%;
    animation: successScaleUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.8rem;
}

.checkmark-svg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3.5;
    stroke: var(--success);
    stroke-miterlimit: 10;
    box-shadow: inset 0 0 0 var(--success);
    animation: checkmarkFill .4s ease-in-out .4s forwards, checkmarkScale .3s ease-in-out .9s;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3.5;
    stroke-miterlimit: 10;
    stroke: var(--success);
    fill: none;
    animation: checkmarkStroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: var(--success);
    animation: checkmarkStroke .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.success-loader {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1.2rem;
}

.success-loader-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    animation: checkmarkLoadProgress 2s linear forwards;
}

.redirect-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- Logout Confirmation Modal --- */
.logout-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 22, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.logout-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.logout-modal-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 255, 255, 0.08), inset 0 0 15px rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logout-modal-overlay.active .logout-modal-card {
    transform: scale(1) translateY(0);
}

.logout-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 77, 109, 0.1);
    border: 1px solid rgba(255, 77, 109, 0.3);
    color: var(--danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(255, 77, 109, 0.15);
}

.logout-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.logout-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.logout-actions {
    display: flex;
    gap: 1rem;
}

.logout-btn-cancel,
.logout-btn-confirm {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.logout-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.logout-btn-confirm {
    background: linear-gradient(135deg, var(--danger) 0%, #d90429 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
}

    /* --- Terms and Privacy Modal --- */
    .policy-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(8, 12, 22, 0.82);
        backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 999999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        padding: 1.25rem;
    }

    .policy-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .policy-modal-card {
        width: 100%;
        max-width: 540px;
        background: #0f172a;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 22px;
        padding: 1.75rem 1.8rem;
        box-shadow: 0 22px 60px rgba(15, 23, 42, 0.35);
        color: #e2e8f0;
    }

    .policy-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }

    .policy-modal-header h3 {
        margin: 0;
        font-size: 1.3rem;
        color: #ffffff;
        letter-spacing: 0.02em;
    }

    .policy-modal-close {
        border: none;
        background: transparent;
        color: #cbd5e1;
        font-size: 1.5rem;
        cursor: pointer;
        line-height: 1;
    }

    .policy-modal-body {
        max-height: 55vh;
        overflow-y: auto;
        padding-right: 0.25rem;
    }

    .policy-modal-body h4 {
        margin: 1rem 0 0.5rem;
        color: #f8fafc;
        font-size: 1rem;
    }

    .policy-modal-body p {
        margin: 0 0 0.9rem;
        line-height: 1.75;
        color: #cbd5e1;
        font-size: 0.95rem;
    }

    .policy-modal-actions {
        margin-top: 1rem;
        display: flex;
        justify-content: flex-end;
    }

    .policy-modal-actions .btn {
        min-width: 110px;
    }

    .open-policy-modal {
        color: #fb923c;
        text-decoration: none;
    }

    .open-policy-modal:hover {
        text-decoration: underline;
    }
/* --- Delete Confirmation Modal --- */
.delete-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 22, 0.86);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.delete-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.delete-modal-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(255, 77, 109, 0.06) 100%);
    border: 1.5px solid rgba(255, 77, 109, 0.25);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.62), 0 0 32px rgba(255, 77, 109, 0.12), inset 0 0 15px rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 2.35rem;
    width: 100%;
    max-width: 430px;
    text-align: center;
    transform: scale(0.86) translateY(22px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.delete-modal-overlay.active .delete-modal-card {
    transform: scale(1) translateY(0);
}

.delete-icon-wrapper {
    width: 62px;
    height: 62px;
    background: rgba(255, 77, 109, 0.12);
    border: 1px solid rgba(255, 77, 109, 0.35);
    color: var(--danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.4rem;
    box-shadow: 0 0 24px rgba(255, 77, 109, 0.2);
}

.delete-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}

.delete-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.delete-warning-line {
    background: rgba(255, 77, 109, 0.08);
    border: 1px solid rgba(255, 77, 109, 0.18);
    color: var(--danger);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.delete-actions {
    display: flex;
    gap: 1rem;
}

.delete-btn-cancel,
.delete-btn-confirm {
    flex: 1;
    padding: 0.8rem 1.3rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.86rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    line-height: 1.2;
}

.delete-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.delete-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.delete-btn-confirm {
    background: linear-gradient(135deg, var(--danger) 0%, #d90429 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
}

.delete-btn-confirm:hover {
    box-shadow: 0 6px 20px rgba(255, 77, 109, 0.45);
    transform: translateY(-1px);
}

.delete-btn-confirm:active,
.delete-btn-cancel:active {
    transform: scale(0.98);
}

@media (max-width: 520px) {
    .delete-actions {
        flex-direction: column-reverse;
    }
}

/* --- Light Mode Adaptations --- */
body.light-mode .login-success-overlay {
    background: rgba(240, 244, 248, 0.97);
}

body.light-mode .login-success-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

body.light-mode .success-title {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .logout-modal-overlay {
    background: rgba(15, 23, 42, 0.4);
}

body.light-mode .logout-modal-card {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

body.light-mode .delete-modal-overlay {
    background: rgba(15, 23, 42, 0.42);
}

body.light-mode .delete-modal-card {
    background: #ffffff;
    border-color: rgba(248, 113, 113, 0.35);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
}

body.light-mode .delete-warning-line {
    background: rgba(254, 226, 226, 0.85);
    border-color: rgba(248, 113, 113, 0.35);
}

/* --- Keyframes --- */
@keyframes successFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes successScaleUp {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes checkmarkStroke {
    to { stroke-dashoffset: 0; }
}

@keyframes checkmarkFill {
    to { box-shadow: inset 0px 0px 0px 40px rgba(0, 230, 138, 0.12); }
}

@keyframes checkmarkScale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.15, 1.15, 1); }
}

@keyframes checkmarkLoadProgress {
    to { width: 100%; }
}

/* --- Customer Profile Horizontal Grid Layout --- */
.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .profile-details-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}

.profile-details-grid .form-group {
    margin-bottom: 0 !important;
}

.profile-details-grid .form-group.full-width {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .profile-details-grid .form-group.full-width {
        grid-column: span 1;
    }
}

/* ==========================================================================
   ADMIN WORKSPACE REFRESH
   ========================================================================== */
body.admin-layout {
    --admin-bg: #f5f7fb;
    --admin-panel: #ffffff;
    --admin-panel-soft: #f8fafc;
    --admin-border: #dbe3ee;
    --admin-text: #172033;
    --admin-muted: #687386;
    --admin-accent: #2563eb;
    --admin-accent-dark: #1d4ed8;
    --admin-success: #0f8a5f;
    --admin-warning: #b7791f;
    --admin-danger: #c2414b;
    --admin-radius: 8px;
    --admin-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    background: var(--admin-bg);
    background-image: none;
    color: var(--admin-text);
}

body.admin-layout main {
    color: var(--admin-text);
}

body.admin-layout h2,
body.admin-layout h3,
body.admin-layout h4 {
    font-family: var(--font-main);
    color: var(--admin-text);
    letter-spacing: 0;
}

body.admin-layout h2 {
    font-size: clamp(1.55rem, 2vw, 2.1rem);
    line-height: 1.15;
    margin: 0 0 0.45rem;
}

body.admin-layout p {
    color: var(--admin-muted);
}

body.admin-layout .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 0.75rem;
    border-radius: 10px;
    background: #111827;
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
    flex: 0 0 auto;
}

body.admin-layout .brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

body.admin-layout .brand-text {
    font-family: var(--font-main);
    font-size: 0.98rem;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.admin-layout .brand-subtitle {
    margin-top: 0.22rem;
    color: var(--admin-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

body.admin-layout .btn {
    border-radius: 7px;
    font-family: var(--font-main);
    letter-spacing: 0;
    text-transform: none;
    font-weight: 700;
    box-shadow: none;
}

body.admin-layout .btn-primary {
    background: var(--admin-accent);
    border-color: var(--admin-accent);
    color: #ffffff;
}

body.admin-layout .btn-primary:hover {
    background: var(--admin-accent-dark);
    border-color: var(--admin-accent-dark);
    color: #ffffff;
}

body.admin-layout .btn-secondary {
    background: #ffffff;
    border-color: var(--admin-border);
    color: var(--admin-text);
}

body.admin-layout .btn-secondary:hover {
    background: var(--admin-panel-soft);
    color: var(--admin-text);
}

body.admin-layout .btn-danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: var(--admin-danger);
}

body.admin-layout .btn-danger:hover {
    background: #ffe4e6;
    color: #9f1239;
}

body.admin-layout .alert {
    border-radius: var(--admin-radius);
    border: 1px solid var(--admin-border);
    box-shadow: none;
}

body.admin-layout .dashboard-header,
body.admin-layout main > div:first-child[style*="margin-bottom:2rem"] {
    padding-bottom: 1.2rem;
    margin-bottom: 1.5rem !important;
    border-bottom: 1px solid var(--admin-border);
}

body.admin-layout .dashboard-subtitle {
    color: var(--admin-muted);
    font-size: 0.96rem;
}

body.admin-layout .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

body.admin-layout .stat-card,
body.admin-layout .details-block,
body.admin-layout .table-wrapper,
body.admin-layout .filter-bar,
body.admin-layout form:not(#logout-form):not(#chat-widget-form) {
    background: var(--admin-panel);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
}

body.admin-layout .stat-card {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
}

body.admin-layout .stat-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--admin-accent), #14b8a6);
}

body.admin-layout .stat-card-title {
    color: var(--admin-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.admin-layout .stat-card-value {
    color: var(--admin-text);
    font-family: var(--font-main);
    font-size: 1.9rem;
    letter-spacing: 0;
    margin: 0.45rem 0 0.2rem;
}

body.admin-layout .stat-card-desc {
    color: var(--admin-muted);
    font-size: 0.86rem;
}

body.admin-layout .details-block,
body.admin-layout .filter-bar {
    padding: 1.25rem;
}

body.admin-layout .details-block-title {
    font-size: 1rem;
    font-weight: 800;
}

body.admin-layout .table-wrapper {
    overflow: hidden;
}

body.admin-layout table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    color: var(--admin-text);
}

body.admin-layout thead th {
    background: #f8fafc;
    color: #475569;
    border-bottom: 1px solid var(--admin-border);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.admin-layout th,
body.admin-layout td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

body.admin-layout tbody tr:hover {
    background: #f8fbff;
}

body.admin-layout tbody tr:last-child td {
    border-bottom: 0;
}

body.admin-layout input,
body.admin-layout select,
body.admin-layout textarea {
    border: 1px solid var(--admin-border);
    border-radius: 7px;
    background: #ffffff;
    color: var(--admin-text);
    box-shadow: none;
}

body.admin-layout input:focus,
body.admin-layout select:focus,
body.admin-layout textarea:focus {
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    outline: none;
}

body.admin-layout .badge,
body.admin-layout .status-badge {
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: capitalize;
}

body.admin-layout .status-pending,
body.admin-layout .badge-warning {
    background: #fffbeb;
    color: var(--admin-warning);
    border: 1px solid #fde68a;
}

body.admin-layout .status-confirmed,
body.admin-layout .status-ready,
body.admin-layout .badge-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

body.admin-layout .status-shipped {
    background: #ecfeff;
    color: #0e7490;
    border: 1px solid #a5f3fc;
}

body.admin-layout .status-delivered,
body.admin-layout .alert-success {
    background: #ecfdf5;
    color: var(--admin-success);
    border-color: #bbf7d0;
}

body.admin-layout .status-cancelled,
body.admin-layout .alert-danger {
    background: #fff1f2;
    color: var(--admin-danger);
    border-color: #fecdd3;
}

body.admin-layout .dash-grid {
    gap: 1.25rem;
}

body.admin-layout .dash-chart-toggle,
body.admin-layout .dash-tabs-head {
    background: #f1f5f9;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
}

body.admin-layout .dash-toggle,
body.admin-layout .dash-tab {
    border-radius: 6px;
    color: var(--admin-muted);
    font-family: var(--font-main);
    letter-spacing: 0;
    text-transform: none;
}

body.admin-layout .dash-toggle.active,
body.admin-layout .dash-tab.active {
    background: #ffffff;
    color: var(--admin-text);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

body.admin-layout .dash-chart {
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: linear-gradient(180deg, #2563eb, #1e40af);
}

body.admin-layout .dash-foot-link {
    color: var(--admin-accent);
}

body.admin-layout.dashboard-page {
    min-height: 100vh;
    height: auto;
    overflow: auto;
}

body.admin-layout.dashboard-page main {
    min-height: calc(100vh - 64px);
    overflow: visible;
}

body.admin-layout .settings-tabs-nav {
    display: inline-flex;
    gap: 0.35rem;
    margin-bottom: 1.4rem;
    padding: 0.35rem;
    background: #eaf0f8;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
}

body.admin-layout .settings-tab-btn {
    border: 0;
    border-radius: 6px;
    padding: 0.7rem 1rem;
    background: transparent;
    color: var(--admin-muted);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}

body.admin-layout .settings-tab-btn.active {
    background: #ffffff;
    color: var(--admin-accent-dark);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

body.admin-layout .settings-tab-panel {
    display: none;
}

body.admin-layout .settings-tab-panel.active {
    display: block;
}

body.admin-layout .settings-card {
    background: var(--admin-panel);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

body.admin-layout .settings-card-title {
    margin-bottom: 1rem;
    color: var(--admin-text);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

body.admin-layout .settings-card form {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    max-width: none;
}

body.admin-layout .qr-upload-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    background: var(--admin-panel-soft);
}

body.admin-layout .qr-current-img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

body.admin-layout .sysinfo-table {
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    overflow: hidden;
}

body.admin-layout .sysinfo-table td:first-child {
    color: var(--admin-muted);
    font-weight: 700;
}

body.admin-layout .cart-container .details-block {
    box-shadow: var(--admin-shadow);
}

body.admin-layout #thread-list > div {
    background: var(--admin-panel-soft) !important;
    border-color: var(--admin-border) !important;
    border-radius: var(--admin-radius) !important;
}

body.admin-layout #thread-list > div:hover {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
}

body.admin-layout #admin-chat-messages {
    background: #f8fafc !important;
    border-color: var(--admin-border) !important;
    border-radius: var(--admin-radius) !important;
}

body.admin-layout #admin-chat-input {
    background: #ffffff !important;
    color: var(--admin-text) !important;
}

body.admin-layout .image-preview-box {
    border: 1px dashed var(--admin-border);
    border-radius: var(--admin-radius);
    background: var(--admin-panel-soft);
}

body.admin-layout .stock-adjust-container {
    background: #f8fafc;
    border: 1px solid var(--admin-border);
    border-radius: 999px;
    padding: 0.22rem;
}

body.admin-layout .btn-stock-adjust {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--admin-border);
    background: #ffffff;
    color: var(--admin-text);
    font-weight: 800;
    cursor: pointer;
}

body.admin-layout .btn-stock-adjust:hover {
    border-color: var(--admin-accent);
    color: var(--admin-accent);
}

body.admin-layout footer {
    background: #ffffff;
    color: var(--admin-muted);
    border-top: 1px solid var(--admin-border);
}

@media (min-width: 1024px) {
    body.admin-layout header {
        background: #ffffff;
        border-right: 1px solid var(--admin-border);
        box-shadow: none;
    }

    body.admin-layout header h1 {
        padding: 1.35rem 1.25rem;
        text-align: left;
    }

    body.admin-layout header h1 a {
        display: flex;
        align-items: center;
        color: var(--admin-text);
        background: none;
        -webkit-text-fill-color: currentColor;
        filter: none;
    }

    body.admin-layout header nav::before {
        color: #94a3b8;
        letter-spacing: 0.08em;
    }

    body.admin-layout header nav a {
        border-left: 0;
        border-radius: 8px;
        color: #526078;
    }

    body.admin-layout header nav a:hover,
    body.admin-layout header nav a.active {
        background: #eff6ff;
        color: var(--admin-accent-dark);
        box-shadow: none;
    }

    body.admin-layout header nav a svg {
        width: 18px;
        height: 18px;
    }

    body.admin-layout header .nav-actions {
        background: #f8fafc;
    }

    body.admin-layout header .nav-actions .user-greeting {
        background: #ffffff;
        border-color: var(--admin-border);
        color: var(--admin-text) !important;
        line-height: 1.25;
    }

    body.admin-layout .user-greeting-label {
        display: block;
        margin-bottom: 0.15rem;
        color: #94a3b8;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    body.admin-layout header .nav-actions .logout-link {
        background: #ffffff !important;
        border-color: #fecdd3 !important;
        color: var(--admin-danger) !important;
    }

    body.admin-layout main {
        padding: 2rem 2.25rem;
    }
}

@media (max-width: 1023px) {
    body.admin-layout {
        height: 100dvh;
        overflow: hidden;
    }

    body.admin-layout header {
        position: relative;
        z-index: 1100;
        flex: 0 0 auto;
        background: var(--bg-header);
        isolation: isolate;
    }

    body.admin-layout main {
        position: relative;
        z-index: 0;
        height: calc(100dvh - 68px);
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        scrollbar-gutter: stable;
    }

    body.admin-layout header h1 a {
        display: inline-flex;
        align-items: center;
        color: #ffffff;
        background: none;
        -webkit-text-fill-color: currentColor;
        filter: none;
    }

    body.admin-layout .brand-mark {
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 760px) {
    body.admin-layout main {
        padding: 1.1rem;
    }

    body.admin-layout .table-wrapper {
        overflow-x: auto;
    }

    body.admin-layout th,
    body.admin-layout td {
        white-space: nowrap;
    }

    body.admin-layout .settings-tabs-nav {
        display: flex;
        overflow-x: auto;
    }

    body.admin-layout .settings-tab-btn {
        white-space: nowrap;
    }
}

/* ==========================================================================
   ADMIN FULLSCREEN + FINAL PALETTE OVERRIDES
   ========================================================================== */
body.admin-layout {
    --admin-bg: #eef2f7;
    --admin-panel: #ffffff;
    --admin-panel-soft: #f8fafc;
    --admin-sidebar: #101827;
    --admin-sidebar-muted: #94a3b8;
    --admin-sidebar-active: #1e293b;
    --admin-border: #d7deea;
    --admin-text: #111827;
    --admin-muted: #5f6f86;
    --admin-accent: #0f766e;
    --admin-accent-dark: #115e59;
    --admin-accent-soft: #e6fffb;
    --admin-success: #047857;
    --admin-warning: #a16207;
    --admin-danger: #be123c;
    --admin-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    width: 100%;
    min-height: 100vh;
    background: var(--admin-bg);
    display: block;
    overflow: hidden;
}

body.admin-layout main {
    width: 100% !important;
    max-width: none !important;
    min-height: 0;
    height: 100vh;
    margin: 0 !important;
    padding: 1.5rem !important;
    overflow: auto;
}

body.admin-layout.dashboard-page {
    height: 100vh !important;
    min-height: 100vh;
    overflow: hidden !important;
}

body.admin-layout.dashboard-page main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100vh;
    overflow: auto !important;
}

body.admin-layout .dashboard-header,
body.admin-layout main > div:first-child[style*="margin-bottom"] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0 0 1rem;
    margin-bottom: 1.25rem !important;
}

body.admin-layout .dashboard-header > div,
body.admin-layout main > div:first-child[style*="margin-bottom"] > div {
    min-width: 0;
}

body.admin-layout .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: none !important;
}

body.admin-layout .dash-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.9fr) !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0;
    flex: 1 1 auto;
}

body.admin-layout .dash-chart-block,
body.admin-layout .dash-tabs-block {
    width: 100%;
    min-width: 0;
}

body.admin-layout .dash-table-wrap {
    border-color: var(--admin-border);
    border-radius: var(--admin-radius);
}

body.admin-layout.dashboard-page .dashboard-header,
body.admin-layout.dashboard-page .stats-grid,
body.admin-layout.dashboard-page .dash-grid {
    flex-shrink: 0;
}

body.admin-layout.dashboard-page .stats-grid {
    margin-bottom: 0 !important;
}

body.admin-layout.dashboard-page .stat-card {
    min-height: 150px;
}

body.admin-layout.dashboard-page .dash-grid {
    flex: 1 1 auto;
    min-height: 360px;
}

body.admin-layout.dashboard-page .dash-chart,
body.admin-layout.dashboard-page .dash-table-wrap {
    flex: 1 1 auto;
    min-height: 260px;
}

body.admin-layout.dashboard-page .dash-chart {
    height: 100% !important;
}

body.admin-layout .table-wrapper,
body.admin-layout .details-block,
body.admin-layout .filter-bar,
body.admin-layout .settings-card,
body.admin-layout .stat-card {
    box-shadow: var(--admin-shadow);
}

body.admin-layout .stat-card::before {
    background: linear-gradient(90deg, var(--admin-accent), #38bdf8);
}

body.admin-layout .btn-primary {
    background: var(--admin-accent);
    border-color: var(--admin-accent);
}

body.admin-layout .btn-primary:hover {
    background: var(--admin-accent-dark);
    border-color: var(--admin-accent-dark);
}

body.admin-layout a,
body.admin-layout .dash-foot-link {
    color: var(--admin-accent);
}

body.admin-layout input:focus,
body.admin-layout select:focus,
body.admin-layout textarea:focus {
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

body.admin-layout .dash-chart {
    background: linear-gradient(180deg, #0f766e 0%, #134e4a 100%);
}

body.admin-layout .settings-tabs-nav,
body.admin-layout .dash-chart-toggle,
body.admin-layout .dash-tabs-head {
    background: #e6edf5;
}

body.admin-layout .settings-tab-btn.active,
body.admin-layout .dash-toggle.active,
body.admin-layout .dash-tab.active {
    color: var(--admin-accent-dark);
}

body.admin-layout thead th {
    background: #f1f5f9;
    color: #475569;
}

body.admin-layout tbody tr:hover {
    background: #f0fdfa;
}

body.admin-layout footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    width: 100% !important;
    margin: 0 !important;
    padding: 0.8rem 1.5rem !important;
    background: transparent;
    border-top: 1px solid var(--admin-border);
    color: var(--admin-muted);
}

@media (min-width: 1024px) {
    body.admin-layout header {
        width: 248px;
        background: var(--admin-sidebar);
        border-right: 0;
        color: #ffffff;
        box-shadow: 8px 0 24px rgba(15, 23, 42, 0.08);
    }

    body.admin-layout header h1 {
        padding: 1.25rem 1rem 1.15rem;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        position: relative;
    }

    body.admin-layout header h1 a {
        display: flex;
        align-items: center;
        color: #ffffff;
        min-width: 0;
    }

    body.admin-layout .brand-mark {
        background: linear-gradient(135deg, #14b8a6, var(--admin-accent-dark));
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.16);
    }

    body.admin-layout .brand-text {
        color: #ffffff;
        font-size: 1rem;
        font-weight: 850;
    }

    body.admin-layout .brand-subtitle {
        color: #99f6e4;
    }

    body.admin-layout header nav::before,
    body.admin-layout .user-greeting-label {
        color: var(--admin-sidebar-muted);
    }

    body.admin-layout header nav a {
        color: #cbd5e1;
    }

    body.admin-layout header nav a:hover,
    body.admin-layout header nav a.active {
        background: var(--admin-sidebar-active);
        color: #ffffff;
    }

    body.admin-layout header nav a.active {
        box-shadow: inset 3px 0 0 var(--admin-accent);
    }

    body.admin-layout header .nav-actions {
        background: rgba(255, 255, 255, 0.04);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    body.admin-layout header .nav-actions .user-greeting {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.1);
        color: #ffffff !important;
    }

    body.admin-layout header .nav-actions .logout-link {
        background: rgba(255, 255, 255, 0.06) !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        color: #fecdd3 !important;
    }

    body.admin-layout main {
        margin-left: 248px !important;
        width: calc(100vw - 248px) !important;
        max-width: none !important;
        height: 100vh;
        padding: 1.5rem !important;
        overflow: auto;
    }

    body.admin-layout footer {
        left: 248px;
        width: calc(100vw - 248px) !important;
        padding: 0.85rem 1.5rem !important;
    }

    body.admin-layout.dashboard-page main {
        height: 100vh;
        min-height: 0;
    }
}

@media (max-width: 1180px) {
    body.admin-layout .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.admin-layout .dash-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body.admin-layout main {
        padding: 1rem;
    }

    body.admin-layout .dashboard-header,
    body.admin-layout main > div:first-child[style*="margin-bottom"] {
        align-items: flex-start;
        flex-direction: column;
    }

    body.admin-layout .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════
   WHITE ACCENT HTML5 THEME — LANDING PAGE & ADVERTISEMENTS
   ═══════════════════════════════════════════════════════ */

/* Header & Announcement Bar HTML5 Accent Styling */
.top-announcement-bar {
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 0.5rem 1.5rem;
    font-size: 0.82rem;
    font-weight: 500;
}

.top-announcement-bar .announcement-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-announcement-bar .announce-link {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.top-announcement-bar .announce-link:hover {
    opacity: 0.85;
}

/* White Accent Hero Banner */
.white-hero-container {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 992px) {
    .white-hero-container {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.2rem;
}

.hero-badge-pill .pulse-dot {
    width: 8px;
    height: 8px;
    background: #059669;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
    animation: pulse-dot-anim 1.8s infinite;
}

@keyframes pulse-dot-anim {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.white-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3.1rem);
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.white-hero-title span.accent-highlight {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 3px solid #0f172a;
}

.white-hero-description {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 1.8rem;
    max-width: 620px;
}

.white-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Physical Store Advertisement Banner Showcase */
.store-showcase-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
}

.store-img-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #0f172a;
}

.store-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.store-showcase-card:hover .store-img-wrapper img {
    transform: scale(1.05);
}

.store-verified-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.store-info-content {
    padding: 1.75rem;
}

.store-info-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.store-info-text {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.55;
    margin-bottom: 1.2rem;
}

.store-features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.store-feature-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Recent Transactions Ticker & Feed Section */
.recent-transactions-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
}

.transactions-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.transactions-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.live-indicator-badge {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: uppercase;
}

.transactions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.transaction-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1.2rem;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.transaction-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.tx-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.tx-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tx-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.tx-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.tx-location {
    font-size: 0.72rem;
    color: #64748b;
}

.tx-time {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}

.tx-product {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.6rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tx-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.6rem;
    border-top: 1px dashed #e2e8f0;
}

.tx-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

.tx-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
}

.tx-badge-success {
    background: #dcfce7;
    color: #15803d;
}

/* Key Features Advertisements Grid */
.features-grid-section {
    margin-bottom: 3rem;
}

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

.section-tagline {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64748b;
    display: block;
    margin-bottom: 0.4rem;
}

.section-main-heading {
    font-size: 1.85rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.features-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    text-align: left;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

.feature-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    border: 1px solid #e2e8f0;
}

.feature-box h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.feature-box p {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
}

/* Promotional Ad Cards & Banner Widgets */
.promo-advert-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: #ffffff;
    margin-bottom: 3rem;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.promo-advert-banner::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.promo-ad-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.promo-ad-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.6rem;
    letter-spacing: -0.5px;
}

.promo-ad-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 650px;
}

/* White Accent HTML5 Buttons & Custom Tags */
.btn-white-accent {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

.btn-white-accent:hover {
    background: #f8fafc !important;
    border-color: #0f172a !important;
    color: #0f172a !important;
}

.btn-dark-slate {
    background: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid #0f172a !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2) !important;
}

.btn-dark-slate:hover {
    background: #1e293b !important;
    border-color: #1e293b !important;
}

/* Accessibility, responsive catalog, and motion refinements */
.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10000;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    background: #fff;
    color: #0f172a;
    font-weight: 800;
    transform: translateY(-160%);
    box-shadow: var(--shadow-lg);
}

.skip-link:focus { transform: translateY(0); }

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

#shop-catalog, #physical-store { scroll-margin-top: 7rem; }

.catalog-results-summary {
    margin: -0.75rem 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 700;
}

.product-image-wrapper img { max-width: 100%; }

@media (max-width: 700px) {
    .top-announcement-bar { padding-inline: 1rem; }
    .top-announcement-bar .announcement-container { gap: 0.75rem; }
    .right-announce { display: none; }
    .white-hero-container { padding: 1.5rem 1rem; gap: 1.5rem; }
    .white-hero-title { font-size: clamp(1.8rem, 10vw, 2.35rem); }
    .white-hero-description { font-size: 0.95rem; }
    .white-hero-actions, .white-hero-actions .btn { width: 100%; }
    .white-hero-actions .btn { justify-content: center; text-align: center; }
    .store-img-wrapper { height: 220px; }
    .recent-transactions-section, .promo-advert-banner { padding: 1.25rem; }
    .transactions-title-group { align-items: flex-start; flex-direction: column; }
    .transactions-grid, .features-cards-grid { grid-template-columns: 1fr; }
    .catalog-filter-form > div { width: 100%; min-width: 0 !important; }
    .catalog-filter-form select { width: 100%; min-width: 0 !important; }
    .catalog-filter-form > div:last-child .btn { flex: 1; text-align: center; }
}

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

/* Professional floating support experience */
#chat-widget-container.chat-widget-container {
    width: 400px;
    height: min(590px, calc(100dvh - 140px));
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22), 0 8px 24px rgba(37, 99, 235, 0.1);
}

#chat-widget-container .chatbot-widget-header {
    min-height: 72px;
    padding: 14px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e5eaf2;
    color: #0f172a;
}

.chatbot-brand-avatar {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #4338ca);
    border-radius: 13px;
    box-shadow: 0 7px 16px rgba(37, 99, 235, 0.24);
}

.chatbot-brand-avatar svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#chat-widget-container .chatbot-header-title {
    color: #0f172a;
    font-family: var(--font-main);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0;
}

#chat-widget-container .chatbot-header-subtitle {
    margin-top: 4px;
    color: #64748b;
    font-size: 0.72rem;
}

#chat-widget-container .chatbot-close-btn {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

#chat-widget-container .chatbot-close-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

#chat-widget-container .chatbot-close-btn:hover {
    color: #0f172a;
    background: #eef2f7;
    border-color: #cbd5e1;
}

#chat-widget-messages.chatbot-messages {
    padding: 18px;
    gap: 12px;
    background: #f7f9fc;
    background-image: none;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

#chat-widget-messages .chatbot-welcome {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#chat-widget-messages .chatbot-message-author {
    margin: 0 0 5px 4px;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#chat-widget-messages .message {
    max-width: 86%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: 0.86rem;
    line-height: 1.55;
}

#chat-widget-messages .message-bot {
    color: #253047;
    background: #ffffff;
    border: 1px solid #e1e7f0;
    border-bottom-left-radius: 5px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

#chat-widget-messages > .message-bot:not(.typing-indicator):not(.live-msg)::before {
    content: "Floramie's Assistant";
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 750;
    letter-spacing: 0.02em;
}

#chat-widget-messages .message-user {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #4338ca);
    border: none;
    border-bottom-right-radius: 5px;
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.18);
}

#chat-widget-messages .chatbot-welcome .message {
    display: flex;
    max-width: 94%;
    flex-direction: column;
    gap: 5px;
    padding: 13px 14px;
}

#chat-widget-messages .chatbot-welcome strong {
    color: #0f172a;
    font-size: 0.88rem;
}

#chat-widget-messages .typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
}

#chat-widget-messages .typing-label {
    font-size: 0.7rem;
    font-weight: 650;
}

#chat-widget-messages .chatbot-map-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: 9px;
    padding: 7px 10px;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 750;
    text-decoration: none;
}

#chat-widget-messages .chatbot-map-link:hover {
    color: #1e40af;
    background: #dbeafe;
}

#faq-chips-area.faq-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    max-height: 174px;
    padding: 12px 14px;
    overflow-y: auto;
    background: #ffffff;
    border-top: 1px solid #e5eaf2;
}

.faq-chips-heading {
    display: flex;
    grid-column: 1 / -1;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.faq-chips-heading span {
    color: #0f172a;
    font-size: 0.76rem;
    font-weight: 800;
}

.faq-chips-heading small {
    color: #94a3b8;
    font-size: 0.65rem;
}

#faq-chips-area .faq-chip {
    min-height: 34px;
    padding: 7px 10px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 9px;
    font-size: 0.74rem;
    font-weight: 650;
    line-height: 1.25;
    text-align: left;
}

#faq-chips-area .faq-chip:hover {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #93c5fd;
    box-shadow: none;
    transform: translateY(-1px);
}

#faq-chips-area .faq-chip:active {
    transform: translateY(0);
}

#faq-chips-area .faq-chip-live {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
    text-align: center;
}

#chat-widget-form.chatbot-input-area {
    gap: 8px;
    padding: 12px 14px 8px;
    background: #ffffff;
    border-top: 1px solid #e5eaf2;
}

#chat-widget-form .chatbot-input-wrapper input {
    height: 42px;
    padding: 9px 13px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #cfd8e5;
    border-radius: 11px;
    font-size: 0.84rem;
}

#chat-widget-form .chatbot-input-wrapper input::placeholder {
    color: #94a3b8;
}

#chat-widget-form .chatbot-input-wrapper input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#chat-widget-form .chatbot-send-btn {
    display: inline-flex;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    color: #ffffff;
    background: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 11px;
    box-shadow: none;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 750;
}

#chat-widget-form .chatbot-send-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

#chat-widget-form .chatbot-send-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chatbot-safety-note {
    padding: 0 14px 10px;
    color: #94a3b8;
    background: #ffffff;
    font-size: 0.62rem;
    line-height: 1.35;
    text-align: center;
}

#chat-header-live.live-chat-header {
    min-height: 72px;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #047857);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.live-indicator {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    background: #86efac;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.15);
}

.live-chat-heading {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    line-height: 1.2;
}

.live-chat-heading strong { font-size: 0.88rem; }
.live-chat-heading small { margin-top: 3px; color: rgba(255, 255, 255, 0.76); font-size: 0.68rem; }

.live-chat-end-btn {
    padding: 6px 9px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
}

.live-chat-end-btn:hover { background: rgba(255, 255, 255, 0.18); }

#chat-header-live .chatbot-close-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.waiting-state {
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 14px;
    color: #475569;
    background: #f0fdf4;
    border-top: 1px solid #dcfce7;
    font-size: 0.75rem;
    font-weight: 650;
}

.waiting-state .typing-dots { gap: 3px; }
.waiting-state .typing-dot {
    width: 5px;
    height: 5px;
    background: #16a34a;
    border-radius: 50%;
    animation: typingDot 1.15s infinite ease-in-out;
}
.waiting-state .typing-dot:nth-child(2) { animation-delay: 0.15s; }
.waiting-state .typing-dot:nth-child(3) { animation-delay: 0.3s; }

@media (max-width: 480px) {
    #chat-widget-container.chat-widget-container {
        width: calc(100% - 24px);
        height: min(590px, calc(100dvh - 112px));
    }

    #faq-chips-area.faq-chips { max-height: 150px; }
    .faq-chips-heading small { display: none; }
    #chat-widget-form .chatbot-send-btn span { display: none; }
    #chat-widget-form .chatbot-send-btn { width: 42px; padding: 0; }
}

/* Final admin mobile stacking: scrollable content stays beneath the opaque header. */
@media (max-width: 1023px) {
    body.admin-layout {
        height: 100dvh !important;
        overflow: hidden !important;
    }

    body.admin-layout header {
        position: relative !important;
        z-index: 1100;
        flex: 0 0 auto;
        background: var(--bg-header);
        isolation: isolate;
    }

    body.admin-layout main,
    body.admin-layout.dashboard-page main {
        position: relative;
        z-index: 0;
        height: calc(100dvh - 68px) !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
        scrollbar-gutter: stable;
    }
}
