/* =============================================
   Game ID Store - Emilia-tan (Re:Zero) Kawaii Theme
   ============================================= */

/* CSS Variables */
:root {
    --bg-primary: #f7f4ff;
    --bg-secondary: #f1ecff;
    --bg-card: rgba(255, 255, 255, 0.88);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --bg-input: rgba(248, 244, 255, 0.96);
    --bg-navbar: rgba(255, 255, 255, 0.86);
    --text-primary: #3c2d54;
    --text-secondary: #685585;
    --text-muted: #9886b3;
    --accent: #9b72ff;
    --accent-hover: #7c4dff;
    --accent-glow: rgba(155, 114, 255, 0.28);
    --accent2: #ff8ec6;
    --accent2-hover: #ff66b3;
    --danger: #ff6b8b;
    --danger-hover: #ff476f;
    --warning: #ffb347;
    --success: #34d399;
    --border: rgba(155, 114, 255, 0.22);
    --border-hover: rgba(155, 114, 255, 0.55);
    --shadow: 0 10px 30px rgba(155, 114, 255, 0.12), 0 4px 12px rgba(125, 211, 252, 0.1);
    --shadow-hover: 0 14px 38px rgba(155, 114, 255, 0.22), 0 6px 16px rgba(255, 142, 198, 0.16);
    --silver: #9b72ff;
    --silver-glow: rgba(155, 114, 255, 0.25);
    --radius: 20px;
    --radius-sm: 14px;
    --radius-lg: 28px;
    --transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font: 'Prompt', sans-serif;
    --font-cute: 'Mali', 'Prompt', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

body {
    font-family: var(--font);
    background: linear-gradient(135deg, #f9f7ff 0%, #f0ebff 45%, #eaf6ff 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* =============================================
   Shooting Stars Animation
   ============================================= */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shooting-star {
    position: absolute;
    height: 2px;
    /* Tail fades from right (transparent) → left (bright white head) */
    background: linear-gradient(to left, transparent, rgba(200, 200, 230, 0.4), rgba(255, 255, 255, 0.9));
    border-radius: 50%;
    animation: shootingStar linear forwards;
}

/* Head of the star (bright circle at the LEFT = leading edge) */
.shooting-star::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.7), 0 0 15px 4px rgba(200, 200, 230, 0.3);
}

/* --- Size Variants --- */

/* Small shooting star */
.shooting-star.star-sm {
    height: 1px;
    width: 80px;
    opacity: 0.5;
    filter: blur(0.2px);
}
.shooting-star.star-sm::before {
    width: 2.5px;
    height: 2.5px;
    box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.5), 0 0 8px 2px rgba(200, 200, 230, 0.2);
}

/* Medium shooting star */
.shooting-star.star-md {
    height: 1.5px;
    width: 150px;
    opacity: 0.7;
    filter: blur(0.3px);
}
.shooting-star.star-md::before {
    width: 4px;
    height: 4px;
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.7), 0 0 15px 4px rgba(200, 200, 230, 0.3);
}

/* Large shooting star */
.shooting-star.star-lg {
    height: 2.5px;
    width: 220px;
    opacity: 0.9;
    filter: blur(0.2px);
}
.shooting-star.star-lg::before {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 10px 3px rgba(255, 255, 255, 0.8), 0 0 25px 6px rgba(200, 200, 230, 0.4);
}

/* Movement: top-right → bottom-left */
@keyframes shootingStar {
    0% {
        transform: translateX(0) translateY(0) rotate(-35deg);
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    100% {
        transform: translateX(-110vw) translateY(55vh) rotate(-35deg);
        opacity: 0;
    }
}

/* =============================================
   Navbar
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    height: 65px;
    overflow: visible;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo i {
    font-size: 1.5rem;
    color: var(--silver);
    filter: drop-shadow(0 0 8px var(--silver-glow));
}

.nav-logo:hover { color: var(--accent); }

.nav-logo-img {
    height: 42px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 6px rgba(200, 200, 230, 0.1));
}

.nav-logo:hover .nav-logo-img {
    filter: drop-shadow(0 0 10px rgba(200, 200, 230, 0.25));
    transform: scale(1.03);
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(200, 200, 230, 0.08);
}

.nav-link.active {
    color: #fff;
    background: rgba(200, 200, 230, 0.12);
}

.nav-link i { font-size: 0.85rem; }

.nav-admin { color: var(--warning); }
.nav-admin:hover, .nav-admin.active { color: var(--warning); background: rgba(255, 165, 2, 0.1); }

.nav-auth {
    background: linear-gradient(135deg, #888, #bbb) !important;
    color: #111 !important;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
}
.nav-auth:hover, .nav-auth.active { background: linear-gradient(135deg, #aaa, #ddd) !important; transform: translateY(-1px); }

.nav-logout { color: var(--danger); }
.nav-logout:hover { color: var(--danger-hover); background: rgba(255, 71, 87, 0.1); }

/* =============================================
   Profile Dropdown
   ============================================= */
.nav-profile-wrapper {
    position: relative;
    list-style: none;
}

.nav-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(200, 200, 230, 0.08);
    border: 1px solid rgba(200, 200, 230, 0.12);
    border-radius: 50px;
    padding: 5px 14px 5px 5px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
}

.nav-profile-btn:hover {
    background: rgba(200, 200, 230, 0.15);
    border-color: rgba(200, 200, 230, 0.25);
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #555, #888);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    flex-shrink: 0;
}

.nav-profile-name {
    font-weight: 500;
    color: var(--text-primary);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-profile-arrow {
    font-size: 0.6rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-profile-wrapper.active .nav-profile-arrow {
    transform: rotate(180deg);
}

/* Dropdown Panel */
.nav-profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: rgba(18, 18, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 200, 230, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(200, 200, 230, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    overflow: hidden;
}

.nav-profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Header */
.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.profile-dropdown-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #555, #999);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.profile-dropdown-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profile-dropdown-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dropdown-email {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Divider */
.profile-dropdown-divider {
    height: 1px;
    background: rgba(200, 200, 230, 0.08);
    margin: 0;
}

/* Credit Display */
.profile-dropdown-credit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.profile-dropdown-credit i {
    color: var(--warning);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.profile-credit-amount {
    margin-left: auto;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Dropdown Items */
.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.profile-dropdown-item:hover {
    background: rgba(200, 200, 230, 0.08);
    color: var(--text-primary);
}

.profile-dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 0.85rem;
}

.profile-item-admin {
    color: var(--warning);
}

.profile-item-admin:hover {
    background: rgba(255, 165, 2, 0.08);
    color: var(--warning);
}

.profile-item-logout {
    color: var(--danger);
}

.profile-item-logout:hover {
    background: rgba(255, 71, 87, 0.08);
    color: var(--danger-hover);
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =============================================
   Main Content
   ============================================= */
.main-content {
    position: relative;
    z-index: 1;
    flex: 1;
    padding-top: 85px;
    padding-bottom: 40px;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   Slider
   ============================================= */
.slider-wrapper {
    max-width: 1300px;
    margin: 0 auto 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-slide {
    min-width: 100%;
    position: relative;
}

.slider-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.slider-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.slider-btn:hover { background: rgba(200, 200, 230, 0.4); }
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

/* =============================================
   Image Blocks (4 blocks below slider)
   ============================================= */
.image-blocks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1300px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.image-block {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    aspect-ratio: 16/9;
}

.image-block:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =============================================
   Section Headers
   ============================================= */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.section-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-header i {
    color: var(--accent);
    font-size: 1.3rem;
}

.section-header .view-all {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =============================================
   Category Cards
   ============================================= */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    text-align: left;
    aspect-ratio: 725/310;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.category-card .category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 18px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.15) 85%, transparent 100%);
    z-index: 2;
}

.category-card .category-name {
    font-weight: 600;
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* =============================================
   Product Cards
   ============================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    aspect-ratio: 3/4;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.product-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 14px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.product-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-category {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

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

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.product-stock {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.product-stock.in-stock { color: var(--success); }
.product-stock.out-stock { color: var(--danger); }

.btn-buy {
    background: linear-gradient(135deg, #666, #999);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 25px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(200,200,230,0.2);
}

/* =============================================
   Auth Forms
   ============================================= */
.auth-container {
    max-width: 450px;
    margin: 40px auto;
    padding: 0 20px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px 35px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.auth-card h1 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ccc, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group label i {
    margin-right: 6px;
    color: var(--accent);
    width: 16px;
    text-align: center;
}

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

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

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

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239999bb' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #666, #999, #888);
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(200,200,230,0.2);
    color: #fff;
    background: linear-gradient(135deg, #888, #bbb, #aaa);
}

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

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

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

.btn-success:hover { transform: translateY(-2px); box-shadow: 0 5px 25px rgba(46, 213, 115, 0.3); color: #fff; }

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

.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 5px 25px rgba(255, 71, 87, 0.3); color: #fff; }

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #ffbe76);
    color: #1a1a2e;
}

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

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

.auth-footer a { color: var(--accent); font-weight: 500; }

/* =============================================
   Tables
   ============================================= */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    margin-bottom: 20px;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table th {
    background: rgba(200, 200, 230, 0.05);
    color: var(--silver);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tr:hover td {
    background: rgba(200, 200, 230, 0.03);
}

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

/* =============================================
   Pagination
   ============================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

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

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .active {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

/* =============================================
   Admin Panel
   ============================================= */
.admin-header {
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.admin-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.admin-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    color: var(--text-primary);
}

.admin-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.4rem;
}

.admin-card-icon.purple { background: rgba(124, 92, 252, 0.15); color: var(--accent); }
.admin-card-icon.green { background: rgba(0, 212, 170, 0.15); color: var(--accent2); }
.admin-card-icon.orange { background: rgba(255, 165, 2, 0.15); color: var(--warning); }
.admin-card-icon.red { background: rgba(255, 71, 87, 0.15); color: var(--danger); }

.admin-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 5px; }
.admin-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Admin toolbar */
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-toolbar .search-box {
    position: relative;
    flex: 1;
    max-width: 350px;
}

.admin-toolbar .search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.admin-toolbar .search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.admin-toolbar .search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-input);
    border-radius: 24px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
    border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: #fff;
}

/* =============================================
   Top-up Page
   ============================================= */
.topup-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.topup-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 35px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.topup-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.topup-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
}

.topup-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.topup-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }

/* =============================================
   Product Detail Page
   ============================================= */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-detail-img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    object-fit: cover;
    aspect-ratio: 1;
}

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

.product-detail-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent2);
    margin-bottom: 20px;
}

.product-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.product-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.product-detail-meta-item i {
    color: var(--accent);
    width: 20px;
    text-align: center;
}

/* =============================================
   Contact Page
   ============================================= */
.contact-card {
    max-width: 600px;
    margin: 40px auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text-primary);
    transition: var(--transition);
    font-weight: 500;
}

.contact-link:hover {
    border-color: var(--accent);
    background: rgba(124, 92, 252, 0.1);
    color: var(--accent);
}

/* =============================================
   SweetAlert2 Dark Theme
   ============================================= */
.swal-dark-popup {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    font-family: var(--font) !important;
}

/* =============================================
   Settings Form
   ============================================= */
.settings-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.settings-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--accent);
}

.block-item {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 20px;
    border: 1px solid var(--border);
    margin-bottom: 15px;
}

.block-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.block-item-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

/* =============================================
   Empty State
   ============================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--text-muted);
    opacity: 0.5;
}

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

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

/* =============================================
   Badge
   ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: rgba(46, 213, 115, 0.15); color: var(--success); }
.badge-danger { background: rgba(255, 71, 87, 0.15); color: var(--danger); }
.badge-warning { background: rgba(255, 165, 2, 0.15); color: var(--warning); }
.badge-primary { background: rgba(124, 92, 252, 0.15); color: var(--accent); }

/* =============================================
   Footer
   ============================================= */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: auto;
    flex-shrink: 0;
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 768px) {

    /* Slider responsive */
    .slider-wrapper {
        margin: 0 auto 20px;
        border-radius: var(--radius);
    }
    .slider-slide img {
        height: auto;
        aspect-ratio: 1300/400;
        object-fit: contain;
    }
    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .slider-btn.prev { left: 8px; }
    .slider-btn.next { right: 8px; }

    /* Image blocks */
    .image-blocks { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 15px; }

    /* Section headers */
    .section-header {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }
    .section-header h2 { font-size: 1.15rem; }
    .section-header .view-all { font-size: 0.8rem; }

    /* Category & Product grids */
    .categories-grid { grid-template-columns: 1fr; gap: 12px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    /* Product detail */
    .product-detail { grid-template-columns: 1fr; gap: 20px; }
    .product-detail-img { aspect-ratio: 1; max-height: 350px; }
    .product-detail-price { font-size: 1.6rem; }
    .product-detail-info h1 { font-size: 1.25rem; }

    /* Quantity selector mobile */
    .qty-selector { max-width: 100% !important; }

    /* Buttons full width on mobile */
    .product-detail-info .btn { max-width: 100% !important; width: 100%; }

    /* Tables — horizontal scroll with hint */
    .table-wrapper {
        position: relative;
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    /* Forms */
    .auth-container { padding: 0 15px; margin: 20px auto; }
    .auth-card { padding: 25px 20px; }
    .form-control { padding: 12px 14px; font-size: 0.9rem; }
    .btn { padding: 12px 20px; font-size: 0.9rem; }
    .btn-primary { padding: 14px 20px; }

    /* Topup */
    .topup-methods { grid-template-columns: 1fr; }

    /* Container padding */
    .container { padding: 0 15px; }

    /* Admin pages */
    .admin-header h1 { font-size: 1.3rem; }
    .admin-grid { grid-template-columns: 1fr; gap: 12px; }
    .admin-card { padding: 22px 18px; }
    .admin-card-icon { width: 50px; height: 50px; font-size: 1.2rem; }
    .admin-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .admin-toolbar .search-box { max-width: 100%; }
    .admin-toolbar .btn { width: 100%; }

    /* Settings cards */
    .settings-card { padding: 20px 15px; }
    .block-item { padding: 15px; }

    /* Pagination mobile */
    .pagination {
        gap: 3px;
    }
    .pagination a,
    .pagination span {
        min-width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    /* Orders page */
    .empty-state { padding: 40px 20px; }
    .empty-state i { font-size: 2.5rem; }
    .empty-state h3 { font-size: 1.1rem; }

    /* Contact */
    .contact-card { padding: 25px 18px; }
}

@media (max-width: 480px) {
    .main-content { padding-top: 75px; padding-bottom: 25px; }
    
    /* Very small screens */
    .image-blocks { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .categories-grid { grid-template-columns: 1fr; gap: 10px; }
    
    .product-card-title { font-size: 0.85rem; }
    .product-price { font-size: 0.95rem; }
    .product-stock { font-size: 0.72rem; }

    .auth-card { padding: 22px 16px; }
    .auth-card h1 { font-size: 1.3rem; }

    .section-header h2 { font-size: 1.05rem; }
    .section-header i { font-size: 1rem; }

    .nav-logo-img { height: 32px; max-width: 100px; }
    
    /* Admin tables - show as cards */
    .admin-grid { gap: 10px; }
    .admin-card { padding: 18px 14px; }
    .admin-card h3 { font-size: 0.95rem; }
    .admin-card p { font-size: 0.8rem; }
    .admin-card-icon { width: 44px; height: 44px; font-size: 1rem; margin-bottom: 10px; }
}

/* =============================================
   Utility Classes
   ============================================= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.flex-wrap { flex-wrap: wrap; }

.glass-card {
    background: rgba(26, 26, 62, 0.7);
    backdrop-filter: blur(15px);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 25px;
}

/* =============================================
   Gacha System - Game Selection
   ============================================= */
.gacha-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gacha-game-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-card);
}

.gacha-game-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px rgba(200, 200, 230, 0.15);
    color: var(--text-primary);
}

.gacha-game-img-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.gacha-game-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gacha-game-card:hover .gacha-game-img-wrapper img {
    transform: scale(1.08);
}

.gacha-game-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 200, 230, 0.05);
    font-size: 3rem;
    color: var(--text-muted);
}

.gacha-game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gacha-game-card:hover .gacha-game-overlay { opacity: 1; }

.gacha-game-play {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gacha-game-info {
    padding: 16px;
}

.gacha-game-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.gacha-game-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.gacha-game-meta i { margin-right: 4px; }
.gacha-game-price { color: var(--warning); font-weight: 500; }
.gacha-game-items { color: var(--accent2); }

/* =============================================
   Gacha - Info Bar
   ============================================= */
.gacha-info-bar {
    display: flex;
    align-items: center;
    gap: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 22px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.gacha-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.gacha-info-item strong { color: var(--text-primary); }

/* =============================================
   CS:GO Spinner
   ============================================= */
.csgo-spinner-outer {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.csgo-spinner-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(15, 15, 22, 0.95);
}

.csgo-spinner-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.csgo-spinner-track {
    display: flex;
    gap: 6px;
    padding: 15px 10px;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    align-items: stretch;
    will-change: transform;
}

/* Indicator - vertical line through center */
.csgo-spinner-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: #ffa502;
    z-index: 10;
    box-shadow: 0 0 10px rgba(255, 165, 2, 0.6), 0 0 20px rgba(255, 165, 2, 0.3);
    border-radius: 2px;
}

.csgo-spinner-glow-left,
.csgo-spinner-glow-right {
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.csgo-spinner-glow-left {
    left: 0;
    background: linear-gradient(to right, rgba(15, 15, 22, 0.95), transparent);
}

.csgo-spinner-glow-right {
    right: 0;
    background: linear-gradient(to left, rgba(15, 15, 22, 0.95), transparent);
}

/* Spin Items - CS:GO card style */
.csgo-spin-item {
    flex-shrink: 0;
    width: 160px;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.06);
    background: rgba(30, 30, 42, 0.8);
    display: flex;
    flex-direction: column;
    position: relative;
}

.csgo-spin-item img {
    width: 100%;
    flex: 1;
    object-fit: contain;
    padding: 10px;
}

.csgo-spin-item-name {
    font-size: 0.72rem;
    text-align: center;
    padding: 6px 8px 8px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.csgo-spin-item-placeholder {
    font-size: 2.5rem;
    color: var(--text-muted);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rarity Borders - bottom color bar like CS:GO */
.rarity-border-common { border-bottom: 3px solid #888; }
.rarity-border-uncommon { border-bottom: 3px solid #4cd97b; background: rgba(76, 217, 123, 0.05); }
.rarity-border-rare { border-bottom: 3px solid #4da6ff; background: rgba(77, 166, 255, 0.06); }
.rarity-border-epic { border-bottom: 3px solid #a855f7; background: rgba(168, 85, 247, 0.08); }
.rarity-border-legendary { border-bottom: 3px solid #ffa502; background: rgba(255, 165, 2, 0.08); }

/* Spin Button */
.btn-spin {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 50px;
    background: linear-gradient(135deg, #c8910a, #f5c842, #daa520);
    background-size: 200% 200%;
    color: #1a1a2e;
    border: none;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 25px rgba(218, 165, 32, 0.35);
    animation: btnGlow 3s ease infinite;
}

.btn-spin:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(245, 200, 66, 0.5);
}

.btn-spin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    animation: none;
}

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

/* =============================================
   Gacha Items Preview
   ============================================= */
.gacha-items-section { margin-bottom: 30px; }

.gacha-items-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.gacha-items-title i { color: var(--warning); margin-right: 6px; }

.gacha-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.gacha-item-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: center;
    transition: var(--transition);
}

.gacha-item-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.gacha-item-card.rarity-common { border-color: rgba(136, 136, 136, 0.3); }
.gacha-item-card.rarity-uncommon { border-color: rgba(76, 217, 123, 0.4); }
.gacha-item-card.rarity-rare { border-color: rgba(77, 166, 255, 0.4); }
.gacha-item-card.rarity-epic { border-color: rgba(168, 85, 247, 0.4); }
.gacha-item-card.rarity-legendary { border-color: rgba(255, 165, 2, 0.5); box-shadow: 0 0 15px rgba(255, 165, 2, 0.1); }

.gacha-item-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    background: rgba(200, 200, 230, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gacha-item-img img { width: 100%; height: 100%; object-fit: cover; }
.gacha-item-img i { font-size: 2rem; color: var(--text-muted); }
.gacha-item-name { font-size: 0.82rem; font-weight: 500; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gacha-item-chance { font-size: 0.75rem; color: var(--text-muted); }

.gacha-item-rarity { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; margin-top: 2px; }
.rarity-text-common { color: #888; }
.rarity-text-uncommon { color: #4cd97b; }
.rarity-text-rare { color: #4da6ff; }
.rarity-text-epic { color: #a855f7; }
.rarity-text-legendary { color: #ffa502; }

/* Admin rarity badges */
.gacha-rarity-badge-common { background: rgba(136,136,136,0.15); color: #888; }
.gacha-rarity-badge-uncommon { background: rgba(76,217,123,0.15); color: #4cd97b; }
.gacha-rarity-badge-rare { background: rgba(77,166,255,0.15); color: #4da6ff; }
.gacha-rarity-badge-epic { background: rgba(168,85,247,0.15); color: #a855f7; }
.gacha-rarity-badge-legendary { background: rgba(255,165,2,0.15); color: #ffa502; }

@media (max-width: 768px) {
    .gacha-games-grid { grid-template-columns: 1fr; gap: 12px; }
    .gacha-items-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .csgo-spinner-container { height: 160px; }
    .csgo-spin-item { width: 110px; }
    .csgo-spin-item img { padding: 6px; }
    .btn-spin { 
        padding: 16px 40px; 
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    .gacha-info-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
    .gacha-play-header h1 { font-size: 1.3rem; }
    .gacha-item-card { padding: 8px; }
    .gacha-item-name { font-size: 0.75rem; }
    .gacha-item-chance { font-size: 0.7rem; }
}

@media (max-width: 480px) {
    .gacha-items-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .csgo-spinner-container { height: 140px; }
    .csgo-spin-item { width: 95px; }
    .gacha-item-card { padding: 6px; }
    .gacha-item-img { margin-bottom: 5px; }
    .gacha-item-name { font-size: 0.7rem; }
}

/* Scroll animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   Store Stats Banner (Index Page) — Premium
   ============================================= */
.stats-banner {
    position: relative;
    max-width: 1300px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.stats-banner-bg {
    position: absolute;
    inset: 0 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg,
        rgba(15, 15, 25, 0.92) 0%,
        rgba(20, 20, 35, 0.88) 50%,
        rgba(15, 15, 25, 0.92) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(180, 180, 220, 0.08);
    overflow: hidden;
    z-index: 0;
}

/* Animated gradient border glow */
.stats-banner-bg::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(79, 172, 254, 0.3) 25%,
        rgba(67, 233, 123, 0.3) 50%,
        rgba(250, 112, 154, 0.3) 75%,
        transparent 100%);
    background-size: 200% 100%;
    animation: borderShimmer 4s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Shimmer sweep across the banner */
.stats-banner-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(200, 200, 230, 0.03) 40%,
        rgba(200, 200, 230, 0.06) 50%,
        rgba(200, 200, 230, 0.03) 60%,
        transparent 100%);
    animation: shimmerSweep 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

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

@keyframes shimmerSweep {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

.stats-banner-particles {
    position: absolute;
    inset: 0 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.stat-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(200, 200, 230, 0.3);
    animation: floatParticle 8s ease-in-out infinite;
}

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 0.6; }
    90% { opacity: 0; }
}

.stats-banner-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 35px;
}

/* Individual stat item */
.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.stat-item:hover {
    background: rgba(200, 200, 230, 0.04);
}

/* Icon with animated ring */
.stat-item-icon {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.stat-item:hover .stat-item-icon {
    transform: scale(1.08);
}

.stat-icon-ring {
    position: absolute;
    inset: -3px;
    border-radius: 16px;
    border: 2px solid transparent;
    animation: ringPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ringPulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.stat-stock .stat-item-icon {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15), rgba(0, 196, 254, 0.08));
    color: #4facfe;
    box-shadow: 0 0 25px rgba(79, 172, 254, 0.12), inset 0 0 15px rgba(79, 172, 254, 0.05);
}
.stat-stock .stat-icon-ring { border-color: rgba(79, 172, 254, 0.15); }

.stat-sold .stat-item-icon {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.15), rgba(56, 249, 215, 0.08));
    color: #43e97b;
    box-shadow: 0 0 25px rgba(67, 233, 123, 0.12), inset 0 0 15px rgba(67, 233, 123, 0.05);
}
.stat-sold .stat-icon-ring { border-color: rgba(67, 233, 123, 0.15); }

.stat-topup .stat-item-icon {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.15), rgba(254, 225, 64, 0.08));
    color: #fa709a;
    box-shadow: 0 0 25px rgba(250, 112, 154, 0.12), inset 0 0 15px rgba(250, 112, 154, 0.05);
}
.stat-topup .stat-icon-ring { border-color: rgba(250, 112, 154, 0.15); }

.stat-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.stat-item-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.stat-item-value small {
    font-size: 0.7em;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 2px;
}

.stat-item-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.stat-item-trend {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-left: auto;
}

.stat-item-trend.up {
    background: rgba(67, 233, 123, 0.08);
    color: #43e97b;
}

/* Vertical divider between stat items */
.stat-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    flex-shrink: 0;
}

.stat-divider-line {
    width: 1px;
    height: 18px;
    background: linear-gradient(to bottom, transparent, rgba(200, 200, 230, 0.15), transparent);
}

.stat-divider-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(200, 200, 230, 0.2);
}

/* Pulse animation */
@keyframes statPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.stat-pulse {
    animation: statPulse 0.5s ease;
}

.stat-pulse .stat-item-value {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* =============================================
   Admin Dashboard — Premium Redesign
   ============================================= */
.dashboard-section {
    background: linear-gradient(135deg,
        rgba(18, 18, 28, 0.88) 0%,
        rgba(22, 22, 35, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(180, 180, 210, 0.08);
    padding: 32px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

/* Subtle top gradient accent */
.dashboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(200, 200, 230, 0.15),
        rgba(200, 200, 230, 0.25),
        rgba(200, 200, 230, 0.15),
        transparent);
}

.dashboard-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(180, 180, 210, 0.06);
}

.dashboard-section-title i {
    color: var(--silver);
    font-size: 0.95rem;
}

.badge-real {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(255, 71, 87, 0.06);
    color: #ff6b7a;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid rgba(255, 71, 87, 0.12);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-fake {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(76, 217, 123, 0.06);
    color: #6ee7a0;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid rgba(76, 217, 123, 0.12);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Revenue Grid */
.dashboard-revenue-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.revenue-group {
    position: relative;
}

.revenue-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 14px;
    padding-left: 2px;
}

.revenue-group-title i {
    color: var(--warning);
    font-size: 0.8rem;
    width: 18px;
    text-align: center;
}

.revenue-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.revenue-card {
    position: relative;
    background: rgba(10, 10, 18, 0.6);
    border-radius: var(--radius);
    padding: 22px 20px;
    border: 1px solid rgba(180, 180, 210, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.revenue-card:hover {
    border-color: rgba(200, 200, 230, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Card accent strip */
.revenue-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    transition: var(--transition);
}

.revenue-day::before { background: linear-gradient(to bottom, #ffa502, #ffbe76); }
.revenue-month::before { background: linear-gradient(to bottom, #4facfe, #00f2fe); }
.revenue-year::before { background: linear-gradient(to bottom, #a78bfa, #c4b5fd); }

.revenue-card:hover::before {
    top: 5%;
    bottom: 5%;
    box-shadow: 0 0 12px rgba(200, 200, 230, 0.2);
}

.revenue-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.revenue-card:hover .revenue-card-icon {
    transform: scale(1.1);
}

.revenue-day .revenue-card-icon {
    background: linear-gradient(135deg, rgba(255, 165, 2, 0.12), rgba(255, 190, 118, 0.06));
    color: #ffbe76;
    box-shadow: 0 0 20px rgba(255, 165, 2, 0.08);
}

.revenue-month .revenue-card-icon {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.12), rgba(0, 242, 254, 0.06));
    color: #4facfe;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.08);
}

.revenue-year .revenue-card-icon {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(196, 181, 253, 0.06));
    color: #a78bfa;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.08);
}

.revenue-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.revenue-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.revenue-amount {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.revenue-unit {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Offset Grid — Premium */
.offset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.offset-card {
    background: rgba(10, 10, 18, 0.6);
    border-radius: var(--radius);
    padding: 24px 20px;
    border: 1px solid rgba(180, 180, 210, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.offset-card:hover {
    border-color: rgba(200, 200, 230, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.offset-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.offset-card-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.offset-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

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

.offset-icon.stock {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15), rgba(0, 242, 254, 0.06));
    color: #4facfe;
    box-shadow: 0 0 18px rgba(79, 172, 254, 0.08);
}

.offset-icon.sold {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.15), rgba(56, 249, 215, 0.06));
    color: #43e97b;
    box-shadow: 0 0 18px rgba(67, 233, 123, 0.08);
}

.offset-icon.topup {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.15), rgba(254, 225, 64, 0.06));
    color: #fa709a;
    box-shadow: 0 0 18px rgba(250, 112, 154, 0.08);
}

.offset-values {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.offset-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.offset-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 85px;
    flex-shrink: 0;
    font-weight: 400;
}

.offset-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.offset-value.highlight {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(200, 200, 230, 0.1);
}

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

.offset-input {
    max-width: 130px;
    padding: 9px 12px !important;
    font-size: 0.88rem !important;
    text-align: center;
    background: rgba(5, 5, 10, 0.6) !important;
    border: 1px solid rgba(180, 180, 210, 0.08) !important;
    border-radius: 8px !important;
    transition: var(--transition);
}

.offset-input:focus {
    border-color: rgba(79, 172, 254, 0.3) !important;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.08) !important;
}

.offset-row.result {
    padding-top: 12px;
    border-top: 1px solid rgba(180, 180, 210, 0.05);
    margin-top: 4px;
}

.offset-actions {
    text-align: center;
    padding-top: 8px;
}

.btn-save-offset {
    min-width: 240px;
    padding: 15px 32px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, rgba(200, 200, 230, 0.12), rgba(200, 200, 230, 0.06)) !important;
    border: 1px solid rgba(200, 200, 230, 0.15) !important;
    border-radius: 12px !important;
    color: var(--text-primary) !important;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-save-offset::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.08), rgba(67, 233, 123, 0.08));
    opacity: 0;
    transition: var(--transition);
}

.btn-save-offset:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(200, 200, 230, 0.25) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
    color: #fff !important;
}

.btn-save-offset:hover::before {
    opacity: 1;
}

/* =============================================
   Mobile Navbar Responsive
   ============================================= */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        z-index: 1100;
        position: relative;
    }

    .nav-logo-img {
        height: 36px;
        max-width: 120px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        max-width: 82vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(8, 8, 14, 0.97);
        backdrop-filter: blur(30px) saturate(1.2);
        -webkit-backdrop-filter: blur(30px) saturate(1.2);
        flex-direction: column;
        align-items: stretch;
        padding: 90px 24px 30px;
        gap: 2px;
        border-left: 1px solid rgba(200, 200, 230, 0.08);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.7),
                    -5px 0 20px rgba(0, 0, 0, 0.4),
                    inset 1px 0 0 rgba(200, 200, 230, 0.05);
        transform: translateX(105%);
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1050;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: none;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* Staggered menu items animation */
    .nav-menu > li {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-menu.active > li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active > li:nth-child(1) { transition-delay: 0.08s; }
    .nav-menu.active > li:nth-child(2) { transition-delay: 0.13s; }
    .nav-menu.active > li:nth-child(3) { transition-delay: 0.18s; }
    .nav-menu.active > li:nth-child(4) { transition-delay: 0.23s; }
    .nav-menu.active > li:nth-child(5) { transition-delay: 0.28s; }
    .nav-menu.active > li:nth-child(6) { transition-delay: 0.33s; }
    .nav-menu.active > li:nth-child(7) { transition-delay: 0.38s; }
    .nav-menu.active > li:nth-child(8) { transition-delay: 0.43s; }

    .nav-link {
        padding: 13px 18px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
        width: 100%;
        transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(200, 200, 230, 0.1);
    }

    .nav-link:active {
        transform: scale(0.97);
    }

    .nav-auth {
        margin-top: 12px;
        text-align: center;
        justify-content: center;
        border-radius: 25px;
    }

    /* Profile section in mobile sidebar */
    .nav-profile-wrapper {
        margin-top: 14px;
        border-top: 1px solid rgba(200, 200, 230, 0.06);
        padding-top: 14px;
    }

    .nav-profile-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }

    .nav-profile-dropdown {
        position: static;
        width: 100%;
        transform: none;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
        box-shadow: none;
        border: none;
        background: rgba(15, 15, 22, 0.7);
        border-radius: var(--radius-sm);
        margin-top: 6px;
    }

    .nav-profile-dropdown.show {
        opacity: 1;
        visibility: visible;
        max-height: 400px;
    }

    /* Mobile menu overlay/backdrop */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        right: 0;
        width: 200vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
        z-index: -1;
        transform: translateX(-100%);
    }

    .nav-menu.active::before {
        opacity: 1;
        pointer-events: auto;
    }

    .navbar {
        overflow: visible;
    }

    /* Hamburger to X animation enhancement */
    .nav-toggle span {
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                    opacity 0.25s ease;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 270px;
    }
}

/* =============================================
   Dashboard Responsive
   ============================================= */
@media (max-width: 992px) {
    .stats-banner-inner { padding: 22px 25px; }
    .stat-item-value { font-size: 1.4rem; }
    .stat-item-icon { width: 44px; height: 44px; font-size: 1.1rem; }
    .stat-item-trend { width: 28px; height: 28px; font-size: 0.7rem; }
    .revenue-cards { gap: 10px; }
    .offset-grid { gap: 12px; }
}

@media (max-width: 768px) {
    .stats-banner-inner {
        flex-direction: column;
        gap: 0;
        padding: 20px 18px;
    }
    .stat-item {
        padding: 14px 8px;
        width: 100%;
    }
    .stat-divider {
        flex-direction: row;
        padding: 2px 0;
        width: 100%;
    }
    .stat-divider-line {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(200, 200, 230, 0.1), transparent);
    }
    .stat-divider-dot { display: none; }
    .stat-item-value { font-size: 1.5rem; }
    .stat-item-trend { width: 30px; height: 30px; }
    .revenue-cards { grid-template-columns: 1fr; gap: 10px; }
    .offset-grid { grid-template-columns: 1fr; gap: 12px; }
    .dashboard-section { padding: 22px 16px; }
}

@media (max-width: 480px) {
    .stat-item-icon { width: 40px; height: 40px; font-size: 1rem; border-radius: 10px; }
    .stat-item-value { font-size: 1.3rem; }
    .stat-item-label { font-size: 0.72rem; }
    .stat-icon-ring { display: none; }
    .revenue-amount { font-size: 1.1rem; }
    .offset-label { min-width: 65px; font-size: 0.78rem; }
    .btn-save-offset { min-width: 200px; }
}

/* =============================================
   Dreamy Pastel Kawaii Enhancements
   ============================================= */

/* Floating Pastel Orbs */
.kawaii-bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.kawaii-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    animation: kawaiiOrbFloat 16s ease-in-out infinite alternate;
}

.kawaii-orb.orb-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #ffd1e8 0%, transparent 70%);
    top: -90px;
    left: -80px;
}

.kawaii-orb.orb-2 {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, #dfd3ff 0%, transparent 70%);
    top: 30%;
    right: -120px;
    animation-delay: -5s;
}

.kawaii-orb.orb-3 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #d4f4ff 0%, transparent 70%);
    bottom: -100px;
    left: 25%;
    animation-delay: -10s;
}

@keyframes kawaiiOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(35px, -25px) scale(1.08); }
}

/* Kawaii Sparkles & Pastel Shooting Stars */
.kawaii-sparkle {
    position: absolute;
    color: #ff8ec6;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 0 10px rgba(255, 126, 182, 0.45);
    animation: kawaiiTwinkle ease-in-out forwards;
}

.kawaii-sparkle:nth-child(even) {
    color: #b794f4;
    text-shadow: 0 0 10px rgba(183, 148, 244, 0.45);
}

.kawaii-sparkle:nth-child(3n) {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
}

@keyframes kawaiiTwinkle {
    0% { opacity: 0; transform: scale(0.4) translateY(8px) rotate(0deg); }
    35% { opacity: 0.85; transform: scale(1.1) translateY(0) rotate(12deg); }
    70% { opacity: 0.7; transform: scale(0.95) translateY(-8px) rotate(-8deg); }
    100% { opacity: 0; transform: scale(0.4) translateY(-16px) rotate(18deg); }
}

.shooting-star.star-pink {
    background: linear-gradient(to left, transparent, rgba(255, 140, 196, 0.45), rgba(255, 105, 180, 0.95));
}
.shooting-star.star-pink::before {
    background: #ff7eb6;
    box-shadow: 0 0 8px 2px rgba(255, 126, 182, 0.8), 0 0 16px 4px rgba(255, 182, 217, 0.5);
}

.shooting-star.star-lavender {
    background: linear-gradient(to left, transparent, rgba(183, 148, 244, 0.45), rgba(167, 139, 250, 0.95));
}
.shooting-star.star-lavender::before {
    background: #a78bfa;
    box-shadow: 0 0 8px 2px rgba(167, 139, 250, 0.8), 0 0 16px 4px rgba(221, 214, 254, 0.5);
}

.shooting-star.star-peach {
    background: linear-gradient(to left, transparent, rgba(255, 183, 130, 0.45), rgba(251, 191, 36, 0.9));
}
.shooting-star.star-peach::before {
    background: #fbbf24;
    box-shadow: 0 0 8px 2px rgba(251, 191, 36, 0.75), 0 0 16px 4px rgba(254, 240, 138, 0.5);
}

/* Navbar Kawaii Polish */
.navbar {
    background: var(--bg-navbar);
    border-bottom: 2px solid rgba(255, 160, 205, 0.25);
    box-shadow: 0 4px 24px rgba(255, 126, 182, 0.1);
}

.nav-logo {
    font-family: var(--font-cute);
    color: var(--text-primary);
}

.nav-logo i {
    color: #ff6ba8;
    filter: drop-shadow(0 2px 6px rgba(255, 107, 168, 0.35));
}

.nav-link {
    border-radius: 999px;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-link:hover {
    color: #ff5ca1;
    background: rgba(255, 126, 182, 0.12);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #ff7eb6, #b794f4);
    box-shadow: 0 4px 14px rgba(255, 126, 182, 0.32);
}

.nav-auth {
    background: linear-gradient(135deg, #ff7eb6, #b794f4) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(255, 126, 182, 0.3);
}

.nav-auth:hover,
.nav-auth.active {
    background: linear-gradient(135deg, #ff5ca1, #9f7aea) !important;
    box-shadow: 0 6px 20px rgba(255, 126, 182, 0.42);
    transform: translateY(-2px) scale(1.02);
}

/* Profile Button & Dropdown */
.nav-profile-btn {
    background: rgba(255, 240, 248, 0.9);
    border: 1.5px solid rgba(255, 140, 190, 0.32);
    box-shadow: 0 2px 10px rgba(255, 126, 182, 0.1);
}

.nav-profile-btn:hover {
    background: #fff;
    border-color: var(--accent);
    transform: translateY(-1px);
}

.nav-avatar,
.profile-dropdown-avatar {
    background: linear-gradient(135deg, #ff7eb6, #a78bfa);
    box-shadow: 0 3px 10px rgba(255, 126, 182, 0.3);
}

.nav-profile-dropdown {
    background: rgba(255, 255, 255, 0.96);
    border: 1.5px solid rgba(255, 150, 200, 0.3);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(255, 126, 182, 0.2), 0 4px 12px rgba(167, 139, 250, 0.12);
}

.profile-dropdown-divider {
    background: rgba(255, 150, 200, 0.18);
}

.profile-dropdown-item:hover {
    background: rgba(255, 126, 182, 0.1);
    color: var(--accent-hover);
}

/* Slider */
.slider-wrapper {
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.slider-btn {
    background: rgba(255, 255, 255, 0.85);
    color: #ff5ca1;
    border: 1.5px solid rgba(255, 126, 182, 0.3);
    box-shadow: 0 4px 14px rgba(255, 126, 182, 0.2);
}

.slider-btn:hover {
    background: #ff7eb6;
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.slider-dot {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 126, 182, 0.55);
}

.slider-dot.active {
    background: #ff7eb6;
    border-color: #fff;
    width: 26px;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(255, 126, 182, 0.7);
}

/* Section Headers */
.section-header {
    border-bottom: 2px dashed rgba(255, 140, 190, 0.35);
}

.section-header h2 {
    font-family: var(--font-cute);
    color: var(--text-primary);
}

.section-header i {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffe0ef, #ede9fe);
    color: #ff5ca1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 3px 10px rgba(255, 126, 182, 0.18);
}

.section-header .view-all {
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(255, 140, 190, 0.35);
    padding: 6px 14px;
    border-radius: 999px;
    color: #ff5ca1;
    font-weight: 500;
}

.section-header .view-all:hover {
    background: linear-gradient(135deg, #ff7eb6, #b794f4);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Stats Banner */
.stats-banner-bg {
    background: rgba(255, 255, 255, 0.84);
    border: 2px solid rgba(255, 160, 205, 0.3);
    box-shadow: var(--shadow);
}

.stats-banner-bg::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 126, 182, 0.55) 25%,
        rgba(167, 139, 250, 0.55) 50%,
        rgba(125, 211, 252, 0.55) 75%,
        transparent 100%);
}

.stats-banner-bg::after {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 100%);
}

.stat-item:hover {
    background: rgba(255, 235, 245, 0.55);
}

.stat-item-icon {
    border-radius: 18px;
}

.stat-stock .stat-item-icon {
    background: linear-gradient(135deg, #ffe0ef, #ffc2df);
    color: #ff4f9a;
    box-shadow: 0 6px 18px rgba(255, 126, 182, 0.25);
}
.stat-stock .stat-icon-ring { border-color: rgba(255, 126, 182, 0.35); }

.stat-sold .stat-item-icon {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #8b5cf6;
    box-shadow: 0 6px 18px rgba(167, 139, 250, 0.25);
}
.stat-sold .stat-icon-ring { border-color: rgba(167, 139, 250, 0.35); }

.stat-topup .stat-item-icon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #f59e0b;
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.25);
}
.stat-topup .stat-icon-ring { border-color: rgba(251, 191, 36, 0.35); }

.stat-item-value {
    color: var(--text-primary);
    font-family: var(--font-cute);
}

.stat-item-trend.up {
    background: rgba(52, 211, 153, 0.16);
    color: #10b981;
    border-radius: 999px;
}

.stat-divider-line {
    background: linear-gradient(to bottom, transparent, rgba(255, 140, 190, 0.35), transparent);
}

.stat-divider-dot {
    background: #ff9ec7;
    width: 5px;
    height: 5px;
}

/* Image Blocks, Category Cards, Product Cards */
.image-block,
.category-card,
.product-card,
.gacha-game-card {
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    background: var(--bg-card);
}

.image-block:hover,
.category-card:hover,
.product-card:hover,
.gacha-game-card:hover {
    transform: translateY(-7px) scale(1.015);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.category-card .category-overlay {
    background: linear-gradient(to top, rgba(74, 35, 68, 0.85) 0%, rgba(74, 35, 68, 0.35) 55%, transparent 100%);
}

.product-card-body {
    background: linear-gradient(to top, rgba(64, 32, 62, 0.88) 0%, rgba(64, 32, 62, 0.45) 55%, transparent 100%);
}

.product-price {
    color: #ffe4f2;
    text-shadow: 0 2px 8px rgba(255, 105, 180, 0.45);
}

.product-stock.in-stock {
    background: rgba(52, 211, 153, 0.22);
    color: #a7f3d0;
    padding: 2px 9px;
    border-radius: 999px;
    font-weight: 500;
}

.product-stock.out-stock {
    background: rgba(255, 107, 139, 0.25);
    color: #fecdd3;
    padding: 2px 9px;
    border-radius: 999px;
    font-weight: 500;
}

/* Buttons */
.btn,
.btn-buy,
.btn-spin {
    border-radius: 999px;
    font-weight: 600;
}

.btn-primary,
.btn-buy {
    background: linear-gradient(135deg, #ff7eb6, #b794f4);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255, 126, 182, 0.28);
}

.btn-primary:hover,
.btn-buy:hover {
    background: linear-gradient(135deg, #ff5ca1, #9f7aea);
    box-shadow: 0 8px 24px rgba(255, 126, 182, 0.4);
    transform: translateY(-3px) scale(1.02);
    color: #fff;
}

.btn-spin {
    background: linear-gradient(135deg, #ff7eb6, #ffb347, #b794f4);
    background-size: 200% 200%;
    color: #fff;
    box-shadow: 0 8px 26px rgba(255, 126, 182, 0.4);
}

.btn-spin:hover {
    box-shadow: 0 10px 32px rgba(255, 126, 182, 0.55);
    transform: translateY(-4px) scale(1.03);
}

/* Auth, Contact, Product Detail, Admin Cards */
.auth-card,
.contact-card,
.admin-card,
.dashboard-section,
.gacha-info-bar,
.gacha-item-card,
.table-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
}

.auth-card h1,
.contact-card h1 {
    font-family: var(--font-cute);
    background: linear-gradient(135deg, #ff5ca1, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-control {
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(255, 150, 200, 0.28);
}

.form-control:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 126, 182, 0.18);
}

/* Tables */
.data-table th {
    background: rgba(255, 224, 240, 0.5);
    color: #ff5ca1;
}

.data-table tr:hover td {
    background: rgba(255, 240, 248, 0.7);
}

/* Pagination */
.pagination a {
    border-radius: 999px;
}

.pagination .active {
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7eb6, #b794f4);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 126, 182, 0.3);
}

/* Gacha Spinner Kawaii Polish */
.csgo-spinner-wrapper {
    background: rgba(255, 246, 252, 0.96);
    border: 2px solid rgba(255, 140, 190, 0.35);
    box-shadow: var(--shadow);
}

.csgo-spinner-glow-left {
    background: linear-gradient(to right, rgba(255, 246, 252, 0.98), transparent);
}

.csgo-spinner-glow-right {
    background: linear-gradient(to left, rgba(255, 246, 252, 0.98), transparent);
}

.csgo-spinner-indicator {
    background: linear-gradient(to bottom, #ff5ca1, #a78bfa);
    box-shadow: 0 0 12px rgba(255, 92, 161, 0.6);
}

.csgo-spin-item {
    background: #fff;
    border: 1.5px solid rgba(255, 160, 205, 0.25);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(255, 126, 182, 0.08);
}

.csgo-spin-item-name {
    background: rgba(255, 240, 248, 0.9);
    color: var(--text-primary);
}

.gacha-game-overlay {
    background: rgba(255, 126, 182, 0.45);
    backdrop-filter: blur(4px);
}

.gacha-game-play {
    background: rgba(255, 255, 255, 0.92);
    color: #ff5ca1;
    border-color: #fff;
    box-shadow: 0 6px 18px rgba(255, 92, 161, 0.25);
}

/* SweetAlert2 Kawaii Popup */
.swal-dark-popup {
    border-radius: 26px !important;
    border: 2px solid rgba(255, 150, 200, 0.35) !important;
    box-shadow: 0 20px 50px rgba(255, 126, 182, 0.25) !important;
}

.swal2-confirm {
    border-radius: 999px !important;
    padding: 10px 26px !important;
}

.swal2-cancel {
    border-radius: 999px !important;
    padding: 10px 26px !important;
}

/* Footer */
.site-footer {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    border-top: 1.5px solid rgba(255, 160, 205, 0.25);
    color: var(--text-secondary);
}

.footer-heart {
    color: #ff5ca1;
    display: inline-block;
    animation: heartBeat 1.8s ease-in-out infinite;
}

.footer-sparkle {
    color: #a78bfa;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.22); }
}

/* Mobile Drawer Kawaii Theme */
@media (max-width: 768px) {
    .nav-menu {
        background: rgba(255, 248, 252, 0.97) !important;
        border-left: 2px solid rgba(255, 160, 205, 0.3) !important;
        box-shadow: -16px 0 45px rgba(255, 126, 182, 0.2) !important;
    }

    .stat-divider-line {
        background: linear-gradient(to right, transparent, rgba(255, 140, 190, 0.3), transparent);
    }
}

/* Admin Dashboard & Product Detail Kawaii Polish */
.revenue-card,
.offset-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(255, 126, 182, 0.1);
}

.revenue-card:hover,
.offset-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}

.revenue-amount,
.offset-value.highlight {
    color: var(--text-primary);
    text-shadow: none;
}

.offset-input {
    background: var(--bg-input) !important;
    border: 1.5px solid rgba(255, 150, 200, 0.3) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary) !important;
}

.btn-save-offset {
    background: linear-gradient(135deg, #ff7eb6, #b794f4) !important;
    border: none !important;
    border-radius: 999px !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(255, 126, 182, 0.3) !important;
}

.btn-save-offset:hover {
    background: linear-gradient(135deg, #ff5ca1, #9f7aea) !important;
    box-shadow: 0 8px 26px rgba(255, 126, 182, 0.45) !important;
    color: #fff !important;
}

.product-detail-price {
    color: #8b5cf6;
    font-family: var(--font-cute);
    text-shadow: 0 2px 12px rgba(155, 114, 255, 0.25);
}

/* =============================================
   Emilia-tan (Re:Zero) Decorations & Widgets
   ============================================= */

/* Emilia Orbs override: Silver, Amethyst, Ice-Cyan */
.kawaii-orb.orb-1 {
    background: radial-gradient(circle, #dfd3ff 0%, transparent 70%);
}
.kawaii-orb.orb-2 {
    background: radial-gradient(circle, #cceeff 0%, transparent 70%);
}
.kawaii-orb.orb-3 {
    background: radial-gradient(circle, #ffd9ec 0%, transparent 70%);
}

/* Emilia Navbar Badge */
.emilia-logo-icon {
    color: #9b72ff !important;
    animation: emiliaSpinSlow 10s linear infinite;
}

.emilia-badge {
    font-family: var(--font-cute);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(155, 114, 255, 0.16), rgba(125, 211, 252, 0.22));
    color: #7c4dff;
    border: 1px solid rgba(155, 114, 255, 0.3);
    letter-spacing: 0.3px;
}

@keyframes emiliaSpinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Falling Emilia Ice Crystals & Snowflakes */
.emilia-snowflake {
    position: absolute;
    top: -30px;
    color: #a78bfa;
    text-shadow: 0 0 8px rgba(125, 211, 252, 0.7);
    pointer-events: none;
    user-select: none;
    animation: emiliaSnowFall linear forwards;
}

.emilia-snowflake:nth-child(even) {
    color: #7dd3fc;
}

@keyframes emiliaSnowFall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    50% {
        transform: translateY(50vh) translateX(25px) rotate(180deg);
    }
    100% {
        transform: translateY(105vh) translateX(-15px) rotate(360deg);
        opacity: 0;
    }
}

/* Click Crystal Burst & Magic Cursor Dust */
.emilia-click-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 14px;
    user-select: none;
    transform: translate(-50%, -50%);
    animation: emiliaBurst 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    text-shadow: 0 0 10px rgba(155, 114, 255, 0.55);
}

@keyframes emiliaBurst {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.25) rotate(60deg);
    }
}

.emilia-cursor-dust {
    position: fixed;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(circle, #c4b5fd 0%, #7dd3fc 60%, transparent 100%);
    transform: translate(-50%, -50%);
    animation: emiliaDustFade 0.6s ease-out forwards;
}

@keyframes emiliaDustFade {
    0% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -80%) scale(0.2); }
}

/* Emilia Mascot Floating Widget (Bottom-Left) */
.emilia-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.emilia-mascot-btn {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: linear-gradient(135deg, #b794f4, #7dd3fc);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(155, 114, 255, 0.38);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.emilia-mascot-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 30px rgba(155, 114, 255, 0.5);
}

.emilia-crystal-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px dashed rgba(155, 114, 255, 0.45);
    animation: emiliaSpinSlow 14s linear infinite;
    pointer-events: none;
}

.emilia-speech {
    position: relative;
    max-width: 240px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    color: var(--text-primary);
    padding: 10px 28px 10px 14px;
    border-radius: 18px 18px 18px 4px;
    border: 1.5px solid rgba(155, 114, 255, 0.3);
    box-shadow: 0 10px 26px rgba(155, 114, 255, 0.18);
    font-size: 0.82rem;
    line-height: 1.45;
    animation: emiliaSpeechPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.emilia-speech.hidden {
    display: none;
}

.emilia-speech-close {
    position: absolute;
    top: 4px;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
}

.emilia-speech-close:hover {
    color: var(--accent);
}

@keyframes emiliaSpeechPop {
    0% { opacity: 0; transform: scale(0.85) translateY(8px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Scroll To Top Crystal Button */
.scroll-top-btn {
    position: fixed;
    bottom: 78px;
    right: 22px;
    z-index: 1190;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(155, 114, 255, 0.35);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    color: #8b5cf6;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(155, 114, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: linear-gradient(135deg, #9b72ff, #ff8ec6);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
}

/* Floating Re:Zero Music Player (Bottom-Right) */
.rezero-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1200;
}

.rezero-mini-pill {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1.5px solid rgba(155, 114, 255, 0.35);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    color: var(--text-primary);
    font-family: var(--font-cute);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(155, 114, 255, 0.25);
    transition: var(--transition);
}

.rezero-mini-pill:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--accent);
}

.rezero-player.collapsed .rezero-mini-pill {
    display: inline-flex;
}

.rezero-player.collapsed .rezero-player-card {
    display: none;
}

.rezero-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 14px;
}

.rezero-eq span {
    width: 3px;
    height: 5px;
    border-radius: 2px;
    background: linear-gradient(to top, #9b72ff, #ff8ec6);
    transition: height 0.2s ease;
}

.rezero-eq.playing span:nth-child(1) { animation: eqBar 0.7s ease-in-out infinite alternate; }
.rezero-eq.playing span:nth-child(2) { animation: eqBar 0.5s ease-in-out infinite alternate 0.15s; }
.rezero-eq.playing span:nth-child(3) { animation: eqBar 0.8s ease-in-out infinite alternate 0.3s; }
.rezero-eq.playing span:nth-child(4) { animation: eqBar 0.6s ease-in-out infinite alternate 0.1s; }

@keyframes eqBar {
    0% { height: 4px; }
    100% { height: 14px; }
}

.rezero-player-card {
    width: 300px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(155, 114, 255, 0.32);
    border-radius: 22px;
    padding: 14px 16px;
    box-shadow: 0 16px 40px rgba(155, 114, 255, 0.24), 0 4px 14px rgba(125, 211, 252, 0.18);
    animation: emiliaSpeechPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rezero-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.rezero-player-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-cute);
    font-size: 0.85rem;
    font-weight: 700;
    color: #7c4dff;
}

.rezero-minimize-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(155, 114, 255, 0.12);
    color: #7c4dff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition);
}

.rezero-minimize-btn:hover {
    background: #9b72ff;
    color: #fff;
}

.rezero-now-playing {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(243, 238, 255, 0.9), rgba(235, 248, 255, 0.9));
    margin-bottom: 10px;
}

.rezero-disc {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9b72ff, #ff8ec6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(155, 114, 255, 0.35);
}

.rezero-disc.spinning {
    animation: emiliaSpinSlow 4s linear infinite;
}

.rezero-track-meta {
    min-width: 0;
    flex: 1;
}

.rezero-track-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rezero-track-artist {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rezero-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rezero-ctrl-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(155, 114, 255, 0.25);
    background: #fff;
    color: #7c4dff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.rezero-ctrl-btn:hover {
    background: rgba(155, 114, 255, 0.12);
    transform: scale(1.08);
}

.rezero-play-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: linear-gradient(135deg, #9b72ff, #ff8ec6);
    color: #fff;
    box-shadow: 0 6px 16px rgba(155, 114, 255, 0.35);
}

.rezero-play-btn:hover {
    background: linear-gradient(135deg, #7c4dff, #ff66b3);
    transform: scale(1.1);
}

.rezero-volume-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.rezero-volume-row input[type="range"] {
    flex: 1;
    accent-color: #9b72ff;
    cursor: pointer;
}

.rezero-playlist {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 132px;
    overflow-y: auto;
}

.rezero-playlist-item {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    text-align: left;
    padding: 6px 9px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.76rem;
    cursor: pointer;
    transition: var(--transition);
}

.rezero-playlist-item:hover {
    background: rgba(155, 114, 255, 0.1);
    color: #7c4dff;
}

.rezero-playlist-item.active {
    background: linear-gradient(135deg, rgba(155, 114, 255, 0.18), rgba(255, 142, 198, 0.16));
    color: #6d28d9;
    font-weight: 600;
}

.rezero-item-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .emilia-speech { display: none; }
    .emilia-widget { bottom: 14px; left: 14px; }
    .rezero-player { bottom: 14px; right: 14px; }
    .rezero-player-card { width: 265px; }
}

/* =============================================
   Full Version (ตัวเต็ม) Enhancements
   ============================================= */
.live-ticker {
    background: linear-gradient(90deg, rgba(155, 114, 255, 0.14), rgba(255, 142, 198, 0.14), rgba(125, 211, 252, 0.14));
    border: 1.5px solid rgba(155, 114, 255, 0.25);
    border-radius: 999px;
    padding: 8px 18px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-primary);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(155, 114, 255, 0.08);
}
.live-ticker-badge {
    background: linear-gradient(135deg, #9b72ff, #ff8ec6);
    color: #fff;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}
.live-ticker-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: viewFadeIn 0.4s ease;
}

.flash-sale-bar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(243, 236, 255, 0.92));
    border: 2px solid rgba(155, 114, 255, 0.3);
    border-radius: var(--radius);
    padding: 16px 22px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: var(--shadow);
}
.flash-sale-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.flash-sale-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff7eb6, #9b72ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 6px 16px rgba(155, 114, 255, 0.3);
}
.flash-sale-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-cute);
    font-weight: 700;
}
.timer-box {
    background: linear-gradient(135deg, #9b72ff, #7c4dff);
    color: #fff;
    padding: 6px 11px;
    border-radius: 10px;
    min-width: 40px;
    text-align: center;
    font-size: 0.95rem;
}

.store-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.store-search-box {
    flex: 1;
    min-width: 220px;
    position: relative;
}
.store-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
}
.store-search-box input {
    padding-left: 40px;
    border-radius: 999px;
}
.store-filter-select {
    width: auto !important;
    min-width: 170px;
    border-radius: 999px !important;
}

.prod-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.prod-badge.hot { background: linear-gradient(135deg, #ff6b8b, #ff8ec6); }
.prod-badge.best { background: linear-gradient(135deg, #9b72ff, #60a5fa); }
.prod-badge.new { background: linear-gradient(135deg, #34d399, #38bdf8); }

.nav-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1.5px solid rgba(155, 114, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    color: #7c4dff;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}
.nav-cart-btn:hover {
    background: linear-gradient(135deg, #9b72ff, #ff8ec6);
    color: #fff;
    border-color: transparent;
}
.nav-cart-count {
    background: #ff66b3;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 19px;
    height: 19px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(60, 45, 84, 0.35);
    backdrop-filter: blur(4px);
    z-index: 2500;
    display: none;
}
.cart-drawer-backdrop.show { display: block; }
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 390px;
    max-width: 92vw;
    height: 100vh;
    background: rgba(255, 252, 255, 0.98);
    border-left: 2px solid rgba(155, 114, 255, 0.25);
    box-shadow: -16px 0 45px rgba(155, 114, 255, 0.22);
    z-index: 2600;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.show { right: 0; }
.cart-drawer-header {
    padding: 18px 20px;
    border-bottom: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-drawer-header h3 {
    font-family: var(--font-cute);
    color: var(--text-primary);
    font-size: 1.15rem;
}
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: #f8f5ff;
    border: 1px solid var(--border);
}
.cart-drawer-footer {
    padding: 16px 20px;
    border-top: 1.5px solid var(--border);
    background: #fff;
}

.music-welcome-toast {
    position: fixed;
    bottom: 76px;
    right: 20px;
    z-index: 1195;
    background: linear-gradient(135deg, #9b72ff, #ff8ec6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(155, 114, 255, 0.35);
    cursor: pointer;
    animation: emiliaSpeechPop 0.4s ease;
}

/* =============================================
   Auth Tabs, Full Top-up & Admin Tabs
   ============================================= */
.pill-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-input);
    padding: 6px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    margin-bottom: 22px;
}
.pill-tab-btn {
    flex: 1;
    padding: 10px 14px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.pill-tab-btn.active {
    background: linear-gradient(135deg, #9b72ff, #ff8ec6);
    color: #fff;
    box-shadow: 0 4px 14px rgba(155, 114, 255, 0.28);
}

.qr-box-card {
    background: #fff;
    border: 2px dashed rgba(155, 114, 255, 0.4);
    border-radius: 22px;
    padding: 20px;
    text-align: center;
    margin: 16px 0;
    box-shadow: 0 6px 20px rgba(155, 114, 255, 0.1);
}
.qr-canvas-wrap {
    display: inline-flex;
    padding: 12px;
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid #ede9fe;
    margin: 10px 0;
}
.slip-preview-img {
    max-width: 180px;
    max-height: 220px;
    border-radius: 14px;
    border: 2px solid var(--border);
    margin-top: 10px;
    object-fit: cover;
}
.status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-pill.pending { background: rgba(255, 179, 71, 0.2); color: #d97706; }
.status-pill.success { background: rgba(52, 211, 153, 0.2); color: #059669; }
.status-pill.failed { background: rgba(255, 107, 139, 0.2); color: #e11d48; }

.admin-tabs-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.admin-tab-btn {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}
.admin-tab-btn.active {
    background: linear-gradient(135deg, #9b72ff, #ff8ec6);
    color: #fff;
    border-color: transparent;
}
