/* ========================================
   JIKSAWSHOP — Premium Blue/White Theme (Dynamic Web Font System)
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700;800;900&family=Kanit:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Mali:wght@400;500;600;700&family=Mitr:wght@300;400;500;600;700&family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ===== CSS Variables ===== */
:root {
    --primary: #0284c7;
    --primary-light: #0ea5e9;
    --primary-dark: #0369a1;
    --primary-glow: rgba(14, 165, 233, 0.25);
    --accent: #0ea5e9;
    --accent-light: #38bdf8;
    
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f9ff;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.95);
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-glow: rgba(14, 165, 233, 0.4);
    
    --success: #0ea5e9;
    --warning: #0ea5e9;
    --danger: #ef4444;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(14, 165, 233, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 30px rgba(14, 165, 233, 0.12), 0 4px 10px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 0 25px rgba(14, 165, 233, 0.2);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --font-th: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-en: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-main: 'Kanit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 70px;
}

/* ===== Reset & Global Font ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-th);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(37, 99, 235, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--primary-light); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea, optgroup, option { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: inherit; font-weight: 700; }
p, label, div, small, span { font-family: inherit; }
b, strong { font-family: inherit; font-weight: 700; }

/* Preserve Icon Fonts */
.bx, [class^="bx-"], [class*=" bx-"], [class^="bxs-"], [class*=" bxs-"], [class^="bxl-"], [class*=" bxl-"] {
    font-family: 'boxicons' !important;
    font-weight: normal;
    font-style: normal;
}

.fa, .fas, .far, .fal, .fad, .fab, [class^="fa-"], [class*=" fa-"] {
    font-family: 'Font Awesome 6 Free', 'FontAwesome', sans-serif !important;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ===== Navigation Bar (Pure White Background & Modern Blue Accents) ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(14, 165, 233, 0.08);
    height: var(--nav-height, 70px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-brand span,
.nav-brand-text {
    font-family: var(--font-en), var(--font-th);
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.5px;
}

.nav-logo,
.nav-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
    flex-shrink: 0;
}

.nav-logo img,
.nav-brand-icon img,
.nav-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #f1f5f9;
    padding: 4px 6px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.nav-link {
    padding: 0.45rem 1rem;
    border-radius: 10px;
    color: #475569;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-link i {
    color: #0ea5e9;
    font-size: 1.15rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #0284c7;
    background: #ffffff;
    border-color: #cbd5e1;
}

.nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

.nav-link.active i {
    color: #ffffff !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* User Pill & Auth Buttons in White Nav */
.nav-user-pill,
.user-menu-btn {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7;
}

.nav-user-pill:hover,
.user-menu-btn:hover {
    background: #0284c7;
    color: #ffffff;
}

/* Zero-Flicker Auth Display */
html.is-logged-in #navAuth {
    display: none !important;
}
html.is-logged-in #navUser {
    display: flex !important;
}
html.is-guest #navAuth {
    display: flex !important;
}
html.is-guest #navUser {
    display: none !important;
}

.nav-actions #navAuth .btn-secondary {
    background: #ffffff !important;
    color: #0284c7 !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 0.48rem 1.1rem !important;
    font-size: 0.92rem !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nav-actions #navAuth .btn-secondary:hover {
    background: #f8fafc !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.nav-actions #navAuth .btn-primary {
    background: rgba(0, 0, 0, 0.22) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    padding: 0.48rem 1.1rem !important;
    font-size: 0.92rem !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
}

.nav-actions #navAuth .btn-primary:hover {
    background: rgba(0, 0, 0, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-1px);
}

.nav-actions #navAuth .btn-secondary:hover {
    background: #f8fafc !important;
    transform: translateY(-1px);
}

.nav-actions #navAuth .btn-primary {
    background: rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    font-weight: 700 !important;
}

.nav-actions #navAuth .btn-primary:hover {
    background: rgba(0, 0, 0, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    transform: translateY(-1px);
}

.nav-balance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 700;
}

/* ===== User Profile Pill in Navbar (Modern White & Blue Theme) ===== */
.nav-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 1rem 0.35rem 0.45rem;
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    border-radius: 30px;
    font-size: 0.92rem;
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.nav-user:hover {
    background: #e0f2fe;
    border-color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.2);
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #0ea5e9;
    background: #0284c7;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}

.nav-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-user span {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #0f172a;
    font-weight: 700;
}

/* ===== Premium User Dropdown Menu (Clean White & Blue) ===== */
.user-dropdown-menu {
    position: fixed;
    top: 75px;
    right: 1.5rem;
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-radius: 20px;
    padding: 0.85rem;
    min-width: 250px;
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.15), 0 4px 15px rgba(0, 0, 0, 0.08);
    z-index: 99999;
    backdrop-filter: blur(15px);
    animation: fadeInDown 0.2s ease-out;
}

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

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.5rem 0.75rem;
}

.user-dropdown-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.user-dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-dropdown-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-dropdown-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-role .badge-role {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
    margin-top: 2px;
}

.badge-role.badge-admin {
    background: #fefce8;
    color: #ca8a04;
    border-color: #fef08a;
}

.user-dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0.5rem 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 600;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: var(--font-th);
}

.user-dropdown-item i {
    font-size: 1.2rem;
    color: #0ea5e9;
}

.user-dropdown-item:hover {
    background: #f0f9ff;
    color: #0284c7;
    transform: translateX(3px);
}

.user-dropdown-item.item-admin {
    background: #fefce8;
    color: #854d0e;
    border: 1.5px solid #fde047;
    margin: 0.35rem 0;
    font-weight: 800;
}

.user-dropdown-item.item-admin i {
    color: #ca8a04;
    font-size: 1.25rem;
}

.user-dropdown-item.item-admin:hover {
    background: #fef08a;
    color: #713f12;
    border-color: #eab308;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.2);
}

.user-dropdown-item.item-logout {
    color: #dc2626;
    font-weight: 700;
}

.user-dropdown-item.item-logout i {
    color: #ef4444;
}

.user-dropdown-item.item-logout:hover {
    background: #fee2e2;
    color: #b91c1c;
}

/* Mobile menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
}

/* ===== Main Content ===== */
.main-content {
    margin-top: 0;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - var(--nav-height));
}

.section {
    display: none;
    padding: 1rem 1.5rem 2.5rem;
    max-width: 1280px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease;
}

.section.active {
    display: block;
}

/* ===== Hero Banner Graphic ===== */
.hero-banner-container {
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background: var(--bg-card);
}

.hero-banner-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18), 0 0 35px rgba(14, 165, 233, 0.22);
    border-color: rgba(56, 189, 248, 0.4);
}

.hero-banner-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 4rem 2rem;
    text-align: center;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.15) 0%, 
        rgba(6, 182, 212, 0.05) 50%, 
        rgba(37, 99, 235, 0.1) 100%);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 1.5rem;
    position: relative;
    animation: fadeIn 0.5s ease 0.2s both;
}

.hero h1 {
    font-family: var(--font-en);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    position: relative;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ===== Section Headers ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* ===== Quick Menu ===== */
.quick-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 2rem 0 3rem;
}

.quick-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.quick-menu-item:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}

.quick-menu-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.quick-menu-item:hover .quick-menu-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 20px var(--primary-glow);
}

.quick-menu-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ===== Section Headers with Vertical Accent Bar ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    position: relative;
    letter-spacing: -0.2px;
}

.section-title .title-accent-bar {
    width: 4.5px;
    height: 22px;
    background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
    border-radius: 4px;
    display: inline-block;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
    flex-shrink: 0;
}

/* ===== Ultra-Clean Gaming Product Card (Exact Match to User Screenshot) ===== */
.products-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 1400px) {
    .products-grid,
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.product-card:hover {
    border-color: #0ea5e9;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.16);
}

.product-card.is-sold-out {
    opacity: 0.75;
    filter: grayscale(0.25);
}

/* Full Height Image Frame (Show Entire Image with no cropping) */
.product-card-image-wrap {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #000000;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.product-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background: #090e17;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.badge-installment {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* Card Body */
.product-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.25rem 0.35rem 0.25rem;
}

.product-card-name {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    color: #0f172a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot-green {
    font-size: 0.85rem;
    display: inline-block;
}

.product-card-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.product-card-price-row .price-val {
    font-family: var(--font-en), var(--font-th);
    font-size: 1.35rem;
    font-weight: 700;
    color: #0284c7;
}

.product-card-price-row .price-currency {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0284c7;
}

/* Big Blue Action Button */
.btn-product-buy {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    font-family: var(--font-th);
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-product-buy:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.btn-product-buy.btn-sold-out {
    background: #f1f5f9;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

/* Stock Footer */
.product-card-stock-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    padding-top: 0.2rem;
}

.product-card-stock-footer i {
    font-size: 1.1rem;
    color: #475569;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary-glow);
}

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

.btn-secondary:hover {
    border-color: var(--border-glow);
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

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

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

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

.form-input::placeholder {
    color: var(--text-muted);
}

select.form-input {
    cursor: pointer;
}

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

.form-file-input {
    position: relative;
    width: 100%;
    padding: 2rem;
    background: var(--bg-surface);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-md);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.form-file-input:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.form-file-input input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.form-file-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-file-label .icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

@keyframes modalSmoothPop {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(16px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===== Ultra-Clean Wide Modal (Smooth Scroll & Modern White/Blue Theme) ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-radius: 24px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    animation: modalSmoothPop 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.2), 0 4px 20px rgba(0, 0, 0, 0.1);
    scrollbar-width: thin;
    scrollbar-color: #bae6fd transparent;
}

/* Standalone Alert & Dialog Modal Cards */
.modal-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.35), 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    position: relative !important;
    width: 100% !important;
    z-index: 100001 !important;
    animation: modalSmoothPop 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Action Dialog Overlay (Super High Z-Index for nested confirmations) */
.action-dialog-overlay {
    z-index: 999999 !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.action-dialog-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 24px !important;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.4) !important;
    max-width: 440px !important;
    width: 100% !important;
    padding: 2.25rem 2rem !important;
    text-align: center !important;
    position: relative !important;
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.action-dialog-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 1.1rem !important;
}

.action-dialog-icon-wrapper {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2.2rem !important;
    margin: 0 auto 1.25rem !important;
}

.action-dialog-icon-wrapper.danger,
.action-dialog-icon-wrapper.error {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border: 2px solid #fecaca !important;
}

.action-dialog-icon-wrapper.warning {
    background: #fffbeb !important;
    color: #f59e0b !important;
    border: 2px solid #fde68a !important;
}

.action-dialog-icon-wrapper.success {
    background: #ecfdf5 !important;
    color: #10b981 !important;
    border: 2px solid #a7f3d0 !important;
}

.action-dialog-title {
    font-size: 1.3rem !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    margin-bottom: 0.5rem !important;
}

.action-dialog-message {
    font-size: 0.95rem !important;
    color: #475569 !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
}

.action-dialog-buttons {
    display: flex !important;
    gap: 0.75rem !important;
    align-items: center !important;
}

.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-thumb {
    background: #bae6fd;
    border-radius: 10px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-title i {
    color: #0284c7;
    font-size: 1.4rem;
}

.modal-close {
    width: 34px;
    height: 34px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #64748b;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.modal-close:hover {
    color: #ef4444;
    background: #fee2e2;
    border-color: #fca5a5;
}

.modal-body {
    padding: 1.75rem;
}

.modal-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background: #f8fafc;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

/* Modal Content Enhancements */
.direct-pay-modal-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 640px) {
    .direct-pay-modal-grid {
        grid-template-columns: 1fr;
    }
}

.direct-pay-qr-card {
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    border-radius: 18px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.08);
}

/* Security QR Card with Protected Frame */
.qr-watermark-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px;
    background: #ffffff;
    padding: 8px;
    border: 2px solid #0ea5e9;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.15);
}

.qr-security-header {
    width: 100%;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px 8px 0 0;
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.qr-watermark-wrap img {
    display: block;
    border-radius: 6px;
    max-width: 100%;
}

.qr-security-footer {
    width: 100%;
    background: #f0f9ff;
    border: 1px dashed #bae6fd;
    color: #0284c7;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 0 0 8px 8px;
    margin-top: 6px;
    text-align: center;
}

.qr-security-badge-sub {
    font-size: 0.72rem;
    color: #ef4444;
    font-weight: 700;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.direct-pay-details-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.payment-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed #cbd5e1;
}

.payment-row-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.payment-row-item .label {
    color: #64748b;
    font-weight: 500;
}

.payment-row-item .val {
    color: #0f172a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-copy-tag {
    background: #ffffff;
    border: 1px solid #bae6fd;
    color: #0284c7;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-tag:hover {
    background: #0284c7;
    color: #ffffff;
}

/* ===== Success Popup ===== */
.success-popup {
    text-align: center;
    padding: 2rem 1.5rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
    border: 2px solid var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    animation: pulse 1s ease;
}

.success-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--success);
}

.success-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.success-game-info {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.success-game-info h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.success-game-info .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.success-game-info .info-row:last-child {
    border-bottom: none;
}

.success-game-info .info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.success-game-info .info-value {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--accent-light);
    font-weight: 600;
}

.success-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* ===== Topup Section ===== */
.topup-flow {
    max-width: 600px;
    margin: 0 auto;
}

.topup-step {
    display: none;
}

.topup-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.admin-list {
    display: grid;
    gap: 1rem;
}

.admin-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.admin-card:hover, .admin-card.selected {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 20px var(--primary-glow);
}

.admin-card-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.admin-card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.admin-card-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.payment-info-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.payment-info-box h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.payment-row:last-child {
    border-bottom: none;
}

.payment-row .label {
    color: var(--text-muted);
}

.payment-row .value {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== History / Orders ===== */
.history-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.history-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.history-tab.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.order-card:hover {
    border-color: var(--border-glow);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.order-id {
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.order-status {
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-xl);
    font-size: 0.7rem;
    font-weight: 600;
}

.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-rejected, .status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.status-approved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.order-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-product {
    font-weight: 600;
    font-size: 0.95rem;
}

.order-amount {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--primary-light);
}

.order-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.order-game-info {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.order-game-info .info-row {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.order-game-info .info-label {
    color: var(--text-muted);
    min-width: 70px;
}

.order-game-info .info-value {
    color: var(--accent-light);
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* ===== Random Box ===== */
.random-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.random-box-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.random-box-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.random-box-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.random-box-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shimmer 3s infinite;
}

.random-box-body {
    padding: 1.25rem;
}

.random-box-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.random-box-price {
    font-family: var(--font-en);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

/* Box opening animation */
.box-opening-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.box-opening-overlay.active {
    display: flex;
}

.box-container {
    width: 200px;
    height: 200px;
    perspective: 1000px;
    margin-bottom: 2rem;
}

.box-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: boxSpin 2s ease-in-out;
}

@keyframes boxSpin {
    0% { transform: rotateY(0deg) scale(0.5); }
    50% { transform: rotateY(360deg) scale(1.2); }
    75% { transform: rotateY(540deg) scale(1); }
    100% { transform: rotateY(720deg) scale(1); }
}

.box-face {
    position: absolute;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, var(--bg-card), var(--bg-surface));
    border-radius: var(--radius-md);
    box-shadow: 0 0 30px var(--primary-glow);
}

.prize-reveal {
    text-align: center;
    animation: fadeInUp 0.5s ease 2s both;
}

.prize-reveal h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.prize-rarity {
    font-size: 0.9rem;
    padding: 0.3rem 1rem;
    border-radius: var(--radius-xl);
    display: inline-block;
    margin-bottom: 1.5rem;
}

.rarity-common { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }
.rarity-rare { background: rgba(37, 99, 235, 0.2); color: #3b82f6; }
.rarity-epic { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.rarity-legendary { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

/* ===== Reviews ===== */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.review-user {
    font-weight: 600;
    font-size: 0.9rem;
}

.review-stars {
    color: #f59e0b;
    font-size: 0.85rem;
}

.review-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== Auth Section ===== */
.auth-container {
    max-width: 420px;
    margin: 3rem auto;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.auth-toggle {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-toggle a {
    color: var(--primary-light);
    cursor: pointer;
    font-weight: 600;
}

.auth-toggle a:hover {
    text-decoration: underline;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 0.85rem;
}

/* ===== Notification Toast ===== */
.toast-container {
    position: fixed;
    top: calc(var(--nav-height) + 1rem);
    right: 1rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 280px;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.toast-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.toast-info {
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: var(--primary-light);
}

/* ===== Loading & Preloader (Compact Mascot Logo, No Background) ===== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

/* Empty State Mascot Spinner */
.empty-state .loading-spinner,
.mascot-loading-spinner {
    width: 58px;
    height: 58px;
    position: relative;
    border-radius: 50%;
    background: url('/images/mascot.jpg') center/cover no-repeat;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    animation: mascotFloat 2s ease-in-out infinite;
    border: 2.5px solid #ffffff;
    margin: 1.5rem auto;
}

.empty-state .loading-spinner::before,
.mascot-loading-spinner::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    border-top-color: #38bdf8;
    border-right-color: #0ea5e9;
    border-bottom-color: #fbbf24;
    animation: spin 1.1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.empty-state .loading-spinner::after,
.mascot-loading-spinner::after {
    content: '';
    position: absolute;
    inset: -11px;
    border-radius: 50%;
    border: 1.5px dashed rgba(56, 189, 248, 0.35);
    animation: spinReverse 3s linear infinite;
}

/* ===== Clean Minimal Mascot Logo Preloader ===== */
.page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 23, 0.88);
    backdrop-filter: blur(8px);
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.page-preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-mascot-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.preloader-logo-ring {
    width: 65px;
    height: 65px;
    position: relative;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo-ring::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    border-top-color: #38bdf8;
    border-right-color: #0ea5e9;
    border-bottom-color: #facc15;
    animation: spin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.preloader-logo-img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
    animation: mascotFloat 2s ease-in-out infinite;
}

.preloader-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.skeleton-img {
    width: 100%;
    height: 140px;
    border-radius: 0 !important;
}

.skeleton-body {
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    justify-content: space-between;
}

.skeleton-title {
    width: 75%;
    height: 16px;
    border-radius: 4px !important;
}

.skeleton-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.skeleton-price {
    width: 35%;
    height: 22px;
    border-radius: 6px !important;
}

.skeleton-btn {
    width: 38%;
    height: 32px;
    border-radius: 8px !important;
}

.skeleton-category-card {
    height: 85px;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    width: 100%;
}

.shop-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 500;
}

.breadcrumb-nav a {
    color: #94a3b8;
}

.breadcrumb-nav a:hover {
    color: #38bdf8;
}

.breadcrumb-nav .breadcrumb-active {
    color: #facc15;
    font-weight: 700;
}

.shop-search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #0f131c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    min-width: 240px;
}

.shop-search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.9rem;
    width: 100%;
}

.shop-search-bar i {
    color: #94a3b8;
    font-size: 1.1rem;
}

.filter-chip {
    padding: 0.4rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.filter-chip:hover, .filter-chip.active {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--primary);
    color: var(--primary-light);
}

/* ===== Modern Discord & Social Community Hub Footer (White & Sky Blue Theme) ===== */
.footer {
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 40%, #f8fafc 100%);
    border-top: 2px solid #bae6fd;
    padding: 3.5rem 1.5rem 1.5rem;
    margin-top: 5rem;
    position: relative;
    z-index: 1;
    color: #334155;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
}

/* Discord Community Banner Widget (White & Sky Blue) */
.footer-discord-widget {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1.5px solid #7dd3fc;
    border-radius: 24px;
    padding: 2rem 2.25rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.12), inset 0 1px 0 #ffffff;
    position: relative;
    overflow: hidden;
}

.footer-discord-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.discord-widget-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

.discord-widget-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
    flex-shrink: 0;
    animation: float 4s ease-in-out infinite;
}

.discord-widget-info h3 {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discord-widget-info p {
    font-size: 0.9rem;
    color: #475569;
    margin: 0;
}

.discord-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.discord-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}

.btn-join-discord {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 2;
}

.btn-join-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.5);
    filter: brightness(1.08);
}

/* 4-Column Social Channels Grid (Clean White & Sky Blue) */
.footer-social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.social-channel-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.social-channel-card:hover {
    transform: translateY(-3px);
    border-color: #38bdf8;
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.15);
    background: #f8fafc;
}

.social-channel-card.facebook:hover { border-color: #1877f2; }
.social-channel-card.discord:hover { border-color: #5865f2; }
.social-channel-card.line:hover { border-color: #06c755; }
.social-channel-card.tiktok:hover { border-color: #0f172a; }

.social-channel-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.social-channel-card.facebook .social-channel-icon { background: #eff6ff; color: #1877f2; }
.social-channel-card.discord .social-channel-icon { background: #eef2ff; color: #5865f2; }
.social-channel-card.line .social-channel-icon { background: #f0fdf4; color: #06c755; }
.social-channel-card.tiktok .social-channel-icon { background: #f8fafc; color: #0f172a; }

.social-channel-info .social-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    display: block;
    margin-bottom: 2px;
}

.social-channel-info .social-sub {
    font-size: 0.78rem;
    color: #64748b;
    display: block;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-nav-links {
    display: flex;
    gap: 1.25rem;
}

.footer-nav-links a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-nav-links a:hover {
    color: #0284c7;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-social-grid {
        grid-template-columns: 1fr;
    }
    .footer-discord-widget {
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .btn-join-discord {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Category Browse Cards in Shop ===== */
.categories-browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-browse-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
}

.category-browse-card:hover {
    transform: translateY(-6px);
    border-color: #38bdf8;
    box-shadow: 0 16px 36px rgba(14, 165, 233, 0.18);
}

.category-browse-cover {
    height: 160px;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.category-browse-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.category-browse-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.8) 100%);
}

.category-browse-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: #38bdf8;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
}

.category-browse-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-browse-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-browse-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.category-browse-btn {
    width: 100%;
    background: #f0f9ff;
    color: #0284c7;
    border: 1.5px solid #bae6fd;
    border-radius: 14px;
    padding: 0.65rem;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.category-browse-card:hover .category-browse-btn {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .section {
        padding: 1.5rem 1rem;
    }

    .nav-balance {
        display: none;
    }

    .filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .success-actions {
        flex-direction: column;
    }
}

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

    .quick-menu {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }

/* Category Showcase Grid */
.category-showcase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 2rem; } .category-horizontal-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; cursor: pointer; } .category-horizontal-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); } .category-h-image { width: 100%; height: 120px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; color: rgba(255,255,255,0.9); } .category-h-body { padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border-light); } .category-h-info h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.5rem; } .category-h-info p { font-size: 0.85rem; color: var(--text-muted); } @media (max-width: 768px) { .category-showcase-grid { grid-template-columns: 1fr; } }

/* Unified 4-Column Grid Container */
.grid-4-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Quick Banner Buttons (Row 1) */
.quick-banner-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quick-banner-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.15);
    border-color: var(--primary-light);
}

.quick-banner-btn:active {
    transform: scale(0.96);
}

.qb-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(59, 130, 246, 0.12));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.quick-banner-btn:hover .qb-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.qb-text {
    display: flex;
    flex-direction: column;
}

.qb-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.qb-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Stats Cards (Row 2) */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.stat-card:active {
    transform: scale(0.96);
}

.stat-bg-icon {
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 5.5rem;
    opacity: 0.04;
    color: var(--text-primary);
    pointer-events: none;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-bg-icon {
    opacity: 0.09;
    transform: scale(1.1) rotate(-6deg);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    font-family: var(--font-th);
}

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

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

/* ===== FEATURED BADGES & HIGHLIGHTS ===== */
.badge-featured-gold {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-horizontal-card.is-featured-cat {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.12);
}

.category-horizontal-card.is-featured-cat .category-h-image {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.product-card.is-featured-prod {
    border-color: rgba(245, 158, 11, 0.35);
}

.product-card.is-featured-prod:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
}

/* ===== RANDOM BOXES SHOWCASE CARDS ===== */
.random-box-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.random-box-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.15);
}

.random-box-card-img {
    height: 160px;
    width: 100%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.random-box-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.random-box-card:hover .random-box-card-img img {
    transform: scale(1.05);
}

.random-box-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

/* ===== MAINTENANCE MODE SCREEN ===== */
.maintenance-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #111827 0%, #030712 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: #ffffff;
    text-align: center;
}

.maintenance-content-box {
    max-width: 540px;
    width: 100%;
    background: rgba(17, 24, 39, 0.85);
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.2), inset 0 0 20px rgba(239, 68, 68, 0.05);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    animation: fadeIn 0.4s ease-out;
}

.maintenance-logo-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    border: 3px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
    overflow: hidden;
    background: #000;
}

.maintenance-logo-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.maintenance-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f87171;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.maintenance-desc {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.maintenance-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Floating Admin Warning Banner */
.admin-maintenance-banner {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    color: white;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.admin-maintenance-banner a {
    color: #fef08a;
    text-decoration: underline;
    font-weight: 800;
}

/* ========================================= */
/* 7. MARQUEE BAR & PROMO POPUP (ข้อ 6) */
/* ========================================= */

/* Marquee Bar */
.marquee-bar-wrapper {
    width: 100%;
    background: linear-gradient(90deg, #090d16, #0f172a, #090d16);
    border-bottom: 1px solid rgba(14, 165, 233, 0.25);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 0.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 99;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.06);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.stat-card:hover {
    border-color: #0ea5e9;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.15);
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    background: #f0f9ff !important;
    color: #0284c7 !important;
    border: 1px solid #bae6fd;
    flex-shrink: 0;
    transition: all 0.35s ease;
    z-index: 1;
}

.stat-card:hover .stat-icon {
    transform: scale(1.12) rotate(6deg);
    background: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.stat-card .stat-info {
    flex: 1;
    z-index: 1;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    font-family: var(--font-en), var(--font-th);
    line-height: 1.2;
}

.stat-card .stat-unit {
    font-size: 0.85rem;
    color: #0284c7;
    font-weight: 600;
}

/* Background watermark icon with animation */
.stat-card .stat-bg-icon {
    position: absolute;
    right: -8px;
    bottom: -10px;
    font-size: 5rem;
    color: #0284c7;
    opacity: 0.08;
    pointer-events: none;
    transition: all 0.4s ease;
    z-index: 0;
}

.stat-card:hover .stat-bg-icon {
    opacity: 0.18;
    transform: scale(1.15) rotate(-10deg);
}

/* Quick Banner Buttons (Row 1 - Premium Blue Gradient Action Cards with Soft Clean Border) */
.quick-banner-btn {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #38bdf8 100%);
    border: 1px solid rgba(2, 132, 199, 0.4);
    border-radius: 18px;
    padding: 1.15rem 1.35rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
    position: relative;
    overflow: hidden;
}

.quick-banner-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.quick-banner-btn:hover::before {
    left: 100%;
}

.quick-banner-btn:hover {
    border-color: #0284c7;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35), 0 0 20px rgba(14, 165, 233, 0.4);
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #0ea5e9 100%);
}

.quick-banner-btn .qb-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    transition: all 0.35s ease;
}

.quick-banner-btn:hover .qb-icon {
    transform: scale(1.15) rotate(8deg);
    background: #ffffff;
    color: #0284c7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quick-banner-btn .qb-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.quick-banner-btn .qb-subtitle {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

/* Recent Sales Marquee (Pure White Background & Blue Accents) */
.recent-sales-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0.25rem 0;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.recent-sales-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: scrollMarquee 7s linear infinite;
}

.recent-sales-track:hover {
    animation-play-state: paused;
}

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

.recent-sale-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.65rem 1.15rem;
    border-radius: 14px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.08);
    transition: all 0.25s ease;
}

.recent-sale-card:hover {
    border-color: #0ea5e9;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.15);
}

.recent-sale-thumb {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #bae6fd;
}

.recent-sale-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recent-sale-user {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0284c7;
    display: flex;
    align-items: center;
    gap: 4px;
}

.recent-sale-prod {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-sale-time {
    font-size: 0.72rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 3px;
}

.marquee-bar-inner {
    display: inline-flex;
    align-items: center;
    gap: 3rem;
    animation: marqueeScroll 25s linear infinite;
}

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

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
}

.marquee-tag {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
    text-transform: uppercase;
}

@keyframes marqueeScroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* Promo Popup Modal */
.promo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.promo-popup-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(14, 165, 233, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-popup-overlay.active .promo-popup-card {
    transform: scale(1);
}

.promo-popup-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.promo-popup-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: scale(1.1);
}

.promo-popup-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.promo-popup-body {
    padding: 1.5rem;
    text-align: center;
}

.promo-popup-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.promo-popup-content {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.promo-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ========================================= */
/* 8. CATEGORY SHOWCASE & HORIZONTAL CARDS */
/* ========================================= */
.category-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

/* ========================================= */
/* 8. CATEGORY SHOWCASE (2 Large Banner Cards Matching Screenshot) */
/* ========================================= */
.category-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 800px) {
    .category-showcase-grid {
        grid-template-columns: 1fr;
    }
}

.category-banner-card {
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    position: relative;
}

.category-banner-card:hover {
    transform: translateY(-6px);
    border-color: #38bdf8;
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.category-banner-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}

.category-banner-card:hover .category-banner-image img {
    transform: scale(1.06);
}

.category-banner-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    font-size: 4rem;
}

.category-banner-body {
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.category-banner-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-banner-info span {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.category-banner-action {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0284c7;
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.category-banner-card:hover .category-banner-action {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

/* ========================================= */
/* 9. RECENT SALES TICKER / MARQUEE (Clean Transparent / No Dark Box) */
/* ========================================= */
.recent-sales-marquee {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.25rem 0;
    margin: 0.75rem 0 1.25rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: none;
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.recent-sales-track {
    display: flex;
    gap: 1rem;
    animation: scrollMarquee 22s linear infinite;
    width: max-content;
}

.recent-sales-track:hover {
    animation-play-state: paused;
}

/* ===== Exclusive JIKSAW Live Order Pill Capsule Card ===== */
.recent-sale-card {
    background: #ffffff;
    border: 1px solid #e0f2fe;
    border-radius: 50px;
    padding: 0.45rem 1.1rem 0.45rem 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.08);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
}

.recent-sale-card:hover {
    border-color: #0284c7;
    background: #f0f9ff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.16);
}

.recent-sale-thumb-wrapper {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.recent-sale-thumb {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #e0f2fe;
    border: 2px solid #bae6fd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.recent-sale-verified-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    background: #16a34a;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8px;
}

.recent-sale-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.recent-sale-header-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.recent-sale-user {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.recent-sale-price-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: #0284c7;
    background: #e0f2fe;
    padding: 1px 7px;
    border-radius: 12px;
    font-family: var(--font-en);
    display: inline-flex;
    align-items: center;
}

.recent-sale-bottom-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.recent-sale-prod {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-sale-dot-sep {
    color: #cbd5e1;
    font-size: 0.65rem;
}

.recent-sale-time {
    font-size: 0.72rem;
    color: #94a3b8;
    white-space: nowrap;
}

/* ======================================================
   ORIGINAL COMPACT JIKSAW PRODUCT DETAIL HUB (WHITE & BLUE THEME)
   ====================================================== */
.jiksaw-detail-wrapper {
    padding: 1.5rem 0 4rem;
    min-height: 80vh;
    background: #f8fafc;
}

.jiksaw-compact-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Top Navigation Bar */
.jiksaw-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.jiksaw-crumb-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 0.35rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.jiksaw-crumb-pill a {
    color: #64748b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.jiksaw-crumb-pill a:hover {
    color: #0284c7;
}

.jiksaw-crumb-pill .separator {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.jiksaw-crumb-pill .crumb-current {
    color: #0284c7;
    font-weight: 700;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jiksaw-return-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 0.35rem 1rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.jiksaw-return-btn:hover {
    border-color: #0ea5e9;
    color: #0284c7;
    background: #f0f9ff;
    transform: translateX(-2px);
}

/* ⚡ Main Showcase Card (White Card with Soft Blue Border) */
.jiksaw-product-hub-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.75rem;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.75rem;
    position: relative;
}

@media (max-width: 860px) {
    .jiksaw-product-hub-card {
        grid-template-columns: 1fr;
    }
}

/* Left Media Frame */
.jiksaw-media-deck {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.jiksaw-main-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 280px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    background: #090e17;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jiksaw-main-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.jiksaw-main-frame:hover img {
    transform: scale(1.04);
}

.jiksaw-verified-pill {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #bae6fd;
    color: #0284c7;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Right Command Deck */
.jiksaw-command-deck {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    justify-content: center;
}

.jiksaw-badge-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.jiksaw-chip-cat {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 3px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.jiksaw-chip-status {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0284c7;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 3px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.jiksaw-chip-delivery {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 3px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.jiksaw-title-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
}

/* Price Banner Cockpit */
.jiksaw-price-cockpit {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 14px;
    padding: 0.65rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-cockpit-info {
    display: flex;
    flex-direction: column;
}

.price-title {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.price-figure {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-figure .val {
    font-family: var(--font-en), var(--font-th);
    font-size: 1.85rem;
    font-weight: 700;
    color: #0284c7;
}

.price-figure .unit {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.price-cockpit-sub {
    font-size: 0.78rem;
    color: #0284c7;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #bae6fd;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Quantity Deck */
.jiksaw-qty-deck {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.qty-deck-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.stock-live-note {
    font-size: 0.8rem;
    color: #0284c7;
    font-weight: 600;
}

.jiksaw-stepper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.jiksaw-stepper {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
}

.step-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: #0f172a;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.step-btn:hover {
    background: #f0f9ff;
    color: #0284c7;
}

.jiksaw-stepper input {
    width: 50px;
    height: 36px;
    background: transparent;
    border: none;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    font-family: var(--font-en);
    outline: none;
}

.jiksaw-calc-total {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.calc-label {
    font-size: 0.88rem;
    color: #64748b;
}

.calc-amount {
    font-family: var(--font-en), var(--font-th);
    font-size: 1.45rem;
    font-weight: 700;
    color: #0284c7;
}

/* Action Hub */
.jiksaw-action-hub {
    display: flex;
    gap: 0.6rem;
}

.jiksaw-btn-buy {
    flex: 1;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-size: 1.02rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.jiksaw-btn-buy:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.45);
}

.jiksaw-btn-help {
    width: 48px;
    border-radius: 12px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.jiksaw-btn-help:hover {
    background: #0284c7;
    color: #ffffff;
}

/* Security Perks Row */
.jiksaw-perks-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.2rem;
    border-top: 1px solid #f1f5f9;
}

.perk-item {
    font-size: 0.75rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.perk-item i {
    color: #0284c7;
    font-size: 0.95rem;
}

/* 📖 Tabbed Specs & Info Hub */
.jiksaw-specs-hub {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.jiksaw-hub-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.hub-tab-btn {
    flex: 1;
    padding: 0.9rem 1rem;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: var(--font-th);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.hub-tab-btn:hover {
    color: #0284c7;
    background: #f0f9ff;
}

.hub-tab-btn.active {
    color: #0284c7;
    background: #ffffff;
    border-bottom-color: #0284c7;
}

.jiksaw-hub-content {
    padding: 1.5rem;
}

.hub-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.spec-cell {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.spec-key {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.spec-val {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
}

.hub-desc-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem;
}

.hub-desc-box h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.desc-text {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.6;
}

.hub-tab-panel {
    padding: 1.5rem;
}

/* Specs Matrix (High Contrast White & Blue) */
.jiksaw-info-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.matrix-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.92rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.matrix-item .m-label {
    color: #0284c7;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.matrix-item .m-label i {
    color: #0ea5e9;
    font-size: 1.1rem;
}

.matrix-item .m-val {
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
}

.matrix-item .m-val.highlight-green {
    color: #0284c7;
    font-weight: 700;
}

/* Description Text */
.jiksaw-rich-description .desc-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.desc-text-wrapper {
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.7;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.1rem 1.35rem;
    white-space: pre-wrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Steps Grid in Tab 2 */
.jiksaw-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.step-card {
    background: #f8fafc;
    border: 1px solid #bae6fd;
    border-radius: 16px;
    padding: 1.25rem 1rem;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.06);
    transition: transform 0.2s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    border-color: #0ea5e9;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.12);
}

.step-num {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

.step-card h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.4rem 0;
}

.step-card p {
    font-size: 0.84rem;
    color: #475569;
    margin: 0;
    line-height: 1.55;
}

.jiksaw-terms-card {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.06);
}

.jiksaw-terms-card h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0284c7;
    margin: 0 0 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.jiksaw-terms-card ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #334155;
    font-size: 0.88rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .jiksaw-product-hub-card {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }
    .jiksaw-main-frame {
        height: 210px;
    }
    .jiksaw-info-matrix {
        grid-template-columns: 1fr;
    }
    .jiksaw-steps-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   PAYMENT CHANNEL SELECTOR — WHITE & CYAN/BLUE LUXURY THEME
   ========================================= */

/* Modal Container (Clean Crisp White & Blue) */
.pay-channel-modal {
    max-width: 480px !important;
    background: #ffffff !important;
    border: 1.5px solid #e0f2fe !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px rgba(2, 132, 199, 0.16), 0 10px 25px rgba(15, 23, 42, 0.08) !important;
    overflow: hidden;
}

.pay-channel-modal .modal-header {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 1.5rem 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    position: relative;
}

.pay-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pay-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.pay-brand-badge i {
    font-size: 0.95rem;
}

.pay-modal-title-main {
    font-size: 1.28rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0.2rem 0 0;
    letter-spacing: -0.3px;
}

.pay-meta-subbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #0284c7;
}

.pay-meta-subbar .order-code {
    font-family: var(--font-en, 'Inter');
    font-weight: 600;
    color: #64748b;
}

.pay-meta-subbar .countdown-tag {
    color: #d97706;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pay-channel-modal .modal-header .modal-close {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pay-channel-modal .modal-header .modal-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #ef4444;
}

/* Product Card Box (Clean Blue-tinted card) */
.pay-channel-product-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.pay-prod-header-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.pay-prod-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    border: 1.5px solid #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1);
    flex-shrink: 0;
}

.pay-prod-info {
    flex: 1;
    min-width: 0;
}

.pay-prod-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pay-prod-store-badge {
    font-size: 0.74rem;
    font-weight: 700;
    color: #0284c7;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.pay-prod-divider {
    height: 1px;
    background: #e2e8f0;
    border-style: dashed;
    margin: 0.75rem 0;
}

.pay-prod-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pay-prod-price-row .price-lbl {
    font-size: 0.84rem;
    color: #475569;
    font-weight: 600;
}

.pay-prod-price-row .price-val {
    font-size: 1.65rem;
    font-weight: 900;
    color: #0284c7;
    font-family: var(--font-en, 'Inter');
    letter-spacing: -0.5px;
}

/* Section Heading */
.pay-channel-section-label {
    font-size: 0.82rem;
    color: #475569;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

/* Channel Radio Rows */
.pay-channel-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.35rem;
}

.pay-channel-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.95rem 1.15rem;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.pay-channel-row:hover {
    border-color: #38bdf8;
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.08);
}

.pay-channel-row.selected {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 0 0 1.5px #0284c7, 0 6px 18px rgba(2, 132, 199, 0.12);
}

.pay-channel-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.pay-channel-row.ch-bank .pay-channel-icon {
    background: #e0f2fe;
    color: #0284c7;
}

.pay-channel-row.ch-truemoney .pay-channel-icon {
    background: #ffedd5;
    color: #ea580c;
}

.pay-channel-text {
    flex: 1;
    min-width: 0;
}

.pay-channel-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.pay-channel-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pay-channel-verify-tag {
    font-size: 0.72rem;
    color: #16a34a;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 0.25rem;
}

/* Custom Radio Button */
.pay-channel-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.pay-channel-row.selected .pay-channel-radio {
    border-color: #0284c7;
}

.pay-channel-row.selected .pay-channel-radio::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #0284c7;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: radioPopIn 0.2s ease;
}

/* CTA Submit Button */
.pay-channel-cta-btn {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
    margin-bottom: 0.75rem;
}

.pay-channel-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.4);
}

.pay-channel-cta-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Security Trust Footer */
.pay-channel-trust-badge {
    text-align: center;
    font-size: 0.78rem;
    color: #0284c7;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* TrueMoney Voucher Modal Box */
.truemoney-voucher-box {
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.truemoney-step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #7c2d12;
    margin-bottom: 0.4rem;
    line-height: 1.45;
}

.truemoney-step-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f97316;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.truemoney-phone-highlight {
    background: #ffffff;
    border: 1.5px dashed #f97316;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.75rem 0;
}

.btn-back-to-channels {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-back-to-channels:hover {
    color: #0284c7;
    background: #f1f5f9;
}

/* ===== TrueMoney Guide Card & Tutorial Viewer ===== */
.truemoney-guide-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1.5px solid #fed7aa;
    border-radius: 14px;
    padding: 0.75rem 1rem;
    color: #ea580c;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 0.85rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.08);
}

.truemoney-guide-toggle-btn:hover {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.18);
}

.truemoney-guide-preview-box {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #fed7aa;
    margin-bottom: 1rem;
    cursor: pointer;
    background: #0f172a;
    transition: all 0.3s ease;
}

.truemoney-guide-preview-box:hover {
    border-color: #f97316;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.25);
    transform: scale(1.01);
}

.truemoney-guide-preview-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 280px;
    background: #ffffff;
}

.truemoney-guide-overlay-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Lightbox Modal for Image Viewing */
.image-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 29, 0.92);
    backdrop-filter: blur(12px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease;
}

.image-lightbox-overlay.active {
    display: flex;
}

.image-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: contain;
}

.image-lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 1.6rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.image-lightbox-close:hover {
    background: #ef4444;
    color: #ffffff;
    transform: scale(1.1);
}

/* =========================================================
   COMPREHENSIVE MOBILE OPTIMIZATION & RESPONSIVENESS (iOS/Android)
   ========================================================= */

@media (max-width: 900px) {
    .navbar {
        padding: 0 1rem;
    }
}

/* Mobile Drawer Overlay Backdrop */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    body {
        font-size: 14.5px;
        -webkit-tap-highlight-color: transparent;
        overflow-x: hidden !important;
        position: relative;
    }

    body.drawer-open {
        overflow: hidden !important;
        touch-action: none;
    }

    /* Navbar on Mobile (Clean Header) */
    .navbar {
        padding: 0 0.85rem !important;
        height: var(--nav-height) !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
        box-shadow: 0 2px 10px rgba(14, 165, 233, 0.06) !important;
        overflow: hidden !important;
    }

    .nav-brand {
        gap: 0.5rem;
    }

    .nav-brand span,
    .nav-brand-text {
        font-size: 1.1rem;
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #0f172a;
        font-weight: 800;
    }

    .nav-logo,
    .nav-brand-icon {
        width: 34px;
        height: 34px;
        border: 2px solid #0ea5e9;
    }

    /* COMPLETELY HIDE default desktop navAuth buttons on mobile header */
    #navAuth,
    .navbar #navAuth,
    .nav-actions #navAuth,
    html.is-guest #navAuth,
    html.is-logged-in #navAuth {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #f0f9ff;
        border: 1.5px solid #bae6fd;
        border-radius: 12px;
        color: #0284c7;
        font-size: 1.4rem;
        cursor: pointer;
        transition: all 0.2s ease;
        padding: 0;
        margin-left: auto;
    }

    .nav-toggle:active {
        background: #e0f2fe;
        transform: scale(0.94);
    }

    /* ===== Premium Custom Mobile Drawer (Side Panel - Right Side) ===== */
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: 82% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: #ffffff !important;
        box-shadow: -10px 0 35px rgba(15, 23, 42, 0.15) !important;
        z-index: 9999 !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 1.25rem 1.15rem !important;
        gap: 0.35rem !important;
        border-left: 1px solid #e2e8f0 !important;
        border-radius: 0 !important;
        transform: translateX(100%) !important;
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .nav-links.open {
        transform: translateX(0) !important;
    }

    /* Drawer Header */
    .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 1rem;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 0.75rem;
    }

    .mobile-drawer-brand {
        display: flex;
        align-items: center;
        gap: 0.65rem;
    }

    .mobile-drawer-brand img {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 2px solid #0ea5e9;
    }

    .mobile-drawer-brand span {
        font-weight: 800;
        font-size: 1.1rem;
        color: #0f172a;
    }

    .mobile-drawer-close {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        color: #64748b;
        font-size: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-drawer-close:active {
        background: #fee2e2;
        color: #ef4444;
    }

    /* Drawer Section Dividers */
    .mobile-drawer-divider {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin: 0.85rem 0 0.5rem;
        color: #94a3b8;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .mobile-drawer-divider::before,
    .mobile-drawer-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #f1f5f9;
    }

    /* Navigation Links inside Drawer */
    .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 12px;
        background: transparent;
        border: 1px solid transparent;
        color: #334155;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        transition: all 0.2s ease;
    }

    .nav-link i {
        font-size: 1.25rem;
        color: #0ea5e9;
        width: 24px;
        text-align: center;
    }

    .nav-link:hover,
    .nav-link:active {
        background: #f0f9ff;
        color: #0284c7;
    }

    .nav-link.active {
        background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%) !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
    }

    .nav-link.active i {
        color: #ffffff !important;
    }

    /* Mobile Auth Box inside Drawer */
    .mobile-drawer-auth {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 0.5rem;
    }

    .mobile-auth-btn-login {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: #f0f9ff;
        border: 1.5px solid #bae6fd;
        border-radius: 12px;
        color: #0284c7;
        font-weight: 700;
        font-size: 0.92rem;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .mobile-auth-btn-register {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
        border: none;
        border-radius: 12px;
        color: #ffffff;
        font-weight: 700;
        font-size: 0.92rem;
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    }

    /* Container & Section Spacing */
    .section,
    .container {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    /* Hero Banner */
    .hero-banner-container {
        border-radius: 14px;
        margin-bottom: 1rem;
    }

    /* Quick Banner Buttons: 2x2 Grid on Mobile for Maximum Ergonomics */
    .grid-4-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
        padding: 0 !important;
    }

    .quick-banner-btn {
        padding: 0.85rem 0.9rem !important;
        border-radius: 14px !important;
        gap: 0.65rem !important;
    }

    .quick-banner-btn .qb-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.25rem !important;
        border-radius: 10px !important;
    }

    .quick-banner-btn .qb-title {
        font-size: 0.88rem !important;
    }

    .quick-banner-btn .qb-subtitle {
        font-size: 0.72rem !important;
    }

    /* Stats Grid */
    .stat-card {
        padding: 0.85rem 0.9rem !important;
        border-radius: 14px !important;
    }

    .stat-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.2rem !important;
        border-radius: 10px !important;
    }

    .stat-value {
        font-size: 1.25rem !important;
    }

    .stat-label {
        font-size: 0.75rem !important;
    }

    /* Product Grid: 2 columns on mobile */
    .product-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }

    .product-card {
        border-radius: 14px !important;
    }

    .product-card-img {
        height: 125px !important;
    }

    .product-card-body {
        padding: 0.75rem !important;
    }

    .product-card-title {
        font-size: 0.88rem !important;
        margin-bottom: 0.35rem !important;
    }

    .product-card-price {
        font-size: 1rem !important;
    }

    /* Modal Sheet for Mobile */
    .modal-content,
    .popup-modal-box,
    .purchase-modal-box {
        width: 94% !important;
        max-width: 94% !important;
        padding: 1.25rem !important;
        border-radius: 18px !important;
        margin: auto;
    }
}

@media (max-width: 420px) {
    .grid-4-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    .product-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    .product-card-img {
        height: 110px !important;
    }

    .product-card-body {
        padding: 0.6rem !important;
    }
}

