:root {
    --bs-dark: #0a0a0a;
    --bs-darker: #0f0f1e;
    --bs-card-bg-dark: #151515;
    --brand-red: #dc3545;
}

body {
    background-color: var(--bs-dark);
}

/* Minimal custom CSS for specific needs */
.logo-text-red { color: #dc3545; }
.bg-darker { background-color: var(--bs-darker); }
.bg-card { background-color: var(--bs-card-bg-dark); }
.carousel-item img { height: 450px; background: #1a1a1a; overflow: hidden; border-radius: 4px; object-fit: cover; }
/* .game-card-img { aspect-ratio: 3 / 4; }
.game-card-img-popular { aspect-ratio: 3 / 4; } */
.badge-gradient-hot { background: linear-gradient(135deg, #ff416c, #ff4b2b); }
.badge-gradient-new { background: linear-gradient(135deg, #4776e6, #8e54e9); }
.text-muted-light { color: rgba(255,255,255,0.6); }
.promo-overlay { position: absolute; bottom: 10px; left: 10px; }
.game-badge-overlay { position: absolute; top: 8px; left: 8px; }
.fab-chat { 
    position: fixed; 
    bottom: 80px; 
    right: 20px; 
    width: 50px; 
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 999;
}

/* Hover Animations */
.game-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.game-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.sidebar-item-hover {
    transition: all 0.3s ease;
}

.sidebar-item-hover:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

.nav-link-hover {
    transition: all 0.3s ease;
}

.nav-link-hover:hover:not(.active) {
    background-color: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

.bottom-nav-hover {
    transition: all 0.3s ease;
}

.bottom-nav-hover:hover {
    color: #dc3545 !important;
    transform: translateY(-2px);
}

.fab-chat {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fab-chat:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

/* Sidebar Menu Overlay */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bs-darker);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-menu-right {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bs-darker);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.sidebar-menu-right.active {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.user-profile-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.menu-item {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}

.menu-item.logout:hover {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545 !important;
}

@media (max-width: 768px) {
    .carousel-item img { height: 160px; }
    .game-card-img { height: 100px; }
}

@media (max-width: 576px) {
    .game-card-img-popular { height: 150px;}
    .game-card-img { height: 85px; }
}

.marquee {
    width: 100%;
    height: 22px;
    margin-top: -5px;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

.marquee small {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 10s linear infinite;
}

@keyframes marquee {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

.w-60px {
    width: 60px;
}

.btn-custom {
    padding: 0.7rem;
    border-radius: 10px;
}

.btn-red {
    background-image: linear-gradient(to bottom, #F00705, #C60200);
}

.text-red {
    color: #E50303 !important;
}

.text-gray {
    color: #6c757d !important;
}

.modal-content {
    background-color: #1a1a1a;
    border: none;
    border-radius: 8px;
    max-width: 400px;
    margin: 0 auto;
}

.modal-header {
    border-bottom: none;
    padding: 2rem 2rem 1rem;
    position: relative;
}

.btn-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    filter: invert(1);
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 1;
}

.brand-logo {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.brand-logo .ak {
    color: #dc0000;
}

.brand-logo .auto {
    color: #ffffff;
}

.brand-logo .circle {
    color: #dc0000;
    font-size: 1.5rem;
}

.modal-body {
    padding: 0 2rem 2rem;
}

.nav-link {
    color: #6c757d;
}


.nav-tabs {
    border-bottom: none;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.nav-tabs .nav-link {
    border: none;
    background: none;
    color: #666;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    font-size: 1rem;
}

.nav-tabs .nav-link.active {
    color: #dc0000;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #dc0000;
}


.form-control {
    background-color: #0d0d0d;
    border: 1px solid #333;
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.form-control::placeholder {
    color: #666;
}

.form-control:focus {
    background-color: #0d0d0d;
    border-color: #555;
    color: #fff;
    box-shadow: none;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
    margin-top: -0.5rem;
}

.password-toggle:hover {
    color: #999;
}

.forgot-password {
    color: #dc0000;
    text-decoration: none;
    display: block;
    text-align: right;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.forgot-password:hover {
    color: #ff0000;
}

.btn-login {
    background-color: #dc0000;
    border: none;
    color: white;
    padding: 1rem;
    font-weight: 600;
    width: 100%;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    background-color: #ff0000;
}

.support-link {
    color: #999;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
}

.support-link span {
    color: #dc0000;
}

.support-link:hover span {
    color: #ff0000;
}

.selection-box {
    color: #666 !important;
    padding: 1rem;
    font-size: 1rem;
}


.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border: 0.3rem solid rgba(220, 0, 0, 0.3);
    border-top-color: #dc0000;
}

.bg-lightpink {
    background-color: #FFDEE5;
}

.modal-backdrop {
    z-index: 3000;
}

.modal-4000 {
    z-index: 4000;
}




/* Deposit Modal Styles */
.select-method-btn {
    background-color: #0d0d0d;
    border: 2px solid #333;
    color: #fff;
    padding: 1rem;
    text-align: left;
    width: 100%;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.select-method-btn:hover {
    border-color: #555;
}

.select-method-btn.active {
    border-color: #dc0000;
    background-color: rgba(220, 0, 0, 0.1);
}

.select-method-btn .check-circle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #dc0000;
    display: none;
    align-items: center;
    justify-content: center;
}

.select-method-btn.active .check-circle {
    display: flex;
}

.promo-code-input-group {
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.promo-code-input-group .form-control {
    flex: 1;
}

.promo-code-input-group .btn {
    min-width: 70px;
}

.text-success-custom {
    color: #00ff00;
    font-size: 0.875rem;
}

.btn-light {
    background-color: #e8d4d4;
    border-color: #e8d4d4;
    color: #000;
}

.btn-light:hover {
    background-color: #d4c0c0;
    border-color: #d4c0c0;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;               /* Center content */
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.5); /* Optional: dark transparent layer */
    color: white;
    text-align: center;
}


/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
/* Scroll to top button */
.scroll-top-btn{
    position: fixed;
    right: 10px !important; /*LARRY (fix live chat UI )13/03/2026*/
    bottom: 100px !important; /*LARRY (fix live chat UI )13/03/2026*/
    width: 60px; /*LARRY (fix live chat UI )13/03/2026*/
    height: 60px; /*LARRY (fix live chat UI )13/03/2026*/
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);;
    color: #fff;
    box-shadow: 0 6px 18px rgba(11,116,222,0.18);
    border: 0;
    transform: translateY(16px) scale(.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s cubic-bezier(.22,.9,.3,1), visibility .25s;
    cursor: pointer;
    z-index: 9999;
}


.scroll-top-btn.show{
    transform:translateY(0) scale(1);
    opacity:1;
    visibility:visible;
}


.scroll-top-btn:focus{outline:3px solid rgba(255,255,255,0.2); outline-offset:4px}
.scroll-top-btn:hover{filter:brightness(.95);}


/* SVG icon small tweak */
.scroll-top-btn svg{width:24px;height:24px;display:block}


/* Respect reduced motion: disable visual transitions and smooth scroll
for users who requested reduced motion. */
@media (prefers-reduced-motion: reduce){
.scroll-top-btn{transition:none}
html{scroll-behavior:auto}
}








/* DESKTOP VERSION */
/* Header */
.top-header {
    background-color: #1a1a1a;
    padding: 0.75rem 0;
}

.navbar {
    background-color: #0f0f0f;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand .ak {
    color: var(--brand-red);
}

/* Game Cards */
.game-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
}


.game-card .game-title {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #fff;
}

.badge-new {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #00ff00;
    color: #000;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(220, 0, 0, 0.3) 10%, rgba(0, 0, 0, 0) 80%);
    border-radius: 4px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(0.25turn, #090909 0%, #FF1212 4%, #090909 83%);
    border-image-slice: 1;
}

.section-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all {
    color: var(--brand-red);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar-card {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #fff;
}

.sidebar-card img {
    width: 100%;
    border-radius: 8px;
}

.event-card {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.event-card:hover {
    background: #252525;
}

.event-card.mini-games {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.event-card.mission {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

.event-card.reward {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.event-card.prediction {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.event-card.ranking {
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
}

/* Partners Section */
.partners-section {
    background: #1a1a1a;
    padding: 2rem 0;
    margin-top: 3rem;
}

.partner-logo {
    height: 50px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.7);
    transition: filter 0.3s;
}

.partner-logo:hover {
    filter: grayscale(0) brightness(1);
}

/* Footer */
.footer {
    background: #0a0a0a;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #1a1a1a;
}

.footer a {
    color: #999;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer a:hover {
    color: #fff;
}

.footer-title {
    color: #fff;
    font-weight: bold;
    margin-bottom: 1rem;
}

.social-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: #1a1a1a;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 0.5rem;
    color: #fff;
}

.navbar {
    background-color: #0f0f0f;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand .ak {
    color: var(--brand-red);
}

.nav-link-desk {
    color: #999 !important;
    padding: 0.5rem 1.5rem !important;
    transition: color 0.3s;
    text-decoration: none;
}

.nav-link-desk:hover, .nav-link-desk.active {
    color: #fff !important;
}

.nav-link-desk.active {
    color: var(--brand-red) !important;
}

.game-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-left: 5px;
    scroll-padding: 0 10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.game-scroll::-webkit-scrollbar {
    display: none;
}

/* Make cards slightly overflow */
.game-item {
    flex: 0 0 10.5%;   /* 8 items */
    max-width: 10.5%;
}

/* Tablet — 6 per row */
@media (max-width: 992px) {
    .game-item {
        flex: 0 0 16.66%;   /* 6 items */
        max-width: 16.66%;
    }
}

/* Mobile — 4 per row */
@media (max-width: 576px) {
    .game-item {
        flex: 0 0 25%;      /* 4 items */
        max-width: 25%;
    }
}

.game-scroll.active-drag {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

.game-scroll {
    cursor: grab;
    cursor: -webkit-grab;
}

.game-scroll img {
    pointer-events: none;   /* allows dragging the container instead */
    -webkit-user-drag: none; /* Safari/Chrome */
}

.game-scroll, 
.game-scroll * {
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;     /* IE/Edge */
}

.linear-1 {
    background: linear-gradient(135deg, #392875 0%, #6B4CDB 100%);
}

.linear-2 {
    background: linear-gradient(135deg, #205595 0%, #417EC8 100%);
}

.linear-3 {
    background: linear-gradient(135deg, #0D5941 0%, #1DBF8C 100%);
}

.linear-4 {
    background: linear-gradient(135deg, #4E2500 0%, #B45500 100%);
}

.linear-5 {
    background: linear-gradient(135deg, #613900 0%, #C77400 100%);
}

.img-object-fit{
    object-fit: contain;
    aspect-ratio: 1/1;
}


/* method 2 -> use background-clip to support border-radius */
.btn-gradient-2 {
  background: linear-gradient(#0a0a0a, #0a0a0a) padding-box, linear-gradient(to right, #650023, #090909) border-box;
    border-radius: 1em;
    border: 2px solid transparent;
}

.btn-gradient-2 {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1em;
  padding: 0.5rem 0.5rem;
  cursor: pointer;
}

.game-card-img-slot {
    aspect-ratio: 4 / 2;
    object-fit: contain;
    width: 100%;
    border-radius: 8px;
}

.reward-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reward-box {
    text-align: center;
    animation: popIn 0.35s ease;
}

.reward-gif {
    width: 180px;
    max-width: 80vw;
}

.reward-text {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    margin-top: 10px;
}

.game-img-square {
    width: 100%;
    height: 100%;
    object-fit: cover; /* crop slightly to fill square */
    display: block;
}

.trns-filter-buttons .trns-filter-btn {
    flex: 1 1 calc(33.333% - .5rem);
    min-width: 0;
    white-space: nowrap;
    font-size: 14px;
    padding-left: 8px;
    padding-right: 8px;
}

@media (min-width: 768px) {
    .trns-filter-buttons .trns-filter-btn {
        flex: 1 1 0;
    }
}

@media (max-width: 360px) {
    .trns-filter-buttons .trns-filter-btn {
        flex: 1 1 calc(50% - .5rem);
    }
}

.trns-date-filter .trns-date-field {
    flex: 1 1 calc(50% - .5rem);
    min-width: 0;
}

.trns-date-filter .trns-date-search {
    flex: 1 1 100%;
}

.trns-date-filter .search-date-btn {
    width: 100%;
}

@media (min-width: 768px) {
    .trns-date-filter .trns-date-field {
        flex: 1 1 0;
    }

    .trns-date-filter .trns-date-search {
        flex: 0 0 auto;
        padding-top: 24px;
    }

    .trns-date-filter .search-date-btn {
        width: auto;
    }
}

.trns-table-box {
    overflow: hidden;
}

.trns-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.trns-history-table {
    min-width: 600px;
}

.trns-history-table th,
.trns-history-table td {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .trns-table-box {
        padding: 10px !important;
    }

    .trns-history-table {
        min-width: 560px;
        font-size: 12px;
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}