:root {
    --primary: #dc2626;  /* Merah utama */
    --secondary: #ef4444; /* Merah sekunder */
    --dark: #0f0f23;
    --light: #f8f9fa;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
}

body {
    background: linear-gradient(135deg, #0f0f23, #1a1a2e, #16213e);
    color: #f0f0f0;
    font-family: 'IBM Plex Sans Condensed', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background-attachment: fixed;
    overflow-x: hidden;
    padding-top: 120px; /* Tambahkan padding untuk navbar fixed */
}

/* Ornamen Background */
.bg-ornament {
    position: fixed;
    z-index: -1;
    opacity: 0.1;
}

.ornament-1 {
    top: 10%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.ornament-2 {
    top: 60%;
    right: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 12s infinite ease-in-out reverse;
}

.ornament-3 {
    bottom: 20%;
    left: 15%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--warning) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 18s infinite ease-in-out;
}

.ornament-4 {
    top: 30%;
    right: 20%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #b91c1c 0%, transparent 70%); /* Merah gelap */
    border-radius: 50%;
    animation: float 10s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Navbar Fixed */
.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar-primary {
    background: rgba(15, 15, 35, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.navbar-secondary {
    background: rgba(15, 15, 35, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.navbar-secondary .navbar-nav {
    margin: 0 auto;
}

.navbar-secondary .nav-link {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

/* Search Form */
.search-form {
    flex-grow: 1;
    max-width: 100%;
    margin: 0 20px;
}

.search-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 10px;
    padding: 10px 15px;
    width: 100%;
}

.search-box:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3); /* Merah primer dengan transparansi */
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Game Card Grid Style - 6 cards per row */
.game-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

@media (max-width: 1400px) {
    .game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

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

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

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

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

/* Game Card Styles - FIXED HOVER CONFLICT */
.game-card-grid {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    position: relative;
    height: 200px;
    cursor: pointer;
    padding: 2px;
    isolation: isolate; /* Membuat stacking context terpisah */
}

/* Animated Border Elements - FIXED Z-INDEX */
.game-card-grid .border-animation {
    position: absolute;
    pointer-events: none;
    z-index: 2; /* Di atas card background tapi di bawah konten */
}

.game-card-grid .border-animation:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), var(--secondary), transparent);
    animation: borderTop 3s linear infinite;
    opacity: 0.7;
}

.game-card-grid .border-animation:nth-child(2) {
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary), var(--secondary), transparent);
    animation: borderRight 3s linear infinite;
    animation-delay: 1.5s;
    opacity: 0.7;
}

.game-card-grid .border-animation:nth-child(3) {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to left, transparent, var(--primary), var(--secondary), transparent);
    animation: borderBottom 3s linear infinite;
    opacity: 0.7;
}

.game-card-grid .border-animation:nth-child(4) {
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to top, transparent, var(--primary), var(--secondary), transparent);
    animation: borderLeft 3s linear infinite;
    animation-delay: 1.5s;
    opacity: 0.7;
}

/* Enhanced Hover Effects - SIMPLIFIED */
.game-card-grid:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        0 20px 40px rgba(220, 38, 38, 0.3),
        0 0 30px rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.6);
}

/* Background overlay on hover */
.game-card-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: 14px;
}

.game-card-grid:hover::before {
    opacity: 1;
}

/* Accelerate border animation on hover */
.game-card-grid:hover .border-animation {
    opacity: 1;
    animation-duration: 1.5s;
}

.game-card-grid:hover .border-animation:nth-child(1) {
    background: linear-gradient(to right, transparent, var(--primary), #ff6b6b, var(--secondary), transparent);
}

.game-card-grid:hover .border-animation:nth-child(2) {
    background: linear-gradient(to bottom, transparent, var(--primary), #ff6b6b, var(--secondary), transparent);
}

.game-card-grid:hover .border-animation:nth-child(3) {
    background: linear-gradient(to left, transparent, var(--primary), #ff6b6b, var(--secondary), transparent);
}

.game-card-grid:hover .border-animation:nth-child(4) {
    background: linear-gradient(to top, transparent, var(--primary), #ff6b6b, var(--secondary), transparent);
}

/* Game Image and Content - FIXED Z-INDEX */
.game-card-grid > a {
    position: relative;
    z-index: 3; /* Di atas border animation dan overlay */
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.game-image-grid {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border-radius: 14px;
    z-index: 1;
}

.game-card-grid:hover .game-image-grid {
    transform: scale(1.08);
    filter: brightness(0.8) contrast(1.1);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(15, 15, 35, 0.3),
        rgba(15, 15, 35, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 14px;
    z-index: 2;
}

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

.game-title-grid {
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    transform: translateY(20px);
    transition: all 0.4s ease;
    padding: 0 10px;
    z-index: 3;
}

.game-card-grid:hover .game-title-grid {
    transform: translateY(0);
}

/* Corner accent dots - FIXED POSITIONING */
.game-card-grid .corner-dot-top {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 4;
}

.game-card-grid .corner-dot-bottom {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 4;
}

.game-card-grid:hover .corner-dot-top,
.game-card-grid:hover .corner-dot-bottom {
    opacity: 1;
    transform: scale(1.3);
}

/* Pulsing glow effect on hover - OPTIMIZED */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow:
            0 20px 40px rgba(220, 38, 38, 0.3),
            0 0 30px rgba(220, 38, 38, 0.2);
    }
    50% {
        box-shadow:
            0 20px 40px rgba(220, 38, 38, 0.4),
            0 0 40px rgba(220, 38, 38, 0.3);
    }
}

.game-card-grid:hover {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Remove old pseudo-element conflicts */
.game-card-grid::after {
    display: none;
}

/* Efek kaca untuk filter section */
.game-filter {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #eee;
    border-radius: 10px;
    padding: 8px 15px;
    margin: 5px;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4); /* Merah primer dengan transparansi */
}

footer {
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 1px solid var(--glass-border);
}

.footer-links a {
    color: #b0b0b0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    color: #fff;
}

.social-icons a:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4); /* Merah primer dengan transparansi */
    border-color: transparent;
}

/* Efek kaca untuk carousel */
.carousel-container {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.carousel-item {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15,15,35,0.4), rgba(15,15,35,0.8));
}

.carousel-caption {
    bottom: 30%;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--glass-border);
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.5);
}

.carousel-indicators .active {
    background-color: var(--primary);
    border-color: var(--primary);
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 50%;
    margin: auto 10px;
    height: 50px;
    width: 50px;
    opacity: 0.7;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

/* Tombol dengan efek kaca */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3); /* Merah primer dengan transparansi */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4); /* Merah primer dengan transparansi */
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4); /* Merah primer dengan transparansi */
}

/* Efek teks glow */
.glow-text {
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.5); /* Merah primer dengan transparansi */
}

/* Animasi subtle untuk elemen */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Floating particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Flash Sale Section - Diperbarui */
.flash-sale-section {
    margin-bottom: 30px;
}

.flash-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.flash-sale-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
}

.flash-sale-title i {
    color: var(--danger);
    margin-right: 10px;
}

.flash-sale-timer {
    display: flex;
    align-items: center;
    background: rgba(239, 68, 68, 0.2);
    padding: 8px 15px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.flash-sale-timer span {
    font-weight: 700;
    color: white;
    margin-left: 5px;
}

.flash-sale-carousel {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}

.flash-sale-items {
    display: flex;
    transition: transform 0.5s ease;
}

/* Flash Sale Card - Diperbarui */
.flash-sale-item {
    min-width: 280px; /* Sedikit lebih kecil */
    margin-right: 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: flex;
    height: 140px;
    position: relative;
    cursor: pointer;
}

.flash-sale-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3); /* Merah primer dengan transparansi */
    border-color: rgba(220, 38, 38, 0.6); /* Merah primer dengan transparansi */
}

.flash-sale-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.1)); /* Merah dengan transparansi */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.flash-sale-item:hover::before {
    opacity: 1;
}

.flash-sale-image {
    width: 120px;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.flash-sale-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2; /* Pastikan konten di atas overlay */
}

.flash-sale-game-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
    color: white;
}

.flash-sale-price {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.flash-sale-price-new {
    font-weight: 700;
    color: white;
    margin-right: 8px;
    font-size: .8rem;
}

.flash-sale-price-old {
    font-size: 0.8rem;
    color: #aaa;
    text-decoration: line-through;
}

.flash-sale-stock {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #ccc;
}

.flash-sale-stock-bar {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 0 10px;
    overflow: hidden;
}

.flash-sale-stock-fill {
    height: 100%;
    background: linear-gradient(to right, var(--danger), #f87171);
    border-radius: 3px;
}

.flash-sale-controls {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.flash-sale-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flash-sale-control:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
}

/* Why Choose Us Section */
.why-choose-us {
    margin: 40px 0;
}

.why-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.3); /* Merah primer dengan transparansi */
}

.why-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.why-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-align: center;
}

.why-description {
    color: #ccc;
    line-height: 1.6;
    text-align: center;
}

/* Game Card Links */
.game-card-grid a, .flash-sale-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    width: 100%;
    height: 100%;
}

/* Hapus overlay yang mengganggu */
.flash-sale-overlay {
    display: none;
}

/* Search Results Styling */
.search-results-container {
    position: relative;
}

.search-results-container .dropdown-menu {
    border: none;
    border-radius: 10px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
}

.search-results-container .dropdown-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.search-results-container .dropdown-item:hover {
    background-color: #f8f9fa;
}

.search-results-container .dropdown-item:last-child {
    border-bottom: none;
}

.search-results-container .dropdown-item img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

/* Navbar Z-index Fix */
.navbar-primary {
    z-index: 1030 !important; /* Bootstrap navbar default z-index */
}

.navbar-secondary {
    z-index: 1029 !important; /* Kurangi dari primary */
}

/* Search Wrapper Styling */
.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

/* Search Results Dropdown */
#dropDownSearchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999 !important; /* Sangat tinggi */
    border: none;
    border-radius: 10px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

/* Ensure dropdown items are visible */
#dropDownSearchResults .dropdown-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
    z-index: 10000;
    position: relative;
}

#dropDownSearchResults .dropdown-item:hover {
    background-color: #f8f9fa;
}

#dropDownSearchResults .dropdown-item:last-child {
    border-bottom: none;
}

#dropDownSearchResults .dropdown-item img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

/* Pastikan form control tidak memiliki z-index yang mengganggu */
.search-form {
    position: relative;
    z-index: 1;
}

.search-box {
    position: relative;
    z-index: 1;
}

/* Search Wrapper Styling */
.search-wrapper {
    position: relative;
    flex: 1;
    margin: 0 20px;
}

/* Search Form Styling */
.search-form {
    display: flex;
}

.search-box {
    width: 100% !important;
    max-width: 100%;
}

/* Search Results Dropdown - Full Width seperti game-filter */
#dropDownSearchResults {
    position: absolute;
    top: 100%;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 1200px; /* Sesuaikan dengan lebar container game-filter */
    z-index: 9999 !important;
    border: none;
    border-radius: 10px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

/* Container untuk memastikan alignment */
.navbar-primary .container {
    position: relative;
}

/* Pastikan dropdown item terlihat baik */
#dropDownSearchResults .dropdown-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

#dropDownSearchResults .dropdown-item:hover {
    background-color: #f8f9fa;
}

#dropDownSearchResults .dropdown-item:last-child {
    border-bottom: none;
}

#dropDownSearchResults .dropdown-item img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

/* Responsive design */
@media (max-width: 768px) {
    .search-wrapper {
        margin: 0 10px;
    }

    #dropDownSearchResults {
        left: 0 !important;
        transform: none !important;
        width: 100vw !important;
        max-width: none;
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0 0 10px 10px;
    }
}

/* Search Form - Kembali ke width 100% */
.search-form {
    flex-grow: 1;
    max-width: 100%;
    margin: 0 20px;
    position: relative;
}

.search-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 10px;
    padding: 10px 15px;
    width: 100% !important; /* Pastikan width 100% */
}

.search-box:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
}

/* Search Wrapper Styling - Diperbaiki */
.search-wrapper {
    position: relative;
    flex: 1;
    margin: 0 20px;
    max-width: none; /* Hapus max-width */
}

/* Search Results Dropdown - Full Width */
#globalSearchResultContainer {
    position: absolute;
    top: 100%;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    border: none;
    border-radius: 10px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    background: var(--dark) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

/* Search Result Items */
#globalSearchResultContainer .dropdown-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: #f0f0f0;
    display: block;
    width: 100%;
    background: transparent;
}

#globalSearchResultContainer .dropdown-item:hover {
    background: #1d1d30;
    color: white;
    text-decoration: none;
}

#globalSearchResultContainer .dropdown-item:last-child {
    border-bottom: none;
}

#globalSearchResultContainer .dropdown-item img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

/* Search result content styling */
#globalSearchResultContainer .dropdown-item .row {
    margin: 0;
}

#globalSearchResultContainer .dropdown-item b {
    color: white;
    font-size: 0.95rem;
}

#globalSearchResultContainer .dropdown-item small {
    color: #b0b0b0;
    font-size: 0.8rem;
}

/* No results and error states */
#globalSearchResultContainer .dropdown-item.text-muted {
    text-align: center;
    padding: 20px;
    color: #b0b0b0 !important;
}

#globalSearchResultContainer .dropdown-item.text-muted:hover {
    background: transparent;
    color: #b0b0b0 !important;
}

/* Scrollbar styling */
#globalSearchResultContainer::-webkit-scrollbar {
    width: 6px;
}

#globalSearchResultContainer::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 10px 10px 0;
}

#globalSearchResultContainer::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

#globalSearchResultContainer::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive design */
@media (max-width: 768px) {
    .search-form {
        margin: 0 10px;
    }

    .search-wrapper {
        margin: 0 10px;
    }

    #globalSearchResultContainer {
        border-radius: 0 0 10px 10px;
    }
}

@media (max-width: 576px) {
    .search-form {
        margin: 0 5px;
    }

    .search-wrapper {
        margin: 0 5px;
    }

    #globalSearchResultContainer .dropdown-item {
        padding: 10px 12px;
    }

    #globalSearchResultContainer .dropdown-item img {
        max-width: 35px;
        max-height: 35px;
    }
}

/* Snake Border Animation for Flash Sale Cards Only */
.flash-sale-item {
    min-width: 280px;
    margin-right: 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: flex;
    height: 140px;
    position: relative;
    cursor: pointer;
}

/* Snake border container for flash sale */
.flash-sale-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 14px;
    background: linear-gradient(45deg,
        var(--primary),
        var(--secondary),
        var(--warning),
        var(--danger),
        var(--primary));
    background-size: 400% 400%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: snakeBorder 2s linear infinite;
}

.flash-sale-item:hover::after {
    opacity: 1;
}

/* Snake border animation */
@keyframes snakeBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Ensure flash sale content stays above the snake border */
.flash-sale-item > * {
    position: relative;
    z-index: 1;
}

/* Adjust flash sale hover effects to work with snake border */
.flash-sale-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

/* Adjust z-index for flash sale overlay */
.flash-sale-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(239, 68, 68, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2; /* Above snake border */
}

.flash-sale-item:hover::before {
    opacity: 1;
}

/* Responsive adjustments untuk game card border animation */
@media (max-width: 768px) {
    .game-card-grid .border-animation:nth-child(1),
    .game-card-grid .border-animation:nth-child(2),
    .game-card-grid .border-animation:nth-child(3),
    .game-card-grid .border-animation:nth-child(4) {
        animation-duration: 4s; /* Lebih lambat di mobile */
    }

    .game-card-grid:hover .border-animation:nth-child(1),
    .game-card-grid:hover .border-animation:nth-child(2),
    .game-card-grid:hover .border-animation:nth-child(3),
    .game-card-grid:hover .border-animation:nth-child(4) {
        animation-duration: 2s; /* Tetap lebih cepat saat hover */
    }
}

.main-content {
    background: transparent !important;
    padding: 20px 0;
}

.page-content {
    padding: 0 15px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    margin-bottom: 20px;
    color: #f0f0f0;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.2);
}

.card-header {
    background: rgba(15, 15, 35, 0.7) !important;
    border-top-left-radius: 18px !important;
    border-top-right-radius: 18px !important;
    padding: 20px;
}

.card-title {
    color: white;
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 20px;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 10px;
    padding: 10px 15px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
}

.form-group label {
    color: #eee;
    font-weight: 500;
    margin-bottom: 8px;
}

.alert {
    background: rgba(15, 15, 35, 0.7);
    border: 1px solid var(--glass-border);
    color: #eee;
    border-radius: 10px;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.list-group-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #eee;
    border-radius: 1px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px;
}

.list-group-item:hover, .list-group-item:focus {
    background: rgba(220, 38, 38, 0.2);
    border-color: var(--primary);
    color: white;
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked + label {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.form-control:disabled,
.form-control[readonly] {
  background-color: var(--dark);
  border-color: var(--glass-border);
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.7;
}

.nav-tabs {
    border-bottom: 1px solid var(--glass-border) !important;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05);
  color: #fff;
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

.table tbody tr {
  transition: all 0.3s ease;
}

.payment-drawwer {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.payment-drawwer .header {
    background: rgba(15, 15, 35, 0.7);
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.payment-drawwer .header:hover {
    background: rgba(15, 15, 35, 0.9);
}

.payment-drawwer .button-action-payment {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
}

.payment-drawwer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.payment-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.payment-item:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: var(--primary);
}

.payment-item .info-top {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.payment-item .info-top img {
    max-height: 30px;
    margin-right: 10px;
}

.payment-item .info-bottom {
    font-size: 0.9rem;
    color: #ccc;
}

.short-payment-support-info {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.short-payment-support-info img {
    max-height: 25px;
    margin-right: 10px;
}

.open-button-action-payment {
    margin-left: auto;
    color: #eee;
}

.strip-primary {
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
    margin: 10px 0;
}

.table {
    color: #f0f0f0;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.03);
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    color: #f0f0f0;
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
}

.modal-footer {
    border-top: 1px solid var(--glass-border);
}

.btn-close {
    filter: invert(1);
}

.other-product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}
a.other-product-card {
    color: #fff;
    text-decoration: none;
}

.other-product-card:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.other-product-card img {
    border-radius: 5px;
    margin-right: 5px;
}

.game-logo {
    display: block;
    margin: 0 auto 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* PERUBAHAN UTAMA: Membatasi lebar konten */
.container-fluid.main-container {
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .game-logo {
        width: 80%;
    }
}

/* Hero Section dengan Gradient yang Cocok */
.hero-section {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-top: -7px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 30%, #dc2626 100%);
}

.hero-image {
    display: none; /* Sembunyikan gambar */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 20px;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* Efek Salju dengan Warna yang Sesuai */
.snow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.snow {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    opacity: 0.7;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(220, 38, 38, 0.3);
}

@keyframes snowfall {
    0% {
        transform: translateY(-10px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(400px) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

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

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .snow {
        font-size: 1rem;
    }
}

/* Badge Styles - Cocok dengan tema glassmorphism */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Badge Success - Hijau */
.badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
    color: white;
    border-color: rgba(16, 185, 129, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.badge-success:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 1), rgba(5, 150, 105, 1));
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Badge Danger - Merah */
.badge-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    color: white;
    border-color: rgba(239, 68, 68, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.badge-danger:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 1), rgba(220, 38, 38, 1));
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

/* Badge Info - Biru */
.badge-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    color: white;
    border-color: rgba(59, 130, 246, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.badge-info:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(37, 99, 235, 1));
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Badge Warning - Kuning/Orange */
.badge-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
    color: white;
    border-color: rgba(245, 158, 11, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.badge-warning:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 1), rgba(217, 119, 6, 1));
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* Badge Secondary - Abu-abu */
.badge-secondary {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.9), rgba(75, 85, 99, 0.9));
    color: white;
    border-color: rgba(107, 114, 128, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.badge-secondary:hover {
    background: linear-gradient(135deg, rgba(107, 114, 128, 1), rgba(75, 85, 99, 1));
    box-shadow: 0 6px 16px rgba(107, 114, 128, 0.4);
}

/* Badge Primary - Merah Tema */
.badge-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: rgba(220, 38, 38, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.badge-primary:hover {
    background: linear-gradient(135deg, #b91c1c, var(--primary));
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

/* Badge Dark - Gelap */
.badge-dark {
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.9), rgba(26, 26, 46, 0.9));
    color: white;
    border-color: rgba(15, 15, 35, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.badge-dark:hover {
    background: linear-gradient(135deg, rgba(15, 15, 35, 1), rgba(26, 26, 46, 1));
    box-shadow: 0 6px 16px rgba(15, 15, 35, 0.4);
}

/* Badge Light - Terang */
.badge-light {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(233, 236, 239, 0.9));
    color: var(--dark);
    border-color: rgba(248, 249, 250, 0.3);
}

.badge-light:hover {
    background: linear-gradient(135deg, rgba(248, 249, 250, 1), rgba(233, 236, 239, 1));
    box-shadow: 0 6px 16px rgba(248, 249, 250, 0.4);
}

/* Badge Outline Variants */
.badge-outline-success {
    background: transparent;
    color: #10b981;
    border: 1px solid #10b981;
}

.badge-outline-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.badge-outline-info {
    background: transparent;
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.badge-outline-warning {
    background: transparent;
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.badge-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

/* Badge Sizes */
.badge-sm {
    padding: 4px 8px;
    font-size: 0.65rem;
}

.badge-lg {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.badge-xl {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Badge dengan icon */
.badge-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-with-icon i {
    font-size: 0.8em;
}

/* Pulsing effect untuk badge penting */
.badge-pulse {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Badge untuk status game */
.badge-new {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border-color: rgba(139, 92, 246, 0.3);
}

.badge-hot {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    border-color: rgba(249, 115, 22, 0.3);
}

.badge-sale {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-color: rgba(239, 68, 68, 0.3);
    animation: badgePulse 2s infinite;
}

.badge-popular {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
    border-color: rgba(236, 72, 153, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .badge {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    .badge-lg {
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    .badge-xl {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

.table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

.table th {
    background-color: #1b1b2e !important;
    border: 1px solid val(--glass-border);
}

select option {
    background: #313245 !important;
    color: #fff !important;
    padding: 8px 12px !important;
    line-height: 1.5 !important;
}

/* Fix height consistency */
.input-group {
    height: 45px; /* Atur tinggi sesuai kebutuhan */
}

.input-group .form-control {
    height: 100%;
    border-radius: 0.25rem 0 0 0.25rem;
}

.input-group-append {
    height: 100%;
}

.input-group-append .btn {
    height: 100%;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group-append .btn:last-child {
    border-radius: 0 0.25rem 0.25rem 0;
}

.table td, .table th {
    border: none !important;
}

.border-top {
    border-top: none !important;
}

/* BootstrapVue Pagination Minimal Override */
.VuePagination__pagination {
    background: #1b1b2e !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid var(--glass-border) !important;
}

.VuePagination__pagination-item .page-link {
    background: transparent !important;
    border-color: var(--glass-border) !important;
    color: #f0f0f0 !important;
}

.VuePagination__pagination-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    border-color: transparent !important;
    color: white !important;
}

.VuePagination__pagination-item.disabled .page-link {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #666 !important;
}

.VuePagination__count {
    color: #f0f0f0 !important;
}


@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .game-card-grid {
        height: 120px !important;
        min-height: 120px !important;
    }

    .game-title-grid {
        font-size: 0.8rem !important;
        padding: 0 5px !important;
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .game-card-grid {
        height: 110px !important;
    }

    .game-title-grid {
        font-size: 0.75rem !important;
    }
}

/* Untuk layar sangat kecil, tetap 2 cards */
@media (max-width: 320px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Fix untuk dropdown yang terpotong di mobile */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    box-shadow: var(--glass-shadow);
    min-width: 200px;
    z-index: 10000;
}

/* Pastikan dropdown tidak keluar dari viewport di mobile */
@media (max-width: 768px) {
    .dropdown-menu {
        right: 0;
        left: auto;
        transform: none !important;
        margin-top: 5px;
    }
    
    /* Jika masih terpotong, beri margin ke kiri */
    .dropdown-menu {
        right: 0;
        left: auto;
        min-width: 180px;
    }
}

/* Font size per row */
.table-row-xs td {
    font-size: 0.75rem; /* 12px */
    padding: 0.3rem 0.5rem;
}

.table-row-sm td {
    font-size: 0.875rem; /* 14px */
    padding: 0.4rem 0.6rem;
}

.table-row-md td {
    font-size: 1rem; /* 16px */
    padding: 0.5rem 0.75rem;
}

.table-row-lg td {
    font-size: 1.125rem; /* 18px */
    padding: 0.6rem 0.8rem;
}

.table-row-xl td {
    font-size: 1.25rem; /* 20px */
    padding: 0.7rem 1rem;
}

/* Fix untuk tombol Login dan Akun di navbar */
.navbar-primary .btn-outline-light {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid var(--glass-border) !important;
    color: #f0f0f0 !important;
    border-radius: 10px !important;
    padding: 8px 20px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: var(--glass-shadow) !important;
}

.navbar-primary .btn-outline-light:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    border-color: transparent !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4) !important;
}

.navbar-primary .btn-outline-light:focus {
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3) !important;
}

/* Dropdown toggle button styling */
.navbar-primary .dropdown-toggle {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: #f0f0f0 !important;
    border-radius: 10px !important;
    padding: 8px 20px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: var(--glass-shadow) !important;
}

.navbar-primary .dropdown-toggle:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    border-color: transparent !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4) !important;
}

.navbar-primary .dropdown-toggle:focus {
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3) !important;
}

/* Dropdown menu styling */
.navbar-primary .dropdown-menu {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 10px !important;
    box-shadow: var(--glass-shadow) !important;
    margin-top: 8px !important;
    padding: 10px 0 !important;
}

.navbar-primary .dropdown-item {
    color: #f0f0f0 !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

.navbar-primary .dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
    text-decoration: none !important;
}

.navbar-primary .dropdown-item i {
    margin-right: 8px !important;
    width: 16px !important;
    text-align: center !important;
}

.navbar-primary .dropdown-divider {
    border-color: var(--glass-border) !important;
    margin: 8px 0 !important;
}

.navbar-primary .dropdown-item.text-danger {
    color: #ef4444 !important;
}

.navbar-primary .dropdown-item.text-danger:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
}

/* Icon styling dalam tombol */
.navbar-primary .btn i {
    margin-right: 6px !important;
    font-size: 1.1rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-primary .btn-outline-light,
    .navbar-primary .dropdown-toggle {
        height: 40px !important;
        padding: 12px 15px !important;
        font-size: 0.9rem !important;
    }
    
    .navbar-primary .btn i {
        margin-right: 4px !important;
        font-size: 1rem !important;
    }
    
    .navbar-primary .dropdown-menu {
        min-width: 200px !important;
    }
}

@media (max-width: 576px) {
    .navbar-primary .btn-outline-light,
    .navbar-primary .dropdown-toggle {
        height: 40px !important;
        padding: 12px 12px !important;
        font-size: 0.85rem !important;
    }
}

/* Animation untuk smooth transition */
.navbar-primary .btn,
.navbar-primary .dropdown-toggle {
    position: relative !important;
    overflow: hidden !important;
}

.navbar-primary .btn::before,
.navbar-primary .dropdown-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.navbar-primary .btn:hover::before,
.navbar-primary .dropdown-toggle:hover::before {
    left: 100%;
}

/* Active state untuk dropdown ketika terbuka */
.navbar-primary .dropdown.show .dropdown-toggle {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    border-color: transparent !important;
    color: white !important;
}
