/* ==========================================================================
   Template V3 — Cyber Obsidian Dark (Gaming Aesthetic)
   ========================================================================== */

:root {
    --v3-bg-body: var(--bg-primary, #08080c);
    --v3-bg-card: var(--bg-card, #0e0e13);
    --v3-bg-card-hover: var(--bg-card-hover, #14141c);
    --v3-bg-surface: var(--bg-card, #121218);
    --v3-bg-input: var(--bg-input, #0b0b10);
    --v3-text-primary: var(--text-primary, #ffffff);
    --v3-text-secondary: var(--text-secondary, #a1a1aa);
    --v3-text-muted: var(--text-muted, #71717a);
    --v3-accent: var(--accent, #d946ef);
    --v3-accent2: var(--accent2, #a855f7);
    --v3-accent-magenta: var(--accent, #d946ef);
    --v3-accent-purple: var(--accent2, #a855f7);
    --v3-accent-pink: var(--accent, #ec4899);
    --v3-surface: var(--bg-card, #121218);
    --v3-accent-glow: var(--accent-glow, rgba(217, 70, 239, 0.35));
    --v3-border: var(--border, rgba(255, 255, 255, 0.07));
    --v3-border-glow: var(--border-hover, rgba(217, 70, 239, 0.4));
    --v3-shadow: var(--shadow, 0 16px 40px rgba(0, 0, 0, 0.65));
    --accent-rgb: 217, 70, 239;
    --accent2-rgb: 168, 85, 247;
}

@view-transition {
    navigation: auto;
}

/* Native View Transitions (Hardware Accelerated Left-Right Slide) */
html.v3-nav-from-left::view-transition-old(root) {
    animation: 0.36s cubic-bezier(0.16, 1, 0.3, 1) both v3ViewSlideOutRight;
}
html.v3-nav-from-left::view-transition-new(root) {
    animation: 0.40s cubic-bezier(0.16, 1, 0.3, 1) both v3ViewSlideInLeft;
}
html.v3-nav-from-right::view-transition-old(root),
::view-transition-old(root) {
    animation: 0.36s cubic-bezier(0.16, 1, 0.3, 1) both v3ViewSlideOutLeft;
}
html.v3-nav-from-right::view-transition-new(root),
::view-transition-new(root) {
    animation: 0.40s cubic-bezier(0.16, 1, 0.3, 1) both v3ViewSlideInRight;
}

@keyframes v3ViewSlideOutLeft {
    to { opacity: 0; transform: translate3d(-70px, 0, 0); }
}
@keyframes v3ViewSlideInRight {
    from { opacity: 0; transform: translate3d(70px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes v3ViewSlideOutRight {
    to { opacity: 0; transform: translate3d(70px, 0, 0); }
}
@keyframes v3ViewSlideInLeft {
    from { opacity: 0; transform: translate3d(-70px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

html {
    scroll-padding-top: 75px;
}

/* Base Body Styles */
body, button, input, select, textarea, .swal2-popup {
    font-family: 'IBM Plex Sans Thai', 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
body {
    background-color: var(--v3-bg-body) !important;
    color: var(--v3-text-primary) !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Custom Minimalist Dark Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--v3-bg-body, #08080c);
}
::-webkit-scrollbar-thumb {
    background: #1c1c26;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2a2a3a;
}

/* Main Container & Silky Left/Right Slide Transitions */
body:not(.is-admin-page) .container,
body:not(.is-admin-page) .main-content {
    width: 100%;
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}
.main-content {
    flex: 1 0 auto;
    padding-top: 0 !important;
    padding-bottom: 60px;
}

/* ==========================================================================
   BLOCK SLIDE-IN ANIMATIONS (Left & Right - Cinematic Smooth & Slower)
   ========================================================================== */
@keyframes v3BlockSlideLeft {
    0% {
        opacity: 0;
        transform: translate3d(-75px, 0, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes v3BlockSlideRight {
    0% {
        opacity: 0;
        transform: translate3d(75px, 0, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* 1. Slider & Section Headers */
.v3-slider-wrap {
    animation: v3BlockSlideLeft 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}
.v3-section-head .v3-section-title-wrap,
.v3-section-head .v3-badge {
    animation: v3BlockSlideLeft 1.10s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}
.v3-section-head .v3-view-all-btn {
    animation: v3BlockSlideRight 1.10s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}

/* 2. Stats Banner Blocks (Odd: Left, Even: Right) */
.v3-stats-banner > .v3-stat-item:nth-child(odd) {
    animation: v3BlockSlideLeft 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}
.v3-stats-banner > .v3-stat-item:nth-child(even) {
    animation: v3BlockSlideRight 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}
.v3-stats-banner > .v3-stat-item:nth-child(1) { animation-delay: 0s; }
.v3-stats-banner > .v3-stat-item:nth-child(2) { animation-delay: 0.08s; }
.v3-stats-banner > .v3-stat-item:nth-child(3) { animation-delay: 0.16s; }
.v3-stats-banner > .v3-stat-item:nth-child(4) { animation-delay: 0.24s; }

/* 2.5 Recent Purchases Bar */
.v3-recent-bar-wrap {
    animation: v3BlockSlideLeft 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}

/* 3. 4 Image Blocks (Odd: Left, Even: Right) */
.v3-image-blocks > .v3-image-block:nth-child(odd) {
    animation: v3BlockSlideLeft 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}
.v3-image-blocks > .v3-image-block:nth-child(even) {
    animation: v3BlockSlideRight 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}
.v3-image-blocks > .v3-image-block:nth-child(1) { animation-delay: 0s; }
.v3-image-blocks > .v3-image-block:nth-child(2) { animation-delay: 0.08s; }
.v3-image-blocks > .v3-image-block:nth-child(3) { animation-delay: 0.16s; }
.v3-image-blocks > .v3-image-block:nth-child(4) { animation-delay: 0.24s; }

/* 4. Category Cards (Odd: Left, Even: Right) */
.v3-categories-grid > .v3-category-card:nth-child(odd) {
    animation: v3BlockSlideLeft 1.18s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}
.v3-categories-grid > .v3-category-card:nth-child(even) {
    animation: v3BlockSlideRight 1.18s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}
.v3-categories-grid > .v3-category-card:nth-child(6n+1) { animation-delay: 0s; }
.v3-categories-grid > .v3-category-card:nth-child(6n+2) { animation-delay: 0.06s; }
.v3-categories-grid > .v3-category-card:nth-child(6n+3) { animation-delay: 0.12s; }
.v3-categories-grid > .v3-category-card:nth-child(6n+4) { animation-delay: 0.18s; }
.v3-categories-grid > .v3-category-card:nth-child(6n+5) { animation-delay: 0.24s; }
.v3-categories-grid > .v3-category-card:nth-child(6n+6) { animation-delay: 0.30s; }

/* 5. Product Cards (Odd: Left, Even: Right) */
.v3-products-grid > .v3-product-card:nth-child(odd) {
    animation: v3BlockSlideLeft 1.20s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}
.v3-products-grid > .v3-product-card:nth-child(even) {
    animation: v3BlockSlideRight 1.20s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}
.v3-products-grid > .v3-product-card:nth-child(6n+1) { animation-delay: 0s; }
.v3-products-grid > .v3-product-card:nth-child(6n+2) { animation-delay: 0.06s; }
.v3-products-grid > .v3-product-card:nth-child(6n+3) { animation-delay: 0.12s; }
.v3-products-grid > .v3-product-card:nth-child(6n+4) { animation-delay: 0.18s; }
.v3-products-grid > .v3-product-card:nth-child(6n+5) { animation-delay: 0.24s; }
.v3-products-grid > .v3-product-card:nth-child(6n+6) { animation-delay: 0.30s; }

/* 6. Gacha Game & Reward Item Cards (Odd: Left, Even: Right) */
.gacha-grid > *:nth-child(odd),
.gacha-items-grid > *:nth-child(odd) {
    animation: v3BlockSlideLeft 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}
.gacha-grid > *:nth-child(even),
.gacha-items-grid > *:nth-child(even) {
    animation: v3BlockSlideRight 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}

/* 7. Auth Cards, Contact & Admin Cards */
.auth-card,
.contact-card,
.admin-card:nth-child(odd) {
    animation: v3BlockSlideLeft 1.10s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}
.admin-card:nth-child(even) {
    animation: v3BlockSlideRight 1.10s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}

/* 8. Orders Table / Cards */
.orders-table-wrap,
.order-card:nth-child(odd) {
    animation: v3BlockSlideLeft 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}
.order-card:nth-child(even) {
    animation: v3BlockSlideRight 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}

/* ==========================================================================
   1. FLOATING CAPSULE NAVBAR
   ========================================================================== */
.v3-nav-outer {
    width: 100%;
    max-width: 1220px;
    margin: 12px auto 16px;
    padding: 0 16px;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 12px;
    z-index: 1000;
}

.v3-capsule-navbar {
    background: rgba(14, 14, 20, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 6px 12px 6px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    width: 100%;
    transition: all 0.25s ease;
}

.v3-capsule-navbar:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Brand / Avatar */
.v3-nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    gap: 8px;
}
.v3-nav-brand-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--v3-text-primary, #ffffff);
    letter-spacing: -0.3px;
    white-space: nowrap;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 6px;
    line-height: 1.2;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
.v3-nav-brand:hover .v3-nav-brand-text {
    color: var(--v3-accent-magenta, var(--accent, #d946ef));
    text-shadow: 0 0 12px rgba(var(--accent-rgb, 217, 70, 239), 0.45);
}
.v3-nav-logo-img {
    height: 44px;
    max-height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.v3-nav-brand:hover .v3-nav-logo-img {
    transform: scale(1.04);
    filter: drop-shadow(0 0 10px rgba(var(--accent-rgb, 217, 70, 239), 0.45));
}
.v3-nav-default-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb, 217, 70, 239), 0.25), rgba(var(--accent2-rgb, 168, 85, 247), 0.25));
    border: 1.5px solid rgba(var(--accent2-rgb, 168, 85, 247), 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e879f9;
    font-size: 1rem;
    box-shadow: 0 0 12px rgba(var(--accent2-rgb, 168, 85, 247), 0.3);
}

/* Nav Links */
.v3-nav-links-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}
.v3-nav-item,
.v3-nav-item span {
    font-weight: 400 !important;
}
.v3-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 400 !important;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.v3-nav-item i {
    font-size: 0.9rem;
    opacity: 0.85;
}
.v3-nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}
.v3-nav-item.active {
    color: #ffffff;
    font-weight: 400 !important;
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.12);
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb, 217, 70, 239), 0.3);
    text-shadow: none !important;
}
.v3-nav-item.active span {
    font-weight: 400 !important;
    text-shadow: none !important;
}
.v3-nav-item.active i {
    color: var(--v3-accent-magenta);
}

/* Nav "เพิ่มเติม" Dropdown */
.v3-nav-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.v3-nav-dropdown-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 400 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: #94a3b8;
    border-radius: 9999px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.v3-nav-dropdown-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.v3-nav-dropdown-btn.active,
.v3-nav-dropdown-wrap.active .v3-nav-dropdown-btn {
    color: #ffffff;
    background: rgba(var(--accent-rgb), 0.14);
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.35);
}

.v3-nav-dropdown-btn.active i:first-child,
.v3-nav-dropdown-wrap.active .v3-nav-dropdown-btn i:first-child {
    color: var(--accent);
}

.v3-nav-dropdown-chevron {
    font-size: 0.68rem;
    transition: transform 0.22s ease, color 0.2s ease;
    opacity: 0.75;
    margin-left: 2px;
}

.v3-nav-dropdown-wrap:hover .v3-nav-dropdown-chevron,
.v3-nav-dropdown-wrap.active .v3-nav-dropdown-chevron {
    transform: rotate(180deg);
    color: var(--accent);
    opacity: 1;
}

.v3-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 175px;
    background: rgba(15, 15, 22, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(var(--accent-rgb), 0.22);
    z-index: 10000;
}

@media (min-width: 993px) {
    .v3-nav-dropdown-wrap:hover .v3-nav-dropdown-menu {
        display: block;
        animation: v3DropdownSpringIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

.v3-nav-dropdown-menu.show {
    display: block;
    animation: v3DropdownSpringIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.v3-nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    color: #cbd5e1;
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.v3-nav-dropdown-item i {
    font-size: 0.92rem;
    width: 18px;
    text-align: center;
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.v3-nav-dropdown-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.v3-nav-dropdown-item:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

.v3-nav-dropdown-item.active {
    color: #ffffff;
    background: rgba(var(--accent-rgb), 0.16);
    border: 1px solid rgba(var(--accent-rgb), 0.32);
}

.v3-nav-dropdown-item.active i {
    color: var(--accent);
}

/* Nav Actions (Right side) */
.v3-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Language Pill */
.v3-lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 400 !important;
    color: #cbd5e1;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 12px;
    user-select: none;
}
.v3-lang-code {
    font-weight: 400 !important;
}
.v3-flag-icon {
    font-size: 1rem;
    line-height: 1;
}

/* Balance Display */
.v3-balance-pill {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
    padding-right: 4px;
}
.v3-balance-lbl {
    font-size: 0.65rem;
    color: #71717a;
    font-weight: 500;
}
.v3-balance-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
}

/* Profile Dropdown */
.v3-user-dropdown-wrap {
    position: relative;
}
.v3-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;
}
.v3-user-btn * {
    pointer-events: none;
}
.v3-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px var(--accent-glow, rgba(var(--accent-rgb), 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent);
    font-size: 0.9rem;
    transition: all 0.25s ease;
}
.v3-user-btn:hover .v3-avatar-circle {
    box-shadow: 0 0 18px var(--accent-glow, rgba(var(--accent-rgb), 0.8));
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
}
.v3-user-chevron {
    color: #71717a;
    font-size: 0.72rem;
    transition: transform 0.2s ease, color 0.2s ease;
}
.v3-user-btn:hover .v3-user-chevron {
    color: var(--accent);
}
.v3-user-dropdown-wrap.active .v3-user-chevron {
    transform: rotate(180deg);
}

/* Profile Menu */
.v3-profile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 250px;
    background: #111118;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(var(--accent-rgb), 0.2);
    z-index: 10000;
}
.v3-profile-menu.show {
    display: block;
    animation: v3DropdownSpringIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.v3-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px 10px;
}
.v3-menu-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.15);
    border: 1px solid rgba(var(--accent-rgb), 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.9rem;
}
.v3-menu-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.v3-menu-user-info strong {
    font-size: 0.92rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v3-menu-user-info small {
    font-size: 0.75rem;
    color: #71717a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v3-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 8px 0;
}
.v3-menu-credit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    font-size: 0.85rem;
    color: #94a3b8;
}
.v3-credit-text {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
}
.v3-menu-link,
.v3-menu-link span {
    font-weight: 400 !important;
}
.v3-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 400 !important;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.v3-menu-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}
.v3-menu-admin {
    color: var(--accent);
}
.v3-menu-admin:hover {
    color: #ffffff;
    background: rgba(var(--accent-rgb), 0.15);
}
.v3-menu-logout {
    color: #f87171;
    font-weight: 500 !important;
}
.v3-menu-logout:hover,
.v3-menu-logout:active {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.18);
}
.v3-menu-logout i {
    transition: transform 0.2s ease;
}
.v3-menu-logout:hover i,
.v3-menu-logout:active i {
    transform: translateX(3px);
}

/* Guest Login Button */
.v3-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb, 217, 70, 239), 0.2), rgba(var(--accent2-rgb, 168, 85, 247), 0.2));
    border: 1px solid rgba(var(--accent-rgb, 217, 70, 239), 0.4);
    border-radius: 9999px;
    color: #ffffff;
    font-weight: 400 !important;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 0 16px rgba(var(--accent-rgb, 217, 70, 239), 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.v3-login-btn span {
    font-weight: 400 !important;
}
.v3-login-btn:hover {
    background: linear-gradient(135deg, var(--v3-accent-magenta), var(--v3-accent-purple));
    color: #ffffff;
    box-shadow: 0 0 24px rgba(var(--accent-rgb, 217, 70, 239), 0.5);
    transform: translateY(-1px);
}

/* Mobile Hamburger Toggle */
.v3-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}
.v3-mobile-toggle span {
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: all 0.25s ease;
}
.v3-mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.v3-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.v3-mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   2. SECTION HEADERS & BADGES (Matching Screenshots)
   ========================================================================== */
.v3-section-head {
    margin-bottom: 24px;
}
.v3-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.v3-badge-bar {
    width: 16px;
    height: 3px;
    background: var(--v3-accent-pink);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--v3-accent-pink);
    flex-shrink: 0;
}
.v3-badge-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--v3-accent-pink);
    text-transform: uppercase;
}
.v3-section-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}
.v3-section-heading {
    font-size: 1.85rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

/* Neutralize legacy bar headers completely so no rounded boxes appear */
.section-header,
.store-section-header,
.home-section-header {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    margin-bottom: 22px !important;
}
.section-header h2,
.store-section-header h2,
.home-section-header h2 {
    font-size: 1.85rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}
.v3-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a1a1aa;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.v3-view-all-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #161622;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.78rem;
    transition: all 0.2s;
}
.v3-view-all-btn:hover {
    color: #ffffff;
}
.v3-view-all-btn:hover .v3-view-all-avatar {
    border-color: var(--v3-accent-magenta);
    box-shadow: 0 0 10px rgba(var(--accent-rgb, 217, 70, 239), 0.4);
    color: #ffffff;
}

/* ==========================================================================
   3. CATEGORY CARDS (2 Columns — Matching Reference Screenshots)
   ========================================================================== */
.v3-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.v3-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 6px 6px 12px 6px;
    background: rgba(14, 14, 20, 0.45);
    border: none !important;
    border-radius: 0 !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    overflow: visible;
}

/* Card Border Gradient: Fades from very bright at corners to subtle/faint in center */
.v3-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0 !important;
    pointer-events: none;
    z-index: 2;
    background: 
        linear-gradient(to right, #ffffff 0%, var(--accent, var(--v3-accent-magenta)) 8%, rgba(var(--accent-rgb, 217, 70, 239), 0.85) 18%, rgba(var(--accent-rgb, 217, 70, 239), 0.12) 32%, rgba(var(--accent-rgb, 217, 70, 239), 0.10) 50%, rgba(var(--accent-rgb, 217, 70, 239), 0.12) 68%, rgba(var(--accent-rgb, 217, 70, 239), 0.85) 82%, var(--accent, var(--v3-accent-magenta)) 92%, #ffffff 100%) top / 100% 1.5px no-repeat,
        linear-gradient(to bottom, #ffffff 0%, var(--accent, var(--v3-accent-magenta)) 8%, rgba(var(--accent-rgb, 217, 70, 239), 0.85) 18%, rgba(var(--accent-rgb, 217, 70, 239), 0.12) 32%, rgba(var(--accent-rgb, 217, 70, 239), 0.10) 50%, rgba(var(--accent-rgb, 217, 70, 239), 0.12) 68%, rgba(var(--accent-rgb, 217, 70, 239), 0.85) 82%, var(--accent, var(--v3-accent-magenta)) 92%, #ffffff 100%) right / 1.5px 100% no-repeat,
        linear-gradient(to left, #ffffff 0%, var(--accent, var(--v3-accent-magenta)) 8%, rgba(var(--accent-rgb, 217, 70, 239), 0.85) 18%, rgba(var(--accent-rgb, 217, 70, 239), 0.12) 32%, rgba(var(--accent-rgb, 217, 70, 239), 0.10) 50%, rgba(var(--accent-rgb, 217, 70, 239), 0.12) 68%, rgba(var(--accent-rgb, 217, 70, 239), 0.85) 82%, var(--accent, var(--v3-accent-magenta)) 92%, #ffffff 100%) bottom / 100% 1.5px no-repeat,
        linear-gradient(to top, #ffffff 0%, var(--accent, var(--v3-accent-magenta)) 8%, rgba(var(--accent-rgb, 217, 70, 239), 0.85) 18%, rgba(var(--accent-rgb, 217, 70, 239), 0.12) 32%, rgba(var(--accent-rgb, 217, 70, 239), 0.10) 50%, rgba(var(--accent-rgb, 217, 70, 239), 0.12) 68%, rgba(var(--accent-rgb, 217, 70, 239), 0.85) 82%, var(--accent, var(--v3-accent-magenta)) 92%, #ffffff 100%) left / 1.5px 100% no-repeat;
    opacity: 0.25;
    transition: opacity 0.25s ease, filter 0.25s ease;
}

/* Cyberpunk / Sci-Fi Angled Triangular Tapered Corner Brackets (Appears on Hover / Press) */
.v3-card-corner {
    position: absolute;
    width: 26px;
    height: 26px;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.v3-category-card:hover .v3-card-corner,
.v3-category-card:active .v3-card-corner,
.v3-category-card:focus-visible .v3-card-corner {
    opacity: 1;
    transform: scale(1);
}

/* Top-Left: Tapered angled wedge */
.v3-corner-tl {
    top: 0;
    left: 0;
    transform-origin: top left;
    clip-path: polygon(0 0, 100% 0, 6px 6px, 0 100%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, var(--accent, var(--v3-accent-magenta)) 38%, rgba(var(--accent-rgb, 217, 70, 239), 0.8) 75%, transparent 100%);
    filter: drop-shadow(0 0 5px var(--accent, var(--v3-accent-magenta)));
}

/* Top-Right: Tapered angled wedge */
.v3-corner-tr {
    top: 0;
    right: 0;
    transform-origin: top right;
    clip-path: polygon(0 0, 100% 0, 100% 100%, calc(100% - 6px) 6px);
    background: linear-gradient(225deg, rgba(255, 255, 255, 0.95) 0%, var(--accent, var(--v3-accent-magenta)) 38%, rgba(var(--accent-rgb, 217, 70, 239), 0.8) 75%, transparent 100%);
    filter: drop-shadow(0 0 5px var(--accent, var(--v3-accent-magenta)));
}

/* Bottom-Left: Tapered angled wedge */
.v3-corner-bl {
    bottom: 0;
    left: 0;
    transform-origin: bottom left;
    clip-path: polygon(0 0, 6px calc(100% - 6px), 100% 100%, 0 100%);
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.95) 0%, var(--accent, var(--v3-accent-magenta)) 38%, rgba(var(--accent-rgb, 217, 70, 239), 0.8) 75%, transparent 100%);
    filter: drop-shadow(0 0 5px var(--accent, var(--v3-accent-magenta)));
}

/* Bottom-Right: Tapered angled wedge */
.v3-corner-br {
    bottom: 0;
    right: 0;
    transform-origin: bottom right;
    clip-path: polygon(100% 0, 100% 100%, 0 100%, calc(100% - 6px) calc(100% - 6px));
    background: linear-gradient(315deg, rgba(255, 255, 255, 0.95) 0%, var(--accent, var(--v3-accent-magenta)) 38%, rgba(var(--accent-rgb, 217, 70, 239), 0.8) 75%, transparent 100%);
    filter: drop-shadow(0 0 5px var(--accent, var(--v3-accent-magenta)));
}

.v3-cat-banner-wrap {
    width: 100%;
    aspect-ratio: 2.7 / 1;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #090a10;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border: none !important;
    outline: none !important;
}
.v3-cat-banner-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #090a10;
    display: block;
    border-radius: 6px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.v3-cat-banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #161220, #0c0b12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #58586c;
    font-size: 2.5rem;
    border-radius: 6px;
}

.v3-cat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 6px 2px 6px;
}
.v3-cat-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.v3-cat-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--v3-accent-magenta);
    text-shadow: 0 0 10px rgba(var(--accent-rgb, 217, 70, 239), 0.4);
    transition: text-shadow 0.2s ease;
}
.v3-cat-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.v3-cat-action {
    font-size: 0.88rem;
    color: #71717a;
    transition: all 0.2s ease;
}

/* Hover & Active on Category Card: Glowing Border surrounding the ENTIRE block */
.v3-category-card:hover,
.v3-category-card:active {
    border-color: transparent !important;
    box-shadow: 0 0 24px rgba(var(--accent-rgb, 217, 70, 239), 0.38), inset 0 0 12px rgba(var(--accent-rgb, 217, 70, 239), 0.06) !important;
    background: rgba(18, 16, 26, 0.85) !important;
}
.v3-category-card:hover .v3-card-corner,
.v3-category-card:active .v3-card-corner {
    opacity: 1;
    transform: scale(1);
}
.v3-category-card:hover::before,
.v3-category-card:active::before {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(var(--accent-rgb, 217, 70, 239), 0.8));
}
.v3-category-card:hover .v3-cat-banner-wrap {
    border: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    outline: none !important;
}
.v3-category-card:hover .v3-cat-banner-img {
    transform: scale(1.02);
}
.v3-category-card:hover .v3-cat-action {
    color: var(--v3-accent-magenta) !important;
    text-shadow: 0 0 10px rgba(var(--accent-rgb, 217, 70, 239), 0.7);
    transform: translateX(2px);
}
.v3-category-card:hover .v3-cat-num {
    text-shadow: 0 0 14px rgba(var(--accent-rgb, 217, 70, 239), 0.9);
}

/* ==========================================================================
   4. CATEGORY HEADER & GLOW DIVIDER (Matching Screenshot 2)
   ========================================================================== */
.v3-cat-meta-count {
    font-size: 0.82rem;
    color: var(--v3-text-muted);
    margin-bottom: 12px;
}
.v3-cat-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.v3-cat-title-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.v3-cat-icon {
    color: var(--v3-accent-pink);
    font-size: 1.4rem;
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.5));
}
.v3-cat-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.v3-cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.12);
    border: 1px solid rgba(var(--accent-rgb, 217, 70, 239), 0.3);
    border-radius: 6px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
}
.v3-cat-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a1a1aa;
    font-size: 0.88rem;
    text-decoration: none;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    transition: all 0.2s ease;
}
.v3-cat-back-link:hover {
    color: #ffffff;
    border-color: rgba(var(--accent-rgb, 217, 70, 239), 0.35);
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.08);
}

.v3-glowing-divider {
    width: 100%;
    height: 1px;
    background: #181822;
    margin-bottom: 28px;
    position: relative;
}
.v3-glowing-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 140px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    box-shadow: 0 0 10px var(--accent-glow, rgba(var(--accent-rgb, 217, 70, 239), 0.6));
}

/* ==========================================================================
   5. PRODUCT GRID (4 Columns — Matching Screenshot 2)
   ========================================================================== */
.v3-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.v3-product-card {
    display: flex;
    flex-direction: column;
    background: var(--v3-bg-card, #0e0e13);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 !important;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}
.v3-product-thumb-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #090a10;
    overflow: hidden;
    position: relative;
    border-radius: 0 !important; /* Square sharp corners */
}
.v3-product-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #090a10;
    display: block;
    border-radius: 0 !important; /* Square sharp corners */
    transition: transform 0.35s ease;
}
.v3-product-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a4a5a;
    font-size: 2.2rem;
    background: #14141d;
    border-radius: 0 !important;
}
.v3-product-tag-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.88);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 0 !important;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.v3-product-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.v3-product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.76rem;
    color: var(--v3-text-muted);
}
.v3-product-stock-label {
    color: #a1a1aa;
    font-weight: 500;
}
.v3-product-stock-label.out-of-stock {
    color: #f87171;
}
.v3-product-detail-link {
    display: none !important;
}

.v3-product-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex: 1;
}

.v3-product-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    text-align: left;
}
.v3-product-price-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    margin-bottom: 8px;
}
.v3-product-price {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--v3-accent-magenta);
    line-height: 1.2;
    text-shadow: 0 0 12px rgba(var(--accent-rgb, 217, 70, 239), 0.3);
    white-space: nowrap;
    text-align: left;
}

.v3-product-sold-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.3;
}
.v3-product-sold-row i {
    color: var(--v3-accent-magenta);
    font-size: 0.82rem;
}

/* Product Card Hover: Full Glowing Neon Outline */
.v3-product-card:hover {
    border-color: var(--v3-accent-magenta) !important;
    box-shadow: 0 0 18px rgba(var(--accent-rgb, 217, 70, 239), 0.45), inset 0 0 10px rgba(var(--accent-rgb, 217, 70, 239), 0.05) !important;
    background: var(--v3-bg-card-hover, #14141c) !important;
    transform: translateY(-3px);
}
.v3-product-card:hover .v3-product-thumb-img {
    transform: scale(1.03);
}
.v3-product-card:hover .v3-product-detail-link {
    color: var(--v3-accent-magenta) !important;
    text-shadow: 0 0 8px rgba(var(--accent-rgb, 217, 70, 239), 0.6);
    transform: translateX(2px);
}

/* ==========================================================================
   6. STATS BANNER — 3 CARDS WITH WATERMARK ART & HOVER ANIMATION
   (Matching Reference: proxystrike.rexzy.xyz)
   ========================================================================== */
.v3-stats-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 34px;
}
.v3-stat-card {
    --v3-stat-bg: var(--v3-bg-card, #0c0d12);
    --v3-stat-accent: var(--v3-accent-magenta, var(--accent, #38bdf8));
    background: var(--v3-stat-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 18px 18px 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    cursor: default;
    user-select: none;
}
.v3-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 50%, rgba(var(--accent-rgb, 56, 189, 248), 0.14), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.v3-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--accent-rgb, 56, 189, 248), 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 24px rgba(var(--accent-rgb, 56, 189, 248), 0.25);
}
.v3-stat-card:hover::before {
    opacity: 1;
}
.v3-stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
    min-width: 0;
}
.v3-stat-title {
    font-size: 0.88rem;
    color: #a1a1aa;
    font-weight: 400;
    transition: color 0.2s ease;
}
.v3-stat-card:hover .v3-stat-title {
    color: #e2e8f0;
}
.v3-stat-figure {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: nowrap;
}
.v3-stat-number {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--v3-stat-accent);
    line-height: 1.1;
    letter-spacing: -0.5px;
    transition: text-shadow 0.25s ease, color 0.25s ease;
}
.v3-stat-card:hover .v3-stat-number {
    text-shadow: 0 0 18px rgba(var(--accent-rgb, 56, 189, 248), 0.6);
}
.v3-stat-unit {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 400;
    white-space: nowrap;
}

/* Large Graphic Icon Watermark on Right */
.v3-stat-art {
    width: 96px;
    height: 76px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--v3-stat-accent);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}
.v3-stat-card:hover .v3-stat-art {
    transform: scale(1.12) rotate(-3deg);
    filter: drop-shadow(0 0 14px rgba(var(--accent-rgb, 56, 189, 248), 0.55));
}
.v3-stat-art svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* ==========================================================================
   RECENT PURCHASES MARQUEE BAR (ซื้อล่าสุด)
   ========================================================================== */
.v3-recent-bar-wrap {
    width: 100%;
    background: rgba(14, 14, 20, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 10px 0;
    margin: -10px auto 28px;
    display: flex;
    align-items: center;
    box-shadow: none;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.v3-recent-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    user-select: none;
}

.v3-recent-clock-icon {
    font-size: 1.15rem;
    color: #ffffff;
    opacity: 0.95;
}

.v3-recent-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.v3-recent-sparkle-icon {
    font-size: 0.82rem;
    color: #cbd5e1;
    opacity: 0.7;
    margin-left: 2px;
}

.v3-recent-divider {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 20px;
    flex-shrink: 0;
}

.v3-recent-marquee-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 48px, black calc(100% - 48px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 48px, black calc(100% - 48px), transparent 100%);
}

.v3-recent-marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: v3RecentMarquee 35s linear infinite;
}

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

.v3-recent-marquee-group {
    display: flex;
    align-items: center;
    gap: 36px;
    padding-right: 36px;
    flex-shrink: 0;
}

.v3-recent-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    cursor: default;
    transition: transform 0.2s ease;
}

.v3-recent-item:hover {
    transform: translateY(-1px);
}

.v3-recent-thumb-wrap {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #14141e;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.v3-recent-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #090a10;
    display: block;
}

.v3-recent-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v3-accent-magenta, #d946ef);
    font-size: 1.1rem;
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.1);
}

.v3-recent-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
}

.v3-recent-buyer {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 400;
    white-space: nowrap;
}

.v3-recent-name {
    font-size: 0.88rem;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v3-recent-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    color: #64748b;
    white-space: nowrap;
}

.v3-recent-qty {
    color: var(--v3-accent-magenta, #d946ef);
    font-weight: 500;
}

.v3-recent-time {
    color: #71717a;
}

@keyframes v3RecentMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 768px) {
    .v3-recent-bar-wrap {
        padding: 8px 0;
        margin: -4px auto 22px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-left: none;
        border-right: none;
        border-radius: 0;
        background: rgba(14, 14, 20, 0.5);
        box-shadow: none;
    }
    .v3-recent-divider {
        margin: 0 14px;
        height: 28px;
    }
    .v3-recent-title {
        font-size: 0.92rem;
    }
    .v3-recent-thumb-wrap {
        width: 36px;
        height: 36px;
    }
    .v3-recent-marquee-group {
        gap: 26px;
        padding-right: 26px;
    }
    .v3-recent-name {
        max-width: 140px;
        font-size: 0.84rem;
    }
}

@media (max-width: 480px) {
    .v3-recent-sparkle-icon {
        display: none;
    }
    .v3-recent-divider {
        margin: 0 10px;
    }
    .v3-recent-title {
        font-size: 0.86rem;
    }
}

/* Slider */
.v3-slider-wrap {
    position: relative;
    border-radius: 0 !important; /* Square sharp corners */
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
}
.v3-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.v3-slider-slide {
    min-width: 100%;
    aspect-ratio: 13 / 4; /* Standard 1300 x 400 ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #090a10;
    overflow: hidden;
}
.v3-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill container completely edge-to-edge */
    display: block;
    border-radius: 0 !important;
}

/* 4 Image Blocks */
.v3-image-blocks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 34px;
}
.v3-image-block {
    border-radius: 0 !important; /* Square sharp corners */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    aspect-ratio: 16 / 9;
    transition: all 0.25s ease;
    display: block;
    background: #090a10;
}
.v3-image-block img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #090a10;
    display: block;
    border-radius: 0 !important;
    transition: transform 0.3s ease;
}
.v3-image-block:hover {
    border-color: rgba(var(--accent-rgb, 217, 70, 239), 0.4);
    box-shadow: 0 8px 24px rgba(var(--accent-rgb, 217, 70, 239), 0.15);
    transform: translateY(-3px);
}
.v3-image-block:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
   7. FLOATING KEYBOARD SOUND SWITCH WIDGET (Bottom Right)
/* ==========================================================================
   7. FLOATING 3D KEYBOARD SOUND SWITCH WIDGET (Bottom Right)
   ========================================================================== */
.v3-sound-switch-widget {
    position: fixed;
    bottom: 20px;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    user-select: none;
    outline: none;
    box-shadow: none !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}
.v3-sound-switch-widget:hover {
    transform: translateY(-4px) scale(1.05);
}
.v3-sound-switch-widget:active {
    transform: translateY(1px) scale(0.97);
}

.v3-kb-svg {
    display: block;
    width: 140px;
    height: 90px;
    overflow: visible;
}

/* Neon Underglow on Surface */
.v3-kb-underglow {
    opacity: 0;
    transition: opacity 0.35s ease, filter 0.35s ease;
}
.v3-sound-switch-widget.is-on .v3-kb-underglow {
    opacity: 1;
    filter: drop-shadow(0 0 16px var(--v3-accent-magenta, #d946ef));
}

/* Sparkles (Top Left) */
.v3-kb-sparkle {
    opacity: 0;
    transform-origin: 32px 18px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.v3-sound-switch-widget.is-on .v3-kb-sparkle {
    opacity: 1;
    animation: v3SparkleTwinkle 2.5s ease-in-out infinite alternate;
}
.v3-kb-sparkle-2 {
    transform-origin: 20px 34px !important;
    animation-delay: 1.2s !important;
}

@keyframes v3SparkleTwinkle {
    0% { transform: scale(0.85) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.2) rotate(15deg); opacity: 1; filter: drop-shadow(0 0 4px #fff); }
    100% { transform: scale(0.9) rotate(-10deg); opacity: 0.8; }
}

/* Chassis */
.v3-kb-chassis-top {
    fill: #191428;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 0.8;
    transition: fill 0.3s ease, stroke 0.3s ease;
}
.v3-kb-chassis-side {
    fill: #100c1c;
    transition: fill 0.3s ease;
}

.v3-sound-switch-widget.is-on .v3-kb-chassis-top {
    fill: #221538;
    stroke: rgba(var(--accent-rgb, 217, 70, 239), 0.35);
}
.v3-sound-switch-widget.is-on .v3-kb-chassis-side {
    fill: #140d24;
}

/* Cable */
.v3-kb-cable {
    fill: none;
    stroke: #423854;
    stroke-width: 4.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease, filter 0.3s ease;
}
.v3-kb-plug {
    fill: #423854;
    transition: fill 0.3s ease;
}
.v3-sound-switch-widget.is-on .v3-kb-cable {
    stroke: var(--v3-accent-purple, #a855f7);
    filter: drop-shadow(0 0 5px rgba(var(--accent2-rgb, 168, 85, 247), 0.7));
}
.v3-sound-switch-widget.is-on .v3-kb-plug {
    fill: var(--v3-accent-purple, #8b55c9);
}

/* Power LED */
.v3-kb-led {
    fill: #3c324e;
    transition: fill 0.3s ease, filter 0.3s ease;
}
.v3-sound-switch-widget.is-on .v3-kb-led {
    fill: #f43f5e;
    filter: drop-shadow(0 0 6px #f43f5e);
}

/* Keycaps Backlit Floor */
.v3-kb-backlight {
    fill: var(--v3-accent-magenta, #d946ef);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.v3-sound-switch-widget.is-on .v3-kb-backlight {
    opacity: 0.35;
    filter: drop-shadow(0 0 4px var(--v3-accent-magenta, #d946ef));
}

/* Keycaps default (OFF) */
.v3-key-top {
    fill: #33303d;
    transition: fill 0.25s ease;
}
.v3-key-front {
    fill: #22202a;
    transition: fill 0.25s ease;
}

/* Keycaps ON */
.v3-sound-switch-widget.is-on .v3-key-top {
    fill: #4c4659;
}
.v3-sound-switch-widget.is-on .v3-key-front {
    fill: #2b2736;
}
.v3-sound-switch-widget.is-on .v3-key-space-top {
    fill: #58516b;
}
.v3-sound-switch-widget.is-on .v3-key-space-front {
    fill: #363145;
}

/* ==========================================================================
   8. MINIMALIST DARK FOOTER (Matching Screenshot 1)
   ========================================================================== */
.v3-footer {
    margin-top: auto;
    padding: 24px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}
.v3-footer-inner {
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.v3-footer-left {
    color: #a1a1aa;
    font-size: 0.88rem;
    font-weight: 400;
}

/* ==========================================================================
   9. INTERIOR PAGES (Products, Topup, Orders, Gacha, Auth)
   ========================================================================== */
.v3-card {
    background: var(--v3-bg-card);
    border: 1px solid var(--v3-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--v3-shadow);
    margin-bottom: 24px;
}
.v3-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.v3-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.v3-card-title i {
    color: var(--v3-accent-magenta);
}

/* Form Controls */
.form-control,
.v3-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--v3-bg-input) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-family: inherit;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.form-control:focus,
.v3-input:focus {
    border-color: var(--v3-accent-magenta) !important;
    box-shadow: 0 0 12px rgba(var(--accent-rgb, 217, 70, 239), 0.3) !important;
    outline: none;
}
select.form-control option {
    background: #111118;
    color: #ffffff;
}

/* Buttons */
.btn-primary,
.v3-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    background: linear-gradient(135deg, var(--v3-accent-magenta), var(--v3-accent-purple)) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(var(--accent-rgb, 217, 70, 239), 0.35);
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-primary:hover,
.v3-btn-primary:hover {
    box-shadow: 0 8px 28px rgba(var(--accent-rgb, 217, 70, 239), 0.6);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-sm,
.btn.btn-sm {
    padding: 6px 14px !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
    width: auto !important;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #71717a;
    background: #0f0f15;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin: 20px 0;
}
.empty-state i {
    font-size: 3rem;
    color: #38384a;
    margin-bottom: 14px;
}
.empty-state h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin: 0 0 8px;
}
.empty-state p {
    font-size: 0.88rem;
    margin: 0;
}

/* Tables */
.table-wrapper {
    background: var(--v3-bg-card);
    border: 1px solid var(--v3-border);
    border-radius: 14px;
    overflow-x: auto;
}
table.v3-table,
.table {
    width: 100%;
    border-collapse: collapse;
    color: #cbd5e1;
    font-size: 0.9rem;
}
table.v3-table th,
.table th {
    background: #14141d;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
table.v3-table td,
.table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
table.v3-table tr:hover,
.table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Mobile Navigation Drawer */
@media (max-width: 992px) {
    .v3-nav-outer {
        margin: 10px auto 14px;
        top: 10px;
    }
    .v3-nav-brand-text {
        font-size: 1.05rem;
        max-width: 170px;
    }
    .v3-nav-logo-img {
        height: 38px;
        max-height: 40px;
        max-width: 140px;
    }
    .v3-nav-links-wrap {
        display: none;
    }
    .v3-mobile-toggle {
        display: flex;
    }
    .v3-profile-menu {
        width: 260px;
        max-width: calc(100vw - 28px);
        right: -36px;
        top: calc(100% + 12px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 24px rgba(var(--accent2-rgb, 168, 85, 247), 0.25);
    }
    .v3-lang-pill {
        display: none;
    }
    .v3-categories-grid {
        grid-template-columns: 1fr;
    }
    .v3-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .v3-stats-banner {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .v3-stat-card {
        padding: 16px 20px;
    }
    .v3-image-blocks {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Drawer Open State */
.v3-mobile-drawer {
    display: none;
    position: fixed;
    top: 66px;
    left: 16px;
    right: 16px;
    background: rgba(14, 14, 20, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    z-index: 999;
    flex-direction: column;
    gap: 8px;
    animation: v3FadeIn 0.25s ease;
}
.v3-mobile-drawer.active {
    display: flex;
}
.v3-mobile-drawer .v3-nav-item,
.v3-mobile-drawer .v3-nav-item span {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 12px;
    font-weight: 400 !important;
    text-shadow: none !important;
}

@media (max-width: 576px) {
    .v3-nav-outer {
        margin: 8px auto 12px;
        padding: 0 12px;
        top: 8px;
    }
    .v3-mobile-drawer {
        top: 58px;
        left: 12px;
        right: 12px;
    }
    .v3-nav-brand-text {
        font-size: 0.95rem;
        max-width: 135px;
    }
    .v3-capsule-navbar {
        padding: 6px 10px;
    }
    .v3-profile-menu {
        right: -28px;
        top: calc(100% + 10px);
    }
    .v3-balance-pill {
        display: none;
    }
    .v3-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .v3-product-body {
        padding: 10px;
    }
    .v3-product-title {
        font-size: 0.86rem;
        margin-bottom: 4px;
    }
    .v3-product-price-row {
        margin-bottom: 6px;
    }
    .v3-product-price {
        font-size: 0.98rem;
    }
    .v3-product-sold-row {
        font-size: 0.72rem;
        padding-top: 8px;
        gap: 5px;
    }
    .v3-sound-switch-widget {
        bottom: 12px;
        right: 12px;
    }
    .v3-kb-svg {
        width: 112px;
        height: 72px;
    }
    .v3-footer-inner {
        justify-content: center;
        text-align: center;
    }
}

/* ==========================================================================
   10. PRODUCT DETAIL PAGE (V3 Dark Cyberpunk)
   ========================================================================== */
.product-detail {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 32px;
    margin-top: 0;
    margin-bottom: 40px;
}
.product-detail-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0 !important; /* Square sharp corners */
    object-fit: contain;
    background: #090a10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.product-detail-info {
    background: #0f0f15;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

/* Auth Shell & Admin Shell V3 Alignments */
.auth-shell {
    margin-top: 8px !important;
}
.auth-brand-story {
    background: radial-gradient(ellipse at 20% 80%, rgba(var(--accent-rgb, 217, 70, 239), 0.16) 0, transparent 65%),
                radial-gradient(ellipse at 80% 20%, rgba(var(--accent2-rgb, 168, 85, 247), 0.14) 0, transparent 60%),
                #0c0c12 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.auth-brand-showcase {
    gap: 20px !important;
    padding: 40px !important;
}
.auth-brand-logo {
    max-width: min(320px, 90%) !important;
    max-height: 180px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 10px 30px rgba(var(--accent-rgb, 217, 70, 239), 0.35)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6)) !important;
    transition: transform 0.3s ease, filter 0.3s ease !important;
}
.auth-brand-logo:hover {
    transform: scale(1.03) !important;
    filter: drop-shadow(0 14px 38px rgba(var(--accent-rgb, 217, 70, 239), 0.55)) !important;
}
.auth-brand-name {
    font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    color: #ffffff !important;
    text-shadow: 0 0 24px rgba(var(--accent-rgb, 217, 70, 239), 0.35), 0 2px 8px rgba(0, 0, 0, 0.7) !important;
}
@media (max-width: 680px) {
    .auth-brand-story {
        min-height: 140px !important;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    .auth-brand-showcase {
        padding: 24px 16px !important;
        gap: 12px !important;
    }
    .auth-brand-name {
        font-size: 1.5rem !important;
    }
    .auth-brand-logo {
        max-width: 180px !important;
        max-height: 90px !important;
    }
}
.admin-sidebar-v2 {
    top: 76px !important;
    max-height: none !important;
}
@media (max-width: 992px) {
    .admin-sidebar-v2 {
        top: 66px !important;
    }
}
.product-detail-info h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.3;
}
.product-detail-price {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--v3-accent-magenta);
    text-shadow: 0 0 16px rgba(var(--accent-rgb, 217, 70, 239), 0.4);
    margin-bottom: 18px;
}
.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 16px;
    background: #14141d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
}
.product-detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #cbd5e1;
}
.product-detail-meta-item i {
    color: var(--v3-accent-purple);
}
.package-card-option,
.option-card-choice {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 7px 12px !important;
    min-height: 44px !important;
    background: #14141e !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 9px !important;
    transition: all 0.18s ease !important;
    box-sizing: border-box !important;
    text-align: left !important;
}
.package-card-option:hover,
.option-card-choice:hover {
    border-color: rgba(var(--accent-rgb, 217, 70, 239), 0.45) !important;
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.06) !important;
    transform: translateY(-1px);
}
.package-card-option.active,
.option-card-choice.active {
    border-color: var(--v3-accent-magenta) !important;
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.14) !important;
    box-shadow: 0 0 14px rgba(var(--accent-rgb, 217, 70, 239), 0.32) !important;
}
.package-card-option.active .v3-select-name,
.option-card-choice.active .v3-select-name {
    color: #ffffff !important;
}
.package-card-option.active .v3-select-price,
.option-card-choice.active .v3-select-price {
    color: var(--accent) !important;
    text-shadow: 0 0 8px rgba(var(--accent-rgb, 217, 70, 239), 0.45);
}

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

/* ==========================================================================
   11. TOPUP, ORDERS & GACHA DARK OVERRIDES
   ========================================================================== */
.topup-card,
.contact-card,
.auth-card,
.admin-card,
.stat-card {
    background: #0f0f15 !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
}

/* Topup Tabs & Cards */
.topup-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.topup-tab {
    flex: 1;
    padding: 14px 16px;
    background: #13131c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #94a3b8;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}
.topup-tab.active {
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.15);
    border-color: var(--v3-accent-magenta);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(var(--accent-rgb, 217, 70, 239), 0.25);
}

/* Gacha Dark Cards */
.gacha-game-card {
    background: #0f0f15 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    overflow: hidden;
    transition: all 0.25s ease;
}
.gacha-game-card:hover {
    border-color: rgba(var(--accent-rgb, 217, 70, 239), 0.5) !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(var(--accent-rgb, 217, 70, 239), 0.2);
}

/* Gacha Uncropped Images (Full Visibility Zero Cropping) */
.gacha-game-img-wrapper {
    background: #090a10 !important;
}
.gacha-game-img-wrapper img,
.gacha-item-img img,
.gacha-card-front-img,
.csgo-spin-item img {
    object-fit: contain !important;
    background: #090a10 !important;
}

/* Status Badges */
.badge,
.order-status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
}
.status-completed {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.status-pending {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}
.status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   12. PRODUCT PURCHASE POPUP MODAL (Cyber Obsidian Theme)
   ========================================================================== */
body.v3-modal-open {
    overflow: hidden !important;
}

.v3-product-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 6, 10, 0.85);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.28s ease, visibility 0.28s;
    padding: 16px;
    box-sizing: border-box;
}

.v3-product-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    pointer-events: auto;
}

.v3-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 840px;
    max-height: 90vh;
    background: #0e0e14;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: 0 25px 75px rgba(0, 0, 0, 0.9), 0 0 35px rgba(var(--accent-rgb, 217, 70, 239), 0.28);
    display: flex;
    flex-direction: column;
    overflow: visible;
    transform: scale(0.90) translateY(24px);
    opacity: 0;
    box-sizing: border-box;
    will-change: transform, opacity;
}

/* Modal Border Gradient: Fades from very bright at corners to subtle/faint in center */
.v3-modal-dialog::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0 !important;
    pointer-events: none;
    z-index: 5;
    background: 
        linear-gradient(to right, #ffffff 0%, var(--accent) 8%, rgba(var(--accent-rgb, 217, 70, 239), 0.85) 18%, rgba(var(--accent-rgb, 217, 70, 239), 0.12) 32%, rgba(var(--accent-rgb, 217, 70, 239), 0.10) 50%, rgba(var(--accent-rgb, 217, 70, 239), 0.12) 68%, rgba(var(--accent-rgb, 217, 70, 239), 0.85) 82%, var(--accent) 92%, #ffffff 100%) top / 100% 1.5px no-repeat,
        linear-gradient(to bottom, #ffffff 0%, var(--accent) 8%, rgba(var(--accent-rgb, 217, 70, 239), 0.85) 18%, rgba(var(--accent-rgb, 217, 70, 239), 0.12) 32%, rgba(var(--accent-rgb, 217, 70, 239), 0.10) 50%, rgba(var(--accent-rgb, 217, 70, 239), 0.12) 68%, rgba(var(--accent-rgb, 217, 70, 239), 0.85) 82%, var(--accent) 92%, #ffffff 100%) right / 1.5px 100% no-repeat,
        linear-gradient(to left, #ffffff 0%, var(--accent) 8%, rgba(var(--accent-rgb, 217, 70, 239), 0.85) 18%, rgba(var(--accent-rgb, 217, 70, 239), 0.12) 32%, rgba(var(--accent-rgb, 217, 70, 239), 0.10) 50%, rgba(var(--accent-rgb, 217, 70, 239), 0.12) 68%, rgba(var(--accent-rgb, 217, 70, 239), 0.85) 82%, var(--accent) 92%, #ffffff 100%) bottom / 100% 1.5px no-repeat,
        linear-gradient(to top, #ffffff 0%, var(--accent) 8%, rgba(var(--accent-rgb, 217, 70, 239), 0.85) 18%, rgba(var(--accent-rgb, 217, 70, 239), 0.12) 32%, rgba(var(--accent-rgb, 217, 70, 239), 0.10) 50%, rgba(var(--accent-rgb, 217, 70, 239), 0.12) 68%, rgba(var(--accent-rgb, 217, 70, 239), 0.85) 82%, var(--accent) 92%, #ffffff 100%) left / 1.5px 100% no-repeat;
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(var(--accent-rgb, 217, 70, 239), 0.6));
}

.v3-product-modal-backdrop.is-open .v3-modal-dialog {
    animation: v3ModalSpringIn 0.58s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.v3-product-modal-backdrop.is-closing {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    pointer-events: none;
    visibility: visible;
    transition: opacity 0.28s ease-out, backdrop-filter 0.28s ease-out;
}

.v3-product-modal-backdrop.is-closing .v3-modal-dialog {
    animation: v3ModalSpringOut 0.28s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Modal Inner Columns - Left & Right Spring Bounce */
.v3-product-modal-backdrop.is-open .v3-modal-col-left {
    animation: v3ColSlideInLeft 0.62s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.v3-product-modal-backdrop.is-open .v3-modal-col-right {
    animation: v3ColSlideInRight 0.62s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

@keyframes v3ModalSpringIn {
    0% {
        opacity: 0;
        transform: scale(0.86) translateY(24px);
        filter: blur(3px);
    }
    70% {
        transform: scale(1.015) translateY(-2px);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes v3ModalSpringOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.90) translateY(18px);
        filter: blur(3px);
    }
}

@keyframes v3ColSlideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-36px) scale(0.96);
    }
    70% {
        transform: translateX(4px) scale(1.006);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes v3ColSlideInRight {
    0% {
        opacity: 0;
        transform: translateX(36px) scale(0.96);
    }
    70% {
        transform: translateX(-4px) scale(1.006);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Cyberpunk Angled Wedge Corner Accents on Modal */
.v3-modal-dialog .v3-card-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    pointer-events: none;
    z-index: 10;
    opacity: 1;
    transform: none !important;
    border: none !important;
    border-radius: 0 !important;
}
.v3-modal-dialog .v3-corner-tl {
    top: 0;
    left: 0;
    transform-origin: top left;
    clip-path: polygon(0 0, 100% 0, 7px 7px, 0 100%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, var(--accent) 38%, rgba(var(--accent-rgb, 217, 70, 239), 0.8) 75%, transparent 100%);
    filter: drop-shadow(0 0 6px var(--accent));
}
.v3-modal-dialog .v3-corner-tr {
    top: 0;
    right: 0;
    transform-origin: top right;
    clip-path: polygon(0 0, 100% 0, 100% 100%, calc(100% - 7px) 7px);
    background: linear-gradient(225deg, rgba(255, 255, 255, 0.95) 0%, var(--accent) 38%, rgba(var(--accent-rgb, 217, 70, 239), 0.8) 75%, transparent 100%);
    filter: drop-shadow(0 0 6px var(--accent));
}
.v3-modal-dialog .v3-corner-bl {
    bottom: 0;
    left: 0;
    transform-origin: bottom left;
    clip-path: polygon(0 0, 7px calc(100% - 7px), 100% 100%, 0 100%);
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.95) 0%, var(--accent) 38%, rgba(var(--accent-rgb, 217, 70, 239), 0.8) 75%, transparent 100%);
    filter: drop-shadow(0 0 6px var(--accent));
}
.v3-modal-dialog .v3-corner-br {
    bottom: 0;
    right: 0;
    transform-origin: bottom right;
    clip-path: polygon(100% 0, 100% 100%, 0 100%, calc(100% - 7px) calc(100% - 7px));
    background: linear-gradient(315deg, rgba(255, 255, 255, 0.95) 0%, var(--accent) 38%, rgba(var(--accent-rgb, 217, 70, 239), 0.8) 75%, transparent 100%);
    filter: drop-shadow(0 0 6px var(--accent));
}

/* Modal Header */
.v3-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(14, 14, 20, 0.96);
    flex-shrink: 0;
    gap: 16px;
}
.v3-modal-head-info {
    flex: 1;
    min-width: 0;
}
.v3-modal-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.12);
    border: 1px solid rgba(var(--accent-rgb, 217, 70, 239), 0.3);
    border-radius: 4px;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.v3-modal-title {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v3-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.v3-modal-close:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.45);
    color: #f87171;
    transform: rotate(90deg);
}

/* Modal Body Scroll Container */
.v3-modal-body-scroll {
    overflow-y: auto;
    padding: 24px;
    flex: 1;
    max-height: calc(90vh - 75px);
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.v3-modal-body-scroll::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Modal Loading & Error States */
.v3-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    gap: 16px;
    color: #a1a1aa;
    font-size: 0.95rem;
}
.v3-modal-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(var(--accent-rgb, 217, 70, 239), 0.18);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: v3ModalSpin 0.7s linear infinite;
}
@keyframes v3ModalSpin {
    to { transform: rotate(360deg); }
}

.v3-modal-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    gap: 14px;
    text-align: center;
}
.v3-modal-error-icon {
    font-size: 3rem;
    color: #ef4444;
}
.v3-modal-error-text {
    color: #cbd5e1;
    font-size: 0.95rem;
}

/* Main 2-Column Grid */
.v3-modal-main-grid {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 24px;
    align-items: start;
}

/* Left Column: Image & Status */
.v3-modal-col-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.v3-modal-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--v3-bg-surface, #121218);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.v3-modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #090a10;
    display: block;
    border-radius: 0 !important;
}
.v3-modal-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #3f3f4e;
    background: #111118;
}

.v3-modal-tags-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.v3-modal-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}
.v3-modal-tag.tag-service {
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.12);
    border: 1px solid rgba(var(--accent-rgb, 217, 70, 239), 0.3);
    color: var(--accent);
}
.v3-modal-tag.tag-options {
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.12);
    border: 1px solid rgba(var(--accent-rgb, 217, 70, 239), 0.3);
    color: var(--accent);
}
.v3-modal-tag.tag-stock.in {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
}
.v3-modal-tag.tag-stock.out {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.v3-modal-desc-box {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}
.v3-modal-desc-head {
    font-size: 0.8rem;
    font-weight: 600;
    color: #a1a1aa;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.v3-modal-desc-head i {
    color: var(--accent);
}
.v3-modal-desc-body {
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.6;
    white-space: pre-line;
    max-height: 160px;
    overflow-y: auto;
}

/* Right Column: Pricing & Controls */
.v3-modal-col-right {
    display: flex;
    flex-direction: column;
}

/* Price Banner */
.v3-modal-price-bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 12px 18px;
    background: #14141e;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-bottom: 12px;
}
.v3-modal-price-label {
    font-size: 0.88rem;
    color: #a1a1aa;
    font-weight: 500;
}
.v3-modal-price-val {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 16px var(--accent-glow, rgba(var(--accent-rgb, 217, 70, 239), 0.45));
    line-height: 1;
}

/* Wallet Row */
.v3-modal-wallet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.06);
    border: 1px solid rgba(var(--accent-rgb, 217, 70, 239), 0.18);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.84rem;
    color: #e4e4e7;
}
.v3-modal-wallet-info i {
    color: var(--accent);
    margin-right: 4px;
}
.v3-modal-wallet-info strong {
    color: #ffffff;
    font-size: 0.92rem;
}
.v3-modal-topup-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.v3-modal-topup-link:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px var(--accent-glow, rgba(var(--accent-rgb, 217, 70, 239), 0.6));
    color: var(--accent-hover, var(--accent));
}

/* Modal Section */
.v3-modal-section {
    margin-bottom: 16px;
}
.v3-modal-sec-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e4e4e7;
    margin-bottom: 8px;
    display: block;
}
.v3-modal-sec-title i {
    color: var(--accent);
    margin-right: 4px;
}
.v3-req {
    color: #ef4444;
}

/* Selectable Cards Grid (Packages / Options) */
.v3-modal-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 2px;
}
.v3-modal-select-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 12px;
    min-height: 44px;
    border-radius: 9px;
    background: #12121a;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    box-sizing: border-box;
    text-align: left;
}
.v3-modal-select-card:hover:not(.disabled) {
    border-color: rgba(var(--accent-rgb, 217, 70, 239), 0.45);
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.06);
    transform: translateY(-1px);
}
.v3-modal-select-card.active {
    border-color: var(--accent) !important;
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.14) !important;
    box-shadow: 0 0 14px var(--accent-glow, rgba(var(--accent-rgb, 217, 70, 239), 0.32)) !important;
}
.v3-modal-select-card.active .v3-select-name {
    color: #ffffff;
}
.v3-modal-select-card.active .v3-select-price {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow, rgba(var(--accent-rgb, 217, 70, 239), 0.45));
}
.v3-modal-select-card.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.v3-select-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
    text-align: left;
}
.v3-select-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.25;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v3-select-price {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
    letter-spacing: -0.2px;
    transition: color 0.2s ease;
}
.v3-select-stock {
    font-size: 0.70rem;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    line-height: 1.2;
}
.v3-select-stock.has {
    color: #4ade80;
}
.v3-select-stock.empty {
    color: #f87171;
}

@media (max-width: 480px) {
    .v3-modal-cards-grid,
    .package-options-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Service Textarea */
.v3-modal-textarea {
    width: 100%;
    box-sizing: border-box;
    background: #09090d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.88rem;
    resize: vertical;
    min-height: 70px;
    transition: border-color 0.2s;
}
.v3-modal-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb, 217, 70, 239), 0.25);
}
.v3-modal-input-hint {
    font-size: 0.75rem;
    color: #71717a;
    margin-top: 4px;
}

/* Quantity Row */
.v3-modal-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #12121a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.v3-modal-qty-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.v3-modal-qty-lbl {
    font-size: 0.85rem;
    color: #a1a1aa;
    font-weight: 500;
}
.v3-modal-qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    background: #0b0b10;
}
.v3-qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}
.v3-qty-btn:hover {
    background: var(--accent);
    color: #ffffff;
}
.v3-modal-qty-stepper input {
    width: 48px;
    height: 34px;
    text-align: center;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
}
.v3-modal-total-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.v3-total-lbl {
    font-size: 0.82rem;
    color: #a1a1aa;
}
.v3-total-val {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow, rgba(var(--accent-rgb, 217, 70, 239), 0.4));
}

/* Action Button */
.v3-modal-action-row {
    margin-top: 4px;
}
.v3-modal-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.22s ease;
    box-sizing: border-box;
}
.v3-modal-submit-btn.btn-buy {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #ffffff;
    box-shadow: 0 6px 20px var(--accent-glow, rgba(var(--accent-rgb, 217, 70, 239), 0.35));
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.v3-modal-submit-btn.btn-buy:hover {
    box-shadow: 0 8px 26px var(--accent-glow, rgba(var(--accent-rgb, 217, 70, 239), 0.55));
    transform: translateY(-1px);
}
.v3-modal-submit-btn.btn-login {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
.v3-modal-submit-btn.btn-login:hover {
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.2);
    border-color: var(--accent);
}
.v3-modal-submit-btn.btn-disabled {
    background: #1c1c24;
    color: #71717a;
    cursor: not-allowed;
}

/* In-Modal Alert Box */
.v3-modal-alert-box {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.84rem;
    line-height: 1.5;
}
.v3-modal-alert-box.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Success View */
.v3-modal-success-wrap {
    text-align: center;
    padding: 24px 12px;
}
.v3-modal-success-icon {
    font-size: 3.8rem;
    color: var(--accent);
    margin-bottom: 14px;
    filter: drop-shadow(0 0 18px var(--accent-glow, rgba(var(--accent-rgb, 217, 70, 239), 0.65)));
    animation: v3PulseIcon 1.5s ease infinite alternate;
}
@keyframes v3PulseIcon {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}
.v3-modal-success-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
}
.v3-modal-success-desc {
    font-size: 0.92rem;
    color: #a1a1aa;
    line-height: 1.6;
    margin: 0 0 22px;
}
.v3-modal-codes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 24px;
    padding: 4px;
}
.v3-modal-code-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--v3-bg-body, #08080c);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    text-align: left;
}
.v3-code-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    font-family: monospace;
}
.v3-code-text {
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
    color: #4ade80;
    word-break: break-all;
}
.v3-code-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #e4e4e7;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.v3-code-copy-btn:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}
.v3-code-copy-btn.copied {
    background: #16a34a !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
}

.v3-modal-success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.v3-modal-btn-copyall {
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.15);
    border: 1.5px solid var(--accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
}
.v3-modal-btn-copyall:hover {
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow, rgba(var(--accent-rgb, 217, 70, 239), 0.5));
}
.v3-modal-btn-copyall.copied {
    background: #16a34a !important;
    border-color: #16a34a !important;
}
.v3-modal-btn-orders {
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.v3-modal-btn-orders:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
.v3-modal-btn-done {
    padding: 10px 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--v3-accent-magenta), var(--v3-accent-purple));
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.v3-modal-btn-done:hover {
    box-shadow: 0 0 18px rgba(var(--accent-rgb, 217, 70, 239), 0.5);
}

@media (max-width: 768px) {
    .v3-modal-main-grid {
        grid-template-columns: 1fr;
    }
    .v3-modal-col-left {
        max-width: 280px;
        margin: 0 auto;
        width: 100%;
    }
    .v3-modal-body-scroll {
        padding: 16px;
    }
    .v3-modal-header {
        padding: 14px 16px;
    }
}

/* ==========================================================================
   Product Multiple Images Gallery (Modal & Standalone Product Page)
   ========================================================================== */
.v3-modal-gallery-thumbs,
.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding: 3px 2px 6px 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--accent-rgb, 217, 70, 239), 0.4) transparent;
}

.v3-modal-gallery-thumbs::-webkit-scrollbar,
.product-gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.v3-modal-gallery-thumbs::-webkit-scrollbar-thumb,
.product-gallery-thumbs::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.4);
    border-radius: 4px;
}

.v3-gallery-thumb,
.product-thumb-item {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    background: #090a10;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.65;
}

.v3-gallery-thumb:hover,
.product-thumb-item:hover {
    opacity: 1;
    border-color: rgba(var(--accent-rgb, 217, 70, 239), 0.6);
    transform: translateY(-2px);
}

.v3-gallery-thumb.active,
.product-thumb-item.active {
    opacity: 1;
    border-color: var(--accent) !important;
    box-shadow: 0 0 12px var(--accent-glow, rgba(var(--accent-rgb, 217, 70, 239), 0.5)) !important;
}


/* ==========================================================================
   CUSTOM GAMING MOUSE CURSORS (Consistent & Stable Across All Elements)
   ========================================================================== */

/* Cursor: cyber-arrow - Consistent across all elements */
body[data-cursor="cyber-arrow"],
body[data-cursor="cyber-arrow"] *,
[data-cursor="cyber-arrow"],
[data-cursor="cyber-arrow"] *,
.theme-cursor-preview[data-cursor="cyber-arrow"],
.theme-cursor-preview[data-cursor="cyber-arrow"] * {
    cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%20%3Cdefs%3E%20%3ClinearGradient%20id%3D%22ca_body%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%22100%25%22%20y2%3D%22100%25%22%3E%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23ffffff%22%2F%3E%20%3Cstop%20offset%3D%2240%25%22%20stop-color%3D%22%2338bdf8%22%2F%3E%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23d946ef%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cfilter%20id%3D%22ca_glow%22%20x%3D%22-30%25%22%20y%3D%22-30%25%22%20width%3D%22160%25%22%20height%3D%22160%25%22%3E%20%3CfeDropShadow%20dx%3D%220%22%20dy%3D%221.5%22%20stdDeviation%3D%221.5%22%20flood-color%3D%22%23000000%22%20flood-opacity%3D%220.9%22%2F%3E%20%3C%2Ffilter%3E%20%3C%2Fdefs%3E%20%3Cpath%20d%3D%22M2%2C2%20L11%2C28%20L15%2C18%20L24%2C23%20L26%2C20%20L17%2C15%20L26%2C11%20Z%22%20fill%3D%22%23090a10%22%20stroke%3D%22%23000000%22%20stroke-width%3D%222.5%22%20filter%3D%22url%28%23ca_glow%29%22%2F%3E%20%3Cpath%20d%3D%22M2%2C2%20L11%2C28%20L15%2C18%20L24%2C23%20L26%2C20%20L17%2C15%20L26%2C11%20Z%22%20fill%3D%22%23090a10%22%20stroke%3D%22%23d946ef%22%20stroke-width%3D%221.6%22%2F%3E%20%3Cpath%20d%3D%22M4%2C5%20L11%2C23%20L14%2C16%20L21%2C12%20Z%22%20fill%3D%22url%28%23ca_body%29%22%2F%3E%20%3Cpath%20d%3D%22M2%2C2%20L14%2C16%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%2F%3E%20%3C%2Fsvg%3E") 1 1, auto !important;
}
body[data-cursor="cyber-arrow"] :is(input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], textarea) {
    cursor: text !important;
}
body[data-cursor="cyber-arrow"] :is([disabled], .disabled) {
    cursor: not-allowed !important;
}

/* Cursor: tactical-cross - Consistent across all elements */
body[data-cursor="tactical-cross"],
body[data-cursor="tactical-cross"] *,
[data-cursor="tactical-cross"],
[data-cursor="tactical-cross"] *,
.theme-cursor-preview[data-cursor="tactical-cross"],
.theme-cursor-preview[data-cursor="tactical-cross"] * {
    cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%20%3Cdefs%3E%20%3Cfilter%20id%3D%22tc_sh%22%20x%3D%22-20%25%22%20y%3D%22-20%25%22%20width%3D%22140%25%22%20height%3D%22140%25%22%3E%20%3CfeDropShadow%20dx%3D%220%22%20dy%3D%221%22%20stdDeviation%3D%221%22%20flood-color%3D%22%23000000%22%20flood-opacity%3D%220.9%22%2F%3E%20%3C%2Ffilter%3E%20%3C%2Fdefs%3E%20%3C%21--%20Drop%20shadow%20layer%20--%3E%20%3Cg%20stroke%3D%22%23000000%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22square%22%20opacity%3D%220.85%22%3E%20%3Cline%20x1%3D%2216%22%20y1%3D%224%22%20x2%3D%2216%22%20y2%3D%2210%22%2F%3E%20%3Cline%20x1%3D%2216%22%20y1%3D%2222%22%20x2%3D%2216%22%20y2%3D%2228%22%2F%3E%20%3Cline%20x1%3D%224%22%20y1%3D%2216%22%20x2%3D%2210%22%20y2%3D%2216%22%2F%3E%20%3Cline%20x1%3D%2222%22%20y1%3D%2216%22%20x2%3D%2228%22%20y2%3D%2216%22%2F%3E%20%3C%2Fg%3E%20%3C%21--%20Tactical%20Bars%20--%3E%20%3Cg%20stroke%3D%22%2338bdf8%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22square%22%3E%20%3Cline%20x1%3D%2216%22%20y1%3D%224%22%20x2%3D%2216%22%20y2%3D%2210%22%2F%3E%20%3Cline%20x1%3D%2216%22%20y1%3D%2222%22%20x2%3D%2216%22%20y2%3D%2228%22%2F%3E%20%3Cline%20x1%3D%224%22%20y1%3D%2216%22%20x2%3D%2210%22%20y2%3D%2216%22%2F%3E%20%3Cline%20x1%3D%2222%22%20y1%3D%2216%22%20x2%3D%2228%22%20y2%3D%2216%22%2F%3E%20%3C%2Fg%3E%20%3C%21--%204%20Corner%20Brackets%20--%3E%20%3Cpath%20d%3D%22M8%2C11%20L8%2C8%20L11%2C8%22%20fill%3D%22none%22%20stroke%3D%22%23d946ef%22%20stroke-width%3D%221.4%22%2F%3E%20%3Cpath%20d%3D%22M21%2C8%20L24%2C8%20L24%2C11%22%20fill%3D%22none%22%20stroke%3D%22%23d946ef%22%20stroke-width%3D%221.4%22%2F%3E%20%3Cpath%20d%3D%22M8%2C21%20L8%2C24%20L11%2C24%22%20fill%3D%22none%22%20stroke%3D%22%23d946ef%22%20stroke-width%3D%221.4%22%2F%3E%20%3Cpath%20d%3D%22M21%2C24%20L24%2C24%20L24%2C21%22%20fill%3D%22none%22%20stroke%3D%22%23d946ef%22%20stroke-width%3D%221.4%22%2F%3E%20%3C%21--%20Center%20Core%20Dot%20--%3E%20%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%222.2%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%23000000%22%20stroke-width%3D%220.8%22%2F%3E%20%3C%2Fsvg%3E") 16 16, auto !important;
}
body[data-cursor="tactical-cross"] :is(input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], textarea) {
    cursor: text !important;
}
body[data-cursor="tactical-cross"] :is([disabled], .disabled) {
    cursor: not-allowed !important;
}

/* Cursor: laser-dagger - Consistent across all elements */
body[data-cursor="laser-dagger"],
body[data-cursor="laser-dagger"] *,
[data-cursor="laser-dagger"],
[data-cursor="laser-dagger"] *,
.theme-cursor-preview[data-cursor="laser-dagger"],
.theme-cursor-preview[data-cursor="laser-dagger"] * {
    cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%20%3Cdefs%3E%20%3ClinearGradient%20id%3D%22ld_blade%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%22100%25%22%20y2%3D%22100%25%22%3E%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23ffffff%22%2F%3E%20%3Cstop%20offset%3D%2235%25%22%20stop-color%3D%22%2338bdf8%22%2F%3E%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%236366f1%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cfilter%20id%3D%22ld_sh%22%20x%3D%22-20%25%22%20y%3D%22-20%25%22%20width%3D%22140%25%22%20height%3D%22140%25%22%3E%20%3CfeDropShadow%20dx%3D%220%22%20dy%3D%221.5%22%20stdDeviation%3D%221.5%22%20flood-color%3D%22%23000000%22%20flood-opacity%3D%220.85%22%2F%3E%20%3C%2Ffilter%3E%20%3C%2Fdefs%3E%20%3C%21--%20Blade%20--%3E%20%3Cpath%20d%3D%22M2%2C2%20L17%2C14%20L14%2C17%20L2%2C5%20Z%22%20fill%3D%22url%28%23ld_blade%29%22%20stroke%3D%22%230b0e14%22%20stroke-width%3D%221.6%22%20filter%3D%22url%28%23ld_sh%29%22%2F%3E%20%3Cline%20x1%3D%223%22%20y1%3D%223%22%20x2%3D%2215%22%20y2%3D%2215%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221.2%22%20stroke-linecap%3D%22round%22%2F%3E%20%3C%21--%20Energy%20Guard%20--%3E%20%3Cpath%20d%3D%22M13%2C18%20L19%2C12%20L21%2C14%20L15%2C20%20Z%22%20fill%3D%22%23fbbf24%22%20stroke%3D%22%2378350f%22%20stroke-width%3D%221%22%2F%3E%20%3C%21--%20Cyber%20Hilt%20--%3E%20%3Cpath%20d%3D%22M16%2C19%20L25%2C28%20L23%2C30%20L14%2C21%20Z%22%20fill%3D%22%23181824%22%20stroke%3D%22%23d946ef%22%20stroke-width%3D%221.2%22%2F%3E%20%3Ccircle%20cx%3D%2225%22%20cy%3D%2230%22%20r%3D%221.8%22%20fill%3D%22%2338bdf8%22%2F%3E%20%3C%2Fsvg%3E") 2 2, auto !important;
}
body[data-cursor="laser-dagger"] :is(input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], textarea) {
    cursor: text !important;
}
body[data-cursor="laser-dagger"] :is([disabled], .disabled) {
    cursor: not-allowed !important;
}

/* Cursor: hologram-hud - Consistent across all elements */
body[data-cursor="hologram-hud"],
body[data-cursor="hologram-hud"] *,
[data-cursor="hologram-hud"],
[data-cursor="hologram-hud"] *,
.theme-cursor-preview[data-cursor="hologram-hud"],
.theme-cursor-preview[data-cursor="hologram-hud"] * {
    cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%20%3Cdefs%3E%20%3Cfilter%20id%3D%22hh_sh%22%20x%3D%22-20%25%22%20y%3D%22-20%25%22%20width%3D%22140%25%22%20height%3D%22140%25%22%3E%20%3CfeDropShadow%20dx%3D%220%22%20dy%3D%221%22%20stdDeviation%3D%221.2%22%20flood-color%3D%22%23000000%22%20flood-opacity%3D%220.8%22%2F%3E%20%3C%2Ffilter%3E%20%3C%2Fdefs%3E%20%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%2211%22%20fill%3D%22none%22%20stroke%3D%22%23000000%22%20stroke-width%3D%223%22%20opacity%3D%220.6%22%2F%3E%20%3C%21--%20Segmented%20ring%20--%3E%20%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%2211%22%20fill%3D%22none%22%20stroke%3D%22%2310b981%22%20stroke-width%3D%221.8%22%20stroke-dasharray%3D%2216%207%22%20filter%3D%22url%28%23hh_sh%29%22%2F%3E%20%3C%21--%204%20ticks%20--%3E%20%3Cline%20x1%3D%2216%22%20y1%3D%221%22%20x2%3D%2216%22%20y2%3D%224%22%20stroke%3D%22%2334d399%22%20stroke-width%3D%222%22%2F%3E%20%3Cline%20x1%3D%2216%22%20y1%3D%2228%22%20x2%3D%2216%22%20y2%3D%2231%22%20stroke%3D%22%2334d399%22%20stroke-width%3D%222%22%2F%3E%20%3Cline%20x1%3D%221%22%20y1%3D%2216%22%20x2%3D%224%22%20y2%3D%2216%22%20stroke%3D%22%2334d399%22%20stroke-width%3D%222%22%2F%3E%20%3Cline%20x1%3D%2228%22%20y1%3D%2216%22%20x2%3D%2231%22%20y2%3D%2216%22%20stroke%3D%22%2334d399%22%20stroke-width%3D%222%22%2F%3E%20%3C%21--%20Inner%20core%20--%3E%20%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%223%22%20fill%3D%22%2334d399%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221%22%2F%3E%20%3C%2Fsvg%3E") 16 16, auto !important;
}
body[data-cursor="hologram-hud"] :is(input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], textarea) {
    cursor: text !important;
}
body[data-cursor="hologram-hud"] :is([disabled], .disabled) {
    cursor: not-allowed !important;
}

/* Cursor: crystal-shard - Consistent across all elements */
body[data-cursor="crystal-shard"],
body[data-cursor="crystal-shard"] *,
[data-cursor="crystal-shard"],
[data-cursor="crystal-shard"] *,
.theme-cursor-preview[data-cursor="crystal-shard"],
.theme-cursor-preview[data-cursor="crystal-shard"] * {
    cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%20%3Cdefs%3E%20%3ClinearGradient%20id%3D%22cs_g1%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%22100%25%22%20y2%3D%22100%25%22%3E%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23ffffff%22%2F%3E%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23c084fc%22%2F%3E%20%3C%2FlinearGradient%3E%20%3ClinearGradient%20id%3D%22cs_g2%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%22100%25%22%20y2%3D%22100%25%22%3E%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23a855f7%22%2F%3E%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%2338bdf8%22%2F%3E%20%3C%2FlinearGradient%3E%20%3Cfilter%20id%3D%22cs_sh%22%20x%3D%22-20%25%22%20y%3D%22-20%25%22%20width%3D%22140%25%22%20height%3D%22140%25%22%3E%20%3CfeDropShadow%20dx%3D%220%22%20dy%3D%221.5%22%20stdDeviation%3D%221.5%22%20flood-color%3D%22%23000000%22%20flood-opacity%3D%220.85%22%2F%3E%20%3C%2Ffilter%3E%20%3C%2Fdefs%3E%20%3C%21--%20Facet%20Left%20Top%20--%3E%20%3Cpolygon%20points%3D%222%2C2%2014%2C8%208%2C18%22%20fill%3D%22url%28%23cs_g1%29%22%20stroke%3D%22%23090a12%22%20stroke-width%3D%221.2%22%20filter%3D%22url%28%23cs_sh%29%22%2F%3E%20%3C%21--%20Facet%20Right%20Top%20--%3E%20%3Cpolygon%20points%3D%222%2C2%2020%2C4%2014%2C8%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%23090a12%22%20stroke-width%3D%221.2%22%2F%3E%20%3C%21--%20Facet%20Main%20Body%20--%3E%20%3Cpolygon%20points%3D%2214%2C8%2020%2C4%2026%2C14%2018%2C22%208%2C18%22%20fill%3D%22url%28%23cs_g2%29%22%20stroke%3D%22%23090a12%22%20stroke-width%3D%221.2%22%2F%3E%20%3C%21--%20Specular%20highlight%20edge%20--%3E%20%3Cline%20x1%3D%222%22%20y1%3D%222%22%20x2%3D%2214%22%20y2%3D%228%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%2F%3E%20%3C%2Fsvg%3E") 2 2, auto !important;
}
body[data-cursor="crystal-shard"] :is(input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], textarea) {
    cursor: text !important;
}
body[data-cursor="crystal-shard"] :is([disabled], .disabled) {
    cursor: not-allowed !important;
}

/* Cursor: cosmic-flare - Consistent across all elements */
body[data-cursor="cosmic-flare"],
body[data-cursor="cosmic-flare"] *,
[data-cursor="cosmic-flare"],
[data-cursor="cosmic-flare"] *,
.theme-cursor-preview[data-cursor="cosmic-flare"],
.theme-cursor-preview[data-cursor="cosmic-flare"] * {
    cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%20%3Cdefs%3E%20%3Cfilter%20id%3D%22cf_sh%22%20x%3D%22-30%25%22%20y%3D%22-30%25%22%20width%3D%22160%25%22%20height%3D%22160%25%22%3E%20%3CfeDropShadow%20dx%3D%220%22%20dy%3D%221%22%20stdDeviation%3D%221.5%22%20flood-color%3D%22%23000000%22%20flood-opacity%3D%220.9%22%2F%3E%20%3C%2Ffilter%3E%20%3C%2Fdefs%3E%20%3C%21--%20Long%20Rays%20Behind%20--%3E%20%3Cline%20x1%3D%225%22%20y1%3D%220%22%20x2%3D%225%22%20y2%3D%2224%22%20stroke%3D%22%23000000%22%20stroke-width%3D%223.5%22%20stroke-linecap%3D%22round%22%2F%3E%20%3Cline%20x1%3D%220%22%20y1%3D%225%22%20x2%3D%2224%22%20y2%3D%225%22%20stroke%3D%22%23000000%22%20stroke-width%3D%223.5%22%20stroke-linecap%3D%22round%22%2F%3E%20%3Cline%20x1%3D%225%22%20y1%3D%220%22%20x2%3D%225%22%20y2%3D%2224%22%20stroke%3D%22%23fbbf24%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%2F%3E%20%3Cline%20x1%3D%220%22%20y1%3D%225%22%20x2%3D%2224%22%20y2%3D%225%22%20stroke%3D%22%23fbbf24%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%2F%3E%20%3C%21--%20Diagonal%20short%20rays%20--%3E%20%3Cline%20x1%3D%221%22%20y1%3D%221%22%20x2%3D%229%22%20y2%3D%229%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%2F%3E%20%3Cline%20x1%3D%229%22%20y1%3D%221%22%20x2%3D%221%22%20y2%3D%229%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%2F%3E%20%3C%21--%20Core%20Diamond%20--%3E%20%3Cpolygon%20points%3D%225%2C1%207.5%2C5%205%2C9%202.5%2C5%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%23d97706%22%20stroke-width%3D%220.8%22%20filter%3D%22url%28%23cf_sh%29%22%2F%3E%20%3Ccircle%20cx%3D%225%22%20cy%3D%225%22%20r%3D%222%22%20fill%3D%22%23ffffff%22%2F%3E%20%3C%21--%20Tiny%20companion%20star%20--%3E%20%3Ccircle%20cx%3D%2216%22%20cy%3D%2216%22%20r%3D%221.6%22%20fill%3D%22%2338bdf8%22%2F%3E%20%3C%2Fsvg%3E") 5 5, auto !important;
}
body[data-cursor="cosmic-flare"] :is(input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"], textarea) {
    cursor: text !important;
}
body[data-cursor="cosmic-flare"] :is([disabled], .disabled) {
    cursor: not-allowed !important;
}

/* Admin Theme Cursor Options Grid */
.theme-cursor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 14px;
    margin-top: 14px;
}
.theme-cursor-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: var(--bg-input, #0c0d14);
    cursor: pointer;
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}
.theme-cursor-option:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.theme-cursor-option.is-selected {
    border-color: var(--v3-accent-magenta, #d946ef);
    box-shadow: 0 0 20px rgba(var(--accent-rgb, 217, 70, 239), 0.32);
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.10);
}
.theme-cursor-option > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.theme-cursor-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.theme-cursor-icon-box svg {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}
.theme-cursor-option:hover .theme-cursor-icon-box {
    transform: scale(1.12);
    border-color: var(--v3-accent-magenta, #d946ef);
    box-shadow: 0 0 14px rgba(var(--accent-rgb, 217, 70, 239), 0.4);
}
.theme-cursor-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.theme-cursor-info strong {
    color: var(--text-primary, #ffffff);
    font-size: 0.90rem;
    font-weight: 600;
}
.theme-cursor-info small {
    color: var(--text-muted, #71717a);
    font-size: 0.74rem;
    line-height: 1.35;
}
.theme-cursor-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.68rem;
    color: var(--text-secondary, #cbd5e1);
    margin-top: 4px;
    width: fit-content;
    transition: all 0.2s;
}
.theme-cursor-badge:hover {
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.2);
    border-color: var(--v3-accent-magenta, #d946ef);
    color: #ffffff;
}
.theme-cursor-check {
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.2s ease;
    color: var(--v3-accent-magenta, #d946ef);
    font-size: 1.25rem;
    flex-shrink: 0;
}
.theme-cursor-option.is-selected .theme-cursor-check {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   SPECTACULAR CLICK BURST PARTICLES & SHOCKWAVES
   ========================================================================== */
.v3-click-shockwave {
    position: fixed;
    border-radius: 50%;
    border: 2px solid var(--accent, #d946ef);
    box-shadow: 0 0 16px var(--accent, #d946ef), inset 0 0 8px var(--accent, #d946ef);
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    animation: v3ShockwaveAnim 0.42s cubic-bezier(0.12, 0.9, 0.24, 1) forwards;
}
.v3-click-shockwave-inner {
    position: fixed;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 12px #ffffff;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    animation: v3ShockwaveInnerAnim 0.32s cubic-bezier(0.16, 0.84, 0.3, 1) forwards;
}
.v3-click-flash {
    position: fixed;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 18px #ffffff, 0 0 32px var(--accent, #d946ef);
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    animation: v3FlashAnim 0.22s ease-out forwards;
}
.v3-click-particle {
    position: fixed;
    border-radius: 50%;
    background: #ffffff;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    animation: v3ParticleBurstAnim 0.46s cubic-bezier(0.12, 0.8, 0.32, 1) forwards;
}
.v3-click-particle.is-star {
    border-radius: 0;
    clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
}
@keyframes v3ShockwaveAnim {
    0% { width: 4px; height: 4px; opacity: 1; }
    60% { opacity: 0.85; }
    100% { width: 56px; height: 56px; opacity: 0; }
}
@keyframes v3ShockwaveInnerAnim {
    0% { width: 2px; height: 2px; opacity: 1; }
    100% { width: 34px; height: 34px; opacity: 0; }
}
@keyframes v3FlashAnim {
    0% { transform: translate(-50%, -50%) scale(1.6); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
}
@keyframes v3ParticleBurstAnim {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) scale(1.3);
        opacity: 1;
    }
    65% {
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* ==========================================================================
   ENHANCED POPUPS & DIALOG SPRING ANIMATIONS
   ========================================================================== */

/* 1. Site Announcement / Promo Popup Overlay & Dialog */
.site-popup-overlay {
    background: rgba(6, 6, 10, 0.85) !important;
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.25s ease, visibility 0.25s !important;
}
.site-popup-overlay.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}
.site-popup-dialog {
    background: rgba(14, 14, 20, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.85), 0 0 35px rgba(var(--accent-rgb, 217, 70, 239), 0.22) !important;
    transform: scale(0.86) translateY(24px) !important;
    opacity: 0 !important;
    will-change: transform, opacity;
    transition: transform 0.26s cubic-bezier(0.4, 0, 1, 1), opacity 0.26s ease !important;
}
.site-popup-overlay.is-visible .site-popup-dialog {
    opacity: 1 !important;
    animation: v3PopupSpringIn 0.56s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes v3PopupSpringIn {
    0% {
        opacity: 0;
        transform: scale(0.86) translateY(24px);
        filter: blur(3px);
    }
    70% {
        transform: scale(1.015) translateY(-2px);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* 2. SweetAlert2 Dark Aesthetic & Smooth Balanced Spring Animations */
.swal2-container,
.swal-dark-container {
    z-index: 100000 !important;
}
.swal2-container.swal2-backdrop-show {
    background: rgba(6, 6, 10, 0.82) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 100000 !important;
}
.swal2-popup.swal-dark-popup {
    background: rgba(14, 14, 20, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 18px !important;
    box-shadow: 0 25px 75px rgba(0, 0, 0, 0.9), 0 0 32px rgba(var(--accent-rgb, 217, 70, 239), 0.2) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 100001 !important;
}
.swal2-popup.swal-dark-popup .swal2-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}
.swal2-popup.swal-dark-popup .swal2-html-container {
    color: var(--v3-text-secondary, #a1a1aa) !important;
}

/* SweetAlert Custom Animation Classes (Smooth 0.52s Spring) */
@keyframes v3SwalShow {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(22px);
        filter: blur(3px);
    }
    70% {
        transform: scale(1.018) translateY(-2px);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}
@keyframes v3SwalHide {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.88) translateY(16px);
        filter: blur(3px);
    }
}
@keyframes v3SwalBackdropIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes v3SwalBackdropOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.v3-swal-show,
.swal2-popup.swal2-show:not(.v3-swal-show) {
    animation: v3SwalShow 0.52s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}
.v3-swal-hide,
.swal2-popup.swal2-hide:not(.v3-swal-hide) {
    animation: v3SwalHide 0.26s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}
.v3-swal-backdrop-show {
    animation: v3SwalBackdropIn 0.36s ease-out forwards !important;
}
.v3-swal-backdrop-hide {
    animation: v3SwalBackdropOut 0.24s ease-in forwards !important;
}

/* 3. Profile Dropdown Spring Transition */
@keyframes v3DropdownSpringIn {
    0% {
        opacity: 0;
        transform: translateY(-12px) scale(0.96);
    }
    75% {
        transform: translateY(2px) scale(1.008);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.nav-profile-dropdown.show {
    animation: v3DropdownSpringIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* 4. Mobile Drawer Smooth Reveal */
@keyframes v3MobileDrawerReveal {
    0% {
        opacity: 0;
        transform: translateY(-14px) scale(0.97);
    }
    75% {
        transform: translateY(2px) scale(1.005);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.v3-mobile-drawer.active {
    animation: v3MobileDrawerReveal 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@media (prefers-reduced-motion: reduce) {
    .main-content,
    .v3-slider-wrap,
    .v3-stat-item,
    .v3-image-block,
    .v3-category-card,
    .v3-product-card,
    .v3-product-modal-backdrop.is-open .v3-modal-dialog,
    .v3-product-modal-backdrop.is-closing .v3-modal-dialog,
    .site-popup-overlay.is-visible .site-popup-dialog,
    .v3-swal-show,
    .v3-swal-hide,
    .nav-profile-dropdown.show,
    .v3-mobile-drawer.active {
        animation: none !important;
    }
}

/* ========================================================
   Falling Circular Snow Particles Canvas (V3 Cyber Obsidian)
   ======================================================== */
.v3-snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
    opacity: 0.95;
    transition: opacity 0.4s ease;
}

body[data-snow="0"] .v3-snow-canvas {
    display: none !important;
}

/* ========================================================
   Downloads Page (ดาวน์โหลด) - V3 Cyber Obsidian
   ======================================================== */
.v3-download-card {
    background: var(--v3-surface, var(--bg-card, #121218));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
    margin-top: 24px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.v3-download-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.v3-download-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: all 0.25s ease;
}

.v3-download-row:hover {
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.05);
    border-color: rgba(var(--accent-rgb, 217, 70, 239), 0.45);
    box-shadow: 0 4px 20px rgba(var(--accent-rgb, 217, 70, 239), 0.18);
}

.v3-download-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.v3-download-icon {
    font-size: 1.35rem;
    color: var(--accent, #d946ef);
    flex-shrink: 0;
}

.v3-download-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v3-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 16px var(--accent-glow, rgba(var(--accent-rgb, 217, 70, 239), 0.35));
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
}

.v3-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px var(--accent-glow, rgba(var(--accent-rgb, 217, 70, 239), 0.55));
    color: #ffffff !important;
}

.v3-download-btn i {
    font-size: 0.95rem;
    color: #ffffff !important;
}

.v3-download-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted, #94a3b8);
}

.v3-download-empty i {
    font-size: 2.8rem;
    margin-bottom: 14px;
    opacity: 0.4;
    display: block;
}

.v3-download-empty p {
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 576px) {
    .v3-download-card {
        padding: 16px;
    }
    .v3-download-row {
        padding: 12px 14px;
        gap: 10px;
    }
    .v3-download-icon {
        font-size: 1.15rem;
    }
    .v3-download-name {
        font-size: 0.92rem;
    }
    .v3-download-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

/* Maintenance / Coming Soon State */
.v3-download-btn.is-maintenance {
    background: linear-gradient(180deg, #b45309 0%, #78350f 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    user-select: none;
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.3px;
}

.v3-download-btn.is-maintenance:hover {
    transform: none !important;
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.4) !important;
}

.v3-download-btn.is-maintenance i {
    color: #ffffff !important;
    font-size: 0.95rem;
}

.v3-download-row.is-maintenance {
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(180, 83, 9, 0.04);
}

.v3-download-row.is-maintenance .v3-download-icon {
    color: #f59e0b;
}

/* Guest Notice & Lock State for Downloads */
.v3-download-guest-notice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.08);
    border: 1px solid rgba(var(--accent-rgb, 217, 70, 239), 0.25);
    border-radius: 12px;
    margin-bottom: 20px;
    color: #f1f5f9;
}

.v3-download-guest-notice i {
    font-size: 1.4rem;
    color: var(--accent, #d946ef);
    flex-shrink: 0;
}

.v3-download-guest-notice strong {
    display: block;
    font-size: 0.98rem;
    color: #ffffff;
    margin-bottom: 2px;
}

.v3-download-guest-notice p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted, #94a3b8);
}

.v3-download-guest-notice a {
    color: var(--accent, #d946ef);
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.v3-download-guest-notice a:hover {
    color: #ffffff;
}

.v3-download-btn.is-guest-locked {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: all 0.25s ease;
}

.v3-download-btn.is-guest-locked:hover {
    background: linear-gradient(135deg, rgba(var(--accent-rgb, 217, 70, 239), 0.22), rgba(var(--accent2-rgb, 168, 85, 247), 0.12)) !important;
    border-color: var(--accent, #d946ef) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 18px var(--accent-glow, rgba(217, 70, 239, 0.35)) !important;
}

.v3-download-btn.is-guest-locked i {
    color: var(--accent, #d946ef) !important;
}

/* ==============================================================================
   Admin Shell Full-Width Layout & Mobile Responsive Block Cards (V3 Cyber Dark)
   ============================================================================== */

/* Desktop: Move sidebar to left edge and let workspace expand proportionally to eliminate scrollbars */
@media (min-width: 993px) {
    body.is-admin-page .main-content,
    .main-content-admin,
    main.main-content {
        width: 100% !important;
        max-width: 1440px !important;
        margin: 0 auto !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .admin-shell-v2 {
        width: 100% !important;
        max-width: 1440px !important;
        margin: 0 auto !important;
        display: grid !important;
        grid-template-columns: 250px minmax(0, 1fr) !important;
        gap: 22px !important;
        align-items: start !important;
        box-sizing: border-box !important;
    }

    .admin-sidebar-v2 {
        position: sticky !important;
        top: 76px !important;
        max-height: none !important;
        margin-bottom: 0 !important;
        width: 250px !important;
        padding: 14px 10px 12px !important;
        border-radius: 18px !important;
        overflow: visible !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .admin-sidebar-v2::-webkit-scrollbar,
    .admin-sidebar-nav::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .admin-sidebar-head {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 0 6px 12px !important;
        margin-bottom: 4px !important;
        border-bottom: 1px solid var(--border) !important;
    }

    .admin-sidebar-mark {
        width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
        border-radius: 9px !important;
        font-size: 0.92rem !important;
    }

    .admin-sidebar-head strong {
        font-size: 0.94rem !important;
        line-height: 1.25 !important;
    }

    .admin-sidebar-head small {
        font-size: 0.52rem !important;
        letter-spacing: 0.12em !important;
        line-height: 1.1 !important;
    }

    .admin-sidebar-nav {
        padding: 4px 0 !important;
        overflow: visible !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .admin-nav-group {
        margin: 0 !important;
    }

    .admin-nav-group + .admin-nav-group {
        margin-top: 3px !important;
    }

    .admin-nav-label {
        display: block !important;
        padding: 5px 8px 2px !important;
        font-size: 0.64rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.1em !important;
        line-height: 1.2 !important;
    }

    .admin-side-link {
        min-height: 34px !important;
        padding: 6px 11px !important;
        font-size: 0.84rem !important;
        border-radius: 8px !important;
        margin-bottom: 2px !important;
        gap: 9px !important;
        white-space: nowrap !important;
        line-height: 1.25 !important;
    }

    .admin-side-link i {
        width: 17px !important;
        font-size: 0.85rem !important;
        text-align: center !important;
    }

    .admin-store-link {
        min-height: 34px !important;
        padding-top: 9px !important;
        margin-top: 6px !important;
        font-size: 0.78rem !important;
        line-height: 1.25 !important;
        border-top: 1px solid var(--border) !important;
        gap: 8px !important;
    }

    .admin-workspace-v2 {
        min-width: 0 !important;
        width: 100% !important;
    }

    .admin-workspace-v2 .container,
    .admin-workspace-v2 > .container,
    body.is-admin-page .admin-workspace-v2 .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .admin-workspace-v2 .table-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
    }

    .admin-workspace-v2 .data-table {
        width: 100% !important;
        min-width: 100% !important;
        table-layout: auto !important;
    }

    .admin-workspace-v2 .data-table th,
    .admin-workspace-v2 .data-table td {
        padding: 10px 12px !important;
        font-size: 0.88rem !important;
    }

    .admin-workspace-v2 .data-table th:first-child,
    .admin-workspace-v2 .data-table td:first-child {
        width: 50px !important;
        text-align: center !important;
    }

    .admin-workspace-v2 .data-table th:nth-child(2),
    .admin-workspace-v2 .data-table td:nth-child(2) {
        width: 60px !important;
        text-align: center !important;
    }

    .admin-workspace-v2 .data-table .btn-sm {
        padding: 3px 8px !important;
        font-size: 0.78rem !important;
        white-space: nowrap !important;
    }
}

/* Tablet & Mobile Admin Shell (< 993px) */
@media (max-width: 992px) {
    .admin-shell-v2 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 14px 36px !important;
        margin: 0 !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .admin-sidebar-v2 {
        display: none !important;
    }

    .admin-workspace-v2 {
        width: 100% !important;
        min-width: 0 !important;
    }

    .admin-workspace-v2 > .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Mobile Responsive Block Cards for Tables (<= 860px) - No Horizontal Scrolling */
@media (max-width: 860px) {
    .admin-workspace-v2 .table-wrapper,
    .table-wrapper {
        border: none !important;
        background: transparent !important;
        overflow: visible !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 0 20px !important;
        border-radius: 0 !important;
    }

    .admin-workspace-v2 .data-table,
    .data-table {
        display: block !important;
        min-width: 0 !important;
        width: 100% !important;
        border: none !important;
        background: transparent !important;
    }

    .admin-workspace-v2 .data-table thead,
    .data-table thead {
        display: none !important;
    }

    .admin-workspace-v2 .data-table tbody,
    .data-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .admin-workspace-v2 .data-table tbody tr,
    .data-table tbody tr {
        display: flex !important;
        flex-direction: column !important;
        background: #12131d !important;
        border: 1px solid rgba(255, 255, 255, 0.09) !important;
        border-radius: 16px !important;
        padding: 14px 16px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
        box-sizing: border-box !important;
        width: 100% !important;
        position: relative !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    }

    .admin-workspace-v2 .data-table tbody tr:hover,
    .data-table tbody tr:hover {
        border-color: rgba(var(--accent-rgb, 217, 70, 239), 0.35) !important;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 12px rgba(var(--accent-rgb, 217, 70, 239), 0.15) !important;
    }

    .admin-workspace-v2 .data-table td,
    .data-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        font-size: 0.88rem !important;
        white-space: normal !important;
        word-break: break-word !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: transparent !important;
        text-align: right !important;
        gap: 12px !important;
    }

    .admin-workspace-v2 .data-table td::before,
    .data-table td::before {
        content: attr(data-label);
        font-weight: 600 !important;
        color: var(--text-muted, #94a3b8) !important;
        font-size: 0.8rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
        flex-shrink: 0 !important;
        text-align: left !important;
        margin-right: auto !important;
    }

    .admin-workspace-v2 .data-table td[data-label*="ID"],
    .data-table td[data-label*="ID"] {
        font-weight: 700 !important;
        color: var(--accent, #d946ef) !important;
    }

    /* Actions cell at the bottom of the card block */
    .admin-workspace-v2 .data-table td:last-child,
    .data-table td:last-child {
        border-bottom: none !important;
        padding-top: 12px !important;
        margin-top: 4px !important;
        justify-content: flex-end !important;
        width: 100% !important;
    }

    .admin-workspace-v2 .data-table td:last-child::before,
    .data-table td:last-child::before {
        display: none !important;
    }

    .admin-workspace-v2 .data-table td:last-child .d-flex,
    .data-table td:last-child .d-flex,
    .admin-workspace-v2 .data-table td:last-child > div,
    .data-table td:last-child > div {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: stretch !important;
    }

    .admin-workspace-v2 .data-table td:last-child .btn,
    .data-table td:last-child .btn {
        flex: 1 1 auto !important;
        min-height: 38px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }

    .admin-workspace-v2 .data-table td img,
    .data-table td img {
        height: 48px !important;
        width: 48px !important;
        object-fit: contain !important;
        background: #090a10 !important;
        border-radius: 8px !important;
    }

    /* Top toolbar button on mobile */
    .admin-toolbar {
        margin-bottom: 18px !important;
    }
    .admin-toolbar .btn {
        width: 100% !important;
        justify-content: center !important;
        min-height: 44px !important;
        font-size: 0.95rem !important;
    }
}

/* ==========================================================================
   V3 STATS: USERS ACCENT, CHART & CUSTOM SLOTS
   ========================================================================== */
.v3-stat-users {
    --v3-stat-accent: var(--accent, #38bdf8);
}

.chart-dashboard-section {
    position: relative;
    overflow: hidden;
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.dashboard-section-header .dashboard-section-title {
    margin-bottom: 0;
}

.chart-controls-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.chart-btn-group {
    display: inline-flex;
    background: rgba(15, 15, 24, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 3px;
    gap: 3px;
}

.btn-chart-toggle {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px 14px;
    font-size: 0.84rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-chart-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-chart-toggle.active {
    background: var(--accent, #a855f7);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(var(--accent-rgb, 168, 85, 247), 0.35);
}

.chart-canvas-wrap {
    position: relative;
    width: 100%;
    height: 350px;
    min-height: 280px;
}

/* Slot Selection Dropdowns */
.slot-selection-panel {
    background: rgba(14, 15, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 22px;
}

.slot-panel-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.slot-panel-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 400;
}

.slot-dropdowns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 820px) {
    .slot-dropdowns-grid {
        grid-template-columns: 1fr;
    }
}

.slot-dropdown-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slot-dropdown-label {
    display: flex;
    align-items: center;
}

.slot-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.78rem;
    color: #cbd5e1;
    font-weight: 600;
}

.slot-select {
    width: 100%;
    background: rgba(10, 10, 16, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slot-select:focus {
    border-color: var(--accent, #a855f7) !important;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 168, 85, 247), 0.25) !important;
    outline: none !important;
}

/* Offset Grid 4 items */
@media (min-width: 992px) {
    .offset-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.offset-icon.users {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(99, 102, 241, 0.08)) !important;
    color: #c084fc !important;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.1) !important;
}

/* ==========================================================================
   HERO LAYOUT (แบบที่ 1: สไลเดอร์เต็ม + สถิติด้านล่าง / แบบที่ 2: สไลเดอร์ซ้าย + สถิติ 3 บล็อกขวา)
   ========================================================================== */
.v3-hero-section {
    width: 100%;
    margin-bottom: 34px;
}

/* แบบที่ 1 (Stacked / Standard) */
.v3-hero-section.is-layout-stacked .v3-hero-slider-wrap {
    width: 100%;
}
.v3-hero-section.is-layout-stacked .v3-slider-wrap {
    margin-bottom: 24px;
}
.v3-hero-section.is-layout-stacked .v3-stats-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 0;
}

/* แบบที่ 2 (Side-by-side: สไลเดอร์ซ้าย + สถิติขวา) */
.v3-hero-section.is-layout-side {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 16px;
    align-items: stretch;
}

.v3-hero-section.is-layout-side .v3-hero-slider-wrap {
    min-width: 0;
    width: 100%;
}

.v3-hero-section.is-layout-side .v3-slider-wrap {
    width: 100%;
    height: 100%;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    background: #090a10;
    overflow: hidden;
    position: relative;
    border-radius: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
}

.v3-hero-section.is-layout-side .v3-slider-track {
    height: 100%;
    width: 100%;
    display: flex;
    flex: 1;
}

.v3-hero-section.is-layout-side .v3-slider-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #090a10;
    overflow: hidden;
}

.v3-hero-section.is-layout-side .v3-slider-slide img {
    height: 100%;
    width: 100%;
    object-fit: cover !important; /* Fill container completely edge-to-edge */
    display: block;
    border-radius: 0 !important;
}

.v3-hero-section.is-layout-side .v3-hero-stats-wrap {
    min-width: 0;
    height: 100%;
}

.v3-hero-section.is-layout-side .v3-stats-banner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    margin-bottom: 0;
    justify-content: space-between;
}

.v3-hero-section.is-layout-side .v3-stat-card {
    flex: 1;
    min-height: 0;
    padding: 10px 18px 10px 20px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v3-hero-section.is-layout-side .v3-stat-art {
    width: 62px;
    height: 52px;
}

.v3-hero-section.is-layout-side .v3-stat-number {
    font-size: 1.55rem;
}

/* กรณีไม่มีรูปสไลเดอร์ ให้สถิติเรียง 3 คอลัมน์เหมือนเดิม */
.v3-hero-section.is-layout-side.no-slider {
    grid-template-columns: 1fr;
}
.v3-hero-section.is-layout-side.no-slider .v3-stats-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: auto;
}

/* Responsive สำหรับ Layout 2 */
@media (max-width: 991px) {
    .v3-hero-section.is-layout-side {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .v3-hero-section.is-layout-side .v3-slider-wrap {
        aspect-ratio: 13 / 4;
        height: auto;
        min-height: auto;
    }
    .v3-hero-section.is-layout-side .v3-slider-slide {
        aspect-ratio: 13 / 4;
        height: auto;
    }
    .v3-hero-section.is-layout-side .v3-slider-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover !important;
    }
    .v3-hero-section.is-layout-side .v3-stats-banner {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        height: auto;
    }
    .v3-hero-section.is-layout-side .v3-stat-card {
        min-height: auto;
        padding: 16px 18px;
    }
}

@media (max-width: 680px) {
    .v3-hero-section.is-layout-side .v3-stats-banner {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ==========================================================================
   THEME SETTINGS ADMIN: HOMEPAGE LAYOUT SELECTOR CARDS
   ========================================================================== */
.theme-layout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 14px;
}

@media (max-width: 768px) {
    .theme-layout-grid {
        grid-template-columns: 1fr;
    }
}

.theme-layout-option {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    background: rgba(14, 15, 24, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.22s ease;
    user-select: none;
}

.theme-layout-option:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.theme-layout-option.is-selected {
    border-color: var(--v3-accent-magenta, var(--accent, #d946ef)) !important;
    background: rgba(var(--accent-rgb, 217, 70, 239), 0.10) !important;
    box-shadow: 0 0 20px rgba(var(--accent-rgb, 217, 70, 239), 0.30) !important;
}

.theme-layout-option > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Mini Layout Wireframes */
.theme-layout-wireframe {
    background: rgba(5, 5, 10, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 14px;
    height: 105px;
    display: flex;
    box-sizing: border-box;
}

.wireframe-stacked {
    flex-direction: column;
    gap: 6px;
}
.wireframe-stacked .wireframe-slider {
    flex: 1;
    background: linear-gradient(135deg, rgba(var(--accent-rgb, 217, 70, 239), 0.18), rgba(99, 102, 241, 0.12));
    border: 1px dashed rgba(var(--accent-rgb, 217, 70, 239), 0.4);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    color: #e2e8f0;
    font-weight: 600;
    gap: 6px;
}
.wireframe-stacked .wireframe-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    height: 34px;
}

.wireframe-side {
    display: grid;
    grid-template-columns: 1fr 88px;
    gap: 6px;
}
.wireframe-side .wireframe-slider-side {
    background: linear-gradient(135deg, rgba(var(--accent-rgb, 217, 70, 239), 0.18), rgba(99, 102, 241, 0.12));
    border: 1px dashed rgba(var(--accent-rgb, 217, 70, 239), 0.4);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    color: #e2e8f0;
    font-weight: 600;
    gap: 5px;
    text-align: center;
    padding: 4px;
}
.wireframe-side .wireframe-stats-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
}
.wireframe-side .wireframe-stat-box {
    flex: 1;
}

.wireframe-stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    color: #94a3b8;
    font-weight: 500;
    gap: 4px;
}

.theme-layout-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 28px;
}
.theme-layout-info strong {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 700;
}
.theme-layout-info small {
    font-size: 0.80rem;
    color: #94a3b8;
    line-height: 1.35;
}

.theme-layout-check {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 1.15rem;
    color: var(--v3-accent-magenta, var(--accent, #d946ef));
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-layout-option.is-selected .theme-layout-check {
    opacity: 1;
    transform: scale(1);
}

/* =============================================================
   Lucky Wheel (วงล้อเสี่ยงโชค)
   ============================================================= */
.v3-wheel-stage-wrap {
    max-width: 520px;
    margin: 24px auto 0;
    padding: 10px;
    position: relative;
    box-sizing: border-box;
}

.v3-wheel-board {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.v3-wheel-pointer {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    pointer-events: none;
    transform-origin: 22px 10px;
}

.v3-wheel-pin-svg {
    display: block;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}

.v3-wheel-pointer.pin-wobble {
    animation: v3PinWobble 0.12s ease-in-out;
}

@keyframes v3PinWobble {
    0% { transform: translateX(-50%) rotate(0deg); }
    35% { transform: translateX(-50%) rotate(-12deg); }
    75% { transform: translateX(-50%) rotate(5deg); }
    100% { transform: translateX(-50%) rotate(0deg); }
}

.v3-wheel-disc-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55), 0 0 36px rgba(30, 179, 60, 0.22);
    transform: rotate(0deg);
    will-change: transform;
}

.v3-wheel-canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
}

.v3-wheel-center-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 29%;
    height: 29%;
    max-width: 130px;
    max-height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #f8fafc 60%, #e2e8f0 100%);
    border: 4px solid #0f172a;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.45), 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    padding: 6px;
    box-sizing: border-box;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.v3-wheel-center-hub:hover {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.75), 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.5);
}

.v3-wheel-center-hub:active {
    transform: translate(-50%, -50%) scale(0.96);
}

.v3-wheel-center-hub.spinning {
    pointer-events: none;
    opacity: 0.85;
    cursor: not-allowed;
    animation: hubSpinPulse 1s ease-in-out infinite alternate;
}

@keyframes hubSpinPulse {
    from { transform: translate(-50%, -50%) scale(1); }
    to { transform: translate(-50%, -50%) scale(0.96); }
}

.v3-wheel-center-logo {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    pointer-events: none;
}

.v3-wheel-center-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    pointer-events: none;
    text-align: center;
    gap: 3px;
}

.v3-hub-spin-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: 2px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.v3-wheel-center-hub:hover .v3-hub-spin-title {
    color: #059669;
    transform: scale(1.08);
}

.v3-hub-price-badge {
    font-size: 0.78rem;
    font-weight: 700;
    color: #059669;
    background: rgba(16, 185, 129, 0.14);
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.25);
    letter-spacing: 0.3px;
}

.v3-btn-wheel-spin {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-size: 1.15rem !important;
    padding: 14px 40px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.25s ease !important;
}

.v3-btn-wheel-spin:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.55) !important;
    filter: brightness(1.08);
}

.game-type-badge.game-type-wheel {
    background: rgba(16, 185, 129, 0.16);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

@media (max-width: 580px) {
    .v3-wheel-board {
        max-width: 330px;
    }
    .v3-wheel-pointer {
        top: -12px;
    }
    .v3-wheel-pin-svg {
        width: 36px;
        height: 52px;
    }
    .v3-btn-wheel-spin {
        width: 100%;
        font-size: 1.05rem !important;
        padding: 12px 24px !important;
    }
}

/* Fast Spin Toggle (Gacha Quick Mode Pill) */
.v3-fast-spin-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: #94a3b8;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.v3-fast-spin-toggle:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
}

.v3-fast-spin-toggle input[type="checkbox"] {
    display: none !important;
}

.v3-fast-spin-toggle .fast-icon {
    color: #94a3b8;
    font-size: 1rem;
    transition: all 0.25s ease;
}

/* Active (Green) State */
.v3-fast-spin-toggle.active,
.v3-fast-spin-toggle:has(input:checked) {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: #10b981 !important;
    color: #10b981 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.35), 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

.v3-fast-spin-toggle.active .fast-icon,
.v3-fast-spin-toggle:has(input:checked) .fast-icon {
    color: #10b981 !important;
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.6));
}

.v3-fast-spin-toggle:active {
    transform: scale(0.96);
}

/* ==========================================================================
   V3 Video Guides (คู่มือวิดีโอ) - Step Layout matching Reference
   ========================================================================== */
.v3-guides-wrapper {
    background: linear-gradient(145deg, rgba(14, 14, 20, 0.95), rgba(7, 7, 12, 0.98));
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    border-radius: 20px;
    padding: clamp(20px, 3vw, 32px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.v3-guides-wrapper::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.14) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.v3-guides-list {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.v3-guide-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(260px, 32vw, 390px);
    gap: clamp(20px, 3vw, 36px);
    align-items: center;
    padding: clamp(18px, 2.8vw, 28px) 0;
}

.v3-guide-row:first-child {
    padding-top: 4px;
}

.v3-guide-row:last-child {
    padding-bottom: 4px;
}

.v3-guide-row + .v3-guide-row {
    border-top: 1px solid rgba(var(--accent-rgb), 0.14);
}

.v3-guide-step-copy {
    min-width: 0;
}

.v3-guide-step-num {
    display: inline-block;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
    text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.45);
}

.v3-guide-title {
    color: #ffffff;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px 0;
    word-break: break-word;
    letter-spacing: -0.01em;
}

.v3-guide-step-line {
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(var(--accent-rgb), 0.6) 45%, var(--accent2, var(--accent)) 80%, transparent 100%);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
    margin-bottom: 12px;
}

.v3-guide-desc {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-top: 10px;
    word-break: break-word;
    opacity: 0.9;
}

.v3-guide-video-frame {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #000;
    border: 1px solid rgba(var(--accent-rgb), 0.32);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 16px rgba(var(--accent-rgb), 0.16);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.v3-guide-video-frame:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), 0.65);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 22px rgba(var(--accent-rgb), 0.32);
}

.v3-guide-video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Empty State */
.v3-guides-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--v3-text-secondary, #a1a1aa);
}

.v3-guides-empty .v3-empty-icon {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 12px;
    filter: drop-shadow(0 0 14px rgba(var(--accent-rgb), 0.4));
}

.v3-guides-empty h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.v3-guides-empty p {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .v3-guide-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .v3-guide-video-frame {
        max-width: 440px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .v3-guides-wrapper {
        border-radius: 16px;
        padding: 18px 14px;
    }
    .v3-guide-row {
        padding: 16px 0;
        gap: 16px;
    }
    .v3-guide-title {
        font-size: 1.12rem;
        margin-bottom: 10px;
    }
    .v3-guide-video-frame {
        border-radius: 12px;
    }
}

/* ============================================================
   COUPON & ADMIN MODAL STYLES (No Scrollbars & Mobile Optimized)
   ============================================================ */
.coupon-modal-card,
.admin-modal-card,
.admin-modal-dialog,
.multiselect-dropdown-menu,
.multiselect-items-scroll {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.coupon-modal-card::-webkit-scrollbar,
.admin-modal-card::-webkit-scrollbar,
.admin-modal-dialog::-webkit-scrollbar,
.multiselect-dropdown-menu::-webkit-scrollbar,
.multiselect-items-scroll::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Coupon Modal Mobile Proportions */
@media (max-width: 680px) {
    .coupon-grid-2col {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .coupon-modal-card {
        padding: 18px 14px !important;
        max-height: 92vh !important;
        border-radius: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .coupon-modal-footer {
        flex-direction: column-reverse !important;
        gap: 10px !important;
        margin-top: 18px !important;
    }
    .coupon-modal-footer .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 11px 16px !important;
        font-size: 0.92rem !important;
    }
}

/* ============================================================
   ADMIN MOBILE FLOATING GEAR ICON & DRAWER
   ============================================================ */
.admin-mobile-fab {
    display: none;
    position: fixed;
    bottom: 84px;
    right: 18px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent, #d946ef), var(--accent2, #a855f7));
    color: #ffffff;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.7), 0 0 18px rgba(var(--accent-rgb, 217, 70, 239), 0.5);
    border: 2px solid rgba(255, 255, 255, 0.28);
    z-index: 99998;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.admin-mobile-fab:active {
    cursor: grabbing;
    transform: scale(0.94);
}
.admin-mobile-fab i {
    pointer-events: none;
    transition: transform 0.35s ease;
}
.admin-mobile-fab:hover i {
    transform: rotate(90deg);
}
body.admin-drawer-open .admin-mobile-fab i {
    transform: rotate(180deg);
}

.admin-mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.admin-mobile-drawer-backdrop.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.admin-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(310px, 84vw);
    height: 100vh;
    height: 100dvh;
    background: #0d0e15;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.85);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    transform: translate3d(-100%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    will-change: transform;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.32s;
}
.admin-mobile-drawer.is-open {
    transform: translate3d(0, 0, 0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
}
.admin-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
}
.admin-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.admin-drawer-close:hover {
    color: #fff;
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}
.admin-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.admin-drawer-body::-webkit-scrollbar {
    display: none;
}
.admin-drawer-footer {
    padding: 12px 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
}
body.admin-drawer-open {
    overflow: hidden !important;
}

/* ============================================================
   STOCK MANAGEMENT SELECT ALL BAR
   ============================================================ */
.stock-select-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s ease;
}
.stock-select-bar:hover {
    border-color: rgba(var(--accent-rgb, 217, 70, 239), 0.35);
}

@media (max-width: 992px) {
    .admin-mobile-fab {
        display: flex !important;
    }
}
@media (min-width: 993px) {
    .admin-mobile-fab,
    .admin-mobile-drawer,
    .admin-mobile-drawer-backdrop {
        display: none !important;
    }
}






