/* ==========================================================================
   NAWAB HUB - ULTRA-PREMIUM COSMIC HIGH-PERFORMANCE UI THEME
   Inspired by ajvpswala.com (Deep Midnight Indigo Cosmic Theme)
   GPU-Accelerated 60fps | Shifting RGB Neon Borders | Flawless Mobile Scaling
   Colors: Midnight Indigo (#060913 to #0f172a), Cyan (#06b6d4), 
           Violet (#8b5cf6), Magenta (#ec4899), Emerald (#10b981)
   Typography: Outfit (Headings), Inter (Body)
   ========================================================================== */

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

:root {
    /* Deep Rich Cosmic Midnight & Indigo Palette (No Flat Black) */
    --bg-base: #060913;
    --bg-black: #060913;
    --bg-darker: #090e1c;
    --bg-surface: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.76);
    --bg-card-hover: rgba(22, 33, 58, 0.88);
    --bg-glass: rgba(15, 23, 42, 0.70);
    --bg-input: rgba(9, 14, 26, 0.92);
    --bg-modal: #0c1222;
    --bg-dropdown: #0d1527;

    /* Subtle Glass & Multi-Color Neon Borders */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.12);
    --border-cyan: rgba(6, 182, 212, 0.45);
    --border-purple: rgba(139, 92, 246, 0.45);
    --border-pink: rgba(236, 72, 153, 0.45);
    --border-emerald: rgba(16, 185, 129, 0.45);
    --border-amber: rgba(245, 158, 11, 0.45);

    /* Rich Cyberpunk Neon Accents */
    --cyan: #06b6d4;
    --cyan-light: #22d3ee;
    --cyan-dark: #0891b2;
    --cyan-glow: rgba(6, 182, 212, 0.35);

    --purple: #8b5cf6;
    --purple-light: #a78bfa;
    --purple-dark: #6d28d9;
    --purple-glow: rgba(139, 92, 246, 0.35);

    --pink: #ec4899;
    --pink-light: #f472b6;
    --pink-glow: rgba(236, 72, 153, 0.35);

    --emerald: #10b981;
    --emerald-light: #34d399;
    --emerald-dark: #059669;
    --emerald-glow: rgba(16, 185, 129, 0.35);

    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --amber-glow: rgba(245, 158, 11, 0.35);

    --rose: #f43f5e;
    --rose-light: #fda4af;
    --rose-glow: rgba(244, 63, 94, 0.35);

    /* Text System */
    --text-main: #f1f5f9;
    --text-headings: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Fonts & Shapes */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Cosmic Glow Shadows */
    --shadow-cosmic: 0 14px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(6, 182, 212, 0.2);
    --shadow-diamond: 0 14px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(139, 92, 246, 0.22);
    --shadow-card: 0 12px 36px -8px rgba(0, 0, 0, 0.75);
    --navbar-bg: rgba(6, 9, 19, 0.86);
    --footer-bg: rgba(6, 9, 19, 0.96);
    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-base: #f8fafc;
    --bg-black: #f8fafc;
    --bg-darker: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.94);
    --bg-card-hover: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.90);
    --bg-input: #ffffff;
    --bg-modal: #ffffff;
    --bg-dropdown: #ffffff;

    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-glass: rgba(0, 0, 0, 0.12);
    --border-cyan: rgba(6, 182, 212, 0.45);
    --border-purple: rgba(139, 92, 246, 0.45);
    --border-emerald: rgba(16, 185, 129, 0.45);

    --text-main: #0f172a;
    --text-headings: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;

    --navbar-bg: rgba(255, 255, 255, 0.92);
    --footer-bg: rgba(248, 250, 252, 0.96);
    --shadow-cosmic: 0 8px 24px rgba(6, 182, 212, 0.15), 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ============================================================== */
/* Strict Viewport & Zero Horizontal Overflow Rules               */
/* ============================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 12% 15%, rgba(139, 92, 246, 0.16) 0%, transparent 40%),
        radial-gradient(circle at 88% 25%, rgba(6, 182, 212, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 75%, rgba(236, 72, 153, 0.10) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hardware Acceleration Core Utility */
.gpu-accel, .card-glass, .product-card, .id-terminal-card, .stat-card, .btn, .modal-content {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================== */
/* Cosmic Starfield & Shifting Nebula Ambient Layer               */
/* ============================================================== */
.cosmic-bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
    box-sizing: border-box;
    contain: strict;
}

#starfieldCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
    pointer-events: none;
}

[data-theme="light"] #starfieldCanvas {
    opacity: 0.18;
}

.cosmic-rainbow-wave {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 25% 25%, rgba(236, 72, 153, 0.18) 0%, transparent 40%),
                radial-gradient(circle at 75% 20%, rgba(139, 92, 246, 0.20) 0%, transparent 45%),
                radial-gradient(circle at 80% 75%, rgba(6, 182, 212, 0.18) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.16) 0%, transparent 45%);
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.70;
    mix-blend-mode: screen;
    will-change: transform;
    animation: rainbowFloat 30s linear infinite alternate;
}

@keyframes rainbowFloat {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(30px, -25px, 0) rotate(180deg) scale(1.08); }
    100% { transform: translate3d(-25px, 30px, 0) rotate(360deg); }
}

.nebula-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(95px);
    opacity: 0.32;
    mix-blend-mode: screen;
    pointer-events: none;
    will-change: transform;
}

.nebula-1 {
    top: -8%;
    left: 8%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.45) 0%, transparent 70%);
}

.nebula-2 {
    top: 35%;
    right: -6%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.40) 0%, transparent 70%);
}

.nebula-3 {
    bottom: -10%;
    left: 20%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, transparent 70%);
}

.nebula-4 {
    top: 18%;
    left: 55%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.30) 0%, transparent 70%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
    border: 2px solid var(--bg-base);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}

/* ============================================================== */
/* Typography & Normalized Scaling                                */
/* ============================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.22;
    color: var(--text-headings);
    letter-spacing: -0.025em;
    word-break: break-word;
}

h1 { font-size: clamp(24px, 3.6vw, 42px); }
h2 { font-size: clamp(20px, 2.6vw, 32px); }
h3 { font-size: clamp(16.5px, 1.9vw, 22px); }
h4 { font-size: clamp(15px, 1.4vw, 18px); }

a {
    color: var(--cyan-light);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--emerald-light);
}

p {
    color: var(--text-muted);
    font-size: 14.5px;
}

/* Text Gradient Accents */
.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--cyan-light) 50%, var(--emerald-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-cosmic {
    background: linear-gradient(135deg, #f472b6 0%, #a78bfa 45%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-emerald {
    background: linear-gradient(135deg, var(--emerald-light) 0%, var(--cyan-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-purple {
    background: linear-gradient(135deg, #c084fc 0%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glowing Neon Text */
.text-glow-cyan { text-shadow: 0 0 14px rgba(6, 182, 212, 0.65); }
.text-glow-emerald { text-shadow: 0 0 14px rgba(16, 185, 129, 0.65); }
.text-glow-purple { text-shadow: 0 0 14px rgba(139, 92, 246, 0.65); }

/* Container */
.container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ============================================================== */
/* Sticky Glass Navbar & Branding                                 */
/* ============================================================== */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: var(--text-headings);
    letter-spacing: -0.03em;
    text-decoration: none;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 18px;
    box-shadow: 0 0 16px var(--cyan-glow);
    flex-shrink: 0;
}

.brand-text span {
    color: var(--cyan-light);
}

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

.nav-link {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 7px;
    transition: var(--transition);
    text-decoration: none;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-headings);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--cyan-light);
    border-bottom: 2px solid var(--cyan);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Glowing WhatsApp Channel Button */
.btn-whatsapp-glow {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    font-weight: 700;
    padding: 7px 15px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 14px rgba(37, 211, 102, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    will-change: transform;
}
.btn-whatsapp-glow:hover {
    background: linear-gradient(135deg, #2ae771 0%, #17a090 100%);
    transform: translateY(-2px) translate3d(0,0,0);
    box-shadow: 0 0 24px rgba(37, 211, 102, 0.7);
    color: #ffffff !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}
.theme-toggle-btn:hover {
    border-color: var(--cyan-light);
    color: var(--cyan-light);
    transform: scale(1.05);
}

/* Live Wallet Pill */
.wallet-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--border-emerald);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-headings);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.wallet-pill:hover {
    background: rgba(16, 185, 129, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}
.wallet-pill-icon {
    color: var(--emerald-light);
    font-size: 14px;
}
.wallet-pill-add {
    background: var(--emerald);
    color: #000000;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-left: 2px;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}
.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    color: var(--text-headings);
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}
.user-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cyan);
}
.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #000;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 230px;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    background: var(--bg-dropdown);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(6, 182, 212, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 1100;
}
.user-dropdown:hover .dropdown-content, .user-dropdown.open .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 13px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
    word-break: break-word;
}
.dropdown-item:hover {
    color: var(--text-headings);
    background: rgba(255, 255, 255, 0.08);
}
.dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 6px 0;
}
.dropdown-item.text-danger:hover {
    color: #fda4af;
    background: rgba(244, 63, 94, 0.15);
}

.mobile-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-headings);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.mobile-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--cyan);
    color: var(--cyan-light);
}

/* ============================================================== */
/* Deluxe Mobile Drawer & Backdrop Overlay (Zero Horizontal Push)  */
/* ============================================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 15, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    box-sizing: border-box;
    pointer-events: none;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-dropdown);
    border-left: 1px solid var(--border-glass);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(6, 182, 212, 0.15);
    z-index: 1510;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open {
    transform: translateX(0);
}

.mobile-drawer-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(13, 21, 39, 0.95);
    position: sticky;
    top: 0;
    z-index: 10;
    box-sizing: border-box;
}

.mobile-drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.mobile-drawer-close:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: var(--rose);
    color: var(--rose-light);
}

.mobile-drawer-user {
    padding: 16px 18px;
    background: rgba(10, 16, 28, 0.7);
    border-bottom: 1px solid var(--border-subtle);
    box-sizing: border-box;
}
.mobile-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #000;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mobile-user-details {
    flex-grow: 1;
    min-width: 0;
}
.mobile-user-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-headings);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mobile-user-role {
    font-size: 11.5px;
    color: var(--emerald-light);
    font-weight: 600;
    text-transform: capitalize;
}
.mobile-wallet-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--border-emerald);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    box-sizing: border-box;
}

.mobile-drawer-auth {
    padding: 16px 18px;
    background: rgba(10, 16, 28, 0.7);
    border-bottom: 1px solid var(--border-subtle);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    box-sizing: border-box;
}

.mobile-drawer-body {
    padding: 16px 14px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex-grow: 1;
    box-sizing: border-box;
}
.mobile-drawer-section {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.mobile-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px 6px;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    box-sizing: border-box;
}
.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--cyan-light);
    transform: translateX(4px);
}
.mobile-nav-link.active {
    border-left: 3px solid var(--cyan);
    background: rgba(6, 182, 212, 0.08);
}

/* ============================================================== */
/* Shifting RGB / Neon Border Glow Cards & Glass Panels           */
/* ============================================================== */
.card-glass {
    background: var(--bg-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.card-diamond, .card-rgb-border {
    position: relative;
    border: 1px solid transparent !important;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, rgba(6, 182, 212, 0.7), rgba(139, 92, 246, 0.7), rgba(236, 72, 153, 0.7), rgba(16, 185, 129, 0.7)) border-box;
    background-size: 300% 300%;
    animation: rgbBorderShift 10s ease infinite;
    box-shadow: var(--shadow-cosmic);
}

.card-diamond:hover, .card-rgb-border:hover {
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 32px rgba(6, 182, 212, 0.35);
}

@keyframes rgbBorderShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================================== */
/* SINGLE INSTANT ID STOREFRONT TERMINAL (Strict Unified Rule)     */
/* ============================================================== */
.id-terminal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(6, 182, 212, 0.22);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 32px;
    margin-bottom: 40px;
    transition: var(--transition);
}

.id-terminal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6, #06b6d4, #10b981);
    background-size: 300% 100%;
    animation: rgbGradientMove 5s infinite linear;
}

@keyframes rgbGradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.id-package-pill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.id-package-pill {
    background: rgba(10, 16, 28, 0.75);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    position: relative;
    user-select: none;
    will-change: transform;
}

.id-package-pill:hover {
    border-color: var(--cyan);
    background: rgba(6, 182, 212, 0.10);
    transform: translateY(-2px);
}

.id-package-pill.active {
    border-color: var(--cyan);
    background: rgba(6, 182, 212, 0.16);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.3);
}

.id-package-pill.active::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 14px;
    right: 14px;
    color: var(--cyan-light);
    font-size: 15px;
}

.id-qty-controller {
    display: inline-flex;
    align-items: center;
    background: rgba(9, 14, 26, 0.9);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 4px;
    gap: 6px;
}

.id-qty-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.id-qty-btn:hover {
    background: var(--cyan);
    color: #000;
    border-color: var(--cyan);
}

.id-qty-input {
    width: 65px;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-headings);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    outline: none;
}

.id-preset-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.id-preset-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.id-preset-pill:hover, .id-preset-pill.active {
    border-color: var(--cyan);
    color: var(--cyan-light);
    background: rgba(6, 182, 212, 0.14);
}

.id-total-display-box {
    background: rgba(9, 14, 26, 0.9);
    border: 1px solid var(--border-emerald);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

/* ============================================================== */
/* GPU-Accelerated Buttons & Micro-Interactions                   */
/* ============================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #000000;
    font-weight: 700;
    box-shadow: 0 4px 18px var(--emerald-glow);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45), 0 0 20px rgba(6, 182, 212, 0.25);
}

.btn-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #000000;
    font-weight: 700;
    box-shadow: 0 4px 18px var(--cyan-glow);
}
.btn-cyan:hover {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: #ffffff;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fda4af;
}
.btn-danger:hover {
    background: var(--rose);
    color: #fff;
}

.btn-glow {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.65);
}

.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-md { padding: 10px 18px; font-size: 14px; border-radius: var(--radius-md); }
.btn-lg { padding: 13px 26px; font-size: 15.5px; border-radius: var(--radius-md); }
.btn-block { width: 100%; }

/* Liquid Ripple */
.liquid-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: liquidRippleAnim 0.60s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(6, 182, 212, 0.3) 50%, transparent 100%);
    pointer-events: none;
    z-index: 5;
}

@keyframes liquidRippleAnim {
    0% { transform: scale(0); opacity: 0.8; }
    100% { transform: scale(4); opacity: 0; }
}

/* ============================================================== */
/* Product & Service Cards Grid Architecture                      */
/* ============================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.90) 0%, rgba(8, 12, 22, 0.96) 100%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    will-change: transform;
}

.product-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 25px rgba(6, 182, 212, 0.28);
    transform: translateY(-5px);
}

.product-image-box {
    position: relative;
    width: 100%;
    height: 130px;
    background: radial-gradient(circle at center, rgba(20, 32, 54, 0.9) 0%, rgba(6, 9, 16, 0.98) 100%);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.product-image-box img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-box img {
    transform: scale(1.08);
}

.product-badge-wrap {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.category-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(6, 182, 212, 0.22);
    border: 1px solid var(--border-cyan);
    color: var(--cyan-light);
    padding: 2px 8px;
    border-radius: 4px;
    backdrop-filter: blur(8px);
}

/* Neon Validity Badges */
.validity-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.badge-neon-cyan {
    background: rgba(6, 182, 212, 0.16);
    border: 1px solid var(--border-cyan);
    color: var(--cyan-light);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.35);
}
.badge-neon-emerald {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid var(--border-emerald);
    color: var(--emerald-light);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}
.badge-neon-magenta {
    background: rgba(236, 72, 153, 0.18);
    border: 1px solid rgba(236, 72, 153, 0.55);
    color: #f472b6;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
}
.badge-neon-amber {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: var(--amber);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}
.badge-neon-purple {
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.55);
    color: #c084fc;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.product-content-box {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 12px;
    max-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.product-price-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-price-tag {
    font-size: 18px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--emerald-light);
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

/* ============================================================== */
/* Stats Grid Metrics                                             */
/* ============================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card:hover {
    border-color: var(--border-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.stat-icon-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: var(--emerald-light);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.stat-icon-cyan {
    background: rgba(6, 182, 212, 0.12);
    color: var(--cyan-light);
    border: 1px solid rgba(6, 182, 212, 0.3);
}
.stat-icon-amber {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.stat-icon-rose {
    background: rgba(244, 63, 94, 0.12);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.3);
}
.stat-info {
    flex-grow: 1;
}
.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}
.stat-value {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-headings);
}

/* ============================================================== */
/* Standard Compact Authentication (Login & Register)             */
/* ============================================================== */
.auth-wrapper {
    width: 100%;
    max-width: 440px;
    margin: 32px auto 48px;
    padding: 0 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--shadow-card), 0 0 25px rgba(6, 182, 212, 0.16);
    position: relative;
    overflow: hidden;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 7px;
}
.form-control {
    width: 100%;
    max-width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 11px 15px;
    font-family: var(--font-body);
    font-size: 14.5px;
    color: #ffffff;
    transition: var(--transition);
    box-sizing: border-box;
}
.form-control:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.22);
    background: rgba(9, 14, 26, 0.98);
}
.form-control::placeholder {
    color: var(--text-dim);
}
textarea.form-control {
    min-height: 90px;
    resize: vertical;
}
.form-hint {
    font-size: 11.5px;
    color: var(--text-dim);
    margin-top: 5px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.badge-emerald {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-light);
    border: 1px solid rgba(16, 185, 129, 0.35);
}
.badge-cyan {
    background: rgba(6, 182, 212, 0.15);
    color: var(--cyan-light);
    border: 1px solid rgba(6, 182, 212, 0.35);
}
.badge-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.badge-rose {
    background: rgba(244, 63, 94, 0.15);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.35);
}

/* Alert Boxes */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    box-sizing: border-box;
    word-break: break-word;
}
.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--border-emerald);
    color: var(--emerald-light);
}
.alert-error {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.35);
    color: #fda4af;
}
.alert-info {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid var(--border-cyan);
    color: var(--cyan-light);
}

/* Tables & Responsive Wrapper */
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
}
.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    box-sizing: border-box;
}
.table-custom th {
    background: rgba(10, 14, 24, 0.85);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-glass);
    text-align: left;
    white-space: nowrap;
}
.table-custom td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: #e2e8f0;
    vertical-align: middle;
}
.table-custom tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 15, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--bg-modal);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(6, 182, 212, 0.18);
    overflow: hidden;
    transform: scale(0.96) translateY(10px);
    transition: var(--transition);
    box-sizing: border-box;
    margin: auto;
}
.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    box-sizing: border-box;
}
.modal-title {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text-headings);
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-word;
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.modal-close:hover {
    color: var(--text-headings);
    background: rgba(255, 255, 255, 0.08);
}
.modal-body {
    padding: 20px;
    max-height: 75vh;
    overflow-y: auto;
    box-sizing: border-box;
}
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    box-sizing: border-box;
    flex-wrap: wrap;
}

/* Floating Live Chat */
.floating-chat-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.45), 0 0 15px rgba(6, 182, 212, 0.3);
    z-index: 2500;
    transition: var(--transition);
    border: none;
}
.floating-chat-trigger:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6), 0 0 25px rgba(6, 182, 212, 0.5);
}
.chat-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f43f5e;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
}
.floating-chat-window {
    position: fixed;
    bottom: 86px;
    right: 24px;
    width: 350px;
    max-width: calc(100vw - 32px);
    height: 480px;
    background: rgba(8, 12, 22, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 20px rgba(6, 182, 212, 0.18);
    z-index: 2500;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}
.floating-chat-window.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.chat-header {
    padding: 14px 18px;
    background: rgba(13, 18, 30, 0.9);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-body {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(4, 7, 15, 0.6);
}
.chat-footer {
    padding: 12px 14px;
    background: rgba(13, 18, 30, 0.95);
    border-top: 1px solid var(--border-subtle);
}
.msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
    border: 1px solid var(--border-emerald);
    color: #fff;
    padding: 8px 12px;
    border-radius: 12px;
    border-bottom-right-radius: 2px;
    font-size: 13px;
    max-width: 82%;
    word-break: break-word;
}
.msg-admin {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: #f3f4f6;
    padding: 8px 12px;
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    font-size: 13px;
    max-width: 82%;
    word-break: break-word;
}

/* Glassmorphic Footer */
.footer {
    margin-top: auto;
    background: var(--footer-bg);
    border-top: 1px solid var(--border-subtle);
    padding: 44px 0 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid var(--border-subtle);
    font-size: 13.5px;
    color: var(--text-muted);
}
.dev-credit-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--border-emerald);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--emerald-light);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
    transition: var(--transition);
    text-decoration: none;
}
.dev-credit-badge:hover {
    background: rgba(16, 185, 129, 0.22);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
    color: var(--emerald-light);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
}
.toast {
    background: #0d1424;
    border: 1px solid var(--border-emerald);
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px var(--emerald-glow);
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    word-break: break-word;
}

/* ============================================================== */
/* Responsive Media Queries (Zero Overflow & Strict Mobile Fit)   */
/* ============================================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 18px;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none !important;
    }
    .mobile-nav-toggle {
        display: inline-flex !important;
    }
    .btn-desktop-only {
        display: none !important;
    }
    .id-package-pill-grid {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14.5px;
    }
    .container {
        padding: 0 16px;
    }
    .navbar {
        padding: 8px 0;
    }
    .brand-logo {
        font-size: 19px;
        gap: 9px;
    }
    .brand-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }
    .id-terminal-card {
        padding: 20px 16px;
        margin-bottom: 24px;
    }
    .id-total-display-box {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        text-align: center;
        padding: 16px;
    }
    .id-total-display-box .btn {
        width: 100%;
        justify-content: center;
    }
    .floating-chat-window {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 80px;
        height: 420px;
    }
    .floating-chat-trigger {
        bottom: 18px;
        right: 18px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .modal-content {
        max-width: 100%;
        width: 100%;
        margin: 10px auto;
    }
    .modal-body {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .id-package-pill-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    /* Auto-collapse two-column modal forms on mobile */
    .modal-content form [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    .container {
        padding: 0 12px;
    }
    .brand-logo {
        gap: 7px;
    }
    .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .brand-text {
        font-size: 17px;
    }
    .nav-actions {
        gap: 5px;
    }
    .wallet-pill {
        padding: 5px 9px;
        font-size: 12px;
        gap: 5px;
    }
    .wallet-pill-add {
        display: none;
    }
    .theme-toggle-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    .mobile-nav-toggle {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    .btn-whatsapp-glow {
        padding: 5px 10px;
        font-size: 11.5px;
        gap: 4px;
    }
    .id-qty-controller {
        width: 100%;
        justify-content: space-between;
    }
    .auth-wrapper {
        margin: 16px auto 30px;
        padding: 0 10px;
    }
    .auth-card {
        padding: 1.5rem 1.25rem;
    }
    .btn-lg {
        padding: 11px 16px;
        font-size: 14px;
    }
    .modal-overlay {
        padding: 10px;
    }
    .modal-footer {
        flex-direction: column;
        gap: 8px;
    }
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    .mobile-drawer {
        max-width: 100vw;
    }
}

/* ============================================================== */
/* Global Announcement / Notice Bar                               */
/* ============================================================== */
.global-announcement-bar {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.12) 0%, rgba(99, 102, 241, 0.14) 50%, rgba(16, 185, 129, 0.12) 100%);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(6, 182, 212, 0.08);
    position: relative;
    overflow: hidden;
}
.global-announcement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: rgba(6, 182, 212, 0.2);
    color: var(--cyan-light);
    font-size: 13px;
    flex-shrink: 0;
}
.global-announcement-content {
    font-size: 13.5px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.4;
    flex-grow: 1;
}

/* ============================================================== */
/* Flash Alerts & System Banners                                   */
/* ============================================================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--border-emerald);
    color: var(--emerald-light);
}
.alert-error {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fecdd3;
}
.alert-info {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid var(--border-cyan);
    color: var(--cyan-light);
}

/* ============================================================== */
/* Deposit Tier Cards (Locked Non-Editable Checkout)              */
/* ============================================================== */
.deposit-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.deposit-tier-card {
    background: rgba(10, 15, 26, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    user-select: none;
}
.deposit-tier-card:hover {
    border-color: var(--cyan);
    background: rgba(6, 182, 212, 0.08);
    transform: translateY(-2px);
}
.deposit-tier-card.active {
    border-color: var(--emerald);
    background: rgba(16, 185, 129, 0.14);
    box-shadow: 0 0 18px var(--emerald-glow);
}
.deposit-tier-card.active::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 11px;
    color: var(--emerald-light);
}
.deposit-tier-amount {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-heading);
    margin-bottom: 2px;
}
.deposit-tier-card.active .deposit-tier-amount {
    color: var(--emerald-light);
}
.deposit-tier-badge {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

