/* TOKOJOT MODERN STYLE */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #06080a;
    --bg-secondary: #0b0e11;
    --bg-card: #15191d;
    --primary: #f43f5e;
    /* Premium Rose Red */
    --primary-hover: #e11d48;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.05);
    --glass: rgba(11, 14, 17, 0.85);
}

body {
    background-color: #020406;
    /* Darker outer background */
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

#wrapper {
    width: 100%;
    margin: 0;
    background-color: var(--bg-main);
    min-height: 100vh;
    position: relative;
}

/* Navbar: Full background, centered content */
.navbar.fixed-top {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    max-width: 100% !important;
    background: linear-gradient(90deg, #3d0000 0%, #8a0000 100%) !important;
}

.navbar.fixed-top .container-fluid {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Ensure all main content containers are centered */
.container,
.container-fluid {
    max-width: 1440px;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (min-width: 992px) {
    .navbar.fixed-top .container-fluid {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

.navbar.fixed-top .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

@media (min-width: 992px) {
    .navbar.fixed-top .container-fluid {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

/* Navbar Modern */
/* Navbar Modern Redesign */
.bg-custom {
    background: linear-gradient(90deg, #3d0000 0%, #8a0000 100%) !important;
    min-height: 70px;
    padding: 0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.navbar-brand img {
    height: 45px !important;
    width: auto;
}

/* Navbar Search Modern */
.navbar-search-modern {
    position: relative;
    width: 450px;
    /* Wider search bar */
    margin-left: auto;
    margin-right: 30px;
}

.navbar-search-modern input {
    width: 100%;
    background: #fff;
    border: none;
    border-radius: 50px;
    /* Pill shape */
    padding: 10px 20px 10px 45px;
    color: #333;
    font-size: 0.95rem;
    height: 45px;
    font-weight: 500;
}

.navbar-search-modern input::placeholder {
    color: #888;
}

.navbar-search-modern .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #444;
    font-size: 1.1rem;
    pointer-events: none;
}

/* Right Menu Buttons */
.nav-btn-country-modern {
    background: transparent;
    border: 1px solid #ff0000;
    /* Red Border */
    border-radius: 8px;
    /* Slightly more rounded */
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff0000;
    /* Red Text */
    font-size: 0.9rem;
    /* Slightly larger font */
    font-weight: 700;
    height: 40px;
    /* Taller button */
    margin-right: 15px;
    white-space: nowrap;
    gap: 10px;
    /* Gap */
    flex-shrink: 0;
    min-width: 100px;
}

.nav-btn-country-modern img {
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    flex-shrink: 0 !important;
    border: none !important;
    margin: 0 !important;
}

.btn-signin-red {
    background: #ff1f5a;
    /* Brighter pink-red */
    color: #fff;
    font-weight: 700;
    padding: 0 30px;
    border-radius: 8px;
    font-size: 1rem;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 31, 90, 0.4);
    text-transform: uppercase;
    /* Uppercase button */
    letter-spacing: 0.5px;
}

.btn-signin-red:hover {
    background: #d61348;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 31, 90, 0.5);
}

/* Navigation Links Horizontal */
/* Navigation Links Horizontal */
.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 700 !important;
    /* Reduced weight */
    font-size: 0.8rem !important;
    /* Smaller text */
    padding: 0.5rem 1rem !important;
    /* Adjusted padding */
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    /* Prevent wrapping */
}

.navbar-nav .nav-link i {
    margin-right: 6px;
    font-size: 1.1rem;
    /* Smaller icon */
    margin-bottom: 2px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
}

.navbar-nav .nav-link:hover i {
    color: var(--primary) !important;
}

/* Hero Section Refined */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../../upload/hero-bg.png');
    background-color: #1a0505;
    /* Much darker, elegant red-black */
    background-size: cover;
    background-position: center;
    padding: 80px 0 60px;
    margin-top: -5px;
}

.flickity-viewport {
    border-radius: 1rem;
    overflow: hidden;
}

/* Page Dots as Pills */
.flickity-page-dots {
    bottom: -25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.flickity-page-dots .dot {
    width: 20px;
    height: 6px;
    opacity: 0.3;
    background: #fff;
    border-radius: 10px;
    margin: 0;
    transition: all 0.3s ease;
}

.flickity-page-dots .dot.is-selected {
    width: 35px;
    opacity: 1;
    background: var(--primary);
}

.carousel img {
    width: 100%;
    aspect-ratio: 16 / 8.5;
    object-fit: cover;
    border-radius: 1rem;
    margin-right: 20px;
}

/* Tab Categories - Running Slide */
.category-scroll-wrapper-modern {
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding: 15px 0 !important;
}

/* --- Product Detail Redesign --- */

/* Sticky Sidebar for Dynamic Feel */
.sticky-sidebar {
    position: sticky;
    top: 100px;
    z-index: 10;
    transition: all 0.3s ease;
}

/* Enhanced Glass Card with Glow */
.product-card-modern {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.product-card-modern:hover::before {
    opacity: 1;
}

/* Product Image Container with Outer Glow */
.product-image-glow {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.15);
}

.product-image-glow img {
    border-radius: 50%;
    display: block;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticky-sidebar:hover .product-image-glow img {
    transform: scale(1.1) rotate(5deg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Typography Enhancements */
.text-gradient-gold {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

/* Premium Dark Card */
.glass-card {
    background: #1a1d21;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

/* Tight input row - no gutter, inputs truly side-by-side */
.row.input-row-tight {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 10px;
}

.row.input-row-tight>[class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: 1 !important;
    max-width: none !important;
    width: auto !important;
}


.section-title-modern {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.section-title-modern h5 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.circle-number-modern {
    width: 30px;
    height: 30px;
    background: #2d3139;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: none;
    flex-shrink: 0;
}

.form-control-modern {
    background: #22262d !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 8px !important;
    color: #d1d5db !important;
    padding: 0.7rem 1rem !important;
    height: auto !important;
    width: 100% !important;
    font-size: 0.9rem !important;
    font-weight: 400;
    transition: border-color 0.2s ease;
    box-shadow: none !important;
}

.form-control-modern::placeholder {
    color: #4b5563 !important;
    opacity: 1;
    font-weight: 400;
    text-transform: none;
    font-size: 0.88rem;
    letter-spacing: 0;
}

.form-control-modern:focus {
    background: #22262d !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Select Dropdown - Force Dark */
select.form-control-modern,
select.form-control-modern:focus,
select.form-control-modern:active {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1rem !important;
    padding-right: 2.5rem !important;
    background-color: #22262d !important;
    color: #d1d5db !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    color-scheme: dark;
}

select.form-control-modern option {
    background-color: #1a1d21 !important;
    color: #d1d5db !important;
}


.service-item-modern {
    position: relative;
    cursor: pointer;
    margin-bottom: 1rem;
}

.service-item-modern input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.service-card {
    background: #1e2126;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 1rem 0.75rem;
    text-align: center;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.service-item-modern:hover .service-card {
    background: #252830;
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.service-item-modern input[type="radio"]:checked+.service-card {
    background: #1e2533;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6, 0 4px 16px rgba(59, 130, 246, 0.2);
}

.service-title {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #e2e8f0;
    line-height: 1.4;
    text-transform: capitalize;
    letter-spacing: 0;
}

.service-price {
    font-size: 0.8rem;
    color: #60a5fa;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Help Text */
.help-text-modern {
    color: #60a5fa;
    font-size: 0.82rem;
    margin-top: 8px;
    display: block;
    line-height: 1.5;
    font-style: normal;
}

/* Payment Method Modern */
.payment-accordion-modern .card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 15px !important;
    overflow: hidden;
    margin-bottom: 10px !important;
}

.payment-header-modern {
    padding: 0.5rem 1rem !important;
    background: transparent !important;
    border: none !important;
}

.payment-btn-modern {
    color: #fff !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    font-weight: 600;
    width: 100%;
    text-align: left;
    padding: 10px 0;
}

.payment-channel-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-channel-modern:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.payment-channel-modern input[type="radio"]:checked+.channel-info {
    color: var(--tokojot-cyan);
}

.category-scroll-wrapper-modern {
    margin: 0 !important;
    position: relative !important;
    display: block !important;
    overflow-x: auto !important;
}

.category-scroll-wrapper-modern::-webkit-scrollbar {
    display: none !important;
}

.category-list-modern {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.8rem !important;
    padding: 0 15px !important;
    width: max-content !important;
    min-width: 100% !important;
}

.category-list-modern .nav-link {
    flex: 0 0 auto !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50px !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 0.6rem 1.2rem !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    text-transform: none !important;
    margin-bottom: 0 !important;
}

.category-list-modern .nav-link.active {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
}

.category-list-modern .nav-link:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Game Card Modern */
.col-game {
    padding: 8px;
}

.card-tokojot {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

.card-tokojot:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card-tokojot .img-container {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}

.card-tokojot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card-tokojot:hover img {
    transform: scale(1.1);
}

.card-tokojot .card-body {
    padding: 0.75rem;
    text-align: center;
}

.card-tokojot .game-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tokojot .game-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Navbar Search Modern */
.navbar-search-modern {
    background: #ffffff !important;
    border-radius: 50px !important;
    display: flex;
    align-items: center !important;
    padding: 0 25px !important;
    width: 100%;
    max-width: 600px;
    height: 52px;
    margin: 0 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar-search-modern .search-icon {
    color: #333 !important;
    font-size: 1.3rem;
    margin-right: 15px;
}

.navbar-search-modern input {
    background: transparent !important;
    border: none !important;
    color: #333 !important;
    width: 100%;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

.navbar-search-modern input::placeholder {
    color: #888 !important;
}

.navbar-search-modern input:focus {
    box-shadow: none !important;
}

.nav-btn-country {
    background: #ffffff !important;
    border: none !important;
    border-radius: 8px;
    padding: 4px 10px;
    color: #000 !important;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    min-width: 60px;
    height: 46px;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-btn-country img {
    margin-bottom: 2px;
    border: 1px solid #eee;
}

/* Flag & Country Box */
.nav-btn-country-modern {
    background: transparent !important;
    border-radius: 4px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.nav-btn-country-modern img {
    margin: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.btn-signin-red {
    background: var(--primary) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 0 15px !important;
    border: none !important;
    font-size: 0.95rem;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
    white-space: nowrap !important;
    min-width: 110px;
}

.btn-signin-red:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.5);
}

/* Global Component Overrides for Consistency */
.card,
.section {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    color: var(--text-main) !important;
    overflow: hidden;
}

.card-body {
    padding: 1.5rem !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main) !important;
    font-weight: 700 !important;
}

p,
span,
label,
div {
    color: var(--text-main);
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Form Controls */
.form-control {
    background: #1a2026 !important;
    border: 1px solid var(--border) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 0.6rem 1rem !important;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.2) !important;
}

/* Buttons */
.btn {
    border-radius: 8px !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.btn-primary,
.btn-warning,
.btn-danger,
.btn-success,
.btn-info {
    border: none !important;
}

.btn-primary,
.btn-warning {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.2) !important;
}

.btn-primary:hover,
.btn-warning:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(244, 63, 94, 0.4) !important;
}

.btn-success {
    background: #10b981 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}

.btn-success:hover {
    background: #059669 !important;
    transform: translateY(-2px);
}

/* Table */
.table {
    color: var(--text-main) !important;
}

.table thead th {
    background: var(--bg-secondary) !important;
    border-bottom: 2px solid var(--border) !important;
    color: var(--text-muted) !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.table td {
    border-top: 1px solid var(--border) !important;
    vertical-align: middle !important;
}

/* Alerts */
.alert {
    border: none !important;
    border-radius: 12px !important;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
}

/* Dropdown Menus */
.dropdown-menu {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 0.5rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    margin-top: 10px !important;
}

.dropdown-item {
    color: var(--text-main) !important;
    border-radius: 8px !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
    transition: all 0.2s !important;
}

.dropdown-item:hover {
    background: rgba(244, 63, 94, 0.1) !important;
    color: var(--primary) !important;
    transform: translateX(5px) !important;
}

.dropdown-item i {
    width: 20px !important;
}

.dropdown-divider {
    border-top: 1px solid var(--border) !important;
}

/* Custom specifics for order page */
.circle-primary {
    background: var(--primary) !important;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    font-weight: 800;
}


/* Sections */
.section-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Footer Modern */
footer {
    background: linear-gradient(180deg, #1a0000 0%, #000000 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4.5rem 0 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff1f5a, transparent);
}

.footer-logo {
    height: 45px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 31, 90, 0.3));
}

.footer-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    font-weight: 400;
}

.footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.92rem;
    display: block;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 0;
}

.footer-link:hover {
    color: #ff1f5a;
    padding-left: 8px;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
}

.footer-social-btn:hover {
    background: #ff1f5a;
    border-color: #ff1f5a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 31, 90, 0.4);
}

.footer-social-btn i {
    font-size: 1.1rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    margin-top: 40px;
}

.section-title-footer {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #ff1f5a;
}


/* Hide Legacy Elements */
.back-to-top {
    display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}


/* Responsive Media Queries */
@media (max-width: 991.98px) {

    /* Navbar */
    .bg-custom {
        min-height: 70px;
        padding: 0.5rem 1rem;
    }

    .navbar-brand img {
        height: 40px !important;
    }

    .navbar-collapse {
        background: var(--bg-card);
        padding: 1rem;
        border-radius: 1rem;
        margin-top: 1rem;
        border: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .navbar-nav .nav-link {
        align-items: flex-start;
        padding: 0.8rem 0 !important;
        border-bottom: 1px solid var(--border);
    }

    .dropdown-menu {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding-left: 1rem !important;
        margin-top: 0 !important;
    }

    /* Hero Section */
    .hero-section {
        padding: 80px 0 60px !important;
        text-align: center !important;
        background: radial-gradient(circle at top right, rgba(244, 63, 94, 0.15), transparent),
            radial-gradient(circle at bottom left, rgba(244, 63, 94, 0.1), transparent);
    }

    .hero-content-left {
        padding-right: 0 !important;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 1.8rem !important;
    }

    .hero-desc {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
        padding: 0 1.5rem;
    }

    /* Carousel */
    .carousel {
        width: 100% !important;
        margin: 1rem auto 0 !important;
    }

    .carousel img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 752 / 341 !important;
        object-fit: cover !important;
        margin-right: 0 !important;
        border-radius: 8px !important;
    }

    /* Utilities */
    .d-none.d-lg-flex {
        display: none !important;
    }

    /* Mobile Search */
    .mobile-search {
        display: block !important;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {

    .hero-title {
        font-size: 1.8rem !important;
    }

    .card-tokojot .game-title {
        font-size: 0.65rem !important;
        /* Smaller font for 3-column grid */
    }

    .card-tokojot .game-subtitle {
        font-size: 0.55rem !important;
    }

    .card-tokojot .card-body {
        padding: 8px 4px !important;
    }

    .col-game {
        padding: 0 4px !important;
        /* Tighter gaps for 3 columns */
    }

    /* Force hide desktop elements on mobile */
    .navbar-search-modern,
    .btn-signin-red,
    .nav-btn-country-modern {
        display: none !important;
    }

    /* Re-show the specific mobile elements we want */
    .d-lg-none .btn-signin-red,
    .d-lg-none .nav-btn-country-modern {
        display: flex !important;
        /* Only if used in mobile header, but current design uses custom buttons */
    }

    /* Specific fix for the mobile header buttons */
    .mobile-header-btn {
        display: flex !important;
    }
}

/* Mobile Off-Canvas Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: -280px;
    /* Hidden off-left */
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, #880e4f 0%, #b71c1c 100%);
    /* Red Gradient */
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-content {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-menu-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.mobile-menu-body {
    padding: 1rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-link {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.mobile-nav-link i {
    width: 25px;
    margin-right: 10px;
    text-align: center;
}

/* Submenu */
.mobile-sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.1);
}

.mobile-sub-menu li a {
    display: block;
    padding: 0.7rem 1.5rem 0.7rem 3.5rem;
    /* Indented */
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

.mobile-sub-menu li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Footer Section */
.mobile-menu-footer {
    margin-top: auto;
    padding-bottom: 2rem;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 1rem 1.5rem;
}

/* Card Modern Tokojot - Premium Styling Redux */
.card-tokojot {
    background: #121417;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-decoration: none !important;
}

.card-tokojot:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 31, 90, 0.5);
    box-shadow: 0 15px 35px rgba(255, 31, 90, 0.25);
}

/* Light Sweep Effect */
.card-tokojot::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
    z-index: 5;
}

.card-tokojot:hover::after {
    animation: sweet-sweep 0.8s ease-in-out;
}

@keyframes sweet-sweep {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.card-image-wrapper,
.img-container {
    padding-top: 125%;
    /* Shorter aspect ratio to reduce perceived size */
    position: relative;
    overflow: hidden;
    background: #000;
}

.card-image-wrapper img,
.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-tokojot:hover .card-image-wrapper img,
.card-tokojot:hover .img-container img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

/* Hover Overlay Text */
.card-tokojot::before {
    content: 'TOP UP NOW';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--primary);
    color: #fff;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    opacity: 0;
    z-index: 10;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(255, 31, 90, 0.4);
    white-space: nowrap !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-tokojot:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-tokojot .card-body {
    padding: 12px 10px !important;
    background: linear-gradient(180deg, rgba(26, 29, 33, 0.8) 0%, #121417 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-tokojot .game-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff !important;
    margin-bottom: 2px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.card-tokojot .game-subtitle {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45) !important;
    margin-bottom: 0;
    text-align: center;
    font-weight: 500;
}

/* Responsive Grid Tweaks */
@media (max-width: 768px) {
    .col-game {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .card-tokojot .game-title {
        font-size: 0.72rem;
    }

    .card-tokojot {
        border-radius: 14px;
    }

    .card-tokojot::before {
        display: none;
        /* Hide overlay on mobile for cleaner look */
    }
}

/* --- Modernized Payment Section --- */
.payment-item-modern {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.payment-item-modern:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

input.radio-nominal {
    display: none;
}

input.radio-nominal:checked+label .payment-item-modern {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.1), rgba(0, 0, 0, 0));
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.2);
}

input.radio-nominal:checked+label .payment-item-modern::before {
    content: '?';
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.cursor-pointer {
    cursor: pointer !important;
}

/* Accordion Unification */
.payment-accordion-modern .card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* If using box_game or glass-card inside accordion, normalize headers */
.payment-accordion-modern .card-header {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    margin-bottom: 10px;
}

.payment-accordion-modern .card-header button {
    text-decoration: none !important;
    color: #fff !important;
    font-weight: 700;
}

/* --- Auth Pages (Login & Register) --- */
.auth-page {
    background: radial-gradient(circle at 100% 0%, rgba(244, 63, 94, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(244, 63, 94, 0.05) 0%, transparent 40%),
        #06080a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 15px;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 10;
}

.auth-card {
    background: rgba(18, 20, 23, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    height: 50px !important;
    width: auto !important;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group .label-text {
    display: block;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
}

.auth-input {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #fff !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    height: auto !important;
    transition: all 0.3s ease !important;
}

.auth-input:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.15) !important;
    outline: none !important;
}

.auth-link {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}

.auth-link:hover {
    color: var(--primary-hover);
}

.btn-auth {
    background: var(--primary) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 14px !important;
    font-size: 1rem !important;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.3) !important;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(244, 63, 94, 0.4) !important;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.back-home {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 100;
}

.back-home a {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.back-home a:hover {
    opacity: 1;
}

/* Alert modern styling */
.alert-modern {
    background: rgba(255, 191, 0, 0.1) !important;
    border: 1px solid rgba(255, 191, 0, 0.2) !important;
    color: #ffbf00 !important;
    border-radius: 12px;
    font-size: 0.85rem;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-modern-success {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    color: #10b981 !important;
}

/* --- Floating WhatsApp Button --- */
.wa-floating {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.wa-floating:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #128c7e;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: #fff !important;
}

.wa-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: wa-pulsate 2s infinite;
    opacity: 0.7;
}

@keyframes wa-pulsate {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .wa-floating {
        width: 50px;
        height: 50px;
        bottom: 85px;
        /* Higher on mobile to avoid overlapping with bottom nav */
        right: 20px;
        font-size: 25px;
    }
}