/* ===================================================
   BN PREMIUM SHOP - Cyber-Luxury Dark & Crimson Red
   Matching http://bnpremiumshop.com/ Typography & Contrast
   Full Responsive & High Legibility Across All Pages
   =================================================== */

:root {
    --bg-main: #07070a;
    --bg-surface: #0f0f15;
    --bg-card: rgba(18, 18, 26, 0.88);
    --bg-card-hover: rgba(28, 22, 30, 0.95);
    
    --border-subtle: rgba(255, 255, 255, 0.12);
    --border-red: rgba(255, 26, 64, 0.38);
    --border-red-bright: rgba(255, 26, 64, 0.75);
    
    --primary-red: #ff1a40;
    --primary-red-hover: #ff3355;
    --primary-red-glow: rgba(255, 26, 64, 0.5);
    --dark-red: #880e1f;
    --crimson: #e11d48;
    
    /* High-contrast, crystal clear typography */
    --text-primary: #ffffff;
    --text-white: #ffffff;
    --text-light: #f8fafc;
    --text-secondary: #cbd5e1; /* Clear readable light-gray */
    --text-muted: #cbd5e1;     /* High contrast instead of dark bootstrap gray */
    --text-dim: #94a3b8;
    
    --font-thai: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-en: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main) !important;
    color: var(--text-primary);
    font-family: var(--font-thai);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Headings & Brand with Outfit font */
h1, h2, h3, h4, h5, h6,
.brand-title,
.time-number,
.otp-box,
.step-num,
.badge-role-admin,
.badge-role-member {
    font-family: var(--font-thai);
    letter-spacing: -0.2px;
    color: #ffffff;
}

.font-en,
.brand-title,
.brand-title-text,
.badge-highlight {
    font-family: var(--font-en);
}

/* High Contrast Global Text Helpers */
.text-white { color: #ffffff !important; }
.text-light { color: #f8fafc !important; }
.text-secondary { color: #cbd5e1 !important; }
.text-muted { color: #cbd5e1 !important; } /* Override Bootstrap dark gray */
.text-red { color: var(--primary-red) !important; }
small, .small { font-size: 0.86rem; }

/* ===================================================
   Ultra-High-Contrast Universal Badge Styles (แก้ปัญหาข้อความจมในทุกหน้า)
   =================================================== */
.badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-thai), var(--font-en), sans-serif !important;
    letter-spacing: 0.2px;
    vertical-align: middle;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
}

/* Success Badges (เขียว) */
.badge.bg-success,
.badge.text-success,
.badge[class*="success"] {
    background-color: rgba(16, 185, 129, 0.25) !important;
    color: #4ade80 !important; /* สว่าง ชัดเจน ไม่จม */
    border: 1px solid rgba(74, 222, 128, 0.55) !important;
}
.badge.bg-success.text-white,
.badge.bg-success:not([class*="text-success"]) {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    border: 1px solid #34d399 !important;
}

/* Danger Badges (แดง) */
.badge.bg-danger,
.badge.text-danger,
.badge[class*="danger"] {
    background-color: rgba(239, 68, 68, 0.25) !important;
    color: #ff6b81 !important; /* แดงนีออนสว่าง อ่านง่ายชัดเจน */
    border: 1px solid rgba(255, 107, 129, 0.6) !important;
}
.badge.bg-danger.text-white,
.badge.bg-danger:not([class*="text-danger"]) {
    background: linear-gradient(135deg, #ff1a40, #c70d30) !important;
    color: #ffffff !important;
    border: 1px solid #ff4d6d !important;
}

/* Info Badges (ฟ้า) */
.badge.bg-info,
.badge.text-info,
.badge[class*="info"] {
    background-color: rgba(14, 165, 233, 0.25) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.55) !important;
}

/* Warning Badges (เหลือง/ส้ม) */
.badge.bg-warning,
.badge.text-warning,
.badge[class*="warning"] {
    background-color: rgba(245, 158, 11, 0.25) !important;
    color: #fcd34d !important;
    border: 1px solid rgba(252, 211, 77, 0.55) !important;
}

/* Dark / Secondary Badges */
.badge.bg-dark,
.badge.bg-secondary {
    background-color: rgba(30, 41, 59, 0.7) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
}

/* ===================================================
   Ambient Cyber Background Elements (bnpremiumshop.com)
   =================================================== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 26, 64, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 26, 64, 0.04) 1px, transparent 1px);
    background-size: 38px 38px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.75;
}

/* ซ่อนพื้นหลังตารางในหน้าอื่นๆ ทั้งหมด เพื่อให้พื้นหลังสะอาด สบายตา */
body:not(.home-page):not(.has-cyber-grid) .cyber-grid {
    display: none !important;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(85px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.55;
    will-change: transform;
    transform: translateZ(0);
}

.glow-top-left {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, var(--primary-red) 0%, rgba(225, 29, 72, 0.25) 60%, transparent 80%);
    top: -140px;
    left: -140px;
    animation: pulseOrb 10s ease-in-out infinite alternate;
}

.glow-center {
    width: 580px;
    height: 580px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.35) 0%, rgba(136, 14, 31, 0.2) 50%, transparent 75%);
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatOrb 14s ease-in-out infinite alternate;
}

.glow-bottom-right {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, var(--primary-red) 0%, rgba(136, 14, 31, 0.2) 60%, transparent 80%);
    bottom: -120px;
    right: -120px;
    animation: pulseOrb 12s ease-in-out infinite alternate;
}

@keyframes pulseOrb {
    0% { transform: scale(1) translateY(0); opacity: 0.4; }
    100% { transform: scale(1.15) translateY(20px); opacity: 0.65; }
}

@keyframes floatOrb {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.32; }
    50% { transform: translate(-48%, -52%) scale(1.05); opacity: 0.58; }
    100% { transform: translate(-52%, -48%) scale(1); opacity: 0.35; }
}

/* Ensure foreground content has crisp visibility & strict layering (Zero Overlap) */
.bn-navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1050 !important;
}

.admin-subnav-bar {
    position: relative;
    z-index: 1040 !important;
}

.container,
.container-fluid,
.bn-footer {
    position: relative;
    z-index: 5;
}

.bn-dropdown-menu,
.dropdown-menu {
    z-index: 1060 !important;
}

.modal {
    z-index: 1070 !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #07070a;
}
::-webkit-scrollbar-thumb {
    background: #252839;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

/* ===================================================
   Glass & Card Design
   =================================================== */
.bn-card {
    background: linear-gradient(165deg, rgba(20, 23, 34, 0.94) 0%, rgba(11, 12, 18, 0.98) 100%);
    border: 1.5px solid rgba(255, 26, 64, 0.32);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 26, 64, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.bn-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff1a40 25%, #ff6b81 50%, #ff1a40 75%, transparent);
    box-shadow: 0 0 16px rgba(255, 26, 64, 0.85);
}

.bn-card:hover {
    border-color: rgba(255, 26, 64, 0.5);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 26, 64, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ===================================================
   Brand New Compact Cyber-Luxury Navbar (Zero Overlap)
   =================================================== */
.bn-navbar {
    background: rgba(10, 11, 16, 0.96) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 26, 64, 0.28) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.75), 0 1px 0 rgba(255, 26, 64, 0.15);
    padding: 7px 0 !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 0;
    margin-right: 18px;
}

.brand-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 26, 64, 0.5));
    transition: transform 0.2s ease;
}

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

.brand-text-wrap {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.15;
}

.brand-title-text {
    font-family: var(--font-en);
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #ffffff;
    line-height: 1.1;
}

.brand-title-text .text-red {
    color: var(--primary-red);
}

.brand-sub-tagline {
    font-size: 0.62rem;
    color: #94a3b8;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Nav Links - Sleek & Compact (ตัวหนังสือไม่ต้องใหญ่) */
.bn-navbar .nav-link {
    color: #cbd5e1 !important;
    font-weight: 600;
    font-size: 0.84rem !important;
    padding: 6px 12px !important;
    border-radius: 9px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.bn-navbar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 26, 64, 0.12);
}

.bn-navbar .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 26, 64, 0.2);
    border: 1px solid rgba(255, 26, 64, 0.35);
}

/* Dropdown Menu - No Overlap, Crisp & Elevated */
.bn-dropdown-menu,
.dropdown-menu-dark {
    background: #0d0e16 !important;
    border: 1px solid rgba(255, 26, 64, 0.32) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.95), 0 0 24px rgba(255, 26, 64, 0.2) !important;
    border-radius: 12px !important;
    padding: 6px !important;
    min-width: 215px !important;
    margin-top: 8px !important;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.bn-dropdown-menu .dropdown-item,
.dropdown-item {
    color: #e2e8f0 !important;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.82rem !important;
    padding: 7px 12px !important;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.bn-dropdown-menu .dropdown-item:hover,
.dropdown-item:hover {
    background: rgba(255, 26, 64, 0.16) !important;
    color: #ffffff !important;
    transform: translateX(3px);
}

.bn-dropdown-menu .dropdown-item.active,
.dropdown-item.active {
    background: rgba(255, 26, 64, 0.25) !important;
    color: #ffffff !important;
    font-weight: 700;
}

/* User Pill & Mini Controls */
.user-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 4px 10px;
}

.user-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), #99001f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    box-shadow: 0 0 8px var(--primary-red-glow);
}

.user-name-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.badge-role-admin {
    background: linear-gradient(135deg, var(--primary-red), #99001f);
    color: #ffffff;
    font-family: var(--font-en);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px var(--primary-red-glow);
}

.badge-role-member {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #bfdbfe;
    font-family: var(--font-en);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.5px;
}

.btn-logout-mini {
    padding: 5px 9px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn-logout-mini:hover {
    background: var(--primary-red);
    color: #ffffff;
    border-color: var(--primary-red);
    box-shadow: 0 0 10px var(--primary-red-glow);
}

/* Navigation Bar Auth Buttons (Cyber-Luxury Design) */
.btn-login-nav,
.btn-auth-login {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #f1f5f9 !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    padding: 7px 18px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.btn-login-nav:hover,
.btn-auth-login:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.btn-register-nav,
.btn-auth-register {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff !important;
    background: linear-gradient(135deg, #ff1a40 0%, #c70d30 100%);
    border: 1.5px solid rgba(255, 51, 85, 0.7);
    padding: 7px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 0 16px rgba(255, 26, 64, 0.45);
}

.btn-register-nav:hover,
.btn-auth-register:hover {
    background: linear-gradient(135deg, #ff3355 0%, #e6002e 100%);
    border-color: #ff3355;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 26, 64, 0.8);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(13, 14, 21, 0.98);
        border: 1px solid rgba(255, 26, 64, 0.25);
        border-radius: 14px;
        padding: 14px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
    }
    .bn-navbar .nav-link {
        padding: 8px 12px !important;
    }
}

/* ===================================================
   Admin Sub-Navigation Bar (Direct Tab Switching)
   =================================================== */
.admin-subnav-bar {
    background: rgba(12, 13, 19, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    padding: 6px 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.admin-subnav-track {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0;
    scrollbar-width: none;
}

.admin-subnav-track::-webkit-scrollbar {
    display: none;
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    font-size: 0.81rem;
    font-weight: 600;
    color: #cbd5e1;
    padding: 6px 13px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-tab:hover {
    color: #ffffff;
    background: rgba(255, 26, 64, 0.12);
    border-color: rgba(255, 26, 64, 0.3);
}

.admin-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-red), #ba0c27);
    border-color: var(--primary-red);
    box-shadow: 0 2px 12px rgba(255, 26, 64, 0.45);
    font-weight: 700;
}

/* ===================================================
   Steps Header (Clear, Sharp Typography)
   =================================================== */
.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.step-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff1a40, #99001e);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 14px rgba(255, 26, 64, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
}

.step-sub {
    font-size: 0.88rem;
    color: #cbd5e1;
    font-weight: 500;
}

/* ===================================================
   Service Filter Tabs & Modern Compact App Grid
   =================================================== */
.service-filter-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.service-filter-tabs::-webkit-scrollbar {
    display: none;
}

.btn-filter-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.btn-filter-pill:hover {
    background: rgba(255, 26, 64, 0.12);
    color: #ffffff;
    border-color: rgba(255, 26, 64, 0.35);
}
.btn-filter-pill.active {
    background: linear-gradient(135deg, #ff1a40 0%, #c80424 100%);
    color: #ffffff;
    border-color: #ff1a40;
    box-shadow: 0 4px 14px rgba(255, 26, 64, 0.45);
}
.btn-filter-pill .filter-cnt {
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
}
.btn-filter-pill.active .filter-cnt {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Compact App Grid (2 cols mobile, 3 cols tablet/desktop) */
.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

@media (min-width: 576px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

/* Sleek Compact Service Card */
.app-card {
    background: rgba(18, 21, 33, 0.88);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 12px !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    user-select: none;
    position: relative;
    text-align: left;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    min-height: 56px;
}

.app-card-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #0a0c13;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.app-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-card-content {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    letter-spacing: 0.1px;
}

.app-card-type {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 6px;
    margin-top: 3px;
    letter-spacing: 0.2px;
}
.app-card-type.badge-otp {
    background: rgba(255, 26, 64, 0.12);
    color: #ff6b81;
    border: 1px solid rgba(255, 26, 64, 0.25);
}
.app-card-type.badge-2fa {
    background: rgba(0, 210, 255, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(0, 210, 255, 0.25);
}
.app-card-type.badge-pin {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Card Checkmark Indicator */
.app-card-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff1a40;
    color: #ffffff;
    font-size: 0.62rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 8px rgba(255, 26, 64, 0.8);
}

.app-card:hover {
    background: rgba(25, 30, 46, 0.95);
    border-color: rgba(255, 26, 64, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(255, 26, 64, 0.15);
}

.app-card:hover .app-card-title {
    color: #ffffff;
}

.app-card.active {
    background: linear-gradient(135deg, rgba(255, 26, 64, 0.18) 0%, rgba(22, 18, 30, 0.95) 100%);
    border: 1.8px solid #ff1a40;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 26, 64, 0.35);
    transform: translateY(-1px);
}

.app-card.active .app-card-title {
    color: #ffffff;
    font-weight: 800;
}

.app-card.active .app-card-check {
    opacity: 1;
    transform: scale(1);
}

/* Step header pill */
.step-num-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: linear-gradient(135deg, #ff1a40, #c80424);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.76rem;
    box-shadow: 0 0 10px rgba(255, 26, 64, 0.5);
    flex-shrink: 0;
}

/* Modern Input Wrap & Enhancements */
.bn-input-modern-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.bn-input-modern-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff3355;
    font-size: 1.15rem;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 2;
}

.bn-input-modern {
    width: 100%;
    height: 52px;
    padding-left: 48px;
    padding-right: 44px;
    background: rgba(10, 12, 19, 0.92);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #ffffff;
    font-size: 0.96rem;
    font-family: 'Prompt', sans-serif;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.bn-input-modern:focus {
    border-color: #ff1a40;
    background: rgba(14, 16, 26, 0.96);
    box-shadow: 0 0 20px rgba(255, 26, 64, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.5);
    outline: none;
}

.bn-input-modern::placeholder {
    color: #64748b;
    font-size: 0.88rem;
}

.btn-clear-input {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    font-size: 0.8rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}
.btn-clear-input:hover {
    color: #ffffff;
    background: #ff1a40;
}

.btn-paste-sm {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.74rem;
    padding: 2px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-paste-sm:hover {
    background: rgba(255, 26, 64, 0.2);
    border-color: rgba(255, 26, 64, 0.45);
    color: #ffffff;
}

/* Recent Emails Quick Chips */
.recent-chips-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.recent-chip-label {
    font-size: 0.74rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.recent-chip-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 0.74rem;
    cursor: pointer;
    transition: all 0.18s ease;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.recent-chip-btn:hover {
    background: rgba(255, 26, 64, 0.15);
    border-color: rgba(255, 26, 64, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Submit Action Button */
.btn-bn-action {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #ff1a40 0%, #c80424 100%);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Prompt', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(255, 26, 64, 0.42);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.btn-bn-action:hover {
    background: linear-gradient(135deg, #ff3355 0%, #d60029 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 26, 64, 0.65);
}
.btn-bn-action:active {
    transform: translateY(1px);
}
.btn-bn-action:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

/* Auto-copy toggle checkbox */
.auto-copy-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
}
.auto-copy-toggle input[type="checkbox"] {
    accent-color: #ff1a40;
    cursor: pointer;
    width: 14px;
    height: 14px;
}

/* ===================================================
   Forms & Inputs (High Contrast, Crystal Clear Text)
   =================================================== */
.form-label {
    color: #ffffff !important;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 7px;
}

.bn-input-wrap {
    position: relative;
    margin-bottom: 18px;
}

.bn-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-red);
    font-size: 1.15rem;
    pointer-events: none;
}

.bn-input {
    width: 100%;
    height: 52px;
    background: rgba(10, 10, 15, 0.94);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    color: #ffffff !important;
    font-family: var(--font-thai);
    font-size: 1rem;
    font-weight: 500;
    padding: 0 18px;
    transition: var(--transition);
}

.bn-input-wrap .bn-input {
    padding-left: 52px !important;
}

.bn-input-wrap .bn-input.has-toggle {
    padding-left: 52px !important;
    padding-right: 48px !important;
}

.bn-input-wrap .btn-toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px;
    cursor: pointer;
    font-size: 1.05rem;
    transition: color 0.2s ease;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bn-input-wrap .btn-toggle-password:hover {
    color: #ffffff;
}

select.bn-input {
    padding-left: 18px !important;
    cursor: pointer;
}

select.bn-input option {
    background: #0f111a;
    color: #ffffff;
}

.bn-input:focus {
    outline: none;
    border-color: var(--primary-red);
    background: rgba(255, 26, 64, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 26, 64, 0.28), 0 0 20px var(--primary-red-glow);
    color: #ffffff !important;
}

.bn-input::placeholder {
    color: #94a3b8 !important;
    font-size: 0.92rem;
    font-weight: 400;
    opacity: 1;
}

/* Primary Action Button */
.btn-bn-red {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-red), #c70d30);
    border: none;
    border-radius: 14px;
    color: #ffffff !important;
    font-family: var(--font-thai);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(255, 26, 64, 0.45);
    text-decoration: none;
}

.btn-bn-red:hover {
    background: linear-gradient(135deg, #ff3355, var(--primary-red));
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 26, 64, 0.7);
    color: #ffffff !important;
}

.btn-bn-red:active {
    transform: translateY(1px);
}

.btn-bn-red:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* ===================================================
   Auth Modern Card (Login & Register Premium Glass)
   =================================================== */
.auth-card-modern {
    background: linear-gradient(180deg, rgba(18, 20, 32, 0.94) 0%, rgba(10, 11, 18, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid rgba(255, 26, 64, 0.32);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 26, 64, 0.16);
    position: relative;
    overflow: hidden;
}

.auth-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff1a40, #ff4d6d, transparent);
    box-shadow: 0 0 12px #ff1a40;
}

/* ===================================================
   OTP Display (Crystal Clear High Contrast Numbers)
   =================================================== */
.otp-display-box {
    background: radial-gradient(ellipse at top center, rgba(255, 26, 64, 0.2) 0%, rgba(14, 15, 24, 0.98) 70%);
    border: 1.5px solid rgba(255, 26, 64, 0.45);
    border-radius: 24px;
    padding: 26px 20px;
    text-align: center;
    margin-top: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 26, 64, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    animation: fadeInScale 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.otp-display-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff1a40 25%, #ff8599 50%, #ff1a40 75%, transparent);
    box-shadow: 0 0 12px #ff1a40;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.otp-digits-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 18px 0 22px;
    flex-wrap: wrap;
}

.otp-box {
    width: 48px;
    height: 56px;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid rgba(255, 26, 64, 0.75);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff !important;
    font-family: var(--font-en), monospace;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 18px rgba(255, 26, 64, 0.4);
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .otp-digits-container {
        gap: 8px;
        margin: 16px 0 20px;
    }
    .otp-box {
        width: 42px;
        height: 50px;
        font-size: 1.5rem;
        border-radius: 10px;
    }
}

@media (max-width: 576px) {
    .otp-display-box {
        padding: 18px 12px;
        border-radius: 16px;
        margin-top: 18px;
    }
    .otp-digits-container {
        gap: 6px;
        margin: 12px 0 16px;
        flex-wrap: nowrap;
        justify-content: center;
    }
    .otp-box {
        width: 36px;
        height: 44px;
        font-size: 1.3rem;
        border-width: 1.5px;
        border-radius: 8px;
        box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 26, 64, 0.3);
    }
    .otp-box.otp-box-2fa {
        box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(66, 133, 244, 0.35);
    }
    .otp-separator {
        width: 8px;
        font-size: 1.1rem;
    }
    .twofa-pill-timer {
        padding: 6px 14px !important;
        gap: 8px !important;
    }
    .twofa-circle-wrapper {
        width: 36px;
        height: 36px;
    }
    .twofa-circle-icon {
        font-size: 0.75rem;
    }
    .btn-copy, .btn-refresh {
        padding: 9px 18px;
        font-size: 0.88rem;
    }
}

@media (max-width: 390px) {
    .otp-display-box {
        padding: 16px 8px;
    }
    .otp-digits-container {
        gap: 4px;
        margin: 10px 0 14px;
    }
    .otp-box {
        width: 31px;
        height: 39px;
        font-size: 1.15rem;
        border-radius: 6px;
    }
    .otp-separator {
        width: 6px;
        font-size: 0.95rem;
    }
}

.btn-copy {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff !important;
    border: none;
    padding: 11px 24px;
    border-radius: 12px;
    font-family: var(--font-thai);
    font-weight: 700;
    font-size: 0.96rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45);
    transition: var(--transition);
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.65);
    color: #ffffff !important;
}

.btn-refresh {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    padding: 11px 20px;
    border-radius: 12px;
    font-family: var(--font-thai);
    font-weight: 600;
    font-size: 0.96rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
}

/* ===================================================
   Google Authenticator 2FA TOTP Countdown Timer Widget
   =================================================== */
.twofa-timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 14px 0 10px;
}

.twofa-pill-timer {
    background: rgba(10, 15, 30, 0.85);
    border: 1.5px solid rgba(66, 133, 244, 0.4);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 16px rgba(66, 133, 244, 0.25);
    backdrop-filter: blur(10px);
}

.twofa-circle-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.twofa-circle-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.twofa-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 3.6;
}

.twofa-circle-bar {
    fill: none;
    stroke: #00d2ff;
    stroke-width: 3.6;
    stroke-linecap: round;
    transition: stroke-dasharray 0.85s linear, stroke 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.7));
}

.twofa-circle-bar.warning {
    stroke: #ff1a40 !important;
    filter: drop-shadow(0 0 8px rgba(255, 26, 64, 0.9)) !important;
    animation: pulseWarning 0.8s infinite alternate ease-in-out;
}

@keyframes pulseWarning {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

.twofa-circle-icon {
    position: absolute;
    font-size: 0.9rem;
    color: #00d2ff;
}

.twofa-circle-bar.warning ~ .twofa-circle-icon {
    color: #ff1a40;
}

.otp-box.otp-box-2fa {
    border-color: rgba(66, 133, 244, 0.85);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 18px rgba(66, 133, 244, 0.45);
    color: #60a5fa !important;
}

.otp-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    font-size: 1.5rem;
    color: rgba(66, 133, 244, 0.7);
    font-weight: 800;
}

/* ===================================================
   Custom Tables (High Contrast, Crystal Clear Grid)
   =================================================== */
table,
.table,
.table-bn,
.table-dark {
    --bs-table-bg: transparent !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-striped-bg: transparent !important;
    --bs-table-hover-bg: rgba(255, 26, 64, 0.12) !important;
    --bs-table-color: #ffffff !important;
    --bs-table-border-color: rgba(255, 255, 255, 0.08) !important;
    --bs-table-striped-color: #ffffff !important;
    --bs-table-active-bg: rgba(255, 26, 64, 0.18) !important;
    --bs-table-active-color: #ffffff !important;
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    margin-bottom: 0 !important;
}

/* Force dark glass background and neutralize Bootstrap inset box-shadow */
.table > :not(caption) > * > *,
.table-bn > :not(caption) > * > *,
.table-dark > :not(caption) > * > *,
table tbody tr td,
table tbody tr th,
table thead tr th,
table tfoot tr td {
    background-color: rgba(14, 16, 25, 0.88) !important;
    box-shadow: none !important;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 14px 16px;
    vertical-align: middle;
}

/* Table Head Header */
.table thead th,
.table-bn thead th,
.table-dark thead th {
    background-color: #0b0c13 !important;
    color: #ffffff !important;
    font-family: var(--font-thai);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid var(--border-red) !important;
    box-shadow: none !important;
    white-space: nowrap;
}

/* Table Body Rows Hover */
.table-bn tbody tr,
.table tbody tr {
    background-color: transparent !important;
    transition: background-color 0.2s ease;
}

.table-bn tbody tr:hover td,
.table tbody tr:hover td,
.table-dark tbody tr:hover td {
    background-color: rgba(255, 26, 64, 0.14) !important;
    color: #ffffff !important;
}

.table-bn tbody tr:last-child td,
.table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Table Inner Elements & Legibility */
.table td, .table th,
.table-bn td, .table-bn th {
    color: #f8fafc !important;
}

.table .text-muted,
.table-bn .text-muted,
.table .text-secondary,
.table-bn .text-secondary {
    color: #cbd5e1 !important;
}

.table td a:not(.btn),
.table-bn td a:not(.btn) {
    color: #ffffff !important;
    transition: color 0.2s ease;
}

.table td a:not(.btn):hover,
.table-bn td a:not(.btn):hover {
    color: var(--primary-red) !important;
}

.table-responsive {
    background: transparent !important;
    border-radius: 20px;
    overflow-x: auto;
    overflow-y: visible;
}

/* Ensure table action dropdowns are elevated and clearly visible */
.table td .dropdown {
    position: relative;
}

.table td .dropdown-menu {
    z-index: 1065 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.95), 0 0 18px rgba(255, 26, 64, 0.25) !important;
}

.bn-card:has(.table) {
    overflow: visible !important;
}

/* Pagination styles */
.pagination {
    --bs-pagination-bg: #0f111a;
    --bs-pagination-border-color: rgba(255, 255, 255, 0.15);
    --bs-pagination-color: #cbd5e1;
    --bs-pagination-hover-bg: rgba(255, 26, 64, 0.2);
    --bs-pagination-hover-color: #ffffff;
    --bs-pagination-active-bg: var(--primary-red);
    --bs-pagination-active-border-color: var(--primary-red);
}

.page-link {
    background-color: #0f111a !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.page-item.active .page-link {
    background-color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px var(--primary-red-glow);
}

.page-item.disabled .page-link {
    background-color: #08090e !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: #64748b !important;
}

/* ===================================================
   Modals (Cyber-Luxury Dark Glass & Crimson Glow)
   =================================================== */
.modal-backdrop.show {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(4, 5, 8, 0.82) !important;
}

.modal-dialog {
    max-width: 530px;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease !important;
}

.modal.fade .modal-dialog {
    transform: scale(0.92) translateY(-20px);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-content {
    background: linear-gradient(155deg, rgba(20, 22, 34, 0.98), rgba(10, 11, 18, 0.99)) !important;
    border: 1.5px solid rgba(255, 26, 64, 0.5) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.95), 0 0 45px rgba(255, 26, 64, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Red neon top bar indicator */
.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), #ff5577, var(--primary-red), transparent);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 18px 24px !important;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title {
    font-size: 1.12rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(255, 26, 64, 0.2), rgba(255, 26, 64, 0.05));
    border: 1.5px solid rgba(255, 26, 64, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 0.98rem;
    box-shadow: 0 0 14px var(--primary-red-glow);
    flex-shrink: 0;
}

.modal-header .btn-close {
    background-color: rgba(255, 255, 255, 0.08);
    opacity: 0.75;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-header .btn-close:hover {
    background-color: var(--primary-red);
    opacity: 1;
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px 26px !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 16px 26px !important;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Modal Form Inputs */
.modal-body .form-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-body .bn-input {
    background: rgba(8, 9, 15, 0.85) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px;
    color: #ffffff !important;
    font-size: 0.92rem;
    font-weight: 500;
    height: 46px;
    padding: 0 14px;
    transition: var(--transition);
}

.modal-body .bn-input:focus {
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 0 3px rgba(255, 26, 64, 0.25), 0 0 18px var(--primary-red-glow) !important;
    background: rgba(14, 15, 24, 0.95) !important;
}

.modal-body .bn-input::placeholder {
    color: #64748b !important;
    font-size: 0.86rem;
}

/* Switch Controls */
.form-check-input {
    background-color: #1a1c29 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 12px var(--primary-red-glow) !important;
}

/* Modal Buttons */
.btn-modal-cancel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 9px 20px;
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-modal-submit {
    background: linear-gradient(135deg, var(--primary-red), #d90429);
    border: none;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(255, 26, 64, 0.5);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-modal-submit:hover {
    background: linear-gradient(135deg, #ff3355, var(--primary-red));
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 26, 64, 0.7);
    color: #ffffff !important;
}

/* App Modal Custom Definition & Image Upload Elements */
.modal-lg-custom {
    max-width: 680px !important;
}

.upload-zone {
    background: rgba(10, 11, 18, 0.85);
    border: 2px dashed rgba(255, 26, 64, 0.38);
    border-radius: 14px;
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary-red);
    background: rgba(255, 26, 64, 0.08);
    box-shadow: 0 0 20px rgba(255, 26, 64, 0.22);
}

.upload-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 26, 64, 0.15);
    border: 1px solid rgba(255, 26, 64, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 1.2rem;
    margin-bottom: 0;
    box-shadow: 0 0 12px var(--primary-red-glow);
    transition: var(--transition);
    flex-shrink: 0;
}

.upload-zone:hover .upload-icon-circle {
    background: var(--primary-red);
    color: #ffffff;
    transform: scale(1.06);
}

.upload-preview-container {
    background: rgba(15, 17, 27, 0.95);
    border: 1.5px solid rgba(255, 26, 64, 0.45);
    border-radius: 14px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.upload-preview-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: contain;
    background: #0b0c13;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 12px rgba(255, 26, 64, 0.35);
    flex-shrink: 0;
    padding: 2px;
}

.field-helper {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 4px;
    display: block;
}

.form-section-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.section-label-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary-red);
    margin-bottom: 6px;
}

.quick-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;
}

.quick-pill:hover,
.quick-pill.active {
    background: rgba(255, 26, 64, 0.25);
    border-color: var(--primary-red);
    color: #ffffff;
}

/* Primary Top Action Button (+ เพิ่มแอปใหม่, + เพิ่มผู้ใช้ใหม่) */
.btn-action-add {
    background: linear-gradient(135deg, var(--primary-red), #ba0c27) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    padding: 8px 18px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(255, 26, 64, 0.45);
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.btn-action-add:hover {
    background: linear-gradient(135deg, #ff3355, var(--primary-red)) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 26, 64, 0.75);
    color: #ffffff !important;
}

/* Table Dropdown Action Button */
.btn-table-action {
    background: linear-gradient(135deg, rgba(255, 26, 64, 0.16), rgba(18, 20, 30, 0.9)) !important;
    border: 1px solid rgba(255, 26, 64, 0.45) !important;
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 6px 13px !important;
    border-radius: 10px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.btn-table-action:hover,
.btn-table-action:focus,
.btn-table-action[aria-expanded="true"] {
    background: linear-gradient(135deg, var(--primary-red), #b90e2b) !important;
    border-color: var(--primary-red) !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px var(--primary-red-glow) !important;
    transform: translateY(-1px);
}

/* Table App Icon Container */
.table-app-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #11121a;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.table-app-icon-wrap:hover {
    transform: scale(1.1);
    border-color: var(--primary-red);
    box-shadow: 0 0 14px var(--primary-red-glow);
}

/* Badges Status */
.badge-status-active {
    background: rgba(16, 185, 129, 0.16) !important;
    border: 1px solid rgba(16, 185, 129, 0.5) !important;
    color: #34d399 !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 5px 12px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: var(--transition);
}

.badge-status-active:hover {
    background: rgba(16, 185, 129, 0.28) !important;
    color: #ffffff !important;
    border-color: #34d399 !important;
}

.badge-status-inactive {
    background: rgba(148, 163, 184, 0.12) !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    color: #94a3b8 !important;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 5px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: var(--transition);
}

.badge-status-inactive:hover {
    background: rgba(148, 163, 184, 0.22) !important;
    color: #ffffff !important;
}

.badge-status-warning {
    background: rgba(245, 158, 11, 0.16) !important;
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
    color: #fbbf24 !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 5px 12px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: var(--transition);
}

.badge-status-danger,
.badge-status-banned {
    background: rgba(239, 68, 68, 0.18) !important;
    border: 1px solid rgba(239, 68, 68, 0.55) !important;
    color: #f87171 !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 5px 12px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: var(--transition);
}

.badge-status-danger:hover,
.badge-status-banned:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
}

/* ===================================================
   Cyber-Luxury Buttons Suite
   =================================================== */
.btn-cyber-outline {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 26, 64, 0.45) !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.86rem;
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.btn-cyber-outline:hover {
    background: rgba(255, 26, 64, 0.2) !important;
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 16px var(--primary-red-glow) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-cyber-success {
    background: linear-gradient(135deg, #059669, #047857) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.btn-cyber-success:hover {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.6) !important;
}

.btn-cyber-cyan {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.btn-cyber-cyan:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(14, 165, 233, 0.6) !important;
}

/* ===================================================
   Cyber-Luxury Stat Cards (Admin Dashboard)
   =================================================== */
.stat-card {
    background: linear-gradient(160deg, rgba(22, 24, 38, 0.95), rgba(12, 13, 22, 0.95));
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    padding: 20px 18px;
    backdrop-filter: blur(14px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 26, 64, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(255, 26, 64, 0.25);
}

.stat-card:hover::before {
    background: linear-gradient(90deg, transparent, var(--primary-red), var(--crimson), transparent);
}

.stat-card-label {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 600;
}

.stat-card-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.stat-icon-red {
    background: rgba(255, 26, 64, 0.15);
    border: 1px solid rgba(255, 26, 64, 0.4);
    color: var(--primary-red);
    box-shadow: 0 0 16px rgba(255, 26, 64, 0.25);
}

.stat-icon-cyan {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: #38bdf8;
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.25);
}

.stat-icon-amber {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.stat-icon-emerald {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin: 8px 0 2px 0;
    line-height: 1.1;
    font-family: var(--font-en);
}

.stat-card-unit {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
    font-family: var(--font-thai);
}

.stat-card-sub {
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===================================================
   Cyber-Luxury Pagination
   =================================================== */
.pagination {
    gap: 6px;
}

.pagination .page-item .page-link {
    background: rgba(18, 20, 32, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.pagination .page-item .page-link:hover {
    background: rgba(255, 26, 64, 0.18) !important;
    border-color: var(--primary-red) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px var(--primary-red-glow) !important;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-red), #ba0c27) !important;
    border-color: var(--primary-red) !important;
    color: #ffffff !important;
    font-weight: 800;
    box-shadow: 0 0 18px var(--primary-red-glow) !important;
}

/* ===================================================
   Footer (High Contrast Text)
   =================================================== */
.bn-footer {
    margin-top: auto;
    border-top: 1.5px solid rgba(255, 26, 64, 0.25);
    padding: 24px 0;
    background: rgba(7, 7, 10, 0.94);
    backdrop-filter: blur(12px);
    color: #cbd5e1;
    font-size: 0.9rem;
    text-align: center;
}

/* ===================================================
   Responsive Adjustments (All Screen Sizes)
   =================================================== */
@media (max-width: 768px) {
    .step-title {
        font-size: 1.05rem;
    }
    .brand-title-text {
        font-size: 0.92rem;
    }
    .brand-sub-tagline {
        font-size: 0.6rem;
    }
    .bn-card {
        padding: 20px 16px;
        border-radius: 18px;
    }
    .btn-bn-red {
        height: 48px;
        font-size: 1rem;
    }
    .bn-input {
        height: 48px;
        font-size: 0.94rem;
    }
}

@media (max-width: 480px) {
    .app-grid {
        gap: 8px;
    }
    .app-card {
        padding: 8px 10px !important;
        border-radius: 12px;
        min-height: 52px;
        gap: 8px;
    }
    .app-card-icon-wrap {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }
    .app-card-title {
        font-size: 0.82rem;
    }
    .app-card-type {
        font-size: 0.64rem;
        padding: 0 5px;
    }
    .app-card-check {
        width: 16px;
        height: 16px;
        font-size: 0.55rem;
        top: 5px;
        right: 5px;
    }
}

/* ===================================================
   Table Action Buttons (Direct Cyber Buttons)
   =================================================== */
.btn-table-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
}

.btn-table-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 9px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-table-btn:hover {
    transform: translateY(-2px);
}

.btn-table-btn-2fa {
    background: rgba(14, 165, 233, 0.15) !important;
    border-color: rgba(14, 165, 233, 0.45) !important;
    color: #38bdf8 !important;
}
.btn-table-btn-2fa:hover {
    background: #0ea5e9 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.6) !important;
}

.btn-table-btn-imap {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
    color: #34d399 !important;
}
.btn-table-btn-imap:hover {
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.6) !important;
}

.btn-table-btn-edit {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    color: #fbbf24 !important;
}
.btn-table-btn-edit:hover {
    background: #f59e0b !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.6) !important;
}

.btn-table-btn-delete {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #f87171 !important;
    padding: 6px 10px;
}
.btn-table-btn-delete:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.6) !important;
}

/* ===================================================
   Helper Notice Card (Luxury Dark Glass)
   =================================================== */
.helper-notice-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(18, 20, 30, 0.75) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    padding: 16px 20px;
    margin-top: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* SweetAlert2 Highest Layer (Always in front of Bootstrap Modals) */
.swal2-container {
    z-index: 100000 !important;
}

/* ===================================================
   Mobile High-Performance Overrides (iPhone / iOS WebKit Smooth 60-120 FPS)
   =================================================== */
@media (max-width: 768px) {
    /* 1. ซ่อน Canvas บนมือถือเพื่อประหยัด CPU 100% */
    #particle-canvas {
        display: none !important;
    }

    /* 2. ปิดแอนิเมชันลูกบอลแสงขนาดใหญ่ ไม่ให้ GPU ทำงานหนักขณะเลื่อนหน้าจอ */
    .glow-orb {
        animation: none !important;
        filter: blur(35px) !important;
        opacity: 0.22 !important;
        transform: translateZ(0) !important;
        will-change: auto !important;
    }

    .glow-center {
        display: none !important;
    }

    .glow-top-left {
        width: 260px !important;
        height: 260px !important;
        top: -80px !important;
        left: -80px !important;
    }

    .glow-bottom-right {
        width: 240px !important;
        height: 240px !important;
        bottom: -70px !important;
        right: -70px !important;
    }

    /* 3. ปิด backdrop-filter ที่กินสเปกสูงมากบน WebKit (iOS Chrome & Safari) */
    .bn-card,
    .bn-navbar,
    .app-card,
    .stat-card,
    .modal-content,
    .bn-dropdown-menu,
    .bn-cookie-card,
    .helper-notice-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* 4. ใช้สีพื้นหลังทึบสไตล์ Cyber ที่คงความหรูหรา คมชัด และลื่นไหลขั้นสุด */
    .bn-card {
        background: #10121b !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 16px rgba(255, 26, 64, 0.1) !important;
        border-radius: 18px !important;
    }

    .bn-navbar {
        background: #090a0f !important;
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.75) !important;
    }

    .app-card {
        background: #141724 !important;
    }

    .stat-card {
        background: #121522 !important;
    }

    .modal-content {
        background: #121522 !important;
    }

    .cyber-grid {
        opacity: 0.35 !important;
        background-size: 26px 26px !important;
    }

    /* 5. เปิด Smooth Scrolling สำหรับ iOS */
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* ===================================================
   Cyber-Luxury Storefront & E-Commerce Elements
   =================================================== */
.store-hero {
    position: relative;
    padding: 32px 24px;
    background: linear-gradient(135deg, rgba(25, 12, 18, 0.95), rgba(12, 14, 22, 0.95));
    border: 1.5px solid var(--border-red);
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 30px var(--primary-red-glow);
    margin-bottom: 28px;
    overflow: hidden;
}

.store-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 26, 64, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.cat-nav-wrap {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.cat-nav-wrap::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    padding: 9px 20px;
    border-radius: 50px;
    background: rgba(18, 20, 31, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cat-pill:hover,
.cat-pill.active {
    background: linear-gradient(135deg, var(--primary-red), #ba0c27);
    border-color: var(--primary-red);
    color: #ffffff !important;
    box-shadow: 0 4px 18px var(--primary-red-glow);
    transform: translateY(-2px);
}

/* Shop Product Card (Matching user mockup) */
.shop-card {
    background: rgba(15, 17, 26, 0.95);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    position: relative;
}

.shop-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 26, 64, 0.3);
}

.shop-card-img-wrap {
    height: 195px;
    background: #0d0f18;
    display: block;
    padding: 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-card-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

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

.shop-badge-type {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    z-index: 2;
}

.shop-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.shop-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card-desc {
    color: #94a3b8;
    font-size: 0.84rem;
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}

.shop-price-box {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.price-main {
    font-family: var(--font-brand);
    font-size: 1.45rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.price-agent-tag {
    font-size: 0.76rem;
    color: #fbbf24;
    font-weight: 700;
    display: block;
    margin-top: 2px;
}

.btn-buy-product {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, var(--primary-red), #cc0d30);
    border: none;
    border-radius: 12px;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.96rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(255, 26, 64, 0.4);
    text-decoration: none;
}

.btn-buy-product:hover {
    background: linear-gradient(135deg, #ff2a50, var(--primary-red));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 26, 64, 0.65);
    color: #ffffff !important;
}

.btn-buy-product:disabled,
.btn-buy-product.disabled {
    background: #232736 !important;
    color: #64748b !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

/* User Roles Badges */
.badge-role-admin {
    background: linear-gradient(135deg, #ef4444, #991b1b);
    color: #ffffff;
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.badge-role-otp {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.badge-role-agent {
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: #ffffff;
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.badge-role-member {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Nav Wallet Balance Pill */
.nav-wallet-pill {
    background: rgba(255, 26, 64, 0.12);
    border: 1.5px solid rgba(255, 26, 64, 0.4);
    border-radius: 50px;
    padding: 5px 14px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    text-decoration: none;
}

.nav-wallet-pill:hover {
    background: rgba(255, 26, 64, 0.25);
    border-color: var(--primary-red);
    box-shadow: 0 0 14px var(--primary-red-glow);
    color: #ffffff !important;
}

/* Expiry Countdown Badges */
.badge-expire-active {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
}

.badge-expire-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
}

.badge-expire-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
}

/* Slip Upload Zone */
.dropzone-slip {
    background: rgba(13, 15, 24, 0.9);
    border: 2px dashed rgba(255, 26, 64, 0.45);
    border-radius: 18px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.dropzone-slip:hover,
.dropzone-slip.dragover {
    border-color: var(--primary-red);
    background: rgba(255, 26, 64, 0.08);
    box-shadow: 0 0 25px rgba(255, 26, 64, 0.25);
    transform: translateY(-2px);
}

/* Inventory Item Card */
.inventory-card {
    background: rgba(17, 20, 31, 0.95);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 20px;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.inventory-card:hover {
    border-color: rgba(255, 26, 64, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 26, 64, 0.2);
}

.copy-input-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
}

.copy-input-btn:hover {
    background: var(--primary-red);
    color: #ffffff;
    border-color: var(--primary-red);
}

/* Variant Selector Pills on Product Card */
.variant-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.btn-var-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}
.btn-var-pill:hover {
    background: rgba(255, 26, 64, 0.15);
    border-color: rgba(255, 26, 64, 0.4);
    color: #fff;
}
.btn-var-pill.active {
    background: linear-gradient(135deg, rgba(255, 26, 64, 0.3), rgba(255, 26, 64, 0.15));
    border-color: var(--primary-red);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 26, 64, 0.3);
}

/* Modal Variant Buttons */
.btn-modal-var-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-modal-var-pill:hover {
    background: rgba(255, 26, 64, 0.15);
    border-color: rgba(255, 26, 64, 0.5);
    color: #fff;
}
.btn-modal-var-pill.active {
    background: linear-gradient(135deg, rgba(255, 26, 64, 0.35), rgba(255, 26, 64, 0.15));
    border-color: var(--primary-red);
    color: #fff;
    box-shadow: 0 0 14px rgba(255, 26, 64, 0.4);
}
.btn-modal-var-pill.disabled-pill {
    opacity: 0.4;
    cursor: not-allowed;
    border-style: dashed;
}

/* Quantity Selector Controller */
.qty-controller-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.btn-qty-action {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 26, 64, 0.12);
    border: 1.5px solid rgba(255, 26, 64, 0.35);
    color: #fff;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
}
.btn-qty-action:hover:not(:disabled) {
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 0 12px rgba(255, 26, 64, 0.5);
    transform: scale(1.05);
}
.btn-qty-action:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
}
.qty-input-field {
    width: 65px;
    height: 38px;
    background: rgba(10, 11, 18, 0.9) !important;
    border: 1.5px solid rgba(255, 26, 64, 0.35) !important;
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    border-radius: 10px;
}
.qty-input-field:focus {
    box-shadow: 0 0 12px rgba(255, 26, 64, 0.4) !important;
}

/* ===================================================
   NEW MODERN STOREFRONT STYLES (Cyber-Luxury v2)
   =================================================== */

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hx-hero {
    position: relative;
    padding: 38px 32px;
    background: radial-gradient(120% 120% at 10% 10%, rgba(35, 12, 20, 0.95) 0%, rgba(13, 15, 24, 0.96) 60%, rgba(9, 10, 16, 0.98) 100%);
    border: 1.5px solid rgba(255, 26, 64, 0.28);
    border-radius: 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(255, 26, 64, 0.18);
    margin-bottom: 22px;
    overflow: hidden;
}
.hx-hero-glow {
    position: absolute;
    top: -40%;
    right: -15%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(255, 26, 64, 0.22) 0%, transparent 65%);
    pointer-events: none;
    filter: blur(20px);
}
.hx-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 26, 64, 0.12);
    border: 1px solid rgba(255, 26, 64, 0.35);
    color: #fecdd3;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 14px;
}
.hx-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: hxPulse 1.8s infinite;
}
@keyframes hxPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.hx-title {
    font-size: clamp(1.85rem, 3.8vw, 2.75rem);
    font-weight: 900;
    line-height: 1.18;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.hx-grad {
    background: linear-gradient(135deg, #ff3355 0%, #ff8095 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 51, 85, 0.3);
}
.hx-sub {
    color: #94a3b8;
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 540px;
}

.hx-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}
.hx-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.hx-btn-red {
    background: linear-gradient(135deg, #ff1a40 0%, #c40626 100%);
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(255, 26, 64, 0.45);
}
.hx-btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(255, 26, 64, 0.65);
    background: linear-gradient(135deg, #ff2a50 0%, #dc072c 100%);
}
.hx-btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    color: #f1f5f9 !important;
}
.hx-btn-ghost:hover {
    background: rgba(255, 26, 64, 0.15);
    border-color: rgba(255, 26, 64, 0.5);
    transform: translateY(-2px);
}
.hx-btn-green {
    background: rgba(34, 197, 94, 0.14);
    border: 1.5px solid rgba(34, 197, 94, 0.4);
    color: #4ade80 !important;
}
.hx-btn-green:hover {
    background: #22c55e;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.hx-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hx-stat {
    text-align: left;
}
.hx-stat-num {
    font-family: var(--font-brand);
    font-size: 1.45rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
}
.hx-stat-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

/* Hero Right Visual */
.hx-visual {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.hx-logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.hx-logo-tile {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    animation: hxFloat 3.6s ease-in-out infinite alternate;
}
.hx-logo-tile:nth-child(even) {
    animation-direction: alternate-reverse;
}
@keyframes hxFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}
.hx-logo-tile:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(255, 26, 64, 0.6);
    box-shadow: 0 10px 24px rgba(255, 26, 64, 0.3);
    background: rgba(255, 255, 255, 0.08);
}
.hx-logo-tile img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.hx-wallet {
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(20, 24, 38, 0.95), rgba(12, 14, 24, 0.95));
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.hx-wallet-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: contain;
}
.hx-wallet-user {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}
.hx-wallet-cap {
    font-size: 0.72rem;
    color: #94a3b8;
}
.hx-wallet-bal {
    font-family: var(--font-brand);
    font-size: 1.55rem;
    font-weight: 900;
    color: #22c55e;
    line-height: 1;
}
.hx-wallet-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff1a40, #ba0c27);
    color: #ffffff !important;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.hx-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 26, 64, 0.5);
}
.hx-wallet-btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.hx-wallet-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Live Ticker Bar */
.hx-ticker {
    display: flex;
    align-items: center;
    background: rgba(14, 16, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 6px 14px;
    margin-bottom: 22px;
    overflow: hidden;
}
.hx-ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ff1a40;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    margin-right: 12px;
    box-shadow: 0 0 12px rgba(255, 26, 64, 0.6);
}
.hx-ticker-track {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}
.hx-ticker-move {
    display: inline-block;
    white-space: nowrap;
    animation: hxTicker 38s linear infinite;
}
.hx-ticker:hover .hx-ticker-move {
    animation-play-state: paused;
}
@keyframes hxTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.hx-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 26px;
    font-size: 0.78rem;
    color: #cbd5e1;
}
.hx-ticker-item i {
    color: #22c55e;
    font-size: 0.72rem;
}

/* Trust Features */
.hx-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(14, 17, 27, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    transition: all 0.22s ease;
    height: 100%;
}
.hx-feature:hover {
    border-color: var(--fc, #ff1a40);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 26, 64, 0.15);
}
.hx-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--fc, #ff1a40);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.hx-feature-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}
.hx-feature-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.35;
    margin-top: 2px;
}

/* Section Header & Toolbar */
.hx-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.hx-eyebrow {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #ff3355;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.hx-section-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hx-count {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    background: rgba(255, 26, 64, 0.15);
    color: #ff3355;
    border: 1px solid rgba(255, 26, 64, 0.3);
}

.hx-search {
    display: flex;
    align-items: center;
    background: rgba(14, 16, 26, 0.95);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 3px 4px 3px 14px;
    min-width: 280px;
    transition: all 0.2s ease;
}
.hx-search:focus-within {
    border-color: #ff1a40;
    box-shadow: 0 0 18px rgba(255, 26, 64, 0.3);
}
.hx-search i {
    color: #64748b;
    font-size: 0.85rem;
    margin-right: 8px;
}
.hx-search input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.84rem;
    width: 100%;
    outline: none;
}
.hx-search input::placeholder {
    color: #64748b;
}
.hx-search button {
    background: #ff1a40;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hx-search button:hover {
    background: #e1082c;
}

.hx-cat-bar {
    margin-bottom: 22px;
}

/* Card Visual Improvements */
.hx-card {
    border-radius: 18px !important;
}
.hx-card-img {
    height: 150px !important;
    background: radial-gradient(circle, #ffffff 0%, #f1f5f9 100%) !important;
    position: relative;
}
.hx-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: 30px;
    background: linear-gradient(135deg, #ff1a40, #b91c1c);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(255, 26, 64, 0.5);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hx-ribbon-amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}
.hx-from-price {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}
.hx-var-count {
    font-size: 0.68rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
    font-weight: 600;
}
.hx-price-cap {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}
.hx-agent-hint {
    font-size: 0.72rem;
    color: #fbbf24;
    font-weight: 600;
}
.btn-var-pill.is-out {
    opacity: 0.4;
    text-decoration: line-through;
}

/* How to Order Steps */
.hx-steps {
    margin-top: 48px;
    padding: 36px 28px;
    background: rgba(14, 16, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}
.hx-step {
    padding: 20px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    text-align: center;
    position: relative;
    height: 100%;
    transition: all 0.2s ease;
}
.hx-step:hover {
    border-color: rgba(255, 26, 64, 0.4);
    transform: translateY(-3px);
    background: rgba(255, 26, 64, 0.03);
}
.hx-step-num {
    position: absolute;
    top: 10px;
    left: 14px;
    font-family: var(--font-brand);
    font-size: 1.1rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
}
.hx-step-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 26, 64, 0.18), rgba(186, 12, 39, 0.08));
    border: 1px solid rgba(255, 26, 64, 0.35);
    color: #ff3355;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.hx-step-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}
.hx-step-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.45;
}

.hx-cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(255, 26, 64, 0.14), rgba(14, 16, 26, 0.8));
    border: 1px solid rgba(255, 26, 64, 0.3);
    border-radius: 16px;
}
.hx-cta-band-title {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
}
.hx-cta-band-sub {
    font-size: 0.78rem;
    color: #cbd5e1;
}

@media (max-width: 991.98px) {
    .hx-hero {
        padding: 26px 20px;
    }
    .hx-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .hx-visual {
        margin-top: 8px;
    }
    .hx-search {
        min-width: 100%;
    }
}
@media (max-width: 575.98px) {
    .hx-cta {
        flex-direction: column;
    }
    .hx-cta .hx-btn {
        width: 100%;
        justify-content: center;
    }
    .hx-steps {
        padding: 24px 16px;
    }
}

/* ===================================================
   ADMIN BACKEND SUITE: Modern, Compact, Enterprise UI
   "ตัวหนังสือไม่ต้องใหญ่ จัดให้สวย จัดให้พร้อมใช้งาน"
   =================================================== */

/* Admin Secondary Subnav Bar */
.admin-subnav-bar {
    background: rgba(10, 11, 17, 0.98);
    border-bottom: 1px solid rgba(255, 51, 68, 0.22);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
    position: sticky;
    top: 56px;
    z-index: 1040;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.admin-subnav-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #ff3344;
    background: rgba(255, 51, 68, 0.12);
    border: 1px solid rgba(255, 51, 68, 0.25);
    border-radius: 6px;
    padding: 3px 8px;
    white-space: nowrap;
}
.admin-nav-scroll-wrap {
    overflow-x: auto;
    padding: 2px 0;
    scrollbar-width: none;
}
.admin-nav-scroll-wrap::-webkit-scrollbar {
    display: none;
}
.admin-subnav-pill {
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.16s ease;
    display: inline-flex;
    align-items: center;
}
.admin-subnav-pill:hover {
    color: #fff;
    background: rgba(255, 51, 68, 0.14);
    border-color: rgba(255, 51, 68, 0.4);
    transform: translateY(-1px);
}
.admin-subnav-pill.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 51, 68, 0.3), rgba(255, 51, 68, 0.15));
    border-color: #ff3344;
    box-shadow: 0 0 10px rgba(255, 51, 68, 0.35);
}

/* ===================================================
   Ultra-Refined & Compact Typography for Admin Backoffice
   =================================================== */
body.admin-page,
body:has(.admin-subnav-bar) {
    font-size: 0.84rem;
}

body.admin-page h4,
body:has(.admin-subnav-bar) h4 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px;
}
body.admin-page h5,
body:has(.admin-subnav-bar) h5 {
    font-size: 0.98rem !important;
    font-weight: 700 !important;
}
body.admin-page h6,
body:has(.admin-subnav-bar) h6 {
    font-size: 0.86rem !important;
    font-weight: 600 !important;
}
body.admin-page p.text-muted,
body:has(.admin-subnav-bar) p.text-muted,
body.admin-page small,
body:has(.admin-subnav-bar) small {
    font-size: 0.76rem !important;
}

/* Compact & Refined Stat Cards */
body.admin-page .stat-card,
body:has(.admin-subnav-bar) .stat-card {
    padding: 12px 14px !important;
    border-radius: 12px !important;
    background: rgba(14, 16, 25, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}
body.admin-page .stat-card:hover,
body:has(.admin-subnav-bar) .stat-card:hover {
    border-color: rgba(255, 26, 64, 0.3) !important;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}
body.admin-page .stat-card-label,
body:has(.admin-subnav-bar) .stat-card-label {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #94a3b8 !important;
}
body.admin-page .stat-card-value,
body:has(.admin-subnav-bar) .stat-card-value {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    margin-bottom: 2px !important;
    line-height: 1.2;
}
body.admin-page .stat-card-unit,
body:has(.admin-subnav-bar) .stat-card-unit {
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    opacity: 0.8;
}
body.admin-page .stat-card-sub,
body:has(.admin-subnav-bar) .stat-card-sub {
    font-size: 0.7rem !important;
}
body.admin-page .stat-card-icon-wrap,
body:has(.admin-subnav-bar) .stat-card-icon-wrap {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
}

/* Compact Tables */
body.admin-page table.table-bn,
body:has(.admin-subnav-bar) table.table-bn {
    font-size: 0.8rem;
    margin-bottom: 0;
}
body.admin-page table.table-bn th,
body:has(.admin-subnav-bar) table.table-bn th {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #94a3b8 !important;
    padding: 8px 12px !important;
    background: rgba(8, 10, 16, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    white-space: nowrap;
}
body.admin-page table.table-bn td,
body:has(.admin-subnav-bar) table.table-bn td {
    font-size: 0.78rem !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    vertical-align: middle;
}
body.admin-page table.table-bn tr:hover td,
body:has(.admin-subnav-bar) table.table-bn tr:hover td {
    background: rgba(255, 26, 64, 0.03);
}

/* Compact Form Inputs & Controls */
body.admin-page .form-label,
body:has(.admin-subnav-bar) .form-label {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #e2e8f0;
    margin-bottom: 4px;
}
body.admin-page .bn-input,
body:has(.admin-subnav-bar) .bn-input {
    height: 36px !important;
    font-size: 0.8rem !important;
    padding: 5px 10px !important;
    border-radius: 8px !important;
    background: rgba(14, 16, 25, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}
body.admin-page select.bn-input,
body:has(.admin-subnav-bar) select.bn-input {
    background-color: #0d1117 !important;
}
body.admin-page textarea.bn-input,
body:has(.admin-subnav-bar) textarea.bn-input {
    height: auto !important;
    padding: 8px 10px !important;
}
body.admin-page .bn-input:focus,
body:has(.admin-subnav-bar) .bn-input:focus {
    border-color: #ff1a40 !important;
    box-shadow: 0 0 10px rgba(255, 26, 64, 0.25) !important;
    outline: none !important;
}

/* Action Buttons in Admin */
body.admin-page .btn-action-add,
body:has(.admin-subnav-bar) .btn-action-add,
body.admin-page .btn-cyber-outline,
body:has(.admin-subnav-bar) .btn-cyber-outline,
body.admin-page .btn-cyber-success,
body:has(.admin-subnav-bar) .btn-cyber-success {
    height: 34px !important;
    font-size: 0.78rem !important;
    padding: 5px 13px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}
body.admin-page .btn-table-action,
body:has(.admin-subnav-bar) .btn-table-action {
    height: 27px !important;
    font-size: 0.74rem !important;
    padding: 2px 9px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}
body.admin-page .btn-table-action:hover,
body:has(.admin-subnav-bar) .btn-table-action:hover {
    color: #fff;
    background: rgba(255, 26, 64, 0.2);
    border-color: rgba(255, 26, 64, 0.4);
}

/* Compact Badges */
body.admin-page .badge-role-admin,
body:has(.admin-subnav-bar) .badge-role-admin,
body.admin-page .badge-role-agent,
body:has(.admin-subnav-bar) .badge-role-agent,
body.admin-page .badge-role-member,
body:has(.admin-subnav-bar) .badge-role-member,
body.admin-page .badge-status-active,
body:has(.admin-subnav-bar) .badge-status-active,
body.admin-page .badge-status-danger,
body:has(.admin-subnav-bar) .badge-status-danger,
body.admin-page .badge-status-warning,
body:has(.admin-subnav-bar) .badge-status-warning,
body.admin-page .badge-status-inactive,
body:has(.admin-subnav-bar) .badge-status-inactive {
    font-size: 0.68rem !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
    letter-spacing: 0.2px;
}

/* Compact Admin Cards & Panels */
body.admin-page .bn-card,
body:has(.admin-subnav-bar) .bn-card {
    background: rgba(14, 16, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

/* Compact Modals for Admin */
body.admin-page .modal-content,
body:has(.admin-subnav-bar) .modal-content {
    background: #0d111a !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8) !important;
}
body.admin-page .modal-header,
body:has(.admin-subnav-bar) .modal-header {
    padding: 12px 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.admin-page .modal-header .modal-title,
body:has(.admin-subnav-bar) .modal-header .modal-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
}
body.admin-page .modal-header .modal-icon-wrap,
body:has(.admin-subnav-bar) .modal-header .modal-icon-wrap {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
    margin-right: 10px;
}
body.admin-page .modal-body,
body:has(.admin-subnav-bar) .modal-body {
    padding: 16px 18px !important;
}
body.admin-page .modal-footer,
body:has(.admin-subnav-bar) .modal-footer {
    padding: 10px 18px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.admin-page .btn-modal-cancel,
body:has(.admin-subnav-bar) .btn-modal-cancel {
    height: 34px !important;
    font-size: 0.78rem !important;
    padding: 5px 14px !important;
    border-radius: 8px !important;
}
body.admin-page .btn-modal-submit,
body:has(.admin-subnav-bar) .btn-modal-submit {
    height: 34px !important;
    font-size: 0.78rem !important;
    padding: 5px 18px !important;
    border-radius: 8px !important;
}

/* Compact Pagination */
body.admin-page .page-link,
body:has(.admin-subnav-bar) .page-link {
    font-size: 0.76rem !important;
    padding: 4px 10px !important;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}
body.admin-page .page-item.active .page-link,
body:has(.admin-subnav-bar) .page-item.active .page-link {
    background: #ff1a40 !important;
    border-color: #ff1a40 !important;
    color: #fff !important;
}

/* ===================================================
   Cyber Luxury Banner Slider Carousel (Header Hero)
   =================================================== */
.bn-slider-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 26, 64, 0.28);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(255, 26, 64, 0.18);
    background: #0b0d14;
    margin-bottom: 18px;
}
.bn-slider-wrap .carousel-inner {
    border-radius: 22px;
}
.bn-slide-item {
    position: relative;
    height: 380px;
    background: #06070a;
    overflow: hidden;
}
@media (max-width: 991px) {
    .bn-slide-item {
        height: 300px;
    }
}
@media (max-width: 768px) {
    .bn-slide-item {
        height: 240px;
    }
}
@media (max-width: 480px) {
    .bn-slide-item {
        height: 190px;
    }
}
.bn-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bn-slider-wrap:hover .bn-slide-img {
    transform: scale(1.02);
}
.bn-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 13, 20, 0.05) 0%, rgba(11, 13, 20, 0.4) 45%, rgba(9, 10, 16, 0.94) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px 40px;
    pointer-events: none;
}
@media (max-width: 768px) {
    .bn-slide-overlay {
        padding: 16px 20px;
    }
}
.bn-slide-content {
    pointer-events: auto;
    max-width: 620px;
}
.bn-slide-title {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
    letter-spacing: -0.3px;
    line-height: 1.25;
}
@media (max-width: 768px) {
    .bn-slide-title {
        font-size: 1.15rem;
        margin-bottom: 3px;
    }
}
.bn-slide-subtitle {
    color: #cbd5e1;
    font-size: 0.92rem;
    margin-bottom: 14px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}
@media (max-width: 768px) {
    .bn-slide-subtitle {
        font-size: 0.78rem;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
.bn-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff1a40 0%, #c80424 100%);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(255, 26, 64, 0.4);
    transition: all 0.2s ease;
}
.bn-slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 26, 64, 0.65);
    color: #ffffff;
}
@media (max-width: 768px) {
    .bn-slide-btn {
        padding: 5px 12px;
        font-size: 0.72rem;
    }
}

/* Slider Navigation Arrows */
.bn-slider-ctrl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(13, 15, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0.75;
}
.bn-slider-ctrl:hover {
    background: rgba(255, 26, 64, 0.9);
    border-color: #ff1a40;
    color: #ffffff;
    opacity: 1;
    box-shadow: 0 0 18px rgba(255, 26, 64, 0.65);
}
.bn-slider-prev {
    left: 18px;
}
.bn-slider-next {
    right: 18px;
}
@media (max-width: 768px) {
    .bn-slider-ctrl {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    .bn-slider-prev { left: 8px; }
    .bn-slider-next { right: 8px; }
}

/* Slider Indicator Dots */
.bn-slider-indicators {
    position: absolute;
    bottom: 16px;
    right: 32px;
    left: auto;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}
@media (max-width: 768px) {
    .bn-slider-indicators {
        bottom: 10px;
        right: 16px;
    }
}
.bn-slider-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0.75;
    margin: 0;
    padding: 0;
}
.bn-slider-indicators .active {
    width: 26px;
    background: #ff1a40;
    opacity: 1;
    box-shadow: 0 0 10px #ff1a40;
}

/* Quick Bar below slider */
.bn-quick-bar {
    background: radial-gradient(120% 120% at 10% 10%, rgba(30, 14, 22, 0.9) 0%, rgba(13, 15, 24, 0.95) 100%);
    border: 1.2px solid rgba(255, 26, 64, 0.22);
    border-radius: 20px;
    padding: 14px 22px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.bn-quick-wallet {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bn-quick-wallet-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(0,0,0,0.4);
    padding: 3px;
    border: 1px solid rgba(255,255,255,0.1);
}
.bn-quick-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===================================================
   Distinct Admin Backoffice Topbar (แยกหลังบ้านชัดเจน)
   =================================================== */
.admin-topbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: rgba(12, 13, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(255, 26, 64, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 26, 64, 0.25);
}

.admin-navbar {
    padding: 8px 0 !important;
}

.admin-brand {
    text-decoration: none;
    padding: 0;
}

.admin-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff1a40, #99001f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 0 14px rgba(255, 26, 64, 0.5);
}

.admin-brand-title {
    font-family: var(--font-en);
    font-weight: 900;
    font-size: 0.96rem;
    color: #ffffff;
    letter-spacing: 0.8px;
    line-height: 1.2;
}

.badge-admin-tag {
    font-family: var(--font-en);
    font-size: 0.65rem;
    font-weight: 800;
    color: #ff4d6d;
    background: rgba(255, 26, 64, 0.16);
    border: 1px solid rgba(255, 26, 64, 0.35);
    border-radius: 4px;
    padding: 1px 6px;
    letter-spacing: 0.5px;
}

.admin-brand-sub {
    font-size: 0.68rem;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.admin-nav-link {
    color: #cbd5e1 !important;
    font-size: 0.82rem !important;
    font-weight: 600;
    padding: 6px 11px !important;
    border-radius: 8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

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

.admin-nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 26, 64, 0.22);
    border: 1px solid rgba(255, 26, 64, 0.45);
    box-shadow: 0 0 12px rgba(255, 26, 64, 0.25);
}

.btn-store-switch {
    font-size: 0.78rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 5px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn-store-switch:hover {
    color: #ffffff;
    background: #0284c7;
    border-color: #0284c7;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.admin-user-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 3px 8px;
}

.admin-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 26, 64, 0.3);
    color: #ff4d6d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.admin-username {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
}

/* Quick Jump to Admin from Storefront */
.btn-goto-admin {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 5px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn-goto-admin:hover {
    color: #000;
    background: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
}

/* ===================================================
   Standardized Footer (Client & Admin)
   =================================================== */
.bn-standard-footer {
    margin-top: auto;
    background: linear-gradient(180deg, rgba(10, 11, 17, 0.96) 0%, #06070a 100%);
    border-top: 1.5px solid rgba(255, 26, 64, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 10;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(3px);
}

/* --- Redesigned Footer Contact Cards --- */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.footer-contact-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.065);
}

.footer-contact-card.contact-line:hover {
    border-color: rgba(6, 199, 85, 0.5);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.18);
}

.footer-contact-card.contact-fb:hover {
    border-color: rgba(24, 119, 242, 0.5);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.18);
}

.footer-contact-card.contact-phone:hover {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.18);
}

.footer-contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.footer-contact-card:hover .footer-contact-icon {
    transform: scale(1.08);
}

.contact-line .footer-contact-icon {
    background: rgba(6, 199, 85, 0.16);
    color: #06c755;
    border: 1px solid rgba(6, 199, 85, 0.35);
}

.contact-fb .footer-contact-icon {
    background: rgba(24, 119, 242, 0.16);
    color: #1877f2;
    border: 1px solid rgba(24, 119, 242, 0.35);
}

.contact-phone .footer-contact-icon {
    background: rgba(245, 158, 11, 0.16);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.footer-contact-meta {
    flex-grow: 1;
    min-width: 0;
}

.footer-contact-title {
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-contact-desc {
    color: #94a3b8;
    font-size: 0.73rem;
    line-height: 1.3;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-contact-arrow {
    color: #64748b;
    font-size: 0.72rem;
    transition: transform 0.2s, color 0.2s;
}

.footer-contact-card:hover .footer-contact-arrow {
    color: #ffffff;
    transform: translateX(2px);
}

.footer-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: #34d399;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 1px 7px;
    border-radius: 20px;
    font-weight: 600;
}

.footer-live-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
    animation: footerPulseDot 2s infinite;
}

@keyframes footerPulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.admin-footer-bar {
    margin-top: auto;
    background: rgba(8, 9, 14, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
}

.admin-foot-link {
    transition: color 0.2s;
}

.admin-foot-link:hover {
    color: #38bdf8 !important;
}

/* ===================================================
   CHIC ULTRA-MODERN STOREFRONT (INDEX REDESIGN)
   =================================================== */

/* Ambient glow & backdrop enhancements */
.store-page {
    position: relative;
}

.store-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 480px;
    background: radial-gradient(circle, rgba(255, 0, 51, 0.12) 0%, rgba(56, 189, 248, 0.04) 50%, transparent 80%);
    pointer-events: none;
    z-index: 0;
    filter: blur(50px);
}

/* --- Hero Slider --- */
.chic-hero-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(255, 0, 51, 0.15);
    background: #090a10;
}

.chic-carousel {
    border-radius: 24px;
    overflow: hidden;
}

.chic-slide-item {
    height: 380px;
    position: relative;
    overflow: hidden;
    background: #06070a;
}

@media (max-width: 768px) {
    .chic-slide-item {
        height: 220px;
    }
}

.chic-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item.active .chic-slide-img {
    transform: scale(1.06);
}

.chic-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 8, 14, 0.94) 0%, rgba(7, 8, 14, 0.65) 50%, rgba(7, 8, 14, 0.2) 100%);
    display: flex;
    align-items: center;
    padding: 0 48px;
    z-index: 2;
}

@media (max-width: 768px) {
    .chic-slide-overlay {
        padding: 0 20px;
        background: linear-gradient(90deg, rgba(7, 8, 14, 0.96) 0%, rgba(7, 8, 14, 0.7) 100%);
    }
}

.chic-slide-content {
    max-width: 580px;
}

.chic-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 26, 64, 0.15);
    border: 1px solid rgba(255, 26, 64, 0.4);
    color: #ff4d6d;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 16px rgba(255, 26, 64, 0.25);
}

.chic-slide-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 10px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
    background: linear-gradient(135deg, #ffffff 40%, #ff8095 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .chic-slide-title {
        font-size: 1.35rem;
    }
}

.chic-slide-sub {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .chic-slide-sub {
        font-size: 0.78rem;
        margin-bottom: 12px;
        -webkit-line-clamp: 1;
    }
}

.chic-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff0033 0%, #b80024 100%);
    color: #ffffff !important;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 0, 51, 0.45);
    transition: all 0.25s ease;
}

.chic-slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 51, 0.7);
    color: #ffffff !important;
}

.chic-slider-indicators {
    bottom: 16px;
    margin-bottom: 0;
    gap: 8px;
}

.chic-slider-indicators button {
    width: 28px;
    height: 5px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    transition: all 0.3s ease;
}

.chic-slider-indicators button.active {
    width: 44px;
    background: #ff0033;
    box-shadow: 0 0 12px rgba(255, 0, 51, 0.8);
}

/* --- Floating Member Hub / Quick Wallet Bar --- */
.chic-user-hub {
    background: rgba(14, 16, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px 22px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

.chic-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chic-avatar-wrap {
    position: relative;
}

.chic-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff0033, #790018);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.chic-avatar-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #0e101a;
}

.chic-wallet-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 3px 10px;
    border-radius: 8px;
    margin-top: 4px;
}

.chic-hub-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.chic-hub-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.22s ease;
    white-space: nowrap;
}

.chic-hub-btn-primary {
    background: linear-gradient(135deg, #ff0033, #bd0026);
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(255, 0, 51, 0.35);
}

.chic-hub-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 0, 51, 0.6);
    color: #ffffff !important;
}

.chic-hub-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.chic-hub-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.55);
    color: #ffffff !important;
}

.chic-hub-btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.chic-hub-btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
}

.chic-hub-btn-login {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.chic-hub-btn-login:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

.chic-hub-btn-register {
    background: linear-gradient(135deg, #ff0033 0%, #c70d30 100%);
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 26, 64, 0.7);
    box-shadow: 0 4px 18px rgba(255, 0, 51, 0.45);
}
.chic-hub-btn-register:hover {
    background: linear-gradient(135deg, #ff264d 0%, #e6002e 100%);
    border-color: #ff3355;
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(255, 0, 51, 0.75);
    color: #ffffff !important;
}

.chic-hub-btn-shop {
    background: rgba(245, 158, 11, 0.08);
    color: #fef3c7 !important;
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.chic-hub-btn-shop:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.7);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.4);
}

/* --- Live Stats Metric Grid --- */
.chic-stats-row {
    margin-bottom: 24px;
}

.chic-metric-card {
    background: rgba(14, 16, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.chic-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--mc-color, #ff0033);
    border-radius: 18px 0 0 18px;
}

.chic-metric-card:hover {
    transform: translateY(-3px);
    border-color: var(--mc-color, #ff0033);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--mc-rgb, 255, 0, 51), 0.2);
}

.chic-metric-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(var(--mc-rgb, 255, 0, 51), 0.12);
    border: 1px solid rgba(var(--mc-rgb, 255, 0, 51), 0.3);
    color: var(--mc-color, #ff0033);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.chic-metric-val {
    font-size: 1.55rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    font-family: var(--font-brand, sans-serif);
}

.chic-metric-lbl {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 3px;
    font-weight: 600;
}

/* --- Section Bar & Category Pills --- */
.chic-store-header {
    margin-bottom: 18px;
}

.chic-cat-container {
    background: rgba(14, 16, 26, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 24px;
}

.chic-cat-container::-webkit-scrollbar {
    display: none;
}

.chic-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.22s ease;
}

.chic-cat-pill:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.chic-cat-pill.active {
    background: linear-gradient(135deg, #ff0033 0%, #b80024 100%);
    border-color: #ff0033;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(255, 0, 51, 0.5);
}

/* Search Input */
.chic-search-bar {
    position: relative;
    max-width: 340px;
    width: 100%;
}

.chic-search-input {
    width: 100%;
    background: rgba(14, 16, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 10px 16px 10px 42px;
    color: #ffffff;
    font-size: 0.88rem;
    transition: all 0.22s ease;
}

.chic-search-input:focus {
    outline: none;
    border-color: #ff0033;
    box-shadow: 0 0 16px rgba(255, 0, 51, 0.35);
    background: rgba(18, 20, 32, 0.95);
}

.chic-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.9rem;
}

/* --- Ultra-Chic Product Cards --- */
.chic-card {
    background: rgba(14, 16, 26, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
}

.chic-card:hover {
    transform: translateY(-7px);
    border-color: rgba(255, 0, 51, 0.6);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 0, 51, 0.25);
}

.chic-card-thumb-wrap {
    height: 195px;
    background: #0d0f18;
    position: relative;
    display: block;
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 576px) {
    .chic-card-thumb-wrap {
        height: 180px;
    }
}

.chic-card-thumb-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 40%, rgba(14, 16, 26, 0.7) 100%);
    pointer-events: none;
    z-index: 1;
}

.chic-card-thumb {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
    filter: none;
    display: block;
}

.chic-card:hover .chic-card-thumb {
    transform: scale(1.06);
}

/* Stock Pulse Dot Indicator */
.pulse-dot-green {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseDotAnim 1.6s infinite;
}

@keyframes pulseDotAnim {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.chic-card-badge-stock-wrap {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
}

.chic-card-badge-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.chic-badge-in-stock {
    background: rgba(16, 185, 129, 0.9);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.chic-badge-out-stock {
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
}

.chic-card-tag-hot {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff0033, #dc2626);
    color: #ffffff;
    padding: 3px 9px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(255, 0, 51, 0.5);
}

.chic-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.chic-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chic-card-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    transition: color 0.2s ease;
}

.chic-card-desc:hover {
    color: #e2e8f0;
}

/* Product Detail Action Button (ดูรายละเอียดสินค้าเพิ่มเติม) */
.chic-btn-detail {
    width: 100%;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #cbd5e1 !important;
    font-weight: 600;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.22s ease;
    text-decoration: none;
    margin-bottom: 12px;
}

.chic-btn-detail:hover {
    background: rgba(255, 26, 64, 0.12);
    border-color: rgba(255, 26, 64, 0.4);
    color: #ff4d6d !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 26, 64, 0.2);
}

.chic-btn-detail.active {
    background: rgba(255, 26, 64, 0.18);
    border-color: rgba(255, 26, 64, 0.45);
    color: #ff4d6d !important;
}

.chic-card-desc.is-expanded {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
    color: #e2e8f0;
    white-space: pre-wrap;
    background: rgba(0, 0, 0, 0.35);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 10px;
    animation: fadeInChicDesc 0.22s ease;
    font-size: 0.82rem;
    line-height: 1.6;
}

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

.chic-btn-detail-popup {
    width: 36px;
    height: 33px;
    padding: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-bottom: 12px;
}

.chic-btn-detail-popup:hover {
    background: rgba(255, 26, 64, 0.15);
    border-color: rgba(255, 26, 64, 0.4);
    color: #ff4d6d;
    transform: translateY(-1px);
}

.chic-detail-content-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    color: #cbd5e1;
    font-size: 0.86rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 280px;
    overflow-y: auto;
}

.chic-detail-content-box::-webkit-scrollbar {
    width: 6px;
}
.chic-detail-content-box::-webkit-scrollbar-thumb {
    background: rgba(255, 26, 64, 0.35);
    border-radius: 4px;
}
.chic-detail-content-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}


/* Variant Pills inside Card */
.chic-variant-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.chic-var-pill {
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.chic-var-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.chic-var-pill.active {
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.25), rgba(255, 0, 51, 0.1));
    border-color: #ff0033;
    color: #ff4d6d;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(255, 0, 51, 0.3);
}

.chic-var-pill.is-out {
    opacity: 0.45;
    text-decoration: line-through;
}

/* Price Section */
.chic-card-price-row {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 14px;
}

.chic-price-number {
    font-size: 1.45rem;
    font-weight: 900;
    color: #ffffff;
    font-family: var(--font-brand, sans-serif);
    line-height: 1;
}

.chic-price-agent-note {
    font-size: 0.74rem;
    color: #fbbf24;
    font-weight: 700;
    margin-top: 3px;
}

/* Buy Action Button */
.chic-btn-buy {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #ff0033 0%, #bd0026 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 18px rgba(255, 0, 51, 0.45);
    text-decoration: none;
}

.chic-btn-buy:hover {
    background: linear-gradient(135deg, #ff1a47 0%, #d1002d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(255, 0, 51, 0.7);
    color: #ffffff !important;
}

.chic-btn-buy:disabled,
.chic-btn-buy.disabled {
    background: #1f2333 !important;
    color: #64748b !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

/* --- Chic Feature & Steps Blocks --- */
.chic-feature-card {
    background: rgba(14, 16, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 22px;
    transition: all 0.25s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.chic-feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--feat-color, #ff0033);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--feat-rgb, 255, 0, 51), 0.2);
}

.chic-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(var(--feat-rgb, 255, 0, 51), 0.12);
    border: 1px solid rgba(var(--feat-rgb, 255, 0, 51), 0.25);
    color: var(--feat-color, #ff0033);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.chic-step-box {
    background: rgba(14, 16, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    position: relative;
    transition: all 0.25s ease;
}

.chic-step-box:hover {
    transform: translateY(-4px);
    border-color: #ff0033;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 0, 51, 0.2);
}

.chic-step-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 0, 51, 0.15);
    border: 1px solid rgba(255, 0, 51, 0.4);
    color: #ff4d6d;
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================================
   ULTRA-CHIC MOBILE NAVIGATION DRAWER & MENU
   =================================================== */
@media (max-width: 991.98px) {
    #storefrontNavbarContent {
        background: rgba(11, 13, 23, 0.98) !important;
        border: 1px solid rgba(255, 0, 51, 0.35) !important;
        border-radius: 22px !important;
        padding: 16px !important;
        margin-top: 14px !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(255, 0, 51, 0.15) !important;
        max-height: 85vh;
        overflow-y: auto;
    }

    .mobile-nav-wrapper {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    /* Mobile User Profile Box */
    .mobile-user-card {
        background: rgba(18, 21, 34, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 18px;
        padding: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }

    .mobile-avatar {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        background: linear-gradient(135deg, #ff0033, #7c0018);
        color: #ffffff;
        font-size: 1.25rem;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 16px rgba(255, 0, 51, 0.45);
        border: 1.5px solid rgba(255, 255, 255, 0.15);
        flex-shrink: 0;
    }

    .mobile-btn-logout {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: rgba(239, 68, 68, 0.12);
        border: 1px solid rgba(239, 68, 68, 0.3);
        color: #f87171;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .mobile-btn-logout:hover {
        background: #ef4444;
        color: #ffffff;
        box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
    }

    /* Mobile Wallet Pill Box */
    .mobile-wallet-box {
        background: rgba(10, 12, 19, 0.9);
        border: 1px solid rgba(34, 197, 94, 0.35);
        border-radius: 14px;
        padding: 12px 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 12px;
    }

    .mobile-wallet-val {
        font-size: 1.2rem;
        font-weight: 900;
        color: #4ade80;
        font-family: var(--font-brand, sans-serif);
        line-height: 1.1;
    }

    .mobile-admin-jump-btn {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.08));
        border: 1px solid rgba(245, 158, 11, 0.4);
        border-radius: 12px;
        padding: 10px 14px;
        color: #fbbf24;
        font-size: 0.82rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        text-decoration: none;
        margin-top: 12px;
        transition: all 0.2s ease;
    }

    .mobile-admin-jump-btn:hover {
        background: #f59e0b;
        color: #000;
        border-color: #f59e0b;
        box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
    }

    /* Mobile Guest Card */
    .mobile-guest-card {
        background: rgba(18, 21, 34, 0.95);
        border: 1px solid rgba(255, 0, 51, 0.3);
        border-radius: 18px;
        padding: 16px;
        text-align: center;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }

    /* Mobile Nav List */
    .mobile-nav-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-nav-heading {
        font-size: 0.72rem;
        font-weight: 800;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        margin: 6px 4px 2px;
    }

    .mobile-nav-item {
        display: flex;
        align-items: center;
        gap: 12px;
        background: rgba(18, 21, 34, 0.65);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 12px 14px;
        text-decoration: none;
        transition: all 0.22s ease;
    }

    .mobile-nav-item:hover,
    .mobile-nav-item.active {
        background: rgba(255, 0, 51, 0.12);
        border-color: rgba(255, 0, 51, 0.45);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(255, 0, 51, 0.15);
        transform: translateX(3px);
    }

    .mobile-nav-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .mobile-nav-icon.icon-store {
        background: rgba(255, 0, 51, 0.15);
        color: #ff4d6d;
        border: 1px solid rgba(255, 0, 51, 0.3);
    }

    .mobile-nav-icon.icon-otp {
        background: rgba(56, 189, 248, 0.15);
        color: #38bdf8;
        border: 1px solid rgba(56, 189, 248, 0.3);
    }

    .mobile-nav-icon.icon-topup {
        background: rgba(16, 185, 129, 0.15);
        color: #34d399;
        border: 1px solid rgba(16, 185, 129, 0.3);
    }

    .mobile-nav-icon.icon-wallet {
        background: rgba(245, 158, 11, 0.15);
        color: #fbbf24;
        border: 1px solid rgba(245, 158, 11, 0.3);
    }

    .mobile-nav-icon.icon-history {
        background: rgba(168, 85, 247, 0.15);
        color: #c084fc;
        border: 1px solid rgba(168, 85, 247, 0.3);
    }

    .mobile-nav-text {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .mobile-nav-text .title {
        color: #ffffff;
        font-size: 0.92rem;
        font-weight: 700;
        line-height: 1.25;
    }

    .mobile-nav-item.active .mobile-nav-text .title {
        color: #ff4d6d;
    }

    .mobile-nav-text .sub {
        color: #94a3b8;
        font-size: 0.74rem;
        line-height: 1.3;
        margin-top: 2px;
    }

    .mobile-nav-arrow {
        color: #475569;
        font-size: 0.8rem;
        transition: transform 0.2s;
    }

    .mobile-nav-item:hover .mobile-nav-arrow,
    .mobile-nav-item.active .mobile-nav-arrow {
        color: #ff4d6d;
        transform: translateX(3px);
    }
}

/* ===================================================
   FLOATING CONTACT WIDGET (SIDEBAR SPEED DIAL)
   =================================================== */
.bn-floating-contact {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 1050;
}

@media (max-width: 576px) {
    .bn-floating-contact {
        bottom: 20px;
        right: 16px;
    }
}

.bn-floating-btn {
    position: relative;
    height: 50px;
    padding: 0 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff0033 0%, #bd0026 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(255, 0, 51, 0.5), 0 0 16px rgba(255, 0, 51, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 2;
}

@media (max-width: 576px) {
    .bn-floating-btn {
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}

.bn-floating-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 30px rgba(255, 0, 51, 0.7), 0 0 25px rgba(255, 0, 51, 0.4);
}

.btn-ripple {
    position: absolute;
    inset: -4px;
    border-radius: 50px;
    border: 2px solid rgba(255, 0, 51, 0.6);
    animation: contactRipple 2.4s infinite;
    pointer-events: none;
}

@keyframes contactRipple {
    0% { transform: scale(0.96); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 0; }
    100% { transform: scale(0.96); opacity: 0; }
}

.bn-floating-btn .btn-icon-chat {
    font-size: 1.25rem;
    display: inline-block;
    transition: transform 0.25s ease;
}

.bn-floating-btn .btn-icon-close {
    display: none;
    font-size: 1.25rem;
}

.btn-contact-label {
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.bn-floating-contact.is-open .btn-icon-chat {
    display: none;
}

.bn-floating-contact.is-open .btn-icon-close {
    display: inline-block;
}

.bn-floating-contact.is-open .btn-ripple {
    display: none;
}

/* Contact Popup Menu */
.bn-contact-menu {
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: rgba(14, 16, 26, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 0, 51, 0.35);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 0, 51, 0.18);
    padding: 18px;
    display: none;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.bn-contact-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bn-contact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.bn-contact-head-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 0, 51, 0.15);
    border: 1px solid rgba(255, 0, 51, 0.3);
    color: #ff4d6d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.bn-contact-head-title {
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.2;
}

.bn-contact-head-sub {
    color: #94a3b8;
    font-size: 0.74rem;
    margin-top: 2px;
}

.btn-close-contact {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-contact:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
}

.bn-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bn-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 11px 14px;
    text-decoration: none;
    transition: all 0.22s ease;
}

.bn-contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.bn-contact-item.item-line:hover {
    background: rgba(6, 199, 85, 0.12);
    border-color: rgba(6, 199, 85, 0.5);
}

.bn-contact-item.item-fb:hover {
    background: rgba(24, 119, 242, 0.12);
    border-color: rgba(24, 119, 242, 0.5);
}

.bn-contact-item.item-phone:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.5);
}

.bn-contact-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.item-line .bn-contact-item-icon {
    background: rgba(6, 199, 85, 0.18);
    border: 1px solid rgba(6, 199, 85, 0.4);
    color: #06c755;
}

.item-fb .bn-contact-item-icon {
    background: rgba(24, 119, 242, 0.18);
    border: 1px solid rgba(24, 119, 242, 0.4);
    color: #1877f2;
}

.item-phone .bn-contact-item-icon {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #f59e0b;
}

.bn-contact-item-info {
    flex-grow: 1;
    overflow: hidden;
}

.bn-contact-item-info .name {
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
}

.bn-contact-item-info .val {
    color: #94a3b8;
    font-size: 0.74rem;
    line-height: 1.3;
    margin-top: 2px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.bn-contact-item .arrow-icon {
    color: #64748b;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.bn-contact-item:hover .arrow-icon {
    color: #ffffff;
    transform: translateX(2px);
}

.bn-contact-footer {
    text-align: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    color: #64748b;
}

/* ==========================================================================
   BN PREMIUM BACKOFFICE - HIGH-END CYBERPUNK ADMIN SUITE
   Ultra-Modern Glassmorphism, Neon Accents, Compact & Crisp Layout
   ========================================================================== */

/* 1. Admin Topbar / Navigation */
.admin-topbar-wrapper {
    background: rgba(10, 10, 16, 0.92) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}
.admin-navbar {
    padding: 10px 0 !important;
}
.admin-brand {
    text-decoration: none;
}
.admin-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff1a40 0%, #b80020 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(255, 26, 64, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}
.admin-brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.8px;
    line-height: 1.2;
}
.badge-admin-tag {
    font-size: 0.62rem;
    font-weight: 700;
    background: rgba(255, 26, 64, 0.15);
    color: #ff4d6d;
    border: 1px solid rgba(255, 26, 64, 0.35);
    padding: 1px 6px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.admin-brand-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1;
}

.admin-nav-link {
    color: #cbd5e1 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    padding: 7px 12px !important;
    border-radius: 9px !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}
.admin-nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06) !important;
    transform: translateY(-1px);
}
.admin-nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(255, 26, 64, 0.22) 0%, rgba(255, 26, 64, 0.08) 100%) !important;
    border: 1px solid rgba(255, 26, 64, 0.4) !important;
    box-shadow: 0 2px 12px rgba(255, 26, 64, 0.25) !important;
}

.btn-store-switch {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}
.btn-store-switch:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.45);
    color: #34d399;
}

.admin-user-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3px 10px 3px 4px;
}
.admin-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 26, 64, 0.25);
    color: #ff4d6d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
}
.admin-username {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f8fafc;
}

/* 2. Admin Unified Cards & Surfaces */
.bn-card {
    background: linear-gradient(145deg, rgba(20, 20, 28, 0.85) 0%, rgba(13, 13, 19, 0.95) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    position: relative;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.bn-card:hover {
    border-color: rgba(255, 255, 255, 0.13) !important;
}

/* 3. Stat Cards High Contrast */
.stat-card {
    background: linear-gradient(135deg, rgba(22, 22, 32, 0.8) 0%, rgba(14, 14, 20, 0.95) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    padding: 16px 18px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 26, 64, 0.35) !important;
}
.stat-card-label {
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-card-value {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 4px 0 !important;
}
.stat-card-sub {
    font-size: 0.75rem !important;
    color: #cbd5e1 !important;
}
.stat-card-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.stat-icon-amber   { background: rgba(245, 158, 11, 0.14); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.stat-icon-cyan    { background: rgba(6, 182, 212, 0.14); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.stat-icon-emerald { background: rgba(16, 185, 129, 0.14); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.stat-icon-rose    { background: rgba(244, 63, 94, 0.14); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.stat-icon-violet  { background: rgba(139, 92, 246, 0.14); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }

/* 4. Admin Forms & Inputs */
body.admin-page .bn-input,
body:has(.admin-subnav-bar) .bn-input,
.form-control.bn-input,
.form-select.bn-input {
    background: rgba(10, 10, 16, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    font-size: 0.84rem !important;
    padding: 9px 13px;
    transition: all 0.2s ease !important;
}

/* Ensure input with icon inside wrapper always has correct spacing */
.bn-input-wrap .bn-input {
    padding-left: 52px !important;
}
.bn-input-wrap .bn-input.has-toggle {
    padding-left: 52px !important;
    padding-right: 48px !important;
}
.bn-input:focus,
.form-control.bn-input:focus,
.form-select.bn-input:focus {
    background: rgba(15, 15, 22, 0.95) !important;
    border-color: #ff1a40 !important;
    box-shadow: 0 0 14px rgba(255, 26, 64, 0.3) !important;
    outline: none !important;
}
.bn-input::placeholder {
    color: #64748b !important;
}

/* 5. Buttons in Admin Suite */
.btn-cyber-outline {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 7px 14px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}
.btn-cyber-outline:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.btn-action-add {
    background: linear-gradient(135deg, #ff1a40 0%, #c40023 100%) !important;
    border: 1px solid rgba(255, 26, 64, 0.5) !important;
    color: #ffffff !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    padding: 7px 16px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    box-shadow: 0 4px 14px rgba(255, 26, 64, 0.4) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
}
.btn-action-add:hover {
    background: linear-gradient(135deg, #ff3355 0%, #d80027 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(255, 26, 64, 0.6) !important;
    transform: translateY(-1px);
}

/* 6. Admin Table (Ultra Clean & High Legibility) */
.table-bn,
.table-dark.table-bn {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(255, 26, 64, 0.035);
    margin-bottom: 0;
}
.table-bn th {
    background: rgba(12, 12, 18, 0.9) !important;
    color: #94a3b8 !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    padding: 13px 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: none !important;
}
.table-bn td {
    padding: 13px 14px !important;
    color: #cbd5e1 !important;
    font-size: 0.82rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    vertical-align: middle !important;
}
.table-bn tbody tr:hover td {
    color: #ffffff !important;
}

.btn-table-action {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}
.btn-table-action:hover {
    background: rgba(255, 26, 64, 0.12) !important;
    border-color: rgba(255, 26, 64, 0.4) !important;
    color: #ffffff !important;
}

/* Status Badges */
.badge-status-active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 7px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.badge-status-active:hover {
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

.badge-status-danger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 7px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.badge-status-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

/* 7. Admin Modals */
.modal-content.bn-card,
.modal-content.bg-dark {
    background: linear-gradient(145deg, #161622 0%, #0d0d14 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important;
}
.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 16px 22px !important;
}
.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 14px 22px !important;
}
.modal-body {
    padding: 22px !important;
}
