/* CSS Variables */
:root {
    --bg-dark: #0a0b10;
    --bg-card: #151828;
    --bg-card-hover: #1e2235;
    
    --accent-cyan: #00ffaa;
    --accent-blue: #00cc88;
    --accent-purple: #00cc88;
    --accent-neon-purple: #00e699;
    
    --text-white: #ffffff;
    --text-gray: #a0a5bc;
    
    --glass-bg: rgba(21, 24, 40, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --font-main: 'Kanit', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Global */
html {
    font-size: 14px;
    overflow-x: hidden;
    max-width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 255, 170, 0.03), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 204, 136, 0.03), transparent 25%);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.text-neon { color: var(--accent-cyan); text-shadow: 0 0 10px rgba(0, 255, 170, 0.5); }
.text-neon-blue { color: var(--accent-blue); text-shadow: 0 0 10px rgba(0, 136, 255, 0.5); }
.text-white { color: var(--text-white); }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.mt-3 { margin-top: 1rem; }

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 170, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 170, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

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

.btn-dark:hover {
    background: var(--bg-card-hover);
}

/* Navbar */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    font-style: italic;
}

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

.nav-links a {
    color: var(--text-gray);
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-white);
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.nav-auth {
    display: flex;
    gap: 1rem;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-banner-image {
    width: 100%;
    height: 350px;
    border-radius: 20px;
    background: url('./logo%20wesbsite/Welcomepicture.png') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-banner-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 50px rgba(0, 255, 170, 0.2);
    pointer-events: none;
}

.banner-glass {
    background: rgba(10, 11, 16, 0.7);
    backdrop-filter: blur(8px);
    padding: 2rem 4rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    transform: perspective(1000px) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-banner-image:hover .banner-glass {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
}

.banner-text {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(to right, #ffffff, #a0a5bc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.banner-highlight {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 255, 170, 0.3);
}

.banner-subtext {
    font-size: 1.5rem;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--text-white);
}

.price-badge {
    background: var(--accent-neon-purple);
    padding: 0.2rem 0.8rem;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.5);
    color: white;
    white-space: nowrap;
}

.banner-footer {
    color: var(--text-gray);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Categories */
.categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-gray);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
}

.category-btn img {
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.category-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-white);
}

.category-btn.active {
    background: rgba(0, 255, 170, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.15);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Product Card */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 170, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 170, 0.1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 255, 170, 0.2);
    z-index: 2;
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

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

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.product-price span {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 400;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--text-white);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

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

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-white);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.1);
}

.modal-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-gray);
}

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

.modal-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-banner-image {
        min-height: 300px;
    }
}

/* Mobile Fixes */
@media (max-width: 768px) {
    body { overflow-x: hidden; }
    .username-text {
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .user-dropdown-menu {
        right: -50px;
        width: 250px;
    }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2rem; }
    .banner-text { font-size: 1.8rem; }
    .banner-highlight { font-size: 2.5rem; }
    .banner-glass { padding: 1.5rem; }
    
    /* Fix Product Detail on Mobile */
    .product-detail-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Fix Spin Wheel on Mobile */
    .wheel-wrapper {
        width: 100% !important;
        max-width: 300px !important;
        height: auto !important;
        aspect-ratio: 1/1 !important;
        margin: 0 auto 2rem auto !important;
    }
    
    #spinWheelView .glass-panel {
        padding: 1.5rem !important;
    }
}

/* Hide mobile dropdown links on PC */
.mobile-nav-dropdown-links { display: none !important; }
@media (max-width: 768px) {
    .mobile-nav-dropdown-links { display: flex !important; }
}

/* Custom Logo Styling */
.logo-custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}
.logo-icon {
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 5px;
}
.logo-t {
    color: #e0e0e0;
    background: linear-gradient(180deg, #ffffff 0%, #a0a5b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.8rem;
    font-weight: 900;
    margin-right: -8px;
    z-index: 2;
    transform: scaleY(1.1);
}
.logo-o {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffaa 0%, #0080ff 100%);
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.4);
    z-index: 1;
    position: relative;
}
.logo-o::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--bg-dark);
    border-radius: 50%;
    z-index: 0;
}
.logo-o i {
    z-index: 1;
    color: #00ffaa !important;
}
.logo-o-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border: 2px solid #00ffaa;
    border-radius: 50%;
    background: var(--bg-dark);
}
.logo-text {
    /* Styles handled inline */
}

/* Service Types Buttons */
.service-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}
.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}
.service-btn:hover .service-icon {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}
.service-btn.active .service-icon {
    background: linear-gradient(135deg, rgba(0, 255, 170, 0.2), rgba(0, 204, 136, 0.2));
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.2);
}
.service-btn.active span {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Topup Section */
.topup-header {
    background: linear-gradient(90deg, #022340 0%, #00cc88 50%, #00ffaa 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}
.topup-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.topup-header p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}
.topup-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.topup-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 350px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.topup-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.1);
}
.topup-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: white;
    border-radius: 12px;
    padding: 5px;
}
.topup-icon {
    font-size: 2.5rem;
    color: #4cd137;
    width: 50px;
    text-align: center;
}
.topup-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}
.topup-info p {
    font-size: 0.85rem;
    color: var(--text-gray);
}
.status-badge {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-weight: 600;
}
.status-badge.normal {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}
.category-badge.roblox {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* Spin Wheel Styling */
.wheel-text {
    position: absolute;
    top: 0;
    left: 50%;
    width: 60px;
    height: 50%;
    transform-origin: bottom center;
    /* Angle center = (i-1)*60 + 30 */
    transform: translateX(-50%) rotate(calc((var(--i) - 1) * 60deg + 30deg));
    display: flex;
    justify-content: center;
    padding-top: 25px;
}
.wheel-text span {
    font-weight: bold;
    font-size: 1.3rem;
    color: white;
    text-shadow: 0px 2px 4px rgba(0,0,0,0.8);
}

/* User Dropdown */
.user-dropdown-container {
    position: relative;
}
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    overflow: hidden;
}
@media (hover: hover) {
    .user-dropdown-container:hover .user-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}
.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-header {
    background: linear-gradient(180deg, var(--accent-cyan) 0%, #00cc88 40%, var(--bg-card) 100%);
    padding: 1.5rem;
    text-align: left;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}
.dropdown-balance {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.dropdown-balance span {
    font-size: 1.2rem;
}
.dropdown-bal-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin-top: 0.2rem;
}
.dropdown-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0,0,0,0.4);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255,255,255,0.2);
}
.dropdown-list {
    padding: 0.5rem 0;
}
.dropdown-list li {
    list-style: none;
}
.dropdown-list a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-gray);
    font-size: 0.95rem;
    transition: var(--transition);
}
.dropdown-list a:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.03);
    padding-left: 1.8rem;
}
.dropdown-divider {
    height: 1px;
    background: repeating-linear-gradient(90deg, transparent, transparent 5px, rgba(255,255,255,0.1) 5px, rgba(255,255,255,0.1) 10px);
    margin: 0.5rem 1.5rem;
}

/* Section Header */
.section-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-cyan);
    padding-left: 1rem;
}
.section-header h3 {
    font-size: 1.5rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-header p {
    color: var(--text-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mt-5 {
    margin-top: 4rem;
}

/* Wide Grid & Cards */
.wide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 1.5rem;
}
.wide-grid.three-cols {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}
.wide-card {
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    padding: 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.wide-card.mini {
    min-height: 150px;
    justify-content: center;
}
.wide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    border-color: var(--accent-cyan);
}
.wide-card-content {
    z-index: 2;
}
.wide-card-content h2 {
    font-size: 1.8rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-style: italic;
    font-weight: 800;
}
.wide-card-content p {
    color: #e0e0e0;
    font-size: 0.95rem;
}
.wide-card-icon {
    font-size: 4rem;
    color: rgba(255,255,255,0.2);
    z-index: 1;
    transition: var(--transition);
}
.wide-card:hover .wide-card-icon {
    color: var(--accent-cyan);
    transform: scale(1.1) rotate(5deg);
}


/* Account View */
.account-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    align-items: start;
}
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
}
.profile-avatar-large {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-cyan), #00ffaa);
    padding: 3px;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.3);
}
.profile-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-dark);
}
.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.profile-email, .profile-role {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}
.password-form {
    text-align: left;
}
.password-form .form-group input {
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}
.action-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.action-card:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}
.action-card i {
    font-size: 2.5rem;
    color: var(--text-gray);
    transition: var(--transition);
}
.action-card:hover i {
    color: var(--text-white);
}
.action-card span {
    font-weight: 600;
    color: var(--text-gray);
}
.action-card:hover span {
    color: var(--text-white);
}


/* History Tables */
.history-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}
.history-table th {
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid var(--glass-border);
    color: var(--text-gray);
    font-weight: 600;
}
.history-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.history-table tr:hover {
    background: rgba(255,255,255,0.02);
}
.badge-info {
    background: rgba(0, 136, 255, 0.2);
    color: #00cc88;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 136, 255, 0.3);
}


/* Topup Detail Grid */
.topup-detail-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
}
.custom-input {
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}
.custom-input:focus {
    border-color: var(--accent-cyan);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.2);
}
.custom-input::placeholder {
    color: rgba(255,255,255,0.3);
}


/* New Dropdown Menu */
.new-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    font-size: 0.95rem;
}
.new-dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}
.new-dropdown-item:hover {
    background: rgba(0, 255, 170, 0.1);
    color: white;
    transform: translateX(5px);
}
.new-dropdown-item.text-danger:hover {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}

/* Diamond Topup Grid */
.diamond-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}
.diamond-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.diamond-card:hover {
    background: rgba(0, 255, 170, 0.05);
    border-color: #00ffaa;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 170, 0.15);
}
.diamond-card i {
    font-size: 2rem;
    color: #00ffaa;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
}
.diamond-card .dia-amt {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}
.diamond-card .dia-price {
    color: #00ffaa;
    font-size: 1rem;
    margin-top: 5px;
    font-weight: 600;
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* New Product Card Layout Styles */
.new-layout-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.new-layout-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: none !important;
    border-color: transparent !important;
}
.new-layout-card::before {
    display: none !important;
}
.product-image-container {
    position: relative;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    padding-top: 100%; /* 1:1 Aspect Ratio */
}
.product-image-container .new-image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.product-image-container .new-image::after {
    display: none;
}
.new-badge {
    background: var(--accent-cyan) !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    padding: 0.3rem 0.6rem !important;
    border-radius: 4px !important;
    top: 0 !important;
    right: 0 !important;
    border-top-right-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    z-index: 2;
}
.new-content {
    background: var(--bg-card) !important;
    padding: 1rem !important;
    border-radius: 0 0 8px 8px !important;
    border: 1px solid var(--glass-border) !important;
    border-top: none !important;
}
.new-title {
    font-size: 1.1rem !important;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.price-left .price-label {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 2px;
}
.price-left .price-amount {
    font-size: 1.4rem;
    font-weight: bold;
    color: #f1c40f;
}
.price-left .currency {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: normal;
}
.stock-status {
    font-size: 0.8rem;
    color: #f1c40f;
}
.btn-card-action {
    background: var(--accent-cyan) !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    border-radius: 6px !important;
    border: none !important;
    padding: 0.6rem !important;
    transition: all 0.2s !important;
}
.btn-card-action:hover {
    background: #00e699 !important;
    transform: scale(1.02);
}


/* Mobile UI Overhaul */
.mobile-menu-toggle, .mobile-bottom-nav, .mobile-sidebar, .mobile-sidebar-overlay {
    display: none;
}

@media (max-width: 768px) {
    /* Hide desktop nav on mobile */
    .nav-links, .nav-auth {
        display: none !important;
    }
    
    /* Top Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 100;
    }
    
    .nav-container {
        justify-content: space-between;
    }

    /* Mobile Sidebar */
    .mobile-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        backdrop-filter: blur(5px);
    }
    .mobile-sidebar-overlay.active {
        display: block;
    }
    
    .mobile-sidebar {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #0f121b;
        z-index: 1000;
        transition: right 0.3s ease;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        border-left: 1px solid rgba(0, 255, 170, 0.2);
        box-shadow: -10px 0 30px rgba(0,0,0,0.8);
        overflow-y: auto;
    }
    .mobile-sidebar.active {
        right: 0;
    }
    
    .sidebar-header {
        display: flex;
        justify-content: flex-start;
    }
    
    .sidebar-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .sidebar-links a {
        color: var(--text-white);
        text-decoration: none;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 0.8rem 1rem;
        border-radius: 8px;
        transition: background 0.2s;
    }
    .sidebar-links a:hover, .sidebar-links a:active {
        background: rgba(255,255,255,0.05);
    }
    
    .sidebar-auth-section {
        margin-top: auto;
        background: rgba(255,255,255,0.03);
        padding: 1.5rem;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.05);
    }
    
    /* Mobile Bottom Nav */
    body {
        padding-bottom: 70px; /* Space for bottom nav */
    }
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #0b0e14;
        border-top: 1px solid rgba(0, 255, 170, 0.2);
        padding: 0.8rem 0.5rem;
        justify-content: space-around;
        z-index: 900;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    }
    .mobile-bottom-nav a {
        color: var(--text-gray);
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        font-size: 0.75rem;
        font-weight: 500;
        transition: color 0.2s;
    }
    .mobile-bottom-nav a i {
        font-size: 1.2rem;
    }
    .mobile-bottom-nav a.active {
        color: var(--accent-cyan);
    }
}


/* --- Scroll Reveal Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Compact Game Grid (Mobile) --- */
.compact-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.compact-grid-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-neon-cyan);
}
.compact-grid-header p {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.game-item-card {
    background: rgba(15, 18, 27, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}
.game-item-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
}
.game-item-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.game-item-content {
    padding: 0.8rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.game-item-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-white);
    font-weight: 500;
    line-height: 1.3;
}

@media (min-width: 769px) {
    .compact-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

/* --- Fixes for Mobile --- */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .product-card .card-body h3 {
        font-size: 1rem !important;
    }
    .product-card .card-body p {
        font-size: 0.8rem !important;
    }
    .product-card .btn {
        padding: 0.5rem !important;
        font-size: 0.8rem !important;
    }
    .new-badge {
        font-size: 0.6rem !important;
        padding: 0.2rem 0.4rem !important;
    }
    .mobile-sidebar {
        height: 100dvh !important;
        padding-bottom: 6rem !important;
    }
}

@media (max-width: 768px) {
    .product-image-container {
        height: 140px !important;
    }
}

@media (max-width: 768px) {
    #diamondTopupView .glass-panel { padding: 1rem !important; }
    .diamond-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .diamond-card { padding: 1rem 0.5rem !important; }
    .diamond-card i { font-size: 1.5rem !important; margin-bottom: 5px !important; }
    .diamond-card .dia-amt { font-size: 0.95rem !important; }
    .diamond-card .dia-price { font-size: 0.85rem !important; }
}

@media (max-width: 768px) {
    .wide-card { min-height: 100px !important; padding: 1.2rem !important; }
    .wide-card-content h2 { font-size: 1.3rem !important; }
    .wide-card-content p { font-size: 0.8rem !important; }
    .wide-card-icon { font-size: 2.5rem !important; }
}


/* Mobile Fixes for Angpao Topup */
@media (max-width: 768px) {
    .topup-detail-grid {
        grid-template-columns: 1fr !important;
    }
}
