@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --bg-body: #1a1b1d;
    --bg-card: #1a1b1d;
    --bg-input: #1a1b1d;
    --primary: #d29f22;
    --primary-light: #f1c40f;
    --primary-glow: rgba(210, 159, 34, 0.4);
    --accent-copper: #a38560;
    --border-color: #4a3b2a;
    --text-main: #FFFFFF;
    --text-muted: #b0a090;
    --radius: 20px;
}

* {
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

body {
    background-color: var(--bg-body) !important;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) !important;
    background-size: 20px 20px;
    color: var(--text-main) !important;
    font-family: 'Inter', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 70px;
    padding-bottom: 100px;
}

/* =========================================
   GLOBAL LOADING OVERLAY (Premium)
   ========================================= */
.global-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(210, 159, 34, 0.2);
    border-top-color: #d29f22;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(210, 159, 34, 0.4);
}

.loader-logo {
    width: 120px;
    animation: pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* =========================================
   APP HEADER
   ========================================= */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #1a1b1d;
    border-bottom: 1px solid #1a1b1d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-left .profile-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #4a3b2a;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1b1d;
}

.nav-left .profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-img {
    height: 28px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

.wallet-box {
    display: flex;
    align-items: center;
    background: #1a1b1d;
    border: 1px solid #3a3a3d;
    border-radius: 30px;
    padding: 4px 4px 4px 12px;
    gap: 8px;
    height: 36px;
}

.w-bal {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.w-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

/* Header Auth Buttons (logged out) */
.header-auth-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-auth-btns .btn-login-h {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #3a3a3d;
    color: #fff;
    background: transparent;
    transition: 0.3s;
}

.header-auth-btns .btn-login-h:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.header-auth-btns .btn-register-h {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    color: #000;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 2px 10px rgba(210, 159, 34, 0.3);
    transition: 0.2s;
}

.header-auth-btns .btn-register-h:active {
    transform: scale(0.96);
}

/* =========================================
   SLIDER
   ========================================= */
.slider-container {
    width: 100%;
    overflow: hidden;
    margin-top: 15px;
}

.slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 0 15px;
    scrollbar-width: none;
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

/* =========================================
   GAMES GRID
   ========================================= */
.section-title {
    padding: 20px 20px 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
    box-shadow: 0 0 5px var(--primary);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 20px;
}

.game-card {
    background: #1a1b1d;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: 0.2s;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.game-card:active {
    transform: scale(0.96);
    border-color: var(--primary);
}

.game-card.featured {
    grid-column: span 3;
}

.game-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.game-card.featured .game-img {
    height: 160px;
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to top, #1a1b1d, transparent);
}

.game-title {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

/* =========================================
   LEGAL / FOOTER SECTION
   ========================================= */
.legal-section {
    padding: 30px 20px;
    margin-top: 20px;
    background: #1a1b1d;
    border-top: 1px solid var(--border-color);
}

.legal-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.legal-text {
    font-size: 11px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.legal-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.legal-links a {
    font-size: 11px;
    color: #b0a090;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

.legal-footer {
    text-align: center;
    font-size: 12px;
    color: #555;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #333;
}

/* =========================================
   BOTTOM NAV
   ========================================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a1b1d;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 15px 0;
    z-index: 999;
}

.nav-item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    border: none;
    color: #777;
    font-size: 10px;
    font-weight: 600;
    gap: 4px;
}

.nav-item-link:hover,
.nav-item-link:focus {
    text-decoration: none !important;
    background: transparent;
}

.nav-item-link i {
    font-size: 20px;
}

.nav-item-link.active {
    color: var(--primary);
    text-shadow: 0 0 5px rgba(210, 159, 34, 0.5);
}

/* =========================================
   SUPPORT FLOAT BUTTON
   ========================================= */
.support-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
    z-index: 9999;
    cursor: pointer;
    border: 2px solid #fff;
    transition: transform 0.1s;
    text-decoration: none;
}

.support-float:active {
    transform: scale(0.95);
}

.support-float i {
    color: #fff;
    font-size: 24px;
}

/* =========================================
   ONLINE COUNTER
   ========================================= */
.online-counter-bar {
    background: rgba(210, 159, 34, 0.08);
    border: 1px solid rgba(210, 159, 34, 0.15);
    margin: 15px 15px 0;
    padding: 12px 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.online-counter-bar i {
    color: var(--primary);
    font-size: 16px;
}

.online-counter-bar .counter-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.online-counter-bar .counter-value {
    font-size: 14px;
    color: #fff;
    font-weight: 800;
}

.online-counter-bar .live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* =========================================
   DOWNLOAD APP SECTION
   ========================================= */
.download-section {
    margin: 20px 15px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1b1d, #1a1b1d);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.download-section h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #fff;
}

.download-section p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 15px;
}

.download-btn-app {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #000;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(210, 159, 34, 0.3);
    transition: 0.2s;
}

.download-btn-app:active {
    transform: scale(0.96);
}

.download-btn-app i {
    font-size: 18px;
}

/* =========================================
   DEPOSIT PAGE
   ========================================= */
.deposit-page {
    padding-bottom: 80px;
}

.dep-header-container {
    padding: 15px 20px 0;
}

.compact-card {
    background: linear-gradient(135deg, #1a1b1d, #1a1b1d);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.cc-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cc-label {
    font-size: 11px;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.cc-balance {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.cc-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(210, 159, 34, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* Amount Section */
.amount-section {
    padding: 0 20px;
}

.input-label {
    font-size: 11px;
    font-weight: 700;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #1a1b1d;
    border: 1.5px solid #333;
    border-radius: 14px;
    padding: 0 16px;
    transition: 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(210, 159, 34, 0.1);
}

.curr-symbol {
    font-size: 22px;
    color: var(--primary);
    font-weight: 800;
    margin-right: 8px;
}

.clean-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    padding: 16px 0;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.clean-input::placeholder {
    color: #444;
}

.clean-input::-webkit-inner-spin-button,
.clean-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.clean-input[type=number] {
    -moz-appearance: textfield;
}

.min-limit-text {
    display: none;
    font-size: 11px;
    color: #ff4757;
    margin-top: 6px;
    font-weight: 600;
}

/* Chips Grid */
.chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.d-chip {
    flex: 1 1 calc(33.33% - 10px);
    text-align: center;
    padding: 12px 0;
    background: #1a1b1d;
    border: 1px solid #333;
    border-radius: 12px;
    color: #8b949e;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.d-chip:active {
    transform: scale(0.95);
}

.d-chip.active {
    background: rgba(210, 159, 34, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(210, 159, 34, 0.2);
}

/* Method Card */
.method-card {
    margin: 0 20px;
    padding: 18px;
    background: #1a1b1d;
    border: 1.5px solid #22c55e;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.1);
}

.qr-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.m-details {
    flex: 1;
}

.m-details h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.m-details p {
    margin: 3px 0 0;
    font-size: 12px;
    color: #8b949e;
}

.m-check {
    color: #22c55e;
    font-size: 20px;
}

/* Trust Row */
.trust-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 20px;
    margin-top: 10px;
}

.trust-item {
    font-size: 11px;
    color: #555;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-item i {
    font-size: 13px;
    color: #22c55e;
}

/* Pay Bar */
.pay-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: #1a1b1d;
    border-top: 1px solid var(--border-color);
    z-index: 999;
}

.btn-pay-secure {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #000;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(210, 159, 34, 0.4);
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-pay-secure:active {
    transform: scale(0.97);
}

.btn-pay-secure:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================
   DEPOSIT PAGE
   ========================================= */
.deposit-page {
    padding-bottom: 80px;
}

.dep-header-container {
    padding: 15px 20px 0;
}

.compact-card {
    background: linear-gradient(135deg, #1a1b1d, #1a1b1d);
    border: 1px solid #333;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.cc-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cc-label {
    font-size: 11px;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.cc-balance {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.cc-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(210, 159, 34, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* Amount Section */
.amount-section {
    padding: 0 20px;
}

.input-label {
    font-size: 11px;
    font-weight: 700;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #1a1b1d;
    border: 1.5px solid #333;
    border-radius: 14px;
    padding: 0 16px;
    transition: 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(210, 159, 34, 0.1);
}

.curr-symbol {
    font-size: 22px;
    color: var(--primary);
    font-weight: 800;
    margin-right: 8px;
}

.clean-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    padding: 16px 0;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.clean-input::placeholder {
    color: #444;
}

.clean-input::-webkit-inner-spin-button,
.clean-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.clean-input[type=number] {
    -moz-appearance: textfield;
}

.min-limit-text {
    display: none;
    font-size: 11px;
    color: #ff4757;
    margin-top: 6px;
    font-weight: 600;
}

/* Chips Grid */
.chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.d-chip {
    flex: 1 1 calc(33.33% - 10px);
    text-align: center;
    padding: 12px 0;
    background: #1a1b1d;
    border: 1px solid #333;
    border-radius: 12px;
    color: #8b949e;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.d-chip:active {
    transform: scale(0.95);
}

.d-chip.active {
    background: rgba(210, 159, 34, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(210, 159, 34, 0.2);
}

/* Method Card */
.method-card {
    margin: 0 20px;
    padding: 18px;
    background: #1a1b1d;
    border: 1.5px solid #22c55e;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.1);
}

.qr-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.m-details {
    flex: 1;
}

.m-details h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.m-details p {
    margin: 3px 0 0;
    font-size: 12px;
    color: #8b949e;
}

.m-check {
    color: #22c55e;
    font-size: 20px;
}

/* Trust Row */
.trust-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 20px;
    margin-top: 10px;
}

.trust-item {
    font-size: 11px;
    color: #555;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-item i {
    font-size: 13px;
    color: #22c55e;
}

/* Pay Bar */
.pay-bar {
    position: fixed;
    bottom: 70px;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: #1a1b1d;
    border-top: 1px solid var(--border-color);
    z-index: 999;
}

.btn-pay-secure {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #000;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(210, 159, 34, 0.4);
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-pay-secure:active {
    transform: scale(0.97);
}

.btn-pay-secure:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}